/* --- CONFIGURACIÓN BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito Sans', sans-serif; overflow-x: hidden; color: #333; background-color: #fff; }
html { scroll-behavior: smooth; }

/* --- RESPONSIVE TYPOGRAPHY --- */
.hero-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 30px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 15px; }
.section-desc { font-size: 1rem; color: #666; margin-bottom: 25px; line-height: 1.5; font-weight: 400; }
.benefits-title { font-size: clamp(2.5rem, 6vw, 3.8rem); font-weight: 800; line-height: 1; margin-bottom: 10px; color: #333;}
.assistance-mix { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.4; margin-bottom: 50px; }

/* --- NAVBAR --- */
header { position: relative; width: 100%; height: 100vh; min-height: 600px; }
.navbar { position: absolute; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; z-index: 1000; }
.logo { display: flex; flex-direction: column; color: #fff; text-transform: uppercase; z-index: 1001;}
.logo-top { font-size: 1.2rem; font-weight: 400; }
.logo-bottom { font-size: 2rem; font-weight: 800; margin-top: -5px; }
.nav-links { list-style: none; display: flex; gap: 20px; align-items: center; transition: all 0.4s ease;}
.nav-links a { text-decoration: none; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; font-weight: 700; transition: color 0.3s ease; }
.nav-links a:hover { color: #fff; }
.btn-login { background-color: #3366ff; color: #fff !important; padding: 10px 25px; border-radius: 20px; transition: background-color 0.3s ease; }
.btn-login:hover { background-color: #264dc0; }
.menu-toggle { display: none; color: #fff; font-size: 1.8rem; cursor: pointer; z-index: 1001; }

/* --- HERO CARRUSEL --- */
.carousel-container { width: 100%; height: 100%; position: relative; overflow: hidden; }
.carousel-track { display: flex; width: 200%; height: 100%; transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1); }
.slide { width: 50%; height: 100%; background-size: cover; background-position: center; position: relative; display: flex; align-items: center; padding-left: 10%; opacity: 0; transition: opacity 0.8s ease; }
.slide.active { opacity: 1; }
.overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,58,112,0.9) 0%, rgba(66,165,245,0.4) 50%, rgba(66,165,245,0.1) 100%); z-index: 1; }
.content { position: relative; z-index: 2; max-width: 600px; padding-right: 20px;}
.btn-primary { display: inline-block; padding: 15px 40px; background-color: #fff; color: #3366ff; text-decoration: none; font-size: clamp(0.9rem, 2vw, 1.1rem); font-weight: 800; border-radius: 30px; transition: all 0.3s ease; }
.btn-primary:hover { background-color: #3366ff; color: #fff; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: rgba(255, 255, 255, 0.6); font-size: 2.5rem; cursor: pointer; z-index: 10; transition: color 0.3s ease; padding: 10px; }
.carousel-btn:hover { color: #fff; }
.prev-btn { left: 2%; }
.next-btn { right: 2%; }

/* --- QUOTE BAR --- */
.quote-bar { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 1200px; background-color: #fff; border-radius: 50px; display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; z-index: 10; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.quote-item { display: flex; align-items: center; gap: 15px; color: #333; flex: 1; justify-content: center; padding: 10px; }
.quote-item:not(:last-child) { border-right: 1px solid #eee; }
.quote-icon { font-size: 1.5rem; color: #3366ff; }
.quote-text { display: flex; flex-direction: column; }
.quote-label { font-weight: 800; font-size: 0.95rem; }
.quote-sublabel { font-size: 0.8rem; color: #888; font-weight: 400; }
.btn-quote { background-color: #3366ff; color: #fff; text-decoration: none; padding: 12px 25px; border-radius: 25px; font-weight: 800; display: flex; align-items: center; gap: 10px; transition: background-color 0.3s ease; white-space: nowrap;}
.btn-quote:hover { background-color: #264dc0; }

/* --- SECCIÓN NOSOTROS --- */
.section-why { position: relative; padding: 100px 5%; background: radial-gradient(circle at top, #ffffff 0%, #f4f7fb 100%); text-align: center;}
.container-why { max-width: 1000px; margin: 0 auto; }
.text-black { color: #333; }
.text-blue { color: #3366ff; }
.pill { display: inline-flex; align-items: center; justify-content: center; padding: 8px 15px; border-radius: 30px; vertical-align: middle; margin: 5px; font-size: clamp(0.9rem, 2vw, 1.2rem); }
.pill-plane { background-color: rgba(51, 102, 255, 0.1); border: 2px solid #3366ff; color: #3366ff; }
.pill-passport { background-color: rgba(139, 69, 19, 0.1); border: 2px solid #8b4513; color: #8b4513; }
.why-subhead { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 20px; color: #333;}
.why-text { font-size: 1.1rem; line-height: 1.6; color: #666; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; font-weight: 400; }
.family-image-container img { max-width: 100%; height: auto; border-radius: 10px; }

/* --- PLANES Y MEMBRESÍAS (COMÚN) --- */
.section-plans, .section-memberships { position: relative; padding: 80px 5%; background-color: #ffffff; color: #333; }
.section-memberships { background-color: #f9fbff; text-align: center;}
.container-plans, .container-memberships { max-width: 1400px; margin: 0 auto; }
.plans-row { display: flex; align-items: flex-start; gap: 40px; margin-bottom: 80px; }
.plans-intro { flex: 0 0 280px; text-align: left; }
.btn-quote-inline { display: inline-block; padding: 10px 30px; background-color: #3366ff; color: #fff; text-decoration: none; border-radius: 25px; font-weight: 800; font-size: 0.95rem; transition: background-color 0.3s ease; }
.btn-quote-inline:hover { background-color: #264dc0; }
.plans-grid { flex: 1; display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 1000px; }

.plan-card, .membership-card { position: relative; height: 480px; background-size: cover; background-position: center; border-radius: 25px; overflow: hidden; display: flex; align-items: flex-end; padding: 30px 20px; color: #fff; transition: transform 0.4s ease, box-shadow 0.4s ease; text-align: left; }
.plan-card:hover, .membership-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.plan-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%); z-index: 1; transition: background 0.4s ease; }
.plan-card-content { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; }
.plan-title { font-size: 1.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 10px; transition: margin-bottom 0.4s ease; }

.plan-features { list-style: none; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.5s ease, margin-bottom 0.5s ease; }
.plan-features li { font-size: 0.85rem; line-height: 1.3; color: rgba(255,255,255,0.95); margin-bottom: 6px; position: relative; padding-left: 12px; font-weight: 400; }
.plan-features li::before { content: '•'; position: absolute; left: 0; color: #fff; font-size: 0.8rem; }
.reveal-info-hover:hover .plan-features { max-height: 250px; opacity: 1; margin-bottom: 25px; margin-top: 5px; }
.reveal-info-hover:hover .plan-card-overlay { background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 100%), repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.3) 2px, rgba(0,0,0,0.3) 4px); }

.btn-coverage { display: inline-flex; align-items: center; justify-content: center; padding: 8px 20px; border-radius: 20px; text-decoration: none; font-weight: 700; font-size: 0.85rem; transition: all 0.3s ease; align-self: flex-start; }
.btn-blue { background-color: #3366ff; color: #fff; border: 1px solid #3366ff; }
.btn-blue:hover { background-color: #264dc0; border-color: #264dc0; }
.btn-simple { border: 1px solid rgba(255,255,255,0.7); color: rgba(255,255,255,0.9); background-color: transparent; }
.btn-simple:hover { background-color: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }

/* --- CARRUSEL MEMBRESÍAS --- */
.memberships-carousel-wrapper { position: relative; padding: 0 40px; margin: 0 auto 40px; max-width: 1350px; display: flex; align-items: center; }
.memberships-track-container { flex: 1; overflow: hidden; }
.memberships-track { display: flex; gap: 20px; transition: transform 0.5s ease-in-out; }
.membership-card { flex: 0 0 calc(25% - 15px); } 
.memberships-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); font-size: 2.5rem; color: #3366ff; background: transparent; border: none; cursor: pointer; padding: 10px; z-index: 10; transition: color 0.3s ease; }
.memberships-nav-btn:hover { color: #264dc0; }
.memberships-prev { left: -10px; }
.memberships-next { right: -10px; }
.pill-socio { background-color: #fff; color: #3366ff; padding: 5px 15px; border-radius: 15px; font-weight: 700; font-size: 0.8rem; margin-bottom: 15px; align-self: flex-start;}
.plan-price { font-size: 1.5rem; font-weight: 700; margin-top: auto; }
.cta-full-pill { display: flex; justify-content: space-between; align-items: center; background-color: #fff; border-radius: 100px; padding: 15px 40px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); max-width: 900px; margin: 0 auto; flex-wrap: wrap; gap: 15px;}
.cta-full-pill p { font-size: 1.2rem; font-weight: 800; color: #333; margin: 0; }
.btn-pill-action { background-color: #3366ff; color: #fff; text-decoration: none; padding: 12px 30px; border-radius: 30px; font-weight: 800; font-size: 1rem; transition: background-color 0.3s ease; white-space: nowrap;}
.btn-pill-action:hover { background-color: #264dc0; }

/* --- BENTO DESIGN (NUEVO FLEX LAYOUT) --- */
.section-benefits { position: relative; padding: 80px 5%; background-color: #ffffff; color: #333; text-align: center; }
.container-benefits { max-width: 1400px; margin: 0 auto; }
.benefits-subtitle { font-size: 1.1rem; color: #666; margin-bottom: 40px; font-weight: 400; }
.benefits-subtitle em { font-weight: 700; color: #333; font-style: normal; }

/* Layout en columnas para que crezcan en hover */
.bento-wrapper {
    display: flex;
    gap: 20px;
    height: 600px; /* Alto fijo de la cuadrícula en escritorio */
    width: 100%;
}
.bento-col {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 20px;
}
.bento-item {
    position: relative;
    flex: 1; /* Inician mitad y mitad */
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: #fff;
    transition: flex 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: left;
}
/* Efecto Mágico Hover Flex */
.bento-item:hover {
    flex: 1.8; /* La tarjeta seleccionada crece */
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.bento-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
    transition: background 0.5s ease;
}
/* Al pasar cursor se vuelve azul solido y revela texto */
.bento-item:hover .bento-card-overlay {
    background: rgba(51, 102, 255, 0.9);
}

.bento-card-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.bento-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
    transition: margin-bottom 0.5s ease;
}
.bento-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 400;
    color: rgba(255,255,255,0.95);
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.5s ease;
}

/* Revelar texto en Bento */
.bento-item:hover .bento-title { margin-bottom: 10px; }
.bento-item:hover .bento-desc { max-height: 150px; opacity: 1; margin-top: 10px; }


/* --- SABÍAS QUE... --- */
.section-sabias { padding: 80px 5%; background-color: #ffffff; display: flex; flex-direction: column; align-items: center; }
.container-sabias { display: flex; align-items: center; max-width: 1300px; width: 100%; gap: 30px; flex-wrap: wrap;}
.sabias-title-area { flex: 0 0 auto; }
.sabias-title { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; color: #2b303b; line-height: 1.1; margin: 0; }
.sabias-carousel-area { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 300px; }
.sabias-track-container { flex: 1; overflow: hidden; border-radius: 20px; }
.sabias-track { display: flex; gap: 20px; transition: transform 0.5s ease-in-out; }
.sabias-card { flex: 0 0 calc(50% - 10px); display: flex; align-items: center; padding: 30px 25px; border-radius: 25px; color: #fff; min-height: 180px; flex-wrap: wrap; gap: 15px;}
.sabias-card-left { flex: 1; min-width: 150px; display: flex; flex-direction: column; align-items: flex-start; }
.sabias-card-left h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.2; margin-bottom: 15px; }
.btn-sabias-info { display: inline-block; padding: 8px 20px; border: 1px solid #fff; border-radius: 20px; color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 300; transition: all 0.3s ease; }
.btn-sabias-info:hover { background-color: #fff; color: #3366ff; }
.sabias-card-right { flex: 1; min-width: 150px; font-size: 0.9rem; line-height: 1.4; font-weight: 300; }
.sabias-nav-btn { background: transparent; border: none; color: #407BFF; font-size: 2.5rem; cursor: pointer; transition: transform 0.2s ease, color 0.3s ease; padding: 10px;}
.sabias-nav-btn:hover { color: #264dc0; }
.sabias-pagination { margin-top: 30px; display: flex; gap: 10px; justify-content: center; width: 100%; }
.sabias-dot { width: 10px; height: 10px; background-color: #d1d5db; border-radius: 50%; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; }
.sabias-dot.active { background-color: #7B9DFF; transform: scale(1.3); }

/* --- FOOTER --- */
.site-footer { width: 100%; font-family: 'Nunito Sans', sans-serif; }
.footer-main { position: relative; background-size: cover; background-position: center; padding: 80px 5% 40px; color: #fff; }
.footer-overlay { position: absolute; inset: 0; background: rgba(74, 134, 255, 0.92); z-index: 1; }
.footer-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-logo { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.footer-logo strong { font-weight: 800; display: block; }
.brand-tagline { font-size: 1.1rem; font-weight: 300; margin-top: 5px; }
.phone-col h4 { font-size: 1.2rem; font-weight: 800; margin-bottom: 5px; line-height: 1.2;}
.phone-col p { font-size: 1.1rem; font-weight: 300; margin: 2px 0; }
.contact-col { align-items: flex-start; }
.btn-whatsapp { display: flex; align-items: center; gap: 10px; border: 2px solid #fff; border-radius: 40px; padding: 10px 20px; color: #fff; text-decoration: none; transition: all 0.3s ease; }
.btn-whatsapp i { font-size: 2rem; }
.btn-whatsapp div { display: flex; flex-direction: column; font-weight: 800; font-size: 1rem; line-height: 1.2; text-align: left; }
.btn-whatsapp:hover { background: #fff; color: #4a86ff; }
.email-link { margin-top: 10px; margin-left: 10px; color: #fff; text-decoration: none; font-weight: 300; font-size: 1rem; }
.social-col { flex-direction: row; gap: 15px; }
.social-icon { background: #fff; color: #4a86ff; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; text-decoration: none; transition: transform 0.3s ease; }
.social-icon:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1);}
.footer-hours { position: relative; z-index: 2; text-align: center; margin-top: 50px; font-weight: 300; font-size: 1rem; }
.footer-hours strong { font-weight: 800; }
.footer-bottom { background: #fff; padding: 20px 5%; color: #666; font-size: 0.9rem; }
.footer-bottom-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;}
.footer-bottom-content a { color: #666; text-decoration: none; transition: color 0.3s; }

/* --- ANIMACIONES SCROLL --- */
.animate-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.slide.active .animate-in { opacity: 1; transform: translateY(0); }
.scroll-anim.is-visible { opacity: 1; transform: translateY(0); }

/* --- RESPONSIVE MEDIA QUERIES --- */

/* TABLET (Max 992px) */
@media (max-width: 992px) {
    .quote-bar { flex-wrap: wrap; border-radius: 20px; bottom: 20px;}
    .quote-item { flex: 1 1 40%; border: none !important; justify-content: flex-start;}
    .btn-quote { flex: 1 1 100%; justify-content: center; margin-top: 10px;}
    .plans-row { flex-direction: column; align-items: stretch; text-align: center; }
    .plans-intro { text-align: center; margin-bottom: 20px;}
    
    .membership-card { flex: 0 0 calc(50% - 10px); }
    
    /* Bento Tablet: Pasamos las columnas flex a filas horizontales para acomodar */
    .bento-wrapper { height: auto; flex-direction: column; }
    .bento-col { flex-direction: row; height: 300px; }
}

/* MOBILE (Max 768px) */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { 
        position: absolute; top: 100%; left: -100%; width: 100%; 
        background-color: #fff; flex-direction: column; padding: 20px 0; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1); opacity: 0; visibility: hidden;
    }
    .nav-links.nav-active { left: 0; opacity: 1; visibility: visible; }
    .nav-links a { color: #333; font-size: 1.1rem; padding: 10px 20px; display: block;}
    .nav-links a:hover { color: #3366ff; }
    .btn-login { margin-top: 10px; display: inline-block !important; color: #fff !important;}

    .quote-bar { display: none; }
    .plan-card, .membership-card { height: 400px; }
    .membership-card { flex: 0 0 100%; }
    .memberships-carousel-wrapper { padding: 0 10px; }
    .memberships-prev { left: 0px; }
    .memberships-next { right: 0px; }
    
    /* Bento Mobile: Apilamos todo como bloques independientes */
    .bento-col { flex-direction: column; height: auto; }
    .bento-item { min-height: 250px; flex: none; }
    .bento-item:hover { flex: none; } /* En móvil el crecimiento flex estresa, mejor solo mostrar texto */
    .bento-item:hover .bento-desc { max-height: 200px; }

    .sabias-card { flex: 0 0 100%; }
    .footer-bottom-content { justify-content: center; text-align: center;}
}