*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
html {
    scroll-behavior: smooth;
}

:root{
    --ColorPrincipal: #022b61;
    --colorPrincipalClaro: #004aad;
    --colorVerdeWsp: #00e676;
    --ColorBlancoFondo: #ffff;
    --colorSubtitulos: #474747;
    --shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.4);
}

header{
    width: auto;
    height: 10vh;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter:blur(15px);
    background-color: #ffffffad;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #b8b8b8;
}

nav{
    display: flex;
    text-align: center;
    justify-content: space-between;
    width: 90%;
    padding: 0.8rem 0 0.8rem 0;
}

.logo{
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo > img{
    height: 40px;
    object-fit: cover;
}

.nav_menu{
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.nav_menu ul{
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    animation: EntrarDer 1s ease;
}

a{
    text-decoration: none;
}

.nav__link{
    font-family: var(--letraPrincipal);
    color: var(--ColorPrincipal);
    padding: 1rem;
}
.nav_item{
    padding: 0.5rem;
    border-radius: 5px;
}
.nav_item:hover{
    background-color: #b3b1b179;
}

.Container__wsp{
    display: flex;
    justify-content: center;
    align-items: center;
}

/* MENU RESPONSIVO */
.nav__toggle,
.nav__close{
    color: var(--ColorPrincipal);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    height: 48px;
    position: relative;
    transition: transform .4s;
    width: 48px;
}

.nav__toggle span,
.nav__close span{
    background-color: var(--ColorPrincipal);
    display: block;
    height: 2px;
    left: 14px;
    margin-top: -1px;
    position: absolute;
    top: 50%;
    transition: .4s;
    width: 20px;
}

.nav__toggle span:first-child,
.nav__close span:first-child
{transform: translateY(-6px);}
.nav__toggle span:last-child,
.nav__close span:last-child
{transform: translateY(6px);}

.nav__toggle.nav_toggle_active span:first-child{ 
    transform: rotate(45deg) translate(0)
}

.nav__toggle.nav_toggle_active span:nth-child(2){ 
    transform: scaleX(0);
}
.nav__toggle.nav_toggle_active span:last-child{ 
    transform: rotate(-45deg) translate(0);
}
.nav_menu.show-menu{
    left: 0;
    overflow: hidden;
}
.show-menu .nav_item{
    visibility: visible;
    transform: translateX(0);
}

/* PARTE RESPOSIVE DEL -MENU/HEADER-*/
@media screen and (max-width: 880px){
    .nav_menu{
        position: fixed;
        top: 10vh;
        left: -100%;  
        width: 100%;
        height: 90vh;
        display: flex;
        justify-content: start;
        align-items: start;
        flex-direction: column;
        background-color:var(--ColorPrincipal);
        transition: left .7s;
        z-index: 200;
        gap: 3rem;
        padding: 1rem;
    }

    nav{
        width: 100%;
        padding: 1rem;
    }
    .nav_menu ul{
        flex-direction: column;
        gap: 1.2rem;
    }
    .nav_menu ul li a{
        color: #fff;
        font-size: 1.2rem;
        font-family: var(--letraPrincipal);
    }

    .nav_menu ul li{
        text-align: start;
    }

    .nav_item{
        transform: translateX(-150px);
        visibility: hidden;
        transition: transform .4s ease-out, visibility .4s;
    }

    .nav_item:nth-child(1){transition-delay: .2s;}
    .nav_item:nth-child(2){transition-delay: .3s;}
    
    .nav__toggle,
    .nav__close{
        display: flex;
    }
}



/* Contenedor principal */

.Container_principal{
    height: 70vh;
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items:center;
    background: linear-gradient(to bottom, #d6eaff 0%, #ffffff 100%);
}

.div_principal{
    width: 50%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 0.5rem;
}
.div_principal h1{
    color: var(--ColorPrincipal);
}
.div_principal h2{
    color: var(--colorPrincipalClaro);
}

.div_principal .text-informative p{
    color: var(--colorSubtitulos);
}




.div_principal .boton__services a{
    text-decoration: none;
    color: var(--ColorBlancoFondo);
}
.div__text{
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.div_image{
    height: 60vh;
    width: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.div_image img{
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
}

/* Responsivo para el sector principal */
/* PARTE RESPOSIVE DEL -MENU/HEADER-*/
@media screen and (max-width: 880px){
    .Container_principal{
        flex-direction: column;
        height: auto;
    }

    .div_principal{
        width: 100%;
        align-items: center;
    }
    .div_image{
        height: auto;
        width: 100%;
        overflow: hidden;
    }
    .div__text{
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }
}

.seccion-zonas {
    text-align: center;
    width: 100%;
    padding: 0.7rem;
}

/* Títulos */
.titulo-principal {
    color: var(--ColorPrincipal);
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.banner-atencion {
    border: 2px solid var(--colorPrincipalClaro);
    display: inline-block;
    padding: 10px 30px;
    margin-bottom: 40px;
    color: #00235a;
    font-size: 1.2rem;
}

/* Contenedor de Tarjetas */
.contenedor-cards {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap; /* Esto permite que sea responsivo */
}

/* Estilo de la Tarjeta */
.card {
    background: #fff;
    border-radius: 20px;
    padding: 1.2rem 1rem;
    width: 300px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    text-align: left;
    transition: transform 0.3s ease;
}


.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    color: #00235a;
    font-size: 2rem;
    margin-bottom: 15px;
}

.card p {
    color: #00235a;
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
    text-transform: uppercase;
}


/* Responsividad para móviles seccion zonas */
@media (max-width: 768px) {
    .titulo-principal {
        font-size: 2rem;
    }
    
    .contenedor-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        width: 100%;
        max-width: 350px;
    }
}

/* Seccion de servicios */
.servicios-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    background-color: #ffff;
}

/* El Grid Responsivo */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.5rem;
    width: 100%;       /* Ocupa todo el ancho disponible */
    max-width: 1200px; /* O el tamaño que quieras para tu diseño */
    margin: 0 auto;    /* Centra el bloque en la pantalla */
}

/* La Tarjeta */
.card-servicio {
    background: #ffffffde;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.card-image img {
    width: 100%;
    height: 12rem; /* Altura fija para que todas las fotos alineen */
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    text-align: start;
    flex-direction: column;
    gap: 0.3rem;
}

.card-content h3 {
    font-size: 1.25rem;
    color: var(--azul-oscuro);
    font-weight: 700;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--gris-texto);
    line-height: 1.4;
}

/* Botón WhatsApp */
.btn-whatsapp {
    background-color: var(--colorVerdeWsp);
    color: #000000;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    width: fit-content;
    display: inline-block;
    transition: transform 0.2s;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 40rem) {
    .btn-whatsapp {
        width: 100%;
        text-align: center;
    }
}

/* Seccion de beneficios */
.seccion-beneficios {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1.25rem;
    width: 90%;
    margin: 2rem auto;
    border: 1px solid #e2e8f0;
}

.header-beneficios {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.flex-beneficios {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;     
}

.card-beneficio {
    display: flex;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    padding: 1.2rem;
    gap: 1rem;
    flex: 0 1 calc(50% - 0.5rem); 
    box-sizing: border-box;
    transition: 0.2s ease;
}

.card-beneficio:hover{
    background-color:#a4badd ;
}

.punto-azul {
    width: 10px;
    height: 10px;
    background-color: #0056b3;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.texto-beneficio h3 {
    margin: 0 0 0.3rem 0;
    font-size: 1.1rem;
}

.texto-beneficio p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* --- RESPONSIVO PARA MÓVIL --- */
@media (max-width: 768px) {
    .card-beneficio {
        /* En móvil pasan a ocupar el 100% */
        flex: 0 1 100%; 
    }
    
    .header-beneficios {
        flex-direction: column;
        text-align: center;
    }
}

/* Footer */
.footer {
    background-color: #001d3d; /* Azul muy oscuro profundo */
    color: #ffffff;
    padding: 4rem 1rem 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    max-width: 75rem; /* 1200px */
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}

.footer-box {
    flex: 1 1 15rem; /* Crece y se achica, mínimo 240px */
}

/* Estilo del Logo en el Footer */
.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-logo span {
    color: #25d366; /* Verde WhatsApp para resaltar */
    display: block;
    font-size: 1.2rem;
}

.footer-text {
    line-height: 1.6;
    color: #cbd5e0; /* Gris azulado claro */
}

/* Títulos de columnas */
.footer-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 2px;
    background-color: #25d366;
}

/* Enlaces */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #25d366;
    padding-left: 0.5rem; /* Pequeño movimiento al pasar el mouse */
}

/* Contacto */
.footer-contact p {
    margin-bottom: 0.8rem;
    color: #cbd5e0;
}

/* Barra de Copyright */
.footer-copy {
    text-align: center;
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #a0aec0;
}

/* RESPONSIVO */
@media (max-width: 48rem) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a:hover {
        padding-left: 0;
    }
}




/* Estado inicial: oculto y un poco más abajo */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

/* Estado activo: visible y en su posición original */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.no-scroll {
    overflow: hidden !important;
    height: 100vh; /* Asegura que no haya scroll residual */
}