:root {
    /* Color Palette */
    --bg-dark: #0f0f11;
    --bg-midnight: #0a192f;
    --accent-neon: #00ff88;
    --accent-glow: rgba(0, 255, 136, 0.5);
    --text-white: #ffffff;
    --text-muted: #8892b0;
    --accent-red: #ff4d6d;
    --accent-gold: #ffd166;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
    width: 100%;
    scroll-margin-top: 110px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Glassmorphism Utils --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent-neon);
    color: var(--bg-dark);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glow-effect:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    backdrop-filter: blur(10px);
}

.btn-secondary.glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
    transform: scale(1.05);
}

/* --- Dynamic Background --- */
#dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at center, var(--bg-midnight) 0%, var(--bg-dark) 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-glow);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(10, 25, 47, 0.8);
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
}

@keyframes drift {
    100% {
        transform: translate(100px, 100px) scale(1.1);
    }
}

/* --- Floating Action Button --- */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent-neon);
    color: var(--bg-dark);
    padding: 16px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.pulse-effect {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 255, 136, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.fab:hover {
    transform: translateY(-5px);
}

/* --- Header Fijo --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 15, 17, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    gap: 20px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.logo-accent { color: var(--accent-neon); }

.main-nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav a:hover { color: var(--accent-neon); }

.btn-sm {
    padding: 10px 22px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* --- Ticker de Mercados (decorativo) --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    padding: 9px 0;
    border-top: 1px solid var(--glass-border);
}

.ticker-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: ticker-scroll 28s linear infinite;
}

.ticker-item {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.ticker-item.up { color: var(--accent-neon); }
.ticker-item.down { color: var(--accent-red); }

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Hero Section --- */
.hero {
    padding-top: 140px;
}

/* --- Trust Row --- */
.trust-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.trust-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

/* --- Countdown --- */
.countdown-widget { margin-top: 36px; }

.countdown-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.countdown-grid {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.countdown-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px 16px;
    min-width: 64px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.countdown-box span {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-neon);
}

.countdown-box small {
    color: var(--text-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Velas decorativas del Hero --- */
.candles-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    padding: 0 5%;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.candle {
    flex: 1;
    max-width: 16px;
    border-radius: 3px 3px 0 0;
    animation: candle-grow 3s ease-in-out infinite alternate;
    transform-origin: bottom;
}

.candle.up { background: var(--accent-neon); }
.candle.down { background: var(--accent-red); }

@keyframes candle-grow {
    0% { transform: scaleY(0.85); }
    100% { transform: scaleY(1.15); }
}

/* --- Stats Bar --- */
.stats-bar { padding: 40px 0 80px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.stat-item {
    padding: 30px 20px;
    text-align: center;
}

.stat-icon { font-size: 2rem; margin-bottom: 10px; }

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-neon);
    margin-bottom: 6px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Testimonios --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card { padding: 34px 28px; }

.stars {
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.testimonial-quote {
    color: var(--text-white);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.testimonial-author div {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}

.testimonial-author span { color: var(--text-muted); }

/* --- Urgencia en Pricing --- */
.urgency-badge {
    display: inline-block;
    background: rgba(255, 77, 109, 0.12);
    color: var(--accent-red);
    border: 1px solid rgba(255, 77, 109, 0.35);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.trust-note {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 10px;
}

/* --- Inscripción al curso completo (contacto por WhatsApp) --- */
.payment-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
}

.whatsapp-doubt-btn {
    display: block;
    text-align: center;
    margin-top: 12px;
}

.badge-beginner {
    display: inline-block;
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-neon);
    border: 1px solid rgba(0, 255, 136, 0.3);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    min-height: 160px; /* Prevenir saltos por typewriting */
}

#hero-title {
    background: linear-gradient(to right, #fff 40%, var(--accent-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-neon);
}

@keyframes blink { 50% { opacity: 0; } }

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.parallax-elements {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: -1;
}

.p-element {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    filter: grayscale(1);
    transition: transform 0.1s ease-out;
}
.p1 { top: 20%; left: 15%; }
.p2 { top: 60%; right: 10%; }
.p3 { bottom: 15%; left: 25%; }

/* --- Beneficios --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    padding: 40px 30px;
    text-align: center;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    transform-style: preserve-3d;
}

.benefit-card:hover {
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.3);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transform: translateZ(30px);
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    transform: translateZ(20px);
}
.benefit-card p {
    color: var(--text-muted);
    transform: translateZ(10px);
}

/* --- Temario --- */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 24px 30px;
    background: transparent;
    border: none;
    color: var(--text-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    text-align: left;
}

.accordion-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease, color 0.3s ease;
}

.accordion-item.active .icon {
    transform: rotate(45deg);
    color: var(--accent-neon);
}

.accordion-content {
    max-height: 0;
    padding: 0 30px;
    background: rgba(0,0,0,0.2);
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), padding 0.5s ease;
}

.accordion-item.active .accordion-content {
    max-height: 200px;
    padding: 0 30px 24px;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease;
}

.syllabus-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.achievement-banner {
    margin-top: 40px;
    padding: 30px;
    border-color: rgba(0, 255, 136, 0.3);
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.achievement-banner h3 {
    color: var(--accent-neon);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.accordion-content p {
    color: var(--text-muted);
}

/* --- Instructor --- */
.instructor-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.instructor-visual {
    flex: 1;
    min-width: 300px;
    position: relative;
    display: flex;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 250px;
    height: 250px;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 2px solid rgba(255,255,255,0.1);
}

.ring-light {
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    border: 2px solid transparent;
    border-top-color: var(--accent-neon);
    border-bottom-color: var(--accent-neon);
    border-radius: 50%;
    animation: spin 8s linear infinite;
    z-index: 1;
    opacity: 0.5;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.floating-badges {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 3;
}

.badge {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge.float-up {
    top: 10%; right: -20px;
    animation: float 4s ease-in-out infinite;
}

.badge.float-down {
    bottom: 20%; left: -30px;
    animation: float 5s ease-in-out infinite reverse;
}

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

.instructor-info {
    flex: 2;
    min-width: 300px;
}

.instructor-name {
    font-size: 2rem;
    color: var(--accent-neon);
    margin-bottom: 16px;
}

.bio-text span {
    opacity: 0; /* Para animación GSAP */
}

/* --- Precios --- */
.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.price-card {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.price-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.price-card .price { font-size: 3.5rem; font-weight: 800; font-family: var(--font-heading); margin-bottom: 15px;}
.price-card .price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.price-card p { color: var(--text-muted); margin-bottom: 30px; }

.features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.features li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.features li::before {
    content: '✓';
    color: var(--accent-neon);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.price-card.highlight {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-20px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-neon);
    color: var(--bg-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.date-badge {
    background: rgba(0, 255, 136, 0.1);
    color: var(--accent-neon);
    border: 1px dashed rgba(0, 255, 136, 0.4);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.trial-form {
    margin-top: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.glass-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.glass-input:focus {
    border-color: var(--accent-neon);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
    margin: 5px 0 10px 0;
}

.consent-label input[type="checkbox"] {
    accent-color: var(--accent-neon);
    width: 16px;
    height: 16px;
    margin-top: 3px;
    cursor: pointer;
}

.form-message {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
    transition: all 0.3s ease;
}

.form-message.success {
    color: var(--accent-neon);
    background: rgba(0, 255, 136, 0.1);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; min-height: 140px; }
    .hero { padding-top: 130px; }
    section { padding: 80px 0; min-height: auto; }
    .price-card.highlight { transform: none; }
    .instructor-wrapper { text-align: center; }
    .badge.float-up { right: 0; }
    .badge.float-down { left: 0; }

    .main-nav { display: none; }
    .header-inner { padding: 14px 20px; }
    .logo { font-size: 1.1rem; }
    .btn-sm { padding: 8px 16px; font-size: 0.8rem; }

    .hero-text { text-align: center; }
    .hero-ctas { justify-content: center; }
    .trust-row, .countdown-grid { justify-content: center; }
    .countdown-box { min-width: 56px; padding: 10px 12px; }
    .countdown-box span { font-size: 1.3rem; }

    .ticker-item { font-size: 0.72rem; }
    .candles-bg { height: 120px; opacity: 0.08; }
}
