/* ===================================
   VARIABLES Y RESET
   =================================== */
:root {
    --primary-color: #2c7873;      /* Verde azulado profesional */
    --primary-dark: #1f5551;       /* Verde más oscuro */
    --accent-color: #f2a154;       /* Naranja cálido */
    --accent-light: #ffd39b;       /* Naranja claro */
    --text-dark: #2d3748;          /* Gris oscuro para texto */
    --text-light: #4a5568;         /* Gris medio */
    --background-light: #f7fafc;   /* Fondo suave */
    --background-white: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    background: url('images/hero-team.jpg') center center / cover no-repeat;
    color: white;
    padding: 80px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 120, 115, 0.85) 0%, rgba(31, 85, 81, 0.85) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--accent-light);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.cta-button:hover {
    background-color: #e89943;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   SERVICIOS SECTION
   =================================== */
.servicios {
    padding: 80px 20px;
    background-color: var(--background-light);
}

.servicios h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

.servicios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.servicio-card {
    background: var(--background-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-top: 4px solid var(--accent-color);
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.servicio-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.servicio-icon svg {
    width: 100%;
    height: 100%;
}

.servicio-card h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.servicio-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
}

/* ===================================
   SOBRE MÍ SECTION
   =================================== */
.sobre-mi {
    padding: 80px 20px;
    background-color: var(--background-white);
}

.sobre-mi h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 700;
}

.sobre-mi-content {
    max-width: 800px;
    margin: 0 auto;
}

.sobre-mi-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.sobre-mi-text p:last-child {
    margin-bottom: 0;
    font-size: 1.15rem;
    color: var(--primary-dark);
}

/* ===================================
   CONTACTO SECTION
   =================================== */
.contacto {
    padding: 80px 20px;
    background-color: var(--background-light);
}

.contacto h2 {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.contacto-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.contacto-intro a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.contacto-intro a:hover {
    text-decoration: underline;
}

.contacto-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--background-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.95rem;
}

.submit-button {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.submit-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--primary-dark);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.footer p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer a {
    color: var(--accent-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablets */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.6rem;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contacto-form {
        padding: 50px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .hero {
        padding: 120px 20px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .servicios-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .servicios {
        padding: 100px 20px;
    }

    .sobre-mi {
        padding: 100px 20px;
    }

    .contacto {
        padding: 100px 20px;
    }
}

/* Animaciones sutiles */
@media (prefers-reduced-motion: no-preference) {
    .servicio-card,
    .cta-button,
    .submit-button {
        transition: all 0.3s ease;
    }
}
