:root {
    --bg-dark: #070913;
    --bg-card: rgba(18, 22, 41, 0.55);
    --border-color: rgba(255, 255, 255, 0.06);
    
    --primary: #4f46e5; /* Indigo */
    --primary-light: #6366f1;
    --secondary: #06b6d4; /* Cyan */
    --accent: #f59e0b; /* Amber */
    --whatsapp-color: #25d366;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-bg: radial-gradient(circle at 50% 0%, #151a3a 0%, var(--bg-dark) 75%);
}

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

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

body {
    background-color: var(--bg-dark);
    background-image: var(--gradient-bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #ffffff;
}

p {
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Ambient Background Glows */
.mesh-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    pointer-events: none;
    opacity: 0.12;
}

.mesh-glow-1 {
    background: var(--primary);
    top: -10vw;
    left: -10vw;
}

.mesh-glow-2 {
    background: var(--secondary);
    bottom: 20vw;
    right: -10vw;
}

/* Glassmorphism */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    transition: var(--transition-smooth);
}

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

section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin: 15px 0;
}

.section-header p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: var(--whatsapp-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background: #20ba59;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
    border-radius: 14px;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 9, 19, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--secondary);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

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

.nav-links a:hover {
    color: #ffffff;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.3);
    border-radius: 30px;
    color: var(--primary-light);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text p.lead {
    font-size: 1.15rem;
    font-weight: 300;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.floating-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 380px;
    animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    align-self: flex-end;
    animation-delay: -3s;
}

.visual-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary-light);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.visual-icon.gold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
}

.floating-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.floating-card p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Metrics Section */
.metrics-section {
    padding: 40px 0;
    background: rgba(18, 22, 41, 0.3);
    border-y: 1px solid var(--border-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.metric-card {
    padding: 20px;
}

.metric-number {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.metric-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Benefits Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 48px 32px;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 28px;
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Curriculum / Plan de estudios */
.tabs-container {
    padding: 40px;
}

.tabs-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    padding: 12px 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
}

.tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: #ffffff;
    background: rgba(79, 70, 229, 0.15);
    box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.3);
}

.tab-num {
    font-size: 0.85rem;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: var(--text-muted);
}

.tab-btn.active .tab-num {
    background: var(--primary);
    color: #ffffff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.tab-text h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.tab-text p {
    font-size: 1.05rem;
    margin-bottom: 24px;
    font-weight: 300;
}

.curriculum-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.curriculum-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.curriculum-list li i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.tab-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.1);
    border: 2px dashed rgba(79, 70, 229, 0.3);
    font-size: 4rem;
    color: var(--primary-light);
}

.tab-badge.gold {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--accent);
}

.tab-badge.purple {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--secondary);
}

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

.faq-item {
    border-radius: 14px;
    overflow: hidden;
}

.faq-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.faq-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-arrow {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.01);
}

.faq-body p {
    padding: 0 32px 24px 32px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer CTA */
.footer-cta {
    padding: 120px 0;
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.1) 0%, transparent 60%);
}

.footer-cta h2 {
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.footer-cta p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-weight: 300;
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-grid p {
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

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

.footer-links a:hover {
    color: #ffffff;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .floating-card {
        max-width: 100%;
        width: 100%;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .curriculum-list {
        align-items: center;
    }
    
    .tab-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(7, 9, 19, 0.98);
        border-bottom: 1px solid var(--border-color);
        padding: 40px 24px;
        gap: 24px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.75rem;
    }
    
    .tabs-header {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
}
