/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* ================= PROTECCIÓN DE IMÁGENES ================= */
img {
    -webkit-user-drag: none; /* Evita que arrastren la imagen en Chrome/Safari */
    user-select: none; /* Evita que la seleccionen como si fuera texto */
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* ================= PROTECCIÓN DE TEXTO ================= */
body {
    -webkit-user-select: none; /* Evita selección en Safari/Chrome */
    -moz-user-select: none; /* Evita selección en Firefox */
    -ms-user-select: none; /* Evita selección en IE/Edge */
    user-select: none; /* Estándar general */
}

input, textarea {
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto; /* Permite escribir y seleccionar texto en los formularios y buscador */
}

/* ================= SITE HEADER ================= */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 900;
    background: #fff;
}

/* ================= TOP BAR ================= */
.top-bar {
    background: #0b3a63;
    color: #fff;
    font-size: 14px;
}

.top-bar-container {
    max-width: 100%; /* Cambiado al 100% para que llegue a los extremos de la pantalla */
    margin: auto;
    padding: 6px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-right {
    display: flex;
    gap: 20px; /* Agrega una separación limpia entre el correo y el teléfono */
}

/* ================= ENLACES LIMPIOS (Teléfonos y Correos) ================= */
.link-limpio {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.link-limpio:hover {
    color: #00bfc6; /* El enlace se volverá celeste al pasar el ratón */
}

/* ================= HEADER ================= */
.header {
    border-bottom: 1px solid #ddd;
}

.header-container {
    max-width: 1400px;
    margin: auto;
    padding: 15px 40px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 85px;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    font-weight: 600;
    color: #000;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #0b3a63;
}

/* ================= CHEVRON MENÚ ================= */
.chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 6px;
    border-right: 2px solid #0b3a63;
    border-bottom: 2px solid #0b3a63;
    transform: rotate(45deg); /* siempre hacia abajo */
}

/* ================= SUBMENU ================= */
.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 200px;
    z-index: 100;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu a {
    padding: 12px 20px;
    display: block;
}

/* ================= BODY OFFSET ================= */
body {
    padding-top: 145px; /* Ajustado para coincidir con la altura real del encabezado (aprox. 145px en desktop) */
}

/* ================= BOTÓN ================= */
.btn-primary {
    margin-top: 20px;
    padding: 14px 30px;
    background: #0b3a63;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: #00bfc6;
}

/* ================= CTA CURVO AJUSTADO ================= */

.cta-curved {
    position: relative;
    background: #0b3a63;
    padding-bottom: 30px;        /* Aumentamos el espacio para separar el texto del borde inferior */
    text-align: center;

    display: flex;               /* ⬅️ centra vertical */
    justify-content: center;
    align-items: center;
}

/* Curva superior del CTA */
.cta-curved::before {
    content: "";
    position: absolute;
    top: -55px;                  /* ⬅️ curva más compacta */
    left: 0;
    width: 100%;
    height: 55px;
    background: #0b3a63;
    border-top-left-radius: 100% 80px;
    border-top-right-radius: 100% 80px;
}

/* Texto CTA */
.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content p {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;          /* ⬅️ más equilibrado */
    font-weight: 500;
    line-height: 1.4;
}

.cta-content strong {
    font-weight: 700;
}


/* ================= SECTIONS ================= */
.section {
    max-width: 1200px;
    margin: auto;
    padding: 80px 40px;
}
@media (max-width: 768px) {
    .section {
        padding: 50px 20px; /* Reducimos los márgenes inmensos en celular */
    }
}


/* ================= FOOTER ================= */
.footer {
    background: #081f33;
    color: #fff;
    padding: 20px;
    text-align: center;
}

/* Animación scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ================= FOOTER CORPORATE ================= */

.footer-corporate {
    background: radial-gradient(
        circle at bottom,
        #0b3a63 0%,
        #061a2f 70%
    );
    color: #ffffff;
    padding: 20px 40px 90px;
}

/* TOP BAR */


/* CENTRO */
.footer-top-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* LOGO BLANCO DEL FOOTER */
.footer-top-center > img {
    height: 70px;
}

/* BOTÓN INSTAGRAM */
.instagram-btn {
    width: 45px;
    height: 45px;
    background: #0b3a63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.instagram-btn img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    transition: 0.3s;
}

.instagram-btn:hover {
    background: #ffffff;
}

.instagram-btn:hover img {
    filter: brightness(0);
}

/* LIENA QUE DIVIDE BLANCA */
.footer-divider {
    max-width: 1400px;
    height: 2px;
    background: rgba(255,255,255,0.15);
    margin: 20px auto 60px;
}

/* CONTENT */
.footer-content {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

/* LOCATION */
.footer-location h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.footer-location p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-location iframe {
    width: 100%;
    height: 260px;
    border: none;
    border-radius: 12px;
    margin-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px; /* Reducimos el espacio entre sucursales al apilarlas */
    }
}

/* ================= WHATSAPP BOTON ================= */

.whatsapp-side {
    position: fixed;
    right: 20px;
    bottom: 40px;
    top: auto;
    transform: none;

    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 9999;
    font-family: inherit;
}


/* TEXTO WHATSAPP */
.whatsapp-text {
    background: #25D366;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 8px 0 0 8px;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* ICONO WHATSAPP */
.whatsapp-icon {
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-icon img {
    width: 26px;
    height: 26px;
}

/* HOVER / FOCUS */
.whatsapp-side:hover .whatsapp-text,
.whatsapp-side:focus .whatsapp-text {
    transform: translateX(0);
    opacity: 1;
}
/* BOTON MENU CELULAR RESPONSIVE */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* ===== PARA CELULAR ===== */
@media (max-width: 768px) {

    body {
        padding-top: 90px; /* Ajustamos el espacio para el nuevo tamaño del menú */
    }
    
    .top-bar {
        display: none; /* Ocultamos la barra de contactos arriba para liberar espacio en pantalla */
    }

    .logo img {
        height: 60px; /* Logo más pequeño solo en celulares para ahorrar espacio */
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        display: none;
        flex-direction: column;
    }

    .nav.active {
        display: flex;
    }

    .menu {
        flex-direction: column;
        padding: 20px;
    }

    .menu li {
        margin-bottom: 15px;
    }

    .submenu {
        position: static;
        display: none;
        background: none;
        box-shadow: none;
    }

    .has-submenu.active .submenu {
        display: block;
    }
    

    .header-container {
        padding: 15px 20px;
        justify-content: space-between;
    }

    /* Ajustes para el botón flotante de WhatsApp */
    .whatsapp-side {
        bottom: 20px;
        right: 15px;
    }

    .whatsapp-icon {
        width: 48px;
        height: 48px;
    }

    .whatsapp-icon img {
        width: 24px;
        height: 24px;
    }

    .whatsapp-text {
        display: none; /* En pantallas táctiles no hay 'hover', es mejor ocultar el texto */
    }

    /* Ajustes para el pie de página (footer) en móviles */
    .footer-corporate {
        padding: 40px 20px 80px; /* Reducimos los márgenes laterales */
    }

    .footer-location {
        text-align: center; /* Centramos el texto para mayor simetría */
    }

    .footer-location iframe {
        height: 220px; /* Reducimos un poco el alto de los mapas para que no ocupen toda la pantalla */
    }
}