/* ==========================================================================
   Maya - Premium Landing Page Stylesheet
   ========================================================================== */

/* Variables de Diseño System */
:root {
    --bg-dark: #0a0c10;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(124, 58, 237, 0.4);
    
    --color-primary: #7c3aed; /* Violeta */
    --color-primary-glow: rgba(124, 58, 237, 0.3);
    --color-secondary: #f59e0b; /* Oro */
    --color-secondary-glow: rgba(245, 158, 11, 0.2);
    --color-text-main: #f3f4f6;
    --color-text-muted: #9ca3af;
    --color-error: #ef4444;

    --font-heading: 'Outfit', 'Playfair Display', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Estilos Globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Efectos de Brillo de Fondo */
.bg-glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.bg-glow-2 {
    position: absolute;
    top: 50%;
    left: -20%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
}

/* Contenedor */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    padding: 1.5rem 0;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-main);
    text-decoration: none;
    letter-spacing: -0.05em;
    font-family: var(--font-heading);
}

.logo span {
    color: var(--color-primary);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--color-text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem 0;
    text-align: center;
    position: relative;
}

.hero-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: inline-block;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-title span {
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
    font-size: 1rem;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary:hover {
    background: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    border: 1px solid var(--border-glass);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Glassmorphism General Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    transition: var(--transition-smooth);
}

/* Planes Section */
.planes-section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Paso 1: Email Card */
.email-card {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    padding: 2rem;
}

.email-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.step-badge {
    background: var(--color-secondary-glow);
    color: var(--color-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.email-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.email-help {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
    width: 100%;
}

.email-card input[type="email"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.email-card input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary-glow);
}

.email-card input[type="email"].invalid {
    border-color: var(--color-error);
}

.input-error {
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

.input-error.visible {
    display: block;
}

/* Paso 2: Planes Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 4rem;
}

.plan-card {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.plan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.plan-card.selected {
    border-color: var(--color-primary);
    box-shadow: 0 0 30px var(--color-primary-glow);
    background: rgba(124, 58, 237, 0.05);
}

.plan-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
}

.plan-card.featured .plan-badge {
    color: var(--color-secondary);
    background: var(--color-secondary-glow);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.plan-card.selected .plan-badge {
    color: #fff;
    background: var(--color-primary);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    font-family: var(--font-heading);
}

.plan-price span {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-left: 0.25rem;
    font-weight: 500;
}

.plan-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.plan-features li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features li::before {
    content: "✓";
    color: var(--color-primary);
    font-weight: bold;
}

.plan-card.featured .plan-features li::before {
    color: var(--color-secondary);
}

.btn-card-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text-main);
    border: 1px solid var(--border-glass);
}

.btn-card-select:hover,
.plan-card.selected .btn-card-select {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

.plan-card.featured .btn-card-select {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--color-secondary);
}

.plan-card.featured.selected .btn-card-select,
.plan-card.featured .btn-card-select:hover {
    background: var(--color-secondary);
    color: #000;
    border-color: var(--color-secondary);
    box-shadow: 0 4px 15px var(--color-secondary-glow);
}

/* Paso 3: Checkout Card */
.checkout-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.checkout-card.hidden {
    display: none;
}

.checkout-header {
    margin-bottom: 2rem;
}

.checkout-header h3 {
    font-size: 1.5rem;
    margin-top: 0.5rem;
}

.checkout-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.checkout-summary p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.checkout-summary p:last-child {
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.75rem;
}

.checkout-summary strong {
    color: var(--color-text-main);
}

.paypal-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Cómo Funciona */
.how-it-works {
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid var(--border-glass-active);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem auto;
}

.step-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.step-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Quién soy */
.about-section {
    padding: 4rem 0 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.about-text strong {
    color: var(--color-text-main);
}

.about-text a {
    color: #38bdf8;
    text-decoration: none;
    border-bottom: 1px solid rgba(56, 189, 248, 0.4);
}

.about-text a:hover {
    border-bottom-color: #38bdf8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

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

/* Qué aprendés */
.tracks-section {
    padding: 4rem 0 2rem 0;
}

.tracks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.track-card {
    padding: 2.5rem 2rem;
}

.track-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.track-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.track-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.track-card .plan-features {
    margin-bottom: 0;
}

/* FAQ */
.faq-section {
    padding: 4rem 0 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-list {
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    padding: 0;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem 1.75rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: var(--transition-smooth);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: 400;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item summary:hover {
    background: var(--bg-card-hover);
}

.faq-item p {
    padding: 0 1.75rem 1.5rem 1.75rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Footer links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-text-main);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .about-card {
        padding: 2rem 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .nav {
        display: none; /* Simplificado para móviles */
    }
}
