:root {
    /* Colors - Brand: EchoRise */
    --brand-green: #102e23;        /* Fondo oscuro muy profundo */
    --brand-emerald: #1fa167;      /* El verde vibrante del logo */
    --brand-sage: #40916c;         /* Un verde medio elegante */
    --brand-gold: #f5c842;         /* El dorado vibrante para acentos */
    --brand-gold-muted: #d4a017;   /* Dorado profundo para contrastes */
    --brand-cream: #fdfaf5;        /* Blanco crema suave */
    --brand-glass: rgba(255, 255, 255, 0.05);

    /* Legacy Map (para no romper el resto del CSS inmediatamente) */
    --verde-oscuro: var(--brand-green);
    --verde-medio: var(--brand-emerald);
    --verde-menta: #95d5b2;
    --beige: #f5ebe0;
    --crema: var(--brand-cream);
    --dorado: var(--brand-gold);
    --dorado-hover: #ffd97d;
    --negro: #050d0a;
    --blanco: #ffffff;
    --gris-suave: #f8f9fa;
    --text-dark: #121c17;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Tokens */
    --br-card: 16px;
    --br-pill: 99px;
    --transition-fast: 0.25s ease;
    --section-padding: 5.5rem 1.5rem;
    --container-width: 900px;
}

/* ============================================
   0. LOADER SCREEN
   ============================================ */
#loader {
    position: fixed;
    inset: 0;
    background: var(--brand-green);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: var(--blanco);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

#loader-typewriter {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    height: 2.2rem;
}

.loader-progress-container {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

#loader-progress {
    height: 100%;
    width: 0%;
    background: var(--verde-menta);
    transition: width 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--blanco);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 0.9rem;
    overflow-x: hidden; /* Forzamos que nada se salga nunca */
    width: 100%;
}

h1, h2 {
    font-family: var(--font-heading);
    color: var(--verde-oscuro);
    line-height: 1.2;
    font-size: clamp(1.8rem, 5vw, 3rem);
    text-align: center;
    scroll-margin-top: 80px; /* Para que no quede debajo del navbar al hacer click */
}

h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--verde-oscuro);
}

p {
    margin-bottom: 1rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* ============================================
   1. NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 54px;
    background: rgba(253, 250, 245, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    transition: var(--transition-fast);
    border-bottom: 1px solid rgba(16, 46, 35, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 54px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-dark);
}

.nav-links a:hover { color: var(--verde-medio); }

.btn-nav-cta-desktop {
    background: var(--verde-medio);
    color: var(--blanco) !important;
    padding: 0.4rem 1.2rem;
    border-radius: var(--br-pill);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(45, 106, 79, 0.2);
}

.btn-nav-cta-desktop:hover {
    background: var(--verde-oscuro);
    transform: translateY(-2px);
}

.nav-actions {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--verde-oscuro);
    cursor: pointer;
}

/* Drawer Menu Mobile */
@media (max-width: 900px) {
    section { padding: 3rem 1.2rem; } /* Aún más compacto */
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: var(--crema);
        flex-direction: column;
        justify-content: center;
        padding: 2rem;
        transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .mobile-menu-btn { display: block; }
    .nav-actions { display: none; } /* Ocultamos el botón desktop en móvil */

    .btn-nav-cta-mobile {
        display: block !important;
        background: var(--verde-medio);
        color: var(--blanco) !important;
        padding: 0.8rem 2rem;
        border-radius: var(--br-pill);
        font-weight: 700;
        text-align: center;
        margin-top: 1.5rem;
        width: 100%;
        box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
    }
}

/* ============================================
   2. HERO — Dark & Impactful
   ============================================ */
.hero {
    background-color: var(--brand-green);
    padding: 7rem 1.5rem 5rem;
    color: var(--blanco);
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* Particle canvas */
.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ambient glows */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.hero-glow-green {
    width: 500px; height: 500px;
    background: rgba(31, 161, 103, 0.15);
    top: -5%; right: -5%;
    animation: heroGlowDrift 18s ease-in-out infinite alternate;
}

.hero-glow-gold {
    width: 320px; height: 320px;
    background: rgba(245, 200, 66, 0.1);
    bottom: 10%; left: -3%;
    animation: heroGlowDrift 22s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlowDrift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.08); }
    100% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Grid layout */
.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 1100px;
}

@media (max-width: 900px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
}

/* Badges */
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

@media (max-width: 900px) { .hero-badges { justify-content: center; } }

.hero-badge {
    background: rgba(45, 106, 79, 0.3);
    border: 1px solid var(--verde-menta);
    padding: 0.3rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--blanco);
}

.hero-badge i { color: var(--verde-menta); }

/* Massive title */
.hero-title {
    font-size: clamp(1.8rem, 8vw, 3rem); /* Más compacto en móvil */
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    text-align: left;
    color: var(--blanco);
}

@media (max-width: 900px) { .hero-title { text-align: center; } }

.hero-word { display: inline-block; margin-right: 0.12em; }

.hw-green {
    color: var(--verde-menta);
    text-shadow: 0 0 30px rgba(116, 198, 157, 0.4);
}

.hw-gold {
    color: var(--dorado-hover);
    position: relative;
    display: inline-block;
}

.hw-wavy-underline {
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 12px;
}

.hw-wavy-underline path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawWavy 1.5s ease-out 1.2s forwards;
}

@keyframes drawWavy { to { stroke-dashoffset: 0; } }

.hw-bounce {
    opacity: 0;
    transform: translateY(50px);
    animation: hwBounceIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--delay, 0s);
}

@keyframes hwBounceIn {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Subtitle */
.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin-bottom: 28px;
    line-height: 1.6;
    text-align: left;
}

@media (max-width: 900px) { .hero-subtitle { text-align: center; margin: 0 auto 28px; } }

.hero-hl {
    background: var(--verde-oscuro);
    color: var(--verde-menta);
    padding: 2px 10px;
    border-radius: 6px;
    font-weight: 700;
}

/* CTA Button */
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--dorado), var(--dorado-hover));
    color: var(--verde-oscuro);
    font-size: 1.1rem;
    font-weight: 800;
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.3);
}

.hero-cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 40px rgba(244, 197, 66, 0.4);
}

.hero-cta-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: heroShine 3s ease-in-out infinite;
}

@keyframes heroShine {
    0% { left: -100%; }
    40%, 100% { left: 120%; }
}

/* Stats */
.hero-stats-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

@media (max-width: 900px) { .hero-stats-row { justify-content: center; flex-wrap: wrap; } }

.hero-stat-num { font-size: 1.6rem; font-weight: 800; color: var(--blanco); }
.hero-stat-lbl { font-size: 0.7rem; color: rgba(255,255,255,0.5); font-weight: 500; }
.hero-stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.1); }

/* Phone Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-phone {
    width: 100%;
    max-width: 320px;
    background: #000;
    border: 10px solid #1a1a1a;
    border-radius: 35px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    z-index: 2;
}

.hero-phone-notch {
    width: 70px; height: 6px;
    background: #1a1a1a;
    margin: 10px auto;
}

.hero-phone-screen {
    background: #0d1f17;
    padding: 20px 15px;
    height: 100%;
}

.hp-header { margin-bottom: 15px; }
.hp-course-label { font-size: 0.7rem; color: var(--verde-menta); font-weight: 700; letter-spacing: 0.12em; }
.hp-course-name { font-family: var(--font-heading); font-size: 1.1rem; color: var(--blanco); display: block; }

.hp-progress-wrap { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.hp-progress-bar { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.hp-progress-fill { width: 72%; height: 100%; background: var(--verde-menta); }
.hp-progress-pct { font-size: 0.65rem; color: var(--verde-menta); font-weight: 700; }

.hp-lesson { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 0.8rem; color: rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.05); }
.hp-lesson i { color: var(--verde-menta); }
.hp-lesson-active { color: var(--blanco); font-weight: 700; border: none; }
.hp-lesson-active i { color: var(--dorado); }

.hp-quote { margin-top: 20px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.hp-quote p { font-size: 0.75rem; font-style: italic; color: rgba(255,255,255,0.4); }

/* Orbiting cards */
.hero-orbit-card {
    position: absolute;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 3;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.hoc-1 { background: var(--verde-medio); color: var(--blanco); top: 15%; right: -30px; animation: orbitFloat1 5s ease-in-out infinite; }
.hoc-2 { background: var(--dorado); color: var(--verde-oscuro); bottom: 35%; left: -45px; animation: orbitFloat2 6s ease-in-out infinite; }
.hoc-3 { background: var(--beige); color: var(--verde-oscuro); bottom: 12%; right: -25px; animation: orbitFloat3 7s ease-in-out infinite; }

@keyframes orbitFloat1 { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes orbitFloat2 { 0%, 100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(12px) rotate(-1deg); } }
@keyframes orbitFloat3 { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-8px); } }

/* Wavy separator */
.hero-wave-separator {
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%; z-index: 2;
    line-height: 0;
}

.hero-wave-separator svg { width: 100%; height: 80px; }

/* ============================================
   3. HISTORIA DE ARTURO
   ============================================ */
.arturo-section {
    background: var(--blanco);
    padding: var(--section-padding);
    position: relative;
    border-left: 4px solid var(--verde-medio);
}

.arturo-header { margin-bottom: 2.5rem; }

.arturo-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--verde-medio);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    text-align: center;
}

.arturo-container {
    max-width: 600px;
    margin: 0 auto;
}

.arturo-story p {
    margin-bottom: 0.7rem;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.arturo-questions-box {
    background: var(--gris-suave);
    border-left: 3px solid var(--verde-medio);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.arturo-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-style: italic;
    color: var(--verde-oscuro);
    font-weight: 600;
    margin: 0;
}

.arturo-impact {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    margin-top: 3rem;
    text-align: center;
    color: var(--verde-oscuro);
}

/* ============================================
   4. MODULOS
   ============================================ */
.modulos-section {
    background: #0d1f17;
    padding: var(--section-padding);
    color: var(--blanco);
    position: relative;
    overflow: hidden;
}

.modulos-section h2 { color: var(--blanco); margin-bottom: 3rem; }

.modulos-carousel-wrapper {
    position: relative;
    padding-right: 50px; /* Space for the fade indication */
}

/* Right edge fade indication */
.modulos-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    background: linear-gradient(to left, rgba(13,31,23,1), transparent);
    pointer-events: none;
    z-index: 5;
}

.modulos-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 2rem 0.5rem 3rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modulos-container::-webkit-scrollbar { display: none; }

.modulo-card {
    flex-shrink: 0;
    width: 220px;
    min-height: 200px;
    background: linear-gradient(135deg, #132a1e 0%, #080a09 100%);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modulo-card:hover {
    transform: translateY(-8px) perspective(800px) rotateY(-5deg) scale(1.02);
    border-color: rgba(116, 198, 157, 0.3);
}

.modulos-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.nav-arrow {
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--blanco);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.nav-arrow:hover { background: var(--verde-medio); }

.modulos-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--verde-menta);
    transform: scale(1.3);
}

.card-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 0 0 16px 16px;
}

.card-number {
    position: absolute;
    bottom: 0px;
    right: 15px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    line-height: 1;
    pointer-events: none;
}

@media (max-width: 900px) {
    .card-number { font-size: 2.8rem; bottom: 5px; right: 10px; }
}

/* ============================================
   5. INSTRUCTOR
   ============================================ */
.instructor {
    background: var(--crema);
    padding: var(--section-padding);
    position: relative;
}

.instructor-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.instructor-visual {
    position: relative;
    max-width: 220px; /* Reducido para móvil */
    width: 100%;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
}

@media (max-width: 900px) {
    .instructor-grid { grid-template-columns: 1fr !important; gap: 2rem; }
    .instructor-content h2, .instructor-content p { text-align: center !important; }
    .instructor-content { text-align: center; }
    .instructor-visual { transform: scale(0.9); }
}

.instructor-photo-wrapper {
    width: 260px;
    height: 320px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(16, 46, 35, 0.15);
    border: 3px solid var(--blanco);
    outline: 2px solid var(--brand-emerald);
}

.instructor-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    background: var(--blanco);
    padding: 0.4rem 1rem;
    border-radius: var(--br-pill);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 5;
    white-space: nowrap;
}

.badge-1 { 
    top: 5%; left: -25%; 
    background: var(--brand-emerald);
    color: var(--blanco);
}
.badge-2 { 
    bottom: 10%; right: -25%; 
    background: var(--brand-gold);
    color: var(--brand-green);
}

.credentials-row {
    display: flex;
    overflow-x: auto;
    gap: 0.8rem;
    padding: 1.5rem 1rem; /* Más padding para que no se corten las sombras */
    margin: 0 -1rem; /* Compensa el padding horizontal */
    scrollbar-width: none;
}

.credentials-row::-webkit-scrollbar { display: none; }

.credential-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px; /* Altura fija para centrado perfecto */
    padding: 0 1.2rem;
    background: var(--blanco);
    border: 1px solid rgba(31, 161, 103, 0.15);
    border-radius: var(--br-pill);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-emerald);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.credential-pill:hover {
    background: var(--brand-emerald);
    color: var(--blanco);
    transform: translateY(-2px);
}

/* ============================================
   6. TESTIMONIOS — Resultados Reales
   ============================================ */
.testimonios-section {
    background: #0d1f17;
    padding: var(--section-padding);
    color: var(--blanco);
    overflow: hidden;
}

.testimonios-header {
    margin-bottom: 4rem;
}

.test-carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.test-carousel {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    padding: 3rem 1rem;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.test-carousel::-webkit-scrollbar { display: none; }

.test-card {
    flex-shrink: 0;
    width: 320px !important;
    background: #1a2e22;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    transform: rotate(0deg) !important; /* Forzamos rotación cero */
}

.test-card:hover {
    transform: rotate(0deg) scale(1.04) translateY(-15px) !important;
    box-shadow: 0 20px 40px rgba(116, 198, 157, 0.2);
    z-index: 10;
}

.test-image-container {
    width: 320px !important;
    height: 340px !important; /* Altura definitiva para todas */
    background: #0d1f17;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

/* Estilo para los testimonios sin foto */
.test-placeholder-container {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-emerald));
}

.test-initials {
    font-size: 5rem;
    font-weight: 900;
    color: var(--brand-emerald);
    opacity: 0.3;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ajuste uniforme para todas las fotos */
.test-img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover !important;
    object-position: top center !important;
    transition: transform 0.5s ease;
    display: block;
}

.test-card:hover .test-img {
    transform: scale(1.1);
}

.test-info {
    padding: 1.5rem;
}

.test-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--blanco);
    margin-bottom: 2px;
}

.test-meta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

.test-stars {
    margin: 0.8rem 0;
    font-size: 0.8rem;
}

.test-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--verde-menta);
    line-height: 1.5;
}

.test-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: var(--blanco);
    cursor: pointer;
    z-index: 20;
    transition: var(--transition-fast);
}

.test-nav-btn:hover { background: var(--verde-medio); }
.test-nav-btn.prev { left: -60px; }
.test-nav-btn.next { right: -60px; }

@media (max-width: 1300px) {
    .test-nav-btn { position: static; transform: none; margin: 0 10px; }
    .test-carousel-wrapper { flex-wrap: wrap; justify-content: center; gap: 20px; }
}

/* ============================================
   7. PRECIO — Tarjeta de Inversión Horizontal
   ============================================ */
.price-section {
    background: var(--beige);
    padding: 5rem 1.5rem;
    display: flex;
    justify-content: center;
}

.price-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.price-card {
    background: var(--blanco);
    max-width: 780px;
    width: 100%;
    border: 2px solid var(--verde-medio);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 8px 40px rgba(45, 106, 79, 0.12);
    margin: 0 auto;
    overflow: hidden;
}

/* Franja superior gradiente */
.price-card-accent {
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #2d6a4f, #d4a017);
    border-radius: 20px 20px 0 0;
}

.price-card-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Aproximadamente 60/40 */
    gap: 3.5rem;
    padding: 3rem 3.5rem;
    align-items: start;
}

@media (max-width: 850px) {
    .price-card-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 2rem;
    }
}

/* Columna Izquierda */
.price-card-left {
    text-align: left;
}

.price-label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--verde-menta);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.price-main {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--verde-oscuro);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.8rem;
}

.price-main small {
    font-size: 1.2rem;
    font-weight: 700;
    margin-left: 5px;
}

.price-accent-line {
    width: 120px;
    height: 2px;
    background: linear-gradient(90deg, var(--verde-medio), var(--dorado));
    margin-bottom: 1.2rem;
}

.price-subtext {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 2rem;
}

.price-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--dorado), var(--dorado-hover));
    color: var(--verde-oscuro);
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 20px rgba(212, 160, 23, 0.2);
    margin-bottom: 1rem;
}

.price-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 160, 23, 0.3);
}

.price-footer-note {
    font-size: 0.72rem;
    color: var(--text-dark);
    opacity: 0.7;
    margin: 0;
}

.price-footer-note i {
    color: #25d366;
    margin-right: 4px;
}

/* Columna Derecha */
.price-card-right {
    background: rgba(31, 161, 103, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
}
/* ============================================
   8. CLOSING CTA — El Momento de Decidir
   ============================================ */
.closing-cta {
    background: var(--brand-green);
    padding: 100px 1.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: var(--blanco);
}

.cta-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.closing-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.closing-title {
    color: var(--blanco);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.closing-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.closing-urgency {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(116, 198, 157, 0.1);
    border: 1px solid rgba(116, 198, 157, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--verde-menta);
    margin-bottom: 3rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--verde-menta);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--verde-menta);
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.btn-cta-final {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.5rem 3.5rem;
    background: linear-gradient(135deg, var(--dorado), var(--dorado-hover));
    color: var(--verde-oscuro);
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(212, 160, 23, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.btn-cta-final:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(244, 197, 66, 0.5);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, transparent 70%);
    opacity: 0;
    animation: btnGlowPulse 3s infinite;
}

@keyframes btnGlowPulse {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.closing-whatsapp {
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* ============================================
   8. CLOSING CTA — El Momento de Decidir
   ============================================ */
.closing-cta {
    position: relative;
    padding: 120px 1.5rem;
    background: #0d1a0d; /* Casi negro, verde muy profundo */
    text-align: center;
    overflow: hidden;
}

.cta-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

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

.closing-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--blanco);
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.2;
}

.closing-subtitle {
    color: var(--crema);
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.closing-urgency {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(116, 198, 157, 0.1);
    color: var(--verde-menta);
    padding: 8px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(116, 198, 157, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--verde-menta);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--verde-menta);
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.closing-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.btn-cta-final {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3.5rem;
    background: var(--dorado);
    color: #000;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(212, 160, 23, 0.3);
    overflow: hidden;
}

.btn-cta-final span { position: relative; z-index: 2; }

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
    pointer-events: none;
}

.btn-cta-final:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--dorado-hover);
    box-shadow: 0 15px 40px rgba(212, 160, 23, 0.5);
}

.btn-cta-final:hover .btn-glow {
    transform: translate(-50%, -50%) scale(1);
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.closing-whatsapp {
    color: var(--crema);
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 500;
}

@media (max-width: 600px) {
    .closing-cta { padding: 80px 1.5rem; }
    .btn-cta-final { width: 100%; padding: 1.2rem; font-size: 1rem; }
}

.price-right-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--verde-oscuro);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    opacity: 0.9;
}

.price-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.price-feature {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--verde-oscuro);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-check {
    width: 22px;
    height: 22px;
    background: var(--verde-medio);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* ============================================
   8. CTA FINAL
   ============================================ */
.cta-final {
    background: var(--brand-green);
    padding: var(--section-padding);
    color: var(--blanco);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decoración para el CTA Final coincidiendo con el logo */
.cta-final::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(31, 161, 103, 0.15), transparent 70%);
}

.cta-final h2 { color: var(--blanco); }

.cta-final .word-highlight {
    color: var(--dorado);
    text-decoration: underline wavy var(--dorado);
}


/* ============================================
   9. FOOTER
   ============================================ */
.footer {
    background: #050d0a;
    padding: 5rem 1.5rem;
    color: rgba(255,255,255,0.6);
    text-align: center;
}

.footer a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer a:hover {
    color: var(--blanco);
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--blanco);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    display: block;
    font-weight: 700;
}

/* Global Animations & Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.wavy-separator {
    width: 100%;
    line-height: 0;
    margin-top: -1px;
}

.wavy-separator svg {
    width: 100%;
    height: 60px;
}

/* Varied colors for modules */
.modulo-card[data-index="01"] .card-bar { background: #d4a017; }
.modulo-card[data-index="02"] .card-bar { background: #74c69d; }
.modulo-card[data-index="03"] .card-bar { background: #ff7043; }
.modulo-card[data-index="04"] .card-bar { background: #455a64; }
.modulo-card[data-index="05"] .card-bar { background: #52b788; }
.modulo-card[data-index="06"] .card-bar { background: #e9c46a; }
.modulo-card[data-index="07"] .card-bar { background: #00bcd4; }

/* FINAL OVERRIDE PARA UNIFORMIDAD TOTAL (ESTILO HISTORIA) */
.test-card {
    width: 320px !important;
    background: #0d1f17 !important; /* Verde muy oscuro del screenshot */
    border-radius: 20px !important;
    transform: rotate(0deg) !important;
}

.test-image-container {
    width: 100% !important;
    height: 400px !important; /* Ajuste perfecto para el ratio 4:5 de las capturas */
    background: #0d1f17 !important;
    clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); /* Corte diagonal inferior */
    margin: 0 !important;
    padding: 0 !important;
}

.test-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.test-info {
    padding: 1rem 1.5rem 2rem !important;
    background: #0d1f17 !important;
}

.test-quote {
    color: var(--verde-menta) !important;
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
}

/* 9. MATERIAL INCLUIDO - ESTILO ABANICO */
.material-section { 
    background: #0d1f17; 
    padding: 3.5rem 1.5rem 5.5rem; 
    text-align: center;
    overflow-x: hidden; 
}

.material-section h2 {
    color: var(--blanco) !important;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 0px !important;
}

.material-fan-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    max-width: 1200px;
    margin: -1.5rem auto 0 !important;
    min-height: 450px;
    position: relative;
}

.material-item { 
    width: 200px;
    background: #1a2e22; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); 
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border: 1.5px solid rgba(116, 198, 157, 0.2);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: -30px; /* Reducimos traslape para dar aire */
}

.material-item:first-child { margin-left: 0; }

/* Rotaciones individuales para el Arco */
.material-item:nth-child(1) { transform: rotate(-20deg) translateY(40px); z-index: 1; }
.material-item:nth-child(2) { transform: rotate(-10deg) translateY(15px); z-index: 2; }
.material-item:nth-child(3) { transform: rotate(0deg) translateY(0); z-index: 3; scale: 1.05; } /* El centro */
.material-item:nth-child(4) { transform: rotate(10deg) translateY(15px); z-index: 2; }
.material-item:nth-child(5) { transform: rotate(20deg) translateY(40px); z-index: 1; }

/* Interacción Explosiva */
.material-item:hover { 
    transform: rotate(0deg) scale(1.15) translateY(-50px) !important; 
    box-shadow: 0 40px 80px rgba(31, 161, 103, 0.4);
    border-color: var(--brand-emerald);
    z-index: 100 !important;
}

.material-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.material-item:hover::after { opacity: 1; }

.material-img { 
    width: 100%; 
    height: auto;
    display: block; 
    aspect-ratio: 1/1.4; 
    object-fit: cover; 
}

/* Responsive Abanico */
@media (max-width: 900px) {
    .material-fan-container {
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-top: 3rem;
        min-height: auto;
    }
    .material-item {
        width: 160px;
        margin-left: 0 !important;
        transform: none !important;
        z-index: 1 !important;
    }
    .material-item:nth-child(3) { scale: 1; }
}

@media (max-width: 480px) {
    .material-item { width: 45%; }
}

.material-section .section-header { margin-bottom: 0 !important; }
.material-fan-container { margin-top: -5rem !important; }
