/* Estilos propios del layout compartido (header.php, header_spanish.php, footer.php).
   No son utilidades reusadas entre vistas -> van aparte de shared.css. */

/* --- header.php: botón de navbar + tipografía global --- */
.boton_navbar {
    font-size: 15px !important;
    color: white !important;
}

.boton_navbar:hover {
    color: #940A36 !important;
}

*:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not([class^="flaticon-"]):not([class*=" flaticon-"]) {
    font-family: "Geist", serif !important;
}

/* --- header_spanish.php: rediseño header-upper-area (v2) --- */
.header-upper-area-v2 {
    background-color: #0A2540;
    background-image:
        radial-gradient(circle at 15% 30%, rgba(255,255,255,0.12) 0, transparent 55%),
        radial-gradient(circle at 85% 70%, rgba(196,30,58,0.6) 0, transparent 70%);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hua2-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* Botón de contacto */
.hua2-contact,
.hua2-contact:visited {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 20px;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 30px;
    color: #FFFFFF !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    overflow: hidden;
    z-index: 0;
    transition: color .3s ease, border-color .3s ease, transform .2s ease;
}
.hua2-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #940A36, #C41E3A);
    transform: translateX(-101%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: -1;
}
.hua2-contact i {
    color: #E7B4C4;
    transition: color .3s ease, transform .3s ease;
}
.hua2-contact:hover {
    color: #FFFFFF;
    border-color: #C41E3A;
    transform: translateY(-1px);
}
.hua2-contact:hover::before {
    transform: translateX(0);
}
.hua2-contact:hover i {
    color: #FFFFFF;
    transform: scale(1.1);
}

.hua2-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.hua2-social {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: transparent;
    color: #F5F7FA;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.hua2-social:hover {
    background: #C41E3A;
    border-color: #C41E3A;
    color: #FFFFFF;
    transform: translateY(-2px);
}
.hua2-session {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 30px;
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.4);
    color: #6FE3A0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}
@media (max-width: 576px) {
    .header-upper-area-v2 {
        padding: 10px 0;
    }
    .hua2-flex {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
    .hua2-contact,
    .hua2-contact:visited {
        padding: 7px 16px;
        font-size: 11px;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }
    .hua2-right {
        justify-content: center;
    }
}

@media (max-width: 350px) {
    .hua2-contact,
    .hua2-contact:visited {
        font-size: 10px;
        padding: 6px 12px;
        gap: 6px;
    }
}

.logo img {
    width: 300px;
    max-width: none;
}

/* El logo (300px) es más ancho que su columna (.col-lg-2) y sobresale a
   propósito hacia la columna del menú. El tema define ".logo a { display:
   block }", por lo que el área clicable del enlace quedaba limitada al
   ancho de la columna y no cubría la mitad de la imagen que sobresalía;
   con inline-block el enlace se ajusta al tamaño real de la imagen.
   Eso solo no bastaba: style.css pone ".menu ul li" en position:relative
   (línea ~890), y cualquier elemento posicionado se pinta por encima de
   uno no posicionado dentro del mismo contexto de apilamiento, sin
   importar el orden en el HTML. Como esos <li> invaden geométricamente el
   área donde sobresale el logo, interceptaban el clic aunque ahí no se
   vea nada del menú. Al posicionar ".logo" con un z-index explícito, todo
   su contenido (incluida la imagen que sobresale) pasa a pintarse encima
   del menú y vuelve a ser clicable en toda su superficie. */
.logo {
    position: relative;
    z-index: 5;
}

.logo a {
    display: inline-block;
}

/* --- footer.php: franja superior del footer (antes gris #303030) --- */
.footer-top-area {
    background-color: #0f5a8d;
}

/* --- footer.php: botón flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Opcional: animación de pulso para llamar la atención */
.whatsapp-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Ajuste para móvil */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }
}
