/* =========================================
   1. HEADER & NAV
   ========================================= */
.main-header {
    background: var(--bg-color);
    padding: 0.2rem 0;
    position: sticky;
    top: 0;
    z-index: 10002;
    transition: box-shadow 0.3s ease;
}

.main-header.scrolled {
    box-shadow: var(--shadow-dark);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo NAV — 📍 Para iterar: cambiar height */
.brand-logo {
    height: 120px;
    width: auto;
    display: block;
}

/* Navegación Desktop & Mobile */
.nav-list { display: none; }

/* MOBILE NAV PANEL */
@media (max-width: 991px) {
    .desktop-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100%;
        background: #fff;
        box-shadow: -8px 0 30px rgba(0,0,0,0.3);
        z-index: 10001;
        overflow-y: auto;
        transform: translateX(110%);
        transition: transform 0.3s cubic-bezier(.4,0,.2,1);
        isolation: isolate;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .desktop-nav.mobile-active {
        transform: translateX(0);
    }
    
    .desktop-nav .nav-list {
        display: flex;
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 0;
    }
    
    .desktop-nav .nav-item {
        display: block;
        font-weight: 500;
        font-size: 1.15rem;
        color: #5A6B7C;
        padding: 1.2rem 0;
        border-bottom: 1px solid rgba(11, 37, 69, 0.08);
    }
    
    .desktop-nav .nav-item:hover,
    .desktop-nav .nav-item.active {
        color: #0B2545;
    }
}

/* MOBILE OVERLAY — no backdrop-filter to avoid bleed-through */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
}

/* =============================================
   CAMBIO 5: Nav active — línea coral dinámica
   La clase .active se agrega/remueve via JS
   ============================================= */
@media (min-width: 992px) {
    .nav-list {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
    
    .nav-item {
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--text-secondary);
        position: relative;
        padding: 0.5rem 0;
        transition: color 0.2s ease;
    }

    .nav-item:hover {
        color: var(--navy-blue);
    }
    
    .nav-item.active {
        color: var(--navy-blue);
    }

    /* Línea coral debajo del item activo */
    .nav-item::after {
        content: '';
        display: block;
        width: 0;
        height: 3px;
        background: var(--coral);
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 2px;
        transition: width 0.3s ease;
    }

    .nav-item.active::after {
        width: 100%;
    }
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.neumorphic-btn-small {
    background: var(--bg-color);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--navy-blue);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-light), var(--shadow-dark);
    transition: all 0.2s ease;
}

.neumorphic-btn-small:hover {
    transform: translateY(-1px);
}

.neumorphic-btn-small:active {
    box-shadow: var(--shadow-inset);
    transform: translateY(1px);
}

.mobile-menu-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--navy-blue);
    padding: 8px;
    z-index: 10000;
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 992px) {
    .mobile-menu-btn { display: none; }
}

@media (max-width: 991px) {
    .hidden-mobile { display: none !important; }
    .brand-logo { height: 70px; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
}

@media (min-width: 992px) {
    .hidden-mobile { display: inline-flex; }
}

/* =========================================
   2. HERO SECTION
   ========================================= */
.hero-section {
    padding: 2.5rem 0 4rem;
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
    background-image: url('../images/hero-abstract-bg.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(20%);
}

@media (max-width: 768px) {
    .hero-bg-wrapper {
        background-image: url('../images/hero-abstract-bg-mobile.jpg');
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.slogan-caps {
    display: inline-block;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--navy-blue);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 163, 163, 0.12), rgba(255, 107, 85, 0.08));
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(15, 163, 163, 0.2);
}

.text-coral {
    color: var(--coral);
}

.hero-h1 {
    font-size: 2.5rem;
    color: var(--navy-blue);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-weight: 700;
}

.hero-highlight {
    font-size: 1.25rem;
    color: var(--navy-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(11,37,69,0.1);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-h1 { font-size: 3.8rem; }
    .hero-actions { flex-direction: row; gap: 1.5rem; }
}

/* =========================================
   3. SISTEMA BENTO GRID
   ========================================= */
.bento-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: minmax(280px, auto);
    }
    
    .span-2 { grid-column: span 2; }
    .span-3 { grid-column: span 3; }
    .span-4 { grid-column: span 4; } 
    .row-span-2 { grid-row: span 2; }
}

.bento-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 20px rgba(11, 37, 69, 0.12), 
                -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.bento-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.bento-icon img { width: 100%; height: 100%; object-fit: contain; }
.bento-icon svg { width: 100%; height: 100%; }

.bento-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 0.75rem;
}

.bento-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* VARIACIONES DE TARJETAS */
.card-dark {
    background: var(--navy-blue);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.1);
}
.card-dark .bento-title { color: var(--teal); }
.card-dark .bento-text { color: rgba(255,255,255,0.85); }
.card-dark strong { color: var(--white); }

.card-feature {
    align-items: flex-start;
}

.card-cta {
    background: var(--coral);
    color: white;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.card-cta h3 { color: white; margin-bottom: 1.5rem; }
.card-cta .btn {
    background: white;
    color: var(--coral);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =============================================
   CAMBIO 2: CTA compacto en desktop
   ============================================= */
@media (min-width: 1024px) {
    .solution-grid {
        grid-auto-rows: auto;
    }
    .solution-grid .card-feature {
        min-height: 280px;
    }
    .cta-compact {
        min-height: auto !important;
        padding: 1.2rem 1.5rem !important;
        align-self: center;
    }
}

/* Solution CTA card - pure image */
.solution-cta-card {
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    min-height: 280px;
    border: none;
}

.solution-cta-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}

.solution-cta-card:hover .solution-cta-img {
    transform: scale(1.05);
}

/* Diferenciador */
.card-differentiator {
    background: linear-gradient(145deg, #ffffff, #eef1f5);
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: auto;
}

.differentiator-content {
    position: relative;
    padding: 1.5rem;
}

.differentiator-accent {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--coral));
    border-radius: 2px;
}

.differentiator-text {
    font-size: 1.15rem;
    color: var(--navy-blue);
    line-height: 1.7;
    font-weight: 500;
    max-width: 500px;
    margin: 0 auto;
}

.differentiator-text em { color: var(--coral); font-style: italic; }
.differentiator-text strong { color: var(--teal); }

/* =============================================
   CAMBIO 1: Pilares — Mejor contraste + 
   Números romanos integrados en título
   ============================================= */
.card-pillars {
    background: linear-gradient(160deg, #061728 0%, #0B2545 50%, #102d4f 100%);
    border: 1px solid rgba(15, 163, 163, 0.15);
    overflow: visible !important;
}

.pillars-heading {
    color: var(--teal);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.pillars-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .pillars-grid {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.pillar-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pillar-item:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(15, 163, 163, 0.35);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
}

.pillar-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.pillar-icon svg { width: 100%; height: 100%; }

.pillar-title-wrap {
    flex: 1;
}

/* Número romano integrado en el título */
.pillar-roman {
    color: var(--white);
    font-weight: 700;
    margin-right: 0.3rem;
}

.pillar-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    line-height: 1.3;
}

.pillar-toggle {
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.pillar-toggle i { width: 20px; height: 20px; }

/* Estado abierto del accordion */
.pillar-item.active .pillar-toggle {
    transform: rotate(180deg);
    color: var(--teal);
}

.pillar-item.active {
    background: rgba(15, 163, 163, 0.1);
    border-color: rgba(15, 163, 163, 0.3);
}

.pillar-body {
    /* MOBILE DEFAULT: Todo visible, sin accordion */
    overflow: hidden;
    padding: 0 1.2rem 1.2rem;
}

/* DESKTOP: Accordion activado solo en pantallas ≥768px */
@media (min-width: 768px) {
    .pillar-body {
        max-height: 0;
        padding: 0 1.2rem;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }
    
    .pillar-item.active .pillar-body {
        max-height: 400px;
        padding: 0 1.2rem 1.2rem;
    }
}

/* MOBILE: Ocultar chevron del accordion */
@media (max-width: 767px) {
    .pillar-toggle {
        display: none;
    }
    
    .pillar-item {
        cursor: default;
        overflow: visible;
        flex: none;
    }
    
    .pillar-item,
    .pillar-item:hover {
        background: rgba(15, 163, 163, 0.1);
        border-color: rgba(15, 163, 163, 0.3);
    }
    
    .pillar-body {
        overflow: visible;
    }
}

.pillar-body p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =============================================
   EL PROBLEMA - 3 Capas Visuales
   ============================================= */
.problem-section {
    padding-bottom: 0;
}

.problem-headline {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.problem-headline h2 { font-size: 2rem; margin-bottom: 1rem; }

.problem-headline p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.traps-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.trap-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dark), var(--shadow-light);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trap-card:hover {
    transform: translateX(8px);
    box-shadow: 8px 8px 20px rgba(11, 37, 69, 0.12),
                -8px -8px 20px rgba(255, 255, 255, 0.9);
}

.trap-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 107, 85, 0.12), rgba(255, 107, 85, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--coral);
}

.trap-icon-wrap i { width: 28px; height: 28px; }

.trap-icon-wrap.trap-icon-teal {
    background: linear-gradient(135deg, rgba(15, 163, 163, 0.12), rgba(15, 163, 163, 0.05));
    color: var(--teal);
}

.trap-icon-wrap.trap-icon-navy {
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.12), rgba(11, 37, 69, 0.05));
    color: var(--navy-blue);
}

.trap-content { flex: 1; }

.trap-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
}

.trap-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.problem-closing-banner {
    background: linear-gradient(135deg, var(--navy-blue) 0%, #163A63 100%);
    padding: 2.5rem 3rem;
    text-align: center;
    margin-top: 1rem;
}

.problem-closing-banner p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

.problem-closing-banner strong { color: var(--teal); }

@media (min-width: 768px) {
    .problem-closing-banner p { font-size: 1.45rem; }
}

/* =============================================
   NOSOTROS - Layout con foto
   ============================================= */
.about-card {
    background: linear-gradient(145deg, #ffffff, #f4f6f9);
}

.about-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 1024px) {
    .about-layout {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
}

.founder-photo-area { flex-shrink: 0; }

@media (min-width: 1024px) {
    .founder-photo-area { width: 220px; }
}

.founder-photo-bento {
    width: 220px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #ffffff, #e8ecf1);
    box-shadow: 8px 8px 20px rgba(11, 37, 69, 0.12),
                -8px -8px 20px rgba(255, 255, 255, 0.9);
    padding: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.founder-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--radius-lg) - 4px);
    object-fit: cover;
}

.about-content { flex: 1; }

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(11, 37, 69, 0.06);
}

.trust-badge {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 250px;
}

.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon svg { width: 28px; height: 28px; }

.trust-icon-teal {
    background: linear-gradient(135deg, rgba(15, 163, 163, 0.15), rgba(15, 163, 163, 0.05));
    color: var(--teal);
    border: 1px solid rgba(15, 163, 163, 0.2);
}

.trust-icon-coral {
    background: linear-gradient(135deg, rgba(255, 107, 85, 0.15), rgba(255, 107, 85, 0.05));
    color: var(--coral);
    border: 1px solid rgba(255, 107, 85, 0.2);
}

.trust-icon-navy {
    background: linear-gradient(135deg, rgba(11, 37, 69, 0.15), rgba(11, 37, 69, 0.05));
    color: var(--navy-blue);
    border: 1px solid rgba(11, 37, 69, 0.15);
}

.trust-badge strong {
    color: var(--navy-blue);
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.25rem;
}

.trust-badge p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* =========================================
   4. FOOTER — Cambio 4: Redistribución limpia
   ========================================= */
.main-footer {
    background: var(--navy-blue);
    color: var(--white);
    padding: 0rem 0 2rem;
    margin-top: 1rem;
}

/* Fila superior: Logo + Slogan + Social — centrados */
.footer-hero {
    text-align: center;
    padding-bottom: 2.5rem;
}

/* Logo Footer — 📍 Para iterar: cambiar width */
.footer-logo {
    width: 200px;
    max-width: 100%;
    margin: 0 auto 1rem;
    display: block;
}

.footer-slogan {
    font-style: italic;
    opacity: 1;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    max-width: 400px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon svg { width: 22px; height: 22px; }

.social-facebook {
    background: rgba(24, 119, 242, 0.15);
    color: #1877F2;
    border: 1px solid rgba(24, 119, 242, 0.25);
}
.social-facebook:hover {
    background: #1877F2;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.social-instagram {
    background: linear-gradient(135deg, rgba(228, 64, 95, 0.15), rgba(181, 70, 209, 0.15));
    color: #E4405F;
    border: 1px solid rgba(228, 64, 95, 0.25);
}
.social-instagram:hover {
    background: linear-gradient(135deg, #E4405F, #B546D1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(228, 64, 95, 0.4);
}

.social-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border: 1px solid rgba(37, 211, 102, 0.25);
}
.social-whatsapp:hover {
    background: #25D366;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

/* Separador */
.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 2.5rem;
}

/* Fila inferior: Quick Links + Contact + Map */
.footer-info-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-info-grid {
        grid-template-columns: 1fr 1.2fr 1fr;
        align-items: start;
    }
}

.footer-col h4 {
    color: var(--teal);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.footer-col ul li { margin-bottom: 1rem; }
.footer-col ul li a { opacity: 0.7; transition: opacity 0.2s; }
.footer-col ul li a:hover { opacity: 1; color: var(--teal); }

/* Mapa placeholder */
.mini-map-placeholder {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-md);
    background: #081d36;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 4px 4px 10px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

.map-label { color: var(--teal); font-weight: 600; margin-bottom: 0.5rem; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    gap: 1rem;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.legal-links a:hover { text-decoration: underline; color: var(--white); }

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 35px; height: 35px; }

.icon-inline {
    width: 18px; 
    height: 18px; 
    vertical-align: text-bottom;
    margin-right: 8px;
    color: var(--teal);
}

/* =========================================
   ANIMACIONES Y EFECTOS
   ========================================= */
.bento-card, .trap-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bento-card.fade-in, .trap-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.bento-card:nth-child(1) { transition-delay: 0.1s; }
.bento-card:nth-child(2) { transition-delay: 0.2s; }
.bento-card:nth-child(3) { transition-delay: 0.3s; }
.bento-card:nth-child(4) { transition-delay: 0.4s; }
.bento-card:nth-child(5) { transition-delay: 0.5s; }
.bento-card:nth-child(6) { transition-delay: 0.6s; }

.trap-card:nth-child(1) { transition-delay: 0.1s; }
.trap-card:nth-child(2) { transition-delay: 0.2s; }
.trap-card:nth-child(3) { transition-delay: 0.3s; }

body {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.loaded {
    opacity: 1;
}

.hero-bg-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 163, 163, 0.05) 0%, rgba(11, 37, 69, 0.03) 100%);
    z-index: 1;
}

.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 2rem;
        min-height: auto;
    }
    
    .hero-h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .bento-card { padding: 1.5rem; }
    .bento-title { font-size: 1.15rem; }
    .problem-closing-banner { padding: 2rem 1.5rem; }
    .problem-closing-banner p { font-size: 1.1rem; }
}

@media (max-width: 991px) {
    .mobile-menu-btn i { width: 24px; height: 24px; }
}

/* =========================================
   LEGAL PAGES
   ========================================= */
.legal-page {
    padding: 6rem 0 4rem;
    min-height: 70vh;
}

/* Legal pages: simplified footer (no info-grid) */
.footer-legal-simple .footer-divider {
    display: none;
}

.footer-legal-simple .footer-bottom {
    border-top: none;
    padding-top: 0;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2rem;
    color: var(--navy-blue);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.legal-content .legal-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.legal-content h2 {
    font-size: 1.2rem;
    color: var(--navy-blue);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.legal-content h3 {
    font-size: 1.05rem;
    color: var(--navy-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.legal-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--teal);
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--teal);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: gap 0.2s ease;
}

.legal-back:hover {
    gap: 0.75rem;
}

[data-lang] { display: none; }
[data-lang].active-lang { display: block; }

/* =========================================
   PAGE HERO (Sub-pages)
   ========================================= */
.page-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-color) 0%, rgba(15,163,163,0.04) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero background image for sub-pages */
.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

/* Solution section image */
.solution-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-dark), var(--shadow-light);
    border: 1px solid rgba(255,255,255,0.4);
    aspect-ratio: 16 / 7;
}

.solution-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Solution layout with image */
.solution-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .solution-split {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Charlotte skyline in footer */
.charlotte-skyline-wrap {
    width: 100%;
    height: 160px;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: inset 4px 4px 10px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
}

.charlotte-skyline-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.charlotte-skyline-wrap:hover img {
    opacity: 0.9;
}

.charlotte-skyline-wrap .map-label {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--teal);
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    z-index: 1;
}

.page-hero-label {
    display: inline-block;
    background: rgba(15,163,163,0.1);
    color: var(--teal);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.page-hero-h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--navy-blue);
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto 1.2rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(255,255,255,0.5);
}

.page-hero-sub {
    font-size: 1.1rem;
    color: var(--text-primary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
    .page-hero { padding: 3rem 0 2.5rem; }
    .bento-grid[style*="repeat(3"] {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================
   ANSWER GRID (fix layout at all widths)
   ========================================= */
.answer-grid {
    grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
    .answer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .answer-grid .span-4 {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .answer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: auto;
    }
    .answer-grid .span-2 {
        grid-column: span 1;
    }
    .answer-grid .span-4 {
        grid-column: span 2;
    }
}

/* =========================================
   MODELS GRID (3 columns)
   ========================================= */
.models-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.model-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding-top: 2.5rem;
}

.model-label {
    position: absolute;
    top: 0;
    right: 0;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.35rem 1rem;
    border-bottom-left-radius: 10px;
}

.model-card ul li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

@media (max-width: 991px) {
    .models-grid {
        grid-template-columns: 1fr !important;
    }
}
