/* =========================================
   CSS Variables & Theme Setup
========================================= */
:root {
    /* Color Palette - Premium Dark Theme */
    --bg-main: #0a0a0f;
    --bg-secondary: #13131f;
    --bg-tertiary: rgba(25, 25, 40, 0.6);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;

    --accent-primary: #8b5cf6;
    /* Vibrant Purple */
    --accent-secondary: #06b6d4;
    /* Vibrant Cyan */
    --accent-glow: rgba(139, 92, 246, 0.4);

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* WhatsApp Green */
    --wa-color: #25D366;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --container-width: 1100px;
    --section-padding: 5rem 0;

    /* Effects */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* =========================================
   Resets & Base Styles
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   Utility Classes
========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.bg-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.text-left {
    text-align: left;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-text-red {
    background: linear-gradient(135deg, #f87171, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-success {
    color: var(--success);
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-tertiary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
}

.btn-full {
    width: 100%;
}

.glow-effect {
    box-shadow: 0 0 15px var(--accent-glow);
    animation: glowPulse 3s infinite alternate;
}

/* =========================================
   Navigation
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color var(--transition-fast), backdrop-filter var(--transition-fast);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    color: var(--accent-secondary);
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(10, 10, 15, 0) 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge i {
    color: var(--accent-secondary);
}

.warning-badge {
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.warning-badge i {
    color: var(--warning);
}

/* =========================================
   Problem Section
========================================= */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.problem-card {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.1);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: transform var(--transition-normal);
}

.problem-card:hover {
    transform: translateY(-5px);
    background: rgba(239, 68, 68, 0.05);
}

.icon-wrapper.error-icon {
    width: 60px;
    height: 60px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.problem-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   Solution Section
========================================= */
.solution-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.solution-text {
    flex: 1;
}

.solution-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.solution-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1.05rem;
}

.solution-list li i {
    margin-top: 0.3rem;
}

.solution-image-placeholder {
    flex: 1;
    padding: 1.5rem;
}

.fake-ui {
    background: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.ui-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.ui-body {
    padding: 1.5rem;
    position: relative;
}

.chat-msg {
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    max-width: 85%;
}

.chat-msg.user {
    background: rgba(255, 255, 255, 0.1);
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.chat-msg.ai {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

.loading-bar {
    height: 4px;
    width: 100px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    background-size: 200% 100%;
    animation: loadingBar 1.5s infinite linear;
    border-radius: 4px;
    margin-top: 1rem;
}

/* =========================================
   Benefits Section
========================================= */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    padding: 2.5rem 2rem;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: rgba(139, 92, 246, 0.5);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.benefit-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   Modules Section (Temario)
========================================= */
.modules-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.module-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    align-items: flex-start;
    transition: transform var(--transition-fast);
}

.module-item:hover {
    transform: translateX(10px);
    border-color: rgba(6, 182, 212, 0.4);
}

.module-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.module-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.module-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   Instructor Section
========================================= */
.instructor-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.instructor-image {
    flex: 0 0 350px;
}

.instructor-image .img-wrapper {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 3/4;
}

.instructor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(110%);
}

.glow-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    z-index: -1;
    border-radius: calc(var(--border-radius-lg) + 2px);
    opacity: 0.5;
}

.instructor-info {
    flex: 1;
    max-width: 500px;
}

.instructor-role {
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.instructor-name {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.instructor-bio {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.instructor-bio strong {
    color: var(--text-primary);
}

/* =========================================
   Pricing Section
========================================= */
.pricing-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
    position: relative;
}

.glow-border-intense {
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15), inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.pricing-header h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.price-tag {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.2rem;
    margin-bottom: 2rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #a0a0b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.period {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.pricing-features {
    text-align: left;
    margin-bottom: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.pricing-features ul li strong {
    color: var(--text-primary);
}

.pricing-features ul li {
    color: var(--text-secondary);
}

.pricing-urgency {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

/* =========================================
   FAQ Section
========================================= */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: background-color var(--transition-fast);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}

.faq-question h3 {
    font-size: 1.1rem;
}

.faq-question i {
    color: var(--accent-secondary);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal) ease-out;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}

/* =========================================
   Footer
========================================= */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--bg-main);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   Floating WhatsApp Button
========================================= */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--wa-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform var(--transition-fast);
}

.floating-wa:hover {
    transform: scale(1.1);
}


/* =========================================
   Registration Form Styles
========================================= */
.registration-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   Animations
========================================= */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
    }

    100% {
        box-shadow: 0 0 30px rgba(139, 92, 246, 0.8), 0 0 50px rgba(6, 182, 212, 0.4);
    }
}

@keyframes waPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes loadingBar {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Scroll Reveal Classes (Handled by JS) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Media Queries (Responsive)
========================================= */
@media (max-width: 992px) {

    .solution-container,
    .instructor-container {
        flex-direction: column;
        gap: 3rem;
    }

    .solution-image-placeholder,
    .instructor-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .section {
        padding: 4rem 0;
    }

    .pricing-card {
        padding: 2rem;
    }

    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}