:root {
    --azul-thera: #0d47a1;
    --azul-hover: #0a3980;
    --verde-thera: #4caf50;
    --verde-hover: #3d8b40;
    --texto-oscuro: #2c3e50;
    --texto-mutado: #64748b;
    --blanco: #ffffff;
    --gris-fondo: #f8fafc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    color: var(--texto-oscuro);
    background-color: var(--blanco);
    line-height: 1.6;
}

/* ==========================================================================
   HEADER Y NAVBAR 
   ========================================================================== */
header {
    background-color: var(--blanco);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
    object-fit: contain;
}

.menu-toggle {
    display: none; /* Oculto en PC */
    font-size: 24px;
    color: var(--azul-thera);
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--azul-thera);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 10px 14px;
    border-radius: 6px;
    white-space: nowrap;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--blanco);
    background-color: var(--azul-thera);
}


@media (max-width: 992px) {
    .menu-toggle {
        display: block; /* Aparece en móviles */
    }

    .nav-menu {
        position: fixed;
        top: 85px;
        left: -100%; /* Oculto a la izquierda, no empuja el diseño */
        width: 100%;
        height: calc(100vh - 85px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        gap: 20px;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        z-index: 999;
    }

    .nav-menu.active {
        left: 0; /* Desliza al frente cuando se activa */
    }
}

/* ==========================================================================
   BANNER HERO - CONTACTO
   ========================================================================== */
.staff-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background-image: url('../img/inicio/banner1.jpeg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.staff-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.75) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.staff-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: #ffffff;
    padding: 10px;
}

.staff-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: rgba(41, 221, 71, 0.616);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    font-weight: 600;
}

.staff-hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.staff-hero-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
/* ==========================================================================
   ESTILOS GENERALES DE CONTACTO
   ========================================================================== */
.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #2e7d32; /* Verde suave clínico */
    font-weight: 600;
    margin-bottom: 10px;
}


.contact-section {
    padding: 60px 20px;
    background-color: #f8fafc;
}

.contact-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.contact-form-box, .contact-info-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.contact-form-box h2 {
    font-size: 1.8rem;
    color: #0c4da2;
    margin-bottom: 8px;
    font-weight: 700;
}

.contact-form-box > p {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form-box h3 {
    font-size: 1.3rem;
    color: #0c4da2;
    margin-bottom: 20px;
    margin-top: 10px;
}

/* ========================================================
   BOTONES DE REDES SOCIALES EN ARMONÍA
   ======================================================== */
.contact-social-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-social.fb { background-color: #1565c0; }
.btn-social.ig { background-color: #d81b60; }
.btn-social.tk { background-color: #212121; }

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    filter: brightness(1.1);
}

.divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 30px 0;
}

/* ========================================================
   ESTILOS DEL FORMULARIO DE CONTACTO
   ======================================================== */
.input-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333333;
    font-size: 0.9rem;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333333;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: #0c4da2;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(12, 77, 162, 0.1);
}

.error-msg {
    color: #e63946;
    font-size: 0.8rem;
    margin-top: 5px;
    display: none;
}

.input-group.invalid input,
.input-group.invalid select,
.input-group.invalid textarea {
    border-color: #e63946;
    background-color: rgba(230, 57, 70, 0.01);
}

.input-group.invalid .error-msg {
    display: block;
}

.btn-submit {
    width: 100%;
    background-color: #0c4da2;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #0a3d82;
    transform: translateY(-2px);
}
.success-box {
    display: none;
    align-items: center;
    gap: 12px;
    background-color: #e8f5e9;
    border-left: 5px solid #4caf50;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.success-box i {
    color: #4caf50;
    font-size: 1.4rem;
}

.success-box p {
    color: #2e7d32;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0;
}
/* ==========================================================================
   ESTILO VALIDACION DE ERRORES
   ========================================================================== */
.error-msg {
    color: #e63946;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none; 
    font-weight: 500;
}
.input-group.invalid input,
.input-group.invalid select,
.input-group.invalid textarea {
    border-color: #e63946 !important;
    background-color: rgba(230, 57, 70, 0.02);
}
.input-group.invalid .error-msg {
    display: block;
}
/* ========================================================
   COLUMNA DE INFO Y MAPA
   ======================================================== */
.info-card h3 {
    color: #0c4da2;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}


.info-item i {
    color: #4caf50;
    font-size: 1.2rem;
    margin-top: 3px;
}

.info-item strong {
    display: block;
    color: #333333;
    margin-bottom: 4px;
}

.info-item p {
    color: #666666;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

.map-wrapper {
    position: relative;
    overflow: hidden;
    padding-top: 70%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================================
   MEDIA QUERIES
   ======================================================== */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 30px 15px;
    }
    
    .contact-form-box, .contact-info-box {
        padding: 30px 20px;
    }

    .contact-social-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .input-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-section {
    background-color: #092c63; 
    color: #e2e8f0;
    padding: 70px 0 0 0;
    border-top: 5px solid #4caf50;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
    gap: 40px;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: #4caf50;
    border-radius: 2px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 20px 0;
}

.footer-logo {
    max-height: 65px;
    width: auto;
    background: #ffffff; 
    padding: 5px 10px;
    border-radius: 6px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: #4caf50;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 10px;
    color: #4caf50;
    transition: transform 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links a:hover i {
    transform: translateX(4px);
}

.footer-info {
    list-style: none;
}

.footer-info li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    color: #cbd5e1;
}

.footer-info li i {
    color: #4caf50;
    font-size: 16px;
    margin-top: 3px;
    width: 20px;
    text-align: center;
}

.footer-info a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-info a:hover {
    color: #ffffff;
}

.footer-bottom {
    background-color: #061f47;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: #94a3b8;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr; /* Una sola fila vertical limpia */
        text-align: center;
        gap: 35px;
    }
    .footer-column h4::after {
        left: 50%;
        transform: translateX(-50%); /* Centra la barrita verde */
    }
    .footer-socials { justify-content: center; }
    .footer-info li { justify-content: center; text-align: center; }
    .footer-bottom-container { flex-direction: column; text-align: center; gap: 10px; }
}

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */
.wsp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.wsp-float:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

@media (max-width: 576px) {
    .wsp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
}