/* Variables para fácil mantenimiento */
:root {
    --primary-color: #5d7c77; /* Verde Salvia - Calma y Profesionalismo */
    --accent-color: #d4a373;  /* Tierra suave - Calidez */
    --bg-light: #fdfcf9;      /* Blanco roto - Calidez visual */
    --text-dark: #333333;
    --text-light: #ffffff;
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Header & Nav */
.main-header {
    background: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2rem;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff !important;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f1716;
    text-align: center;
}

.hero::before {
    content: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-video-bg {
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    min-height: 72vh;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
    background: #fff;
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-video-mobile {
    display: none;
}

.hero-bg-video-desktop {
    display: block;
}

.hero-video-overlay {
    position: relative;
    z-index: 2;
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(rgba(18, 28, 27, 0.68), rgba(18, 28, 27, 0.58));
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #fff;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.volume-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(93, 124, 119, 0.9);
    border: 2px solid #fff;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.volume-toggle:hover {
    background: rgba(93, 124, 119, 1);
    transform: scale(1.1);
}

.volume-toggle:active {
    transform: scale(0.95);
}

.hero .btn-secondary {
    color: #fff;
    border-color: #fff;
}

.hero .btn-secondary:hover {
    background: #fff;
    color: var(--primary-color);
}

.btn-cta {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    margin-right: 10px;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    border: 2px solid var(--accent-color);
    transition: background 0.3s, color 0.3s;
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
}

.local-trust {
    margin-top: 1.5rem;
}

.local-trust .container {
    padding: 1rem 0;
}

/* Services Grid */
.services { padding: 5rem 0; background: #fff; }

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.services-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.service-card:hover { transform: translateY(-10px); }

.service-img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* Sección Quiénes Somos en Home */
.quienes-somos-home {
    padding: 5rem 0;
    background: #fff;
}

.quienes-somos-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.quienes-somos-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

/* WhatsApp Floating */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
}

.whatsapp-float img { width: 35px; }

/* Responsive Mobile (Prioridad) */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Ocultar para menú hamburguesa */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 2rem 0;
    }
    
    .nav-links.active { display: flex; }
    
    .nav-links li { margin: 1rem 0; }

    .brand-logo {
        width: 44px;
        height: 44px;
    }

    .hero {
        min-height: 60vh;
        padding: 0;
    }

    .hero-video-bg {
        min-height: 78vh;
        aspect-ratio: auto;
        background: #0f1716;
    }

    .hero-video-overlay {
        min-height: 78vh;
        padding: 1.4rem;
    }

    .hero-bg-video {
        object-fit: cover;
        object-position: center;
    }

    .hero-bg-video-desktop {
        display: none;
    }

    .hero-bg-video-mobile {
        display: block;
        object-position: top center;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta,
    .btn-secondary {
        width: min(280px, 92%);
        margin-right: 0;
    }

    .volume-toggle {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
        top: 15px;
        right: 15px;
    }
    
    .hero h1 { font-size: 1.8rem; }

    .hero p {
        font-size: 1rem;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* Desktop */
@media (min-width: 769px) {
    .menu-toggle { display: none; }
}

/* Página Quiénes Somos */
.quienes-somos-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a6361 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.quienes-somos-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.quienes-somos-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Sección Profesionales */
.professionals {
    padding: 5rem 0;
    background: var(--bg-light);
}

.professionals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-subtitle {
    margin-top: 3rem;
}

.professional-card {
    background: white;
    border-radius: 15px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
    padding-top: 80px;
    text-align: center;
}

.professional-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.professional-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: -80px auto 1rem;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.professional-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.professional-card h3 {
    padding: 0.5rem 1.5rem 0.5rem;
    font-size: 1.3rem;
    color: var(--text-dark);
}

.professional-card .specialty {
    padding: 0 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.professional-card .description {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.professional-card .matricula {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

.director-card {
    max-width: 980px;
    margin: 0 auto;
    padding-top: 110px;
    padding-bottom: 0.5rem;
}

.director-image {
    width: 220px;
    height: 220px;
    margin-top: -110px;
    margin-bottom: 1.2rem;
}

.director-card h3 {
    font-size: 2rem;
    padding-top: 0;
}

.director-card .specialty {
    font-size: 1rem;
    letter-spacing: 0.8px;
}

.director-card .description {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

.join-team-section {
    padding: 4rem 0;
    text-align: center;
    background: #fff;
}

.join-team-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.join-team-section p {
    max-width: 760px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.footer-bottom {
    text-align: center;
    padding: 1.25rem 0;
}

.footer-bottom p {
    margin: 0.25rem 0;
}

.footer-bottom a {
    color: inherit;
    text-decoration: underline;
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a6361 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Responsive Profesionales */
@media (max-width: 768px) {
    .quienes-somos-hero h1 {
        font-size: 1.8rem;
    }

    .quienes-somos-hero p {
        font-size: 1rem;
    }

    .professionals-grid {
        grid-template-columns: 1fr;
    }

    .join-team-section h2 {
        font-size: 1.6rem;
    }

    .join-team-section p {
        font-size: 1rem;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .director-card {
        padding-top: 95px;
    }

    .director-image {
        width: 180px;
        height: 180px;
        margin-top: -95px;
    }

    .director-card h3 {
        font-size: 1.6rem;
    }
}