





/* ==========================================
   1. RESET & BASE
========================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background: #f4f7fb; 
    color: #1a1a1a; 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* ==========================================
   2. NAVEGACIÃ“N (NAV) - VERSION ESTILIZADA
========================================== */
.nav { 
    background: #fff; 
    height: 90px;             /* Bajamos de 120 a 90 */
    display: flex; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 9999; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); 
}

.nav-container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    height: 100%;
}

.logo { 
    height: 70px;             /* Antes era 50, ahora 70: se nota la diferencia */
    width: auto; 
    transition: 0.3s; 
    display: block;
    padding: 5px 0;           /* Le damos un poquito de aire */
}
/* El contenedor de todas las cajas */
/* El contenedor de todas las cajas */
.menu {
    display: flex;
    align-items: center;
    gap: 5px; 
}

/* LA CAJA: Definimos el bloque de interacciÃ³n */
.nav-item {
    padding: 12px 20px;       /* Esto crea el tamaÃ±o de la caja */
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    border-radius: 8px;       /* Bordes suavizados */
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;       /* Para que el menÃº sepa dÃ³nde colgar */
}

/* EFECTO ACTIVE: Cuando el mouse entra en la CAJA */
.nav-item:hover {
    background-color: #f0f4f8; /* El color de fondo que "se prende" */
    color: #0056b3;
}

/* DISPARADOR: Cuando el mouse estÃ¡ sobre la caja de dropdown, mostramos contenido */
.dropdown:hover .dropdown-content {
    display: block !important;
}

/* Reset para que el texto de Servicios no se rompa */
.dropbtn {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    display: block;
}

/* La caja especial del botÃ³n final */
.nav-contact {
    background-color: #2F4F9C;
    color: #fff !important;
    margin-left: 10px;
}

.nav-contact:hover {
    background-color: #1e3a7a;
    transform: translateY(-2px);
}

/* Estilo del MegamenÃº (El que ya tenÃ­amos) */



@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   3. HAMBURGUER PREMIUM (ANIMADA)
========================================== */
.hamburger {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: #0056b3;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: left;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

/* ==========================================
   4. HERO SECTION (ALTO IMPACTO)
========================================== */
.hero { 
    padding: 40px 20px; 
    background: radial-gradient(circle at 75% 50%, #1565c0 0%, #0a4d8c 100%); 
    color: #fff; 
}

.hero-container { 
    max-width: 1200px; 
    margin: auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 40px; 
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 500px;
}

.hero-buttons { display: flex; gap: 15px; }

.btn { padding: 14px 28px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: 0.3s; }
.btn.primary { background: #fff; color: #0a4d8c; }
.btn.secondary { border: 2px solid #fff; color: #fff; }

.hero-logo-main { 
    width: auto;
    max-width: 550px; 
    height: auto;
    filter: drop-shadow(0px 20px 40px rgba(0,0,0,0.3)); 
    animation: float 5s infinite; 
    display: block;
    transform-origin: center;
}


/* ==========================================
   5. MARQUEE & CARDS
========================================== */
.marquee { overflow: hidden; background: #0a4d8c; padding: 30px 0; }
.marquee-content { display: flex; gap: 50px; animation: scroll 30s linear infinite; }
.marquee img { height: 110px; border-radius: 8px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { padding: 80px 20px; text-align: center; max-width: 1200px; margin: auto; }
.cards { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
}
.card { background: #fff; padding: 35px; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.card:hover { 
    transform: translateY(-4px); 
}

.counter-flex { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 2.5rem; color: #0a4d8c; margin-bottom: 10px; }
.counter-logo { height: 50px; }

/* Pilares */
.valores-section{
    position: relative;
    overflow: hidden;
    background: #fff;
    text-align: center;

    height: 1000px;
}	
.valores-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1200px; margin: auto; }
.valor-card { background: #f9fbff; padding: 40px 25px; border-radius: 20px; border: 1px solid #e6ecf5; }
.valor-icon { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; }
.mision .valor-icon { background: linear-gradient(135deg, #ff7a00, #ffb347); }
.vision .valor-icon { background: linear-gradient(135deg, #1e90ff, #00c6ff); }
.valores .valor-icon { background: linear-gradient(135deg, #a100ff, #ff00c8); }

/* ==========================================
   6. FOOTER & REDES SOCIALES PREMIUM
========================================== */
.main-footer { background: #fff; width: 100%; padding: 80px 0 30px; border-top: 1px solid #eef2f6; margin-top: 50px; }
.footer-wrap { max-width: 1200px; margin: 0 auto; padding: 0 5%; display: flex; justify-content: space-between; align-items: flex-start; }

.footer-logo-img { height: 70px; margin-bottom: 25px; }

.footer-social-links { display: flex; gap: 15px; margin-bottom: 30px; }

.social-icon {
    width: 48px; height: 48px;
    background: #ffffff; color: #333;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px; font-size: 22px; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.social-icon:hover { transform: translateY(-5px); color: #fff; }
.social-icon.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); border-color: transparent; }
.social-icon.facebook:hover { background: #1877F2; border-color: #1877F2; }
.social-icon.linkedin:hover { background: #0077b5; border-color: #0077b5; }

.footer-info-box h4 { color: #0a4d8c; margin-bottom: 20px; font-weight: 700; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 18px; }
.contact-item i { color: #0056b3; width: 25px; text-align: center; font-size: 1.1rem; }

.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #f1f1f1; color: #999; font-size: 0.85rem; }

/* ==========================================
   7. EXTRAS (WSP & REVEAL) - VERSIÃ“N FINAL
========================================== */

}

.wsp-float:hover { 
    transform: scale(1.1) rotate(10deg);
    background: #20ba5a;
}

.wsp-float i {
    line-height: 0; /* Centra el icono perfectamente */
}

/* El reveal queda igual */
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s all ease; }
.reveal.active { opacity: 1; transform: translateY(0); }


/* ==========================================
   8. RESPONSIVE (CELULAR)
========================================== */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .menu {
        position: fixed;
        top: 80px;
        right: -100%;
        background: #ffffff;
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 20px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -10px 0 20px rgba(0,0,0,0.05);
    }

    .menu.active { right: 0; }

    .menu a { 
        width: 100%; 
        text-align: center; 
        font-size: 1.2rem; 
        padding: 15px;
        border-bottom: 1px solid #f8f9fa;
    }

    .nav-contact { width: 80%; margin-top: 20px; }

    .hero-container, .footer-wrap { flex-direction: column; text-align: center; align-items: center; gap: 40px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; }
    
    .contact-item { justify-content: center; }
}


.bg-circles {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    width: 1000px;
    height: 1000px;
    border-radius: 50%;

    background: radial-gradient(circle,
    currentColor 0%,
    currentColor 15%,
    rgba(255,255,255,0.6) 30%,
    transparent 75%
);

    filter: blur(60px);
    opacity: 1;

    animation: flotar 12s ease-in-out infinite;
}


/* COLORES */
.green { color: #00ff96; top: 20%; left: 10%; }
.yellow { color: #ffdc00; top: 60%; left: 70%; }
.orange { color: #ff7800; top: 30%; left: 80%; }
.blue { color: #0078ff; top: 70%; left: 20%; }

.green  { width: 900px; height: 900px; }
.yellow { width: 700px; height: 700px; }
.orange { width: 800px; height: 800px; }
.blue   { width: 750px; height: 750px; }


.green  { animation-duration: 14s; }
.yellow { animation-duration: 18s; }
.orange { animation-duration: 16s; }
.blue   { animation-duration: 20s; }


/* === TITULOS SECCION === */
.section h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
}


.hero-img {
    position: relative;
}

.hero-img::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    transform: translate(-50%, -50%);
    border-radius: 50%;

    background: radial-gradient(circle,
        rgba(0,198,255,0.6) 0%,
        rgba(0,86,179,0.4) 40%,
        transparent 70%
    );

    filter: blur(60px);
    z-index: -1;

}

.slider-servicios {
    padding: 80px 20px;
}

.slider {
    max-width: 1100px;
    margin: auto;
}

.slide {
    display: none;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

.slide.active {
    display: flex;
}

.slide-text {
    padding: 40px;
    width: 50%;
}

.slide img {
    width: 50%;
    object-fit: cover;
}

.slider-servicios h2 {
    text-align: center;
    font-size: 3rem; /* mÃ¡s grande */
    font-weight: 800;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

/* FLECHAS */
.controls span {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
}

.prev { left: 15px; }
.next { right: 15px; }

.controls span:hover {
    background: rgba(0,0,0,0.7);
}

/* ==========================================
   DOTS VISIBLES + PREMIUM
========================================== */

.dots{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:14px;
    margin-top:35px;
}

/* DOT */
.dot{
    width:14px;
    height:14px;

    border-radius:50%;

    background:#c7d2fe; /* visible */

    cursor:pointer;

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease,
        opacity .3s ease;

    opacity:.65;
}

/* HOVER */
.dot:hover{
    transform:scale(1.15);

    opacity:1;

    background:#60a5fa;

    box-shadow:
        0 0 12px rgba(59,130,246,.45);
}

/* ACTIVO */
.dot.active{

    background: linear-gradient(
        135deg,
        #00c6ff,
        #0078ff
    );

    transform:scale(1.4);

    opacity:1;

    box-shadow:
        0 0 18px rgba(0,120,255,.55),
        0 0 35px rgba(0,120,255,.28);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background: radial-gradient(circle at 20% 30%, rgba(0,255,150,0.15), transparent 60%),
                radial-gradient(circle at 80% 70%, rgba(0,120,255,0.15), transparent 60%),
                radial-gradient(circle at 60% 20%, rgba(255,120,0,0.15), transparent 60%);
}


/* ==========================================
   DISEÃ‘O HERO PROFESIONAL Y EQUILIBRADO
========================================== */

.hero-new {
    /* Cambiamos el color sÃ³lido por RGBA con 0.98 de opacidad (98% sÃ³lido) */
    background-color: rgba(20, 85, 187, 1); 
    
    /* Agregamos esto para que lo poquito que se transparente se vea elegante */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(0px); /* Soporte para Safari */

    color: #fff;
    padding: 60px 20px;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}
.hero-container-new {
    display: flex;
    max-width: 1400px; /* Un poco mÃ¡s ancho para dar aire */
    width: 90%;
    margin: 0 auto;
    justify-content: space-between;
    align-items: center;
    gap: 40px; /* Espacio entre las tres columnas */
}

/* --- Contenedores de ImÃ¡genes (Los lados) --- */
.hero-image-container {
    flex: 1; /* Las dos imÃ¡genes ocupan el mismo espacio */
    display: flex;
    align-items: center;
}

.hero-left {
    justify-content: flex-start; /* Mano pegada a la izquierda */
}

.hero-right {
    justify-content: flex-end; /* Familia pegada a la derecha */
}

/* --- El Secreto del Equilibrio y No-DeformaciÃ³n --- */
.hero-image {
    width: auto;          /* No la obligamos a estirarse */
    height: auto;         /* No la obligamos a aplastarse */
    max-width: 100%;      /* Pero que no se salga de su columna */
    object-fit: contain;  /* Mantiene la proporciÃ³n perfecta */
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.2));
}

/* --- TamaÃ±os EspecÃ­ficos (Ajusta estos para 'grandeza' sin caos) --- */
.logo-mano {
    max-width: 480px;     /* <--- TamaÃ±o grande para la mano, sin ser gigante aplastada */
    animation: float 5s ease-in-out infinite;
}

.ilustracion-familia {
    max-width: 450px;     /* <--- TamaÃ±o equilibrado para la familia */
}

/* --- El Contenido Central (El Rey) --- */
.hero-content-new {
    flex: 2;             /* El texto ocupa el doble de espacio que una imagen */
    text-align: center;   /* Centramos todo el texto y botones */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 4rem;      /* TÃ­tulo grande y claro */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 1.4rem;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 600px;     /* Limitamos el ancho del pÃ¡rrafo para legibilidad */
    margin-bottom: 45px;
}

/* --- Botones --- */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-new {
    padding: 16px 35px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #fff;
    color: #1455bb;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #0b4eac;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* --- AnimaciÃ³n de FlotaciÃ³n (CopiÃ¡ esto si no lo tenÃ©s) --- */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================
   5. AJUSTE PARA QUE SERVICIOS NO TARDE (IMPORTANTE)
========================================== */
.marquee { 
    overflow: hidden; 
    background: #0a4d8c; 
    padding: 30px 0; 
    margin-top: 0; /* Sin margen negativo para respetar el diseÃ±o original */
}

.section { 
    padding: 40px 20px; /* Bajamos solo este padding para que Servicios suba un poco */
    text-align: center; 
    max-width: 1200px; 
    margin: auto; 
}

.section h2 {
    margin-top: 0;
    margin-bottom: 30px; /* Menos espacio entre tÃ­tulo y tarjetas */
}


/* Ajuste para que la familia no estÃ© gigante */
.hero-img-left-src {
    width: 100%;          /* Que ocupe el ancho de su columna... */
    max-width: 420px;     /* ...pero que no pase de 420px (ajustÃ¡ este nÃºmero si la querÃ©s mÃ¡s chica) */
    height: auto;
    display: block;
    margin-left: auto;    /* La empuja bien hacia la derecha */
    filter: drop-shadow(0px 10px 20px rgba(0,0,0,0.15));
}

/* Reequilibramos las columnas para que el texto respire */
.hero-img {
    flex: 2.5;
    display: flex;
    justify-content: flex-start;
    align-items: center;
              /* Columna de la mano (izq) */
}

.hero-text {
    flex: 2;              /* Columna del texto (centro) - le damos mÃ¡s espacio */
}

.hero-img-left {
    flex: 1.5;            /* Columna de la familia (der) */
    display: flex;
    justify-content: flex-end;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ==========================================
   WSP - FIX FINAL (ESTILO IMPERATIVO)
========================================== */
.wsp-float { 
    position: fixed !important;
    bottom: 40px !important;    /* Lo subimos un poco para que no se pegue al borde */
    right: 10px !important;     /* Lo metemos hacia adentro para que no se corte */
    width: 65px !important; 
    height: 65px !important; 
    background: #25d366 !important; 
    color: #fff !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    font-size: 35px !important; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.3) !important; 
    z-index: 2147483647 !important; /* El nivel mÃ¡s alto de capas */
    text-decoration: none !important; 
    transition: all 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wsp-float:hover { 
    transform: scale(1.15) rotate(15deg) !important; 
    background: #20ba5a !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4) !important;
}

/* Centrado del icono */
.wsp-float i {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.logo { 
    height: 95px !important;    /* <--- AjustÃ¡ este nÃºmero a tu gusto (ej: 80, 90, 100) */
    width: auto !important; 
    transition: 0.3s !important;
    display: block !important;
    position: relative !important;
    z-index: 10000 !important;
}

/* Estilo para el contenedor del tÃ­tulo-imagen */
.hero-title-img {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* ==========================================
   IMPACTO MÃXIMO: ILUSTRACIÃ“N DE LETRAS
========================================== */

/* Usamos una cadena de selectores larga para ganar especificidad sin !important */
body .hero-new .hero-container-new .hero-content-new .hero-title-img .img-frase-hero {
    display: block;
    width: 140%;
    /* TAMAÃ‘O IMPACTO: De 800px subimos a 1200px */
    max-width: none; 
    height: auto;
    margin: 0 auto;
    /* TransiciÃ³n fluida para el responsive */
    transition: all 0.4s ease-in-out;
    filter: drop-shadow(0px 15px 30px rgba(0,0,0,0.2));
}

/* Ajustamos el contenedor para que no asfixie a la imagen */
.hero-content-new {
    flex: 4 !important; /* Le damos mucho mÃ¡s espacio al centro que a los lados */
    width: 100%;
}

/* ==========================================
   RESPONSIVE (Ajuste gradual)
========================================== */

/* Pantallas de Laptop comunes */
@media (max-width: 1400px) {
    body .hero-new .hero-container-new .hero-content-new .hero-title-img .img-frase-hero {
        max-width: 950px;
    }
}

/* Tablets y pantallas pequeÃ±as */
@media (max-width: 1024px) {
    body .hero-new .hero-container-new .hero-content-new .hero-title-img .img-frase-hero {
        max-width: 750px;
    }
}

/* Celulares (Para que se vea imponente pero quepa en la pantalla) */
@media (max-width: 768px) {
    body .hero-new .hero-container-new .hero-content-new .hero-title-img .img-frase-hero {
        max-width: 450px;
    }
}

/* Celulares pequeÃ±os */
@media (max-width: 480px) {
    body .hero-new .hero-container-new .hero-content-new .hero-title-img .img-frase-hero {
        max-width: 320px;
    }
}


@media (max-width: 768px) {

    .hero-container-new {
        flex-direction: column;
        gap: 20px;
    }

    .hero-left,
    .hero-right {
        justify-content: center;
    }

    .logo-mano {
        max-width: 220px;
    }

    .ilustracion-familia {
        max-width: 240px;
    }

    .hero-content-new {
        order: -1; /* ðŸ”¥ el texto arriba (clave) */
    }
}

@media (max-width: 768px) {

    .img-frase-hero {
        width: 100% !important;
        max-width: 320px !important;
        transform: none !important;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-new {
        width: 90%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-new {
        min-height: auto;
        padding: 40px 15px;
    }
}

.hero-description {
    text-align: center;
}

@media (max-width: 768px) {

    .marquee {
        padding: 15px 0; /* menos alto */
    }

    .marquee-content {
        gap: 25px; /* menos espacio entre imÃ¡genes */
    }

    .marquee img {
        height: 45px; /* ðŸ”¥ clave */
    }

}

@media (max-width: 768px) {
    .marquee-content { 
        animation: scroll 15s linear infinite;
    }
}

@media (max-width: 768px) {

    .footer-wrap {
        flex-direction: column;
        align-items: center; /* ðŸ”¥ centra TODO el bloque */
        text-align: center;
    }

    .footer-identity {
        display: flex;
        flex-direction: column;
        align-items: center; /* ðŸ”¥ centra logo + redes */
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .footer-social-links {
        display: flex;
        justify-content: center; /* ðŸ”¥ centra los Ã­conos */
        gap: 12px;
        width: 100%;
    }


    .footer-logo-img {
        display: block;
        margin: 0 auto; /* ðŸ”¥ centra el logo sÃ­ o sÃ­ */
    }

}

.nav {
    position: relative;
    z-index: 100000 !important;
}

.hamburger {
    position: relative;
    z-index: 100001 !important;
}


#bg-wrap {
    pointer-events: none !important;
    z-index: -1 !important;
}









.nav .menu-card:hover {
    transform: translateY(-5px);
}
.nav .dropdown-content .card-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* ðŸ”¥ clave */
    padding: 8px !important;        /* ðŸ”¥ iguala visualmente */
    display: block !important;
}

/* 3. Aseguramos que las tarjetas se pongan una al lado de la otra */
.nav .megamenu-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 45px !important;
    padding: 20px !important;
}

/* 4. La tarjeta completa */
.nav .menu-card {
    width: 100px !important; /* Limita el ancho de todo el bloque */
    text-align: center !important;
    text-decoration: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* 5. El texto debajo de la foto */
.nav .menu-card span {
    font-size: 13px !important;
    line-height: 1.2 !important;
    color: #333 !important;
    font-weight: 600 !important;
}



.nav .menu-card {
    transition: 0.3s;
}


.nav .dropdown-content .card-img-wrapper {
    width: 110px !important;
    height: 90px !important;
}

.nav .dropdown-content .card-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 10px !important;
}

.nav .dropdown-content .card-img-wrapper img {
    width: 90% !important;
    height: 90% !important;
    object-fit: contain !important;
    transform: scale(1.1); /* ðŸ”¥ compensa imÃ¡genes chicas */
}


/* ===== FIX DEFINITIVO MEGAMENU ===== */

.nav .dropdown-content .card-img-wrapper {
    width: 150px;
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f4f7fb;
    border-radius: 12px;
    overflow: hidden;
}

.nav .dropdown-content .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;

    transform: scale(1.3);
}

.nav .menu-card {
    width: 150px;
    text-align: center;
}

.nav .megamenu-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}




/* ðŸ”¥ FORZADO FINAL */
.dropdown {
    position: static !important;
}

.dropdown-content {
    position: fixed !important;
    top: 90px !important;
    left: 0 !important;

    width: 100vw !important;
    max-width: none !important;

    background: #fff !important;
    padding: 40px 0 !important;

    border-radius: 0 !important;
    box-shadow: none !important;

    z-index: 999999 !important;

    /* ðŸ”¥ CAMBIO IMPORTANTE */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: 0.25s ease;
}
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}



.nav .megamenu-grid {
    max-width: 1100px !important;
    margin: 0 auto !important;
}

html, body {
    overflow-x: visible !important;
}

.dropdown-content::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -60px;
    width: 100%;
    height: 60px;

    background: linear-gradient(
        to bottom,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,0.95) 50%,
        rgba(255,255,255,0.85) 75%,
        rgba(255,255,255,0) 100%
    );

    pointer-events: none;
}



/* ==========================================
   FIX FINAL MEGAMENU + BLUR GAUSSIANO
========================================== */

/* ðŸ”¹ Dropdown SIEMPRE presente (no usar display:none) */
.dropdown-content {
    display: block !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dropdown-content {
    top: 70px !important; /* ðŸ”¥ mismo valor que el nav */
}

/* ðŸ”¹ ActivaciÃ³n estable */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ðŸ”¹ PUENTE invisible para evitar corte de hover */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 25px;
}

/* ðŸ”¹ Overlay blur (NO interfiere con mouse) */
body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    pointer-events: none; /* ðŸ”¥ CLAVE */
    z-index: 1000;
}

/* ðŸ”¹ Asegurar capas correctas */
.nav {
    position: relative;
    z-index: 2000;
}

.dropdown-content {
    z-index: 3000 !important;
}

body.force-close .dropdown-content {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* CONTENEDOR */
.loader {
    position: fixed;
    inset: 0;
    background: #0a4d8c;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    overflow: hidden;
}

/* MANO */
.loader-hand {
    width: 180px;
    opacity: 0.15; /* ðŸ”¥ casi transparente */
    animation: float 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* SHIMMER (efecto brillo) */
.loader-hand::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255,255,255,0.4),
        transparent 70%
    );
    animation: shimmer 2s infinite;
}

/* PARTICULAS */
.particles::before,
.particles::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: pulse 3s infinite;
}

.particles::after {
    animation-delay: 1.5s;
}

/* ANIMACIONES */

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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







/* ðŸ”¥ AGRANDAR IMÃGENES DEL MEGAMENU */

.nav .dropdown-content .card-img-wrapper {
    width: 180px !important;
    height: 140px !important;
}

.nav .dropdown-content .card-img-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transform: scale(1.4) !important; /* ðŸ”¥ hace que se vean mÃ¡s grandes */
}

/* ðŸ”¥ AGRANDAR LA TARJETA COMPLETA */
.nav .menu-card {
    width: 180px !important;
}

/* ðŸ”¥ TEXTO UN POCO MÃS GRANDE (opcional pero queda mejor) */
.nav .menu-card span {
    font-size: 15px !important;
}






.card {
    padding: 70px 20px !important;
    overflow: visible !important; /* ðŸ”¥ permite que la imagen se salga */
}

.card img {
    width: 380px !important;     /* ðŸ’£ ENORME */
    height: 260px !important;

    object-fit: cover !important;

    display: block !important;
    margin: -80px auto 30px !important; /* ðŸ”¥ efecto flotante */

    border-radius: 30px !important;

    box-shadow: 0 30px 80px rgba(0,0,0,0.35) !important;

    max-width: none !important;
    position: relative;
    z-index: 2;
}



.cards{
    display: grid !important;

    grid-template-columns: repeat(5, minmax(220px, 260px)) !important;

    justify-content: center !important;

    gap: 35px !important;
}


.card img{
    width: 90% !important;
    height: 180px !important;

    object-fit: cover !important;

    margin: -40px auto 20px !important;

    border-radius: 20px !important;
}


.dropbtn,
.menu-card span {
    transition: all 0.25s ease !important;
}

.menu-card:hover span,
.dropdown:hover .dropbtn {
    transform: translateY(-2px) !important;
    letter-spacing: 0.5px !important;
    opacity: 0.9 !important;
}

.card-img-wrapper img {
    transition: all 0.25s ease !important;
}

.menu-card:hover .card-img-wrapper img {
    transform: scale(1.05) !important;
    filter: brightness(1.05) drop-shadow(0 8px 18px rgba(0,0,0,0.25)) !important;
}

.menu-card span {
    margin-top: 8px !important;
    display: block !important;
}

.card {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}









/* ==========================================
   VIDEO PILARES - FIX LIMPIO
========================================== */

.valores-section{
    position: relative;
    overflow: hidden;
}

/* VIDEO DE FONDO */
.valores-video-bg{
    position: absolute;
    inset: 0;


    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 1;

    filter: sepia(0.4)
            saturate(0.9)
            brightness(0.9)
            contrast(1.2)
            hue-rotate(5deg);

    z-index: 0;

    pointer-events: none;
}

.valores-section{
    padding-top: 150px;
}

/* CONTENIDO ENCIMA */
.valores-container{
    position: relative;
    z-index: 2;
}






.valor-card{
    position: relative;

    background: rgba(255,255,255,0.22);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255,255,255,0.35);

    border-radius: 28px;

    padding: 50px 35px;

    overflow: hidden;

    transition: all .45s cubic-bezier(.2,.8,.2,1);

    box-shadow:
        0 10px 40px rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.35);
}


.valor-card::before{
    content:"";

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,.35),
        transparent 40%
    );

    opacity:.7;

    pointer-events:none;
}


.valor-card:hover{

    transform:
        translateY(-12px)
        scale(1.02);

    box-shadow:
        0 25px 60px rgba(0,0,0,.18);

}


.valor-icon{

    width:90px;
    height:90px;

    font-size:34px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.18);

    margin-bottom:28px;
}


.valores-section{

    background:
    linear-gradient(
        135deg,
        #f7d7ca 0%,
        #f2dfd4 50%,
        #eedfd8 100%
    );

    position:relative;
}



.valores-section::before,
.valores-section::after{

    content:"";

    position:absolute;

    width:500px;
    height:500px;

    border-radius:50%;

    filter:blur(90px);

    opacity:.25;

    z-index:0;
}

.valores-section::before{
    background:#ff8a00;
    top:-150px;
    left:-120px;
}

.valores-section::after{
    background:#ff00c8;
    bottom:-200px;
    right:-150px;
}


.valores-container{
    position:relative;
    z-index:2;
}







.stack-section{
    position: relative;
    overflow: visible;

    background: #f5be87;

    padding: 120px 0;

    min-height: 100vh;
}

/* TITULO */

.stack-title{
    text-align: center;
    color: white;
    margin-bottom: 80px;

    opacity: 0;
    transform: translateY(40px);

    animation: fadeUp 1s ease forwards;
}

.stack-title h2{
    font-size: 55px;
    margin-bottom: 15px;
}

.stack-title p{
    font-size: 20px;
    opacity: .9;
}

/* CONTENEDOR */

.stack-cards{
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    height: 520px;

    width: 100%;
    max-width: 1700px;

    margin: auto;

    perspective: 1800px;
    
}

/* TARJETAS */

.stack-card{
    position: absolute;

    width: 320px;
    height: 430px;

    border-radius: 30px;
    overflow: hidden;

    cursor: pointer;

    opacity: 0;

   

    transition:
        transform .35s ease,
        box-shadow .35s ease;

    animation: stackFade .8s ease forwards;

    box-shadow:
        0 15px 40px rgba(0,0,0,.22);

    will-change: transform;

    backface-visibility: hidden;
}


/* POSICION SUPERPUESTA */

.stack-card:nth-child(1){
    transform: translateX(0px);
    z-index: 1;
}

.stack-card:nth-child(2){
    transform: translateX(12px);
    z-index: 2;
}

.stack-card:nth-child(3){
    transform: translateX(24px);
    z-index: 3;
}

.stack-card:nth-child(4){
    transform: translateX(36px);
    z-index: 4;
}

.stack-card:nth-child(5){
    transform: translateX(48px);
    z-index: 5;
}

/* IMAGEN */

.stack-card img{
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;

    transform: translateZ(0);

    border-radius: 30px;
}

/* OVERLAY */

.card-info{
    position: absolute;
    bottom: 0;
    left: 0;

    width: 100%;

    padding: 25px;

    background:
    linear-gradient(
        transparent,
        rgba(0,0,0,.8)
    );

    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
}

/* HOVER SOLO CUANDO LA SECCION ESTA ACTIVA */

.stack-card{
    pointer-events: none;
}

.stack-section.stack-active .stack-card{
    pointer-events: auto;
}

.stack-section.stack-active .stack-card:hover{
    transform:
        translateY(-15px)
        scale(1.03);

    z-index: 999;

    box-shadow:
        0 20px 50px rgba(0,0,0,.28);
}

/* ANIMACIONES */

@keyframes stackFade{
    from{
        opacity: 0;
    }

    to{
        opacity: 1;
    }
}

@keyframes fadeUp{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}





/* ===== EFECTO FINAL PRO ===== */

.card{
    overflow: hidden;
    transform-style: preserve-3d;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        background .35s ease;
}

.card::before{
    content:"";

    position:absolute;
    inset:-2px;

    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,.35),
        transparent 30%,
        transparent 70%,
        rgba(255,255,255,.15)
    );

    opacity:0;

    transition: opacity .35s ease;

    pointer-events:none;
}

.card:hover{
    transform:
        translateY(-10px)
        scale(1.02);

    box-shadow:
        0 25px 60px rgba(0,0,0,.18);
}

.card:hover::before{
    opacity:1;
}

.card img{
    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        filter .45s ease;
}

.card:hover img{
    transform: scale(1.08);

    filter:
        brightness(1.08)
        contrast(1.05)
        saturate(1.08);
}

.card h3,
.card p{
    transition:
        transform .35s ease,
        opacity .35s ease;
}

.card:hover h3{
    transform: translateY(-3px);
}

.card:hover p{
    transform: translateY(-2px);
    opacity:.92;
}




/* 🔥 STACK CARD SALE HACIA ADELANTE */

.stack-cards{
    perspective: 2200px;
    transform-style: preserve-3d;
}

.stack-card{

    transform-style: preserve-3d;

    transition:
        transform .45s cubic-bezier(.2,.8,.2,1),
        box-shadow .45s ease,
        filter .45s ease;

    will-change: transform;
}

/* 🔥 EFECTO PRINCIPAL */
.stack-section.stack-active .stack-card:hover{

    transform:
        translateY(-18px)
        translateZ(90px)
        scale(1.04);

    z-index: 9999;

    box-shadow:
        0 25px 60px rgba(0,0,0,.22);
}

/* IMAGEN MÁS PROFUNDA */
.stack-card img{

    transition:
        transform .5s ease,
        filter .45s ease;

    transform-style: preserve-3d;
}

.stack-section.stack-active .stack-card:hover img{

    transform:
        scale(1.08)
        translateZ(120px);

    filter:
        brightness(1.08)
        contrast(1.05)
        saturate(1.08);
}

/* INFO FLOTA */
.card-info{
    transform-style: preserve-3d;
    transition: transform .45s ease;
}

.stack-section.stack-active .stack-card:hover .card-info{
    transform: translateZ(90px);
}



/* ==========================================
   POPUP PRO SOLO CSS
========================================== */

.stack-card{
    position: relative !important;
    overflow: visible !important;
    isolation: isolate;
}

/* POPUP */
.stack-card::after{

    content: attr(data-text);

    position: absolute;

    left: 50%;
    top: calc(100% + 18px);

    transform:
        translateX(-50%)
        translateY(-12px)
        scale(.92);

    width: 280px;

    padding: 18px 20px;

    border-radius: 22px;

    background: rgba(255,255,255,.96);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    color: #1a1a1a;

    font-size: 14px;
    line-height: 1.5;
    text-align: center;

    box-shadow:
        0 25px 60px rgba(0,0,0,.18);

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .35s ease,
        transform .45s cubic-bezier(.2,.8,.2,1);

    z-index: 999999;
}

/* APARECE */
.stack-card:hover::after{

    opacity: 1;

    transform:
        translateX(-50%)
        translateY(0)
        scale(1);
}



.quienes-text-area{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
}

.quienes-text-wrapper{
    width:100%;
    max-width:680px;

    height:140px;          /* 🔒 FIJO REAL */
    display:flex;
    align-items:center;
    justify-content:center;

    overflow:hidden;
}

#quienesText{
    font-size:20px;
    line-height:1.8;
    color:#4b5563;
    text-align:center;

    margin:0;

    transition: opacity .55s ease, transform .55s ease;
}

#quienesText.fade-out{
    opacity:0;
    transform:translateY(15px);
}





/* =========================
   QUIÉNES SOMOS (BLOQUE)
========================= */

.quienes-section {
    padding: 90px 20px;
    background: linear-gradient(135deg, #ffffff, #f7f9ff);
    display: flex;
    justify-content: center;
}

.quienes-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* TAG superior */
.quienes-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: #ffe6ec;
    color: #ff4d6d;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .3px;
    margin-bottom: 12px;
}

/* TITULO */
.quienes-container h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #1c1c1c;
}

/* CONTENEDOR DEL SLIDER */
.quienes-text-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #fff;
    padding: 25px 20px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    position: relative;
}

/* TEXTO */
#quienesText {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
    max-width: 600px;
    transition: opacity .3s ease;
}

/* BOTONES FLECHA */
.quienes-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #ff4d6d, #ff7a00);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .3s;
    flex-shrink: 0;
}

.quienes-arrow:hover {
    transform: scale(1.1);
}

/* EFECTO SUAVE AL CAMBIAR TEXTO */
.quienes-text-slider p {
    animation: fadeText .3s ease;
}

@keyframes fadeText {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}



.quienes-text-slider {
    min-height: 140px; /* clave: fija el alto del bloque */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

#quienesText {
    min-height: 80px;   /* evita que el texto empuje el layout */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.6;
}








.fiesta40-section{
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.fiesta40-section h2{
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.fiesta40-section p{
    opacity: .75;
    margin-bottom: 40px;
}

/* CONTENEDOR PRINCIPAL */
.fiesta40-marquee{
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* CARRIL ANIMADO */
.track{
    display: flex;
    gap: 14px;
    width: max-content;
    animation: scroll 90s linear infinite;
    align-items: center;
}

/* IMÁGENES */
.track img{
    height: 230px;
    width: auto;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;

    transition: transform .35s ease, filter .35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* HOVER ELEGANTE */
.track img:hover{
    transform: scale(1.08);
    filter: brightness(1.1);
    z-index: 2;
}

/* ANIMACIÓN INFINITA */
@keyframes scroll{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-50%);
    }
}

/* PAUSA AL PASAR EL MOUSE (MUY PRO) */
.fiesta40-marquee:hover .track{
    animation-play-state: paused;
}

/* RESPONSIVE */
@media (max-width: 768px){
    .track img{
        height: 160px;
    }
}



section,
.section,
.hero,
.hero-new,
.stack-section,
.valores-section,
.slider-servicios,
.fiesta40-section {
    padding-bottom: 100px;
}







.fiesta40-marquee,
.fiesta40-marquee .track {
    overflow: visible !important;
}

.fiesta40-marquee img {
    transition: transform 0.45s ease;
    cursor: pointer;
}

.fiesta40-marquee img:hover {
    transform: scale(1.5);
    z-index: 20;
    position: relative;
}






.fiesta40-marquee,
.fiesta40-marquee .track {
    overflow: visible !important;
}

.fiesta40-marquee img {
    transition:
        transform .45s cubic-bezier(.22,1,.36,1),
        filter .35s ease;

    cursor: pointer;
    position: relative;
    z-index: 1;
}

.fiesta40-marquee:hover img {
    filter: brightness(.45);
}

.fiesta40-marquee img:hover {
    transform: scale(1.5);
    filter: brightness(1);

    z-index: 20;
}

.fiesta40-expanded {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.92);
    backdrop-filter: blur(12px);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: .35s ease;

    z-index: 99999;
}

.fiesta40-expanded.active {
    opacity: 1;
    visibility: visible;
}

#fiestaExpandedImg {
    width: min(1200px, 88vw);
    max-height: 88vh;

    object-fit: contain;

    border-radius: 24px;

    transform: scale(.92);

    transition: transform .45s cubic-bezier(.22,1,.36,1);
}

.fiesta40-expanded.active #fiestaExpandedImg {
    transform: scale(1);
}

.fiesta-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    font-size: 70px;
    color: white;

    cursor: pointer;
    user-select: none;

    z-index: 10000;
}

.fiesta-prev {
    left: 40px;
}

.fiesta-next {
    right: 40px;
}

.fiesta-close {
    position: absolute;
    top: 22px;
    right: 42px;

    font-size: 65px;
    color: white;

    cursor: pointer;

    z-index: 10000;
}






.app-banner{

    width:min(1280px,94%);
    margin:180px auto 120px;

    display:grid;
    grid-template-columns:320px 1fr 260px;

    align-items:center;

    gap:60px;

    padding:60px;

    border-radius:42px;

    position:relative;

    overflow:hidden;

    background:
    linear-gradient(
        135deg,
        rgba(255,255,255,.10),
        rgba(255,255,255,.03)
    );

    border:1px solid rgba(255,255,255,.10);

    backdrop-filter:blur(26px);

    box-shadow:
    0 40px 120px rgba(0,0,0,.35);
}

.app-banner::before{

    content:"";

    position:absolute;

    width:700px;
    height:700px;

    background:
    radial-gradient(
        circle,
        rgba(255,0,120,.24),
        transparent 70%
    );

    top:-300px;
    right:-180px;

    filter:blur(40px);

    pointer-events:none;
}

.app-banner::after{

    content:"";

    position:absolute;

    width:500px;
    height:500px;

    background:
    radial-gradient(
        circle,
        rgba(0,180,255,.18),
        transparent 70%
    );

    bottom:-250px;
    left:-180px;

    filter:blur(50px);

    pointer-events:none;
}

.app-phone{

    position:relative;

    display:flex;
    justify-content:center;
}

.app-phone video{

    width:100%;
    max-width:300px;

    border-radius:42px;

    object-fit:cover;

    transform:
    rotate(-12deg);

    transition:
    transform .6s cubic-bezier(.22,1,.36,1);

    box-shadow:
    0 50px 100px rgba(0,0,0,.45);
}

.app-phone video:hover{

    transform:
    rotate(-8deg)
    scale(1.04);
}

.app-phone::before{

    content:"";

    position:absolute;

    width:280px;
    height:280px;

    background:
    radial-gradient(
        circle,
        rgba(255,0,140,.42),
        transparent 70%
    );

    filter:blur(60px);

    z-index:-1;

    top:50%;
    left:50%;

    transform:
    translate(-50%,-50%);
}

.app-badge{

    display:inline-flex;

    padding:10px 18px;

    border-radius:999px;

    background:
    linear-gradient(
        90deg,
        #ff2d92,
        #ff7b00
    );

    font-size:12px;
    font-weight:800;

    letter-spacing:2px;

    margin-bottom:24px;
}

.app-content h2{

    font-size:clamp(42px,5vw,72px);

    line-height:1.02;

    margin-bottom:26px;
}

.app-content p{

    font-size:19px;

    line-height:1.7;

    opacity:.82;

    max-width:680px;

    margin-bottom:38px;
}

.app-buttons{

    display:flex;
    gap:18px;
    flex-wrap:wrap;
}

.join-channel,
.copy-link-btn{

    padding:18px 34px;

    border:none;

    border-radius:20px;

    font-size:17px;
    font-weight:700;

    cursor:pointer;

    transition:.35s ease;
}

.join-channel{

    background:
    linear-gradient(
        90deg,
        #ff2d92,
        #ff7b00
    );

    color:white;

    text-decoration:none;

    box-shadow:
    0 20px 40px rgba(255,90,0,.35);
}

.copy-link-btn{

    background:rgba(255,255,255,.06);

    color:white;

    border:1px solid rgba(255,255,255,.08);
}

.join-channel:hover,
.copy-link-btn:hover{

    transform:
    translateY(-5px)
    scale(1.03);
}

.app-qr{

    display:flex;
    justify-content:center;
}

.app-qr img{

    width:220px;

    background:white;

    padding:16px;

    border-radius:28px;

    box-shadow:
    0 20px 50px rgba(0,0,0,.25);
}

@media(max-width:980px){

    .app-banner{

        grid-template-columns:1fr;

        text-align:center;

        padding:40px 28px;
    }

    .app-buttons{

        justify-content:center;
    }

    .app-phone{

        order:1;
    }

    .app-content{

        order:2;
    }

    .app-qr{

        order:3;
    }

}




.footer-signature{

    margin-top:18px;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    gap:10px;

    text-decoration:none;

    opacity:0.75;

    transition:0.35s ease;
}

.footer-signature:hover{

    opacity:1;
    transform:translateY(-2px);
}

.footer-signature img{

    width:140px;
    max-width:80vw;

    height:auto;

    object-fit:contain;

    border-radius:8px;

    filter:
    drop-shadow(0 0 12px rgba(255,255,255,0.18))
    drop-shadow(0 0 30px rgba(255,255,255,0.08));
}

.footer-signature span{

    font-size:12px;

    color:#4b5563;

    letter-spacing:1px;

    text-transform:uppercase;

    font-weight:600;
}






*,
*::before,
*::after {
    cursor: url("../img/_manofinalmano.png") 16 0, auto !important;
}




/* QUITAR TODOS LOS EFECTOS DE LAS TARJETAS */

.card,
.card:hover {
    transform: none !important;
    transition: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}

.card::before,
.card:hover::before {
    opacity: 0 !important;
    display: none !important;
}

.card img,
.card:hover img {
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

.card h3,
.card p,
.card:hover h3,
.card:hover p {
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
}



.valores-imagen{
    text-align: center;
    margin: 25px 0 40px;
    position: relative;
    z-index: 2;
}

.valores-imagen img{
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 0 auto;
}





.quienes-section{ position: relative; z-index: 10; margin-top: -80px; padding-top: 170px; background: linear-gradient( to bottom, transparent 0px, #ffffff 120px, #ffffff 100% ); } .quienes-section{ position: relative; z-index: 10; margin-top: -150px; padding-top: 240px; margin-bottom: -150px; padding-bottom: 240px; background: linear-gradient( to bottom, transparent 0, #ffffff 180px, #ffffff calc(100% - 180px), transparent 100% ); }


<div id="loginModal" class="login-modal">

    <div class="login-box">

        <span id="closeLogin">&times;</span>

        <h2>Área de Afiliados</h2>

        <input type="text" placeholder="Usuario">
        <input type="password" placeholder="Contraseña">

        <button>Ingresar</button>

    </div>

</div>





.login-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    justify-content:center;
    align-items:center;
    z-index:999999;
}

.login-modal.active{
    display:flex;
}

.login-box{
    background:#fff;
    width:380px;
    padding:30px;
    border-radius:20px;
    box-shadow:0 20px 50px rgba(0,0,0,.3);
    position:relative;
}

#closeLogin{
    position:absolute;
    top:10px;
    right:15px;
    font-size:30px;
    cursor:pointer;
}




.login-dropdown{
    position:relative;
}

.login-btn{
    background:#fff;
    border:2px solid #3555a5;
    color:#3555a5;
    padding:12px 24px;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
}

.login-panel{
    display:none;

    position:absolute;
    top:60px;
    right:0;

    width:280px;

    background:#fff;

    padding:20px;

    border-radius:16px;

    box-shadow:0 20px 40px rgba(0,0,0,.15);

    z-index:9999;
}

.login-panel.active{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.login-panel input{
    padding:12px;
    border:1px solid #ddd;
    border-radius:10px;
}

.login-submit{
    background:#3555a5;
    color:white;
    border:none;
    padding:12px;
    border-radius:10px;
    cursor:pointer;
}




.login-btn{
    background: linear-gradient(
        135deg,
        #3555a5 0%,
        #4f72cc 100%
    );

    color:white;

    border:none;

    padding:14px 28px;

    border-radius:14px;

    font-size:15px;
    font-weight:700;

    cursor:pointer;

    transition:.3s ease;

    box-shadow:
    0 10px 25px rgba(53,85,165,.25);

    display:flex;
    align-items:center;
    gap:10px;
}

.login-btn:hover{
    transform:translateY(-3px);

    box-shadow:
    0 18px 35px rgba(53,85,165,.35);
}

.login-btn:active{
    transform:translateY(0);
}



.login-dropdown{
    margin-right:40px;
}




header{
    position: relative;
    z-index: 1000;
}

/* BOTÓN */
.nav-contact{
    position: relative;
    z-index: 1001;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(
        135deg,
        #ffc061 0%,
        #ff8c1a 50%,
        #ea6000 100%
    );

    color: #fff !important;
    text-decoration: none;

    padding: 14px 28px;
    border-radius: 16px;

    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;

    border: 1px solid rgba(255,255,255,0.25);

    box-shadow:
        0 8px 24px rgba(240, 109, 6, 0.25),
        0 2px 8px rgba(0,0,0,0.08),
        inset 0 1px 1px rgba(255,255,255,0.6),
        inset 0 -2px 4px rgba(0,0,0,0.15);

    overflow: hidden;
    cursor: pointer;

    transition: all 0.25s ease;
}

/* BRILLO */
.nav-contact::before{
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;

    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.35),
        transparent
    );

    transform: skewX(-25deg);
    transition: left 0.7s ease;

    pointer-events: none;
}

.nav-contact:hover{
    transform: translateY(-3px);
    box-shadow:
        0 14px 32px rgba(240, 109, 6, 0.35),
        0 6px 14px rgba(0,0,0,0.12);
}

.nav-contact:hover::before{
    left: 200%;
}

.nav-contact:active{
    transform: translateY(1px) scale(0.97);
    transition: all 0.1s ease;
}




/* =========================
   OVERLAY PRINCIPAL
========================= */
.menu-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;

  background: #ffffff;
  z-index: 9999;

  display: flex;
  flex-direction: column;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  padding: 90px 20px 40px;
}

/* =========================
   HEADER (LOGO + X)
========================= */
.menu-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 20px;
  background: #fff;

  z-index: 10000;

  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* X cerrar */
.menu-close {
  font-size: 26px;
  cursor: pointer;
}

/* =========================
   LINKS PRINCIPALES
========================= */
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-links a,
.menu-links button {
  display: block;
  width: 100%;

  padding: 16px 10px;

  font-size: 18px;
  font-weight: 500;

  text-align: center;
  color: #222;

  border-radius: 10px;

  transition: background 0.2s ease;
}

.menu-links a:hover,
.menu-links button:hover {
  background: rgba(0,0,0,0.05);
}

/* separador visual suave */
.menu-links a {
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* =========================
   ACORDEÓN (BENEFICIOS ETC)
========================= */
.accordion {
  background: none;
  border: none;
  cursor: pointer;
}

.panel {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
  gap: 10px;

  padding-left: 10px;
}

.panel.open {
  max-height: 300px;
  margin-top: 10px;
}

/* =========================
   BOTONES CTA ABAJO
========================= */
.menu-cta {
  margin-top: auto;

  display: flex;
  flex-direction: column;
  gap: 12px;

  padding-top: 25px;
}

.menu-cta .btn-login {
  padding: 14px;
  border-radius: 12px;
  background: #3b5bdb;
  color: white;
  text-align: center;
  font-weight: 600;
}

.menu-cta .btn-join {
  padding: 14px;
  border-radius: 12px;

  background: linear-gradient(90deg, #ffb347, #ff6a00);
  color: white;

  text-align: center;
  font-weight: 700;

  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.25);
}

/* =========================
   BLOQUEO BODY CUANDO ABRE MENU
========================= */
body.menu-open {
  overflow: hidden;
}



@media (max-width: 768px) {

  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .menu.active {
    display: flex !important;
    flex-direction: column;
  }

  .menu a {
    display: block;
    width: 100%;
  }

  /* servicios en columna */
  .servicios,
  .servicios-grid {
    display: flex !important;
    flex-direction: column !important;
  }

  .servicio-item,
  .servicio-card {
    width: 100% !important;
  }

}



/* 1. Cuando el menú está activo, nos aseguramos de que el submenú se despliegue hacia abajo */
.nav-links.active .sub-menu-imagenes {
    display: flex;
    flex-direction: column; /* Esto obliga a las imágenes a ponerse una debajo de la otra */
    align-items: center;    /* Centra las imágenes horizontalmente */
    gap: 15px;              /* Añade una separación de 15px entre cada imagen */
    margin-top: 10px;       /* Despega las imágenes del texto "Servicios" */
    width: 100%;            /* Ocupa todo el ancho disponible del menú móvil */
}

/* 2. Controlar el tamaño de las imágenes para que no rompan el diseño del menú móvil */
.nav-links.active .sub-menu-imagenes img {
    display: block;         /* Elimina el comportamiento inline por defecto */
    width: 80%;             /* Controla qué tan anchas se verán dentro del menú (ej. 80%) */
    max-width: 150px;       /* Define un límite máximo para que no se vean gigantes */
    height: auto;           /* Mantiene la proporción de la imagen sin deformarla */
    border-radius: 8px;     /* Opcional: le da un toque estético con esquinas redondeadas */
}









@media (max-width: 768px){
  .hero-content{
    margin-top: 40px;
  }
}






/* ==========================================
   STACK CARDS MOBILE
========================================== */
@media (max-width: 768px){

    .stack-cards{
        height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;

        gap: 180px !important;

        perspective: none !important;

        padding: 20px 0 80px !important;
    }

    .stack-card{
        position: relative !important;

        width: 90% !important;
        max-width: 340px !important;

        height: 420px !important;

        transform: none !important;
        opacity: 1 !important;
    }



@media (max-width: 768px){

    .stack-cards{
        height:auto !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:center !important;

        gap:220px !important;

        perspective:none !important;
        padding-bottom:100px !important;
    }

    .stack-card{
        position:relative !important;

        width:90% !important;
        max-width:340px !important;

        height:420px !important;

        transform:none !important;
        opacity:1 !important;
    }

    .stack-card::after{

        opacity:1 !important;

        top:calc(100% + 30px) !important;

        width:92% !important;

        font-size:15px !important;
        line-height:1.6 !important;

        padding:16px 18px !important;

        transform:translateX(-50%) !important;
    }

}


@media (max-width: 768px){

    .stack-card{
        height: 560px !important;
    }

    .stack-card::after{
        top: auto !important;
        bottom: -50px !important;
    }

    .stack-card{
        gap: 140px !important;
    }


}


@media (max-width: 768px){

    .stack-cards{
        gap: 120px !important;
    }

}





