:root {
    /* Paleta de colores moderna y cohesiva - Inspired by Tailwind & Modern Design */
    --primary: #6366f1; /* Indigo vibrante */
    --primary-light: #8b5cf6; /* Purple suave */
    --primary-dark: #4338ca; /* Indigo oscuro */
    --secondary: #06b6d4; /* Cyan brillante */
    --tertiary: #8b5cf6; /* Purple */
    --accent: #f59e0b; /* Amber cálido */
    --success: #059669; /* Emerald */
    --warning: #d97706; /* Orange */
    --error: #dc2626; /* Red */
    --info: #0284c7; /* Sky blue */
    
    /* Neutrales elegantes */
    --dark: #0f172a; /* Slate 900 */
    --dark-light: #334155; /* Slate 700 */
    --medium: #64748b; /* Slate 500 */
    --light: #f8fafc; /* Slate 50 */
    --gray: #e2e8f0; /* Slate 200 */
    --gray-dark: #94a3b8; /* Slate 400 */
    --white: #ffffff;
    
    /* Colores especiales para semántica */
    --xml-color: #6366f1; /* Indigo */
    --json-color: #059669; /* Emerald */
    --yaml-color: #d97706; /* Orange */
    --markdown-color: #8b5cf6; /* Purple */
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Bordes */
    --radius-sm: 0.25rem;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    /* Tipografía */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

/* Enlaces */
a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

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

.text-gradient {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navbar Glassmorphism */
.navbar-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar-glass.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.logo-text {
    font-family: var(--font-heading);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Dropdown moderno */
.dropdown-menu-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    margin: 0.125rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:hover {
    background: rgba(109, 40, 217, 0.1);
}

.dropdown-item-accent {
    background: rgba(109, 40, 217, 0.05);
    color: var(--primary);
    font-weight: 500;
}

.dropdown-item-accent:hover {
    background: rgba(109, 40, 217, 0.15);
}

.dropdown-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    display: inline-flex;
    justify-content: center;
}

/* Hero Section - Diseño mejorado */
.hero-section {
    position: relative;
    padding: 10rem 0 8rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
    overflow: hidden;
    margin-top: 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--dark-light);
    margin-bottom: 2rem;
    max-width: 80%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-code {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 400px;
    overflow: hidden;
}

.hero-code pre {
    margin: 0;
    background: transparent !important;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--dark);
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%236d28d9"></path><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%236d28d9"></path><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%236d28d9"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
}

/* Secciones */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    display: inline-block;
    background: rgba(109, 40, 217, 0.1);
    color: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--dark-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Tarjetas de semana */
.semana-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.semana-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.card-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-list {
    list-style: none;
}

.card-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.list-icon {
    font-size: 1.25rem;
    width: 1.5rem;
    display: inline-flex;
    justify-content: center;
}

.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray);
    display: flex;
    gap: 0.75rem;
}

/* Tarjetas de características */
.features-section {
    margin: 4rem 0;
}

.feature-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--dark-light);
}

/* Botones modernos */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: rgba(109, 40, 217, 0.1);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-dark);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--gray-dark);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--gray-dark);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Efectos y animaciones */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* ======================
   EFECTOS ANIMADOS
   ====================== */

/* Efecto ripple para botones */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Efecto de luz en tarjetas */
.semana-card {
    position: relative;
    overflow: hidden;
}

.semana-card::before {
    content: '';
    position: absolute;
    top: calc(var(--mouse-y, -9999px) - 50px);
    left: calc(var(--mouse-x, -9999px) - 50px);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.semana-card:hover::before {
    opacity: 1;
}

/* Animaciones */
.animate__animated {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

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

/* ======================
   EFECTOS ANIMADOS
   ====================== */

/* Efecto ripple para botones */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Efecto de luz en tarjetas */
.semana-card {
    position: relative;
    overflow: hidden;
}

.semana-card::before {
    content: '';
    position: absolute;
    top: calc(var(--mouse-y, -9999px) - 50px);
    left: calc(var(--mouse-x, -9999px) - 50px);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.semana-card:hover::before {
    opacity: 1;
}

/* Animaciones */
.animate__animated {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

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

/* Reducir movimiento para preferencias de accesibilidad */
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/* ======================
   ESTILOS ADICIONALES MODERNOS
   ====================== */

/* Mejoras de tarjetas con gradientes sutiles */
.semana-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
}

.semana-card:hover {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.25);
}

/* Badges mejorados */
.card-badge {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50px;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botones con mejor UX */
.btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.4);
}

/* Mejor tipografía */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title {
    font-weight: 700;
    color: var(--dark);
}

/* Cards con mejor espaciado */
.feature-card {
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.15);
}

/* Iconos con estilo */
.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: white;
}

/* Navbar mejorada */
.navbar-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Footer moderno */
.footer {
    background: linear-gradient(135deg, var(--dark) 0%, #1f2937 100%);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
}

/* Responsive design mejorado */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 6rem 0 4rem;
        min-height: auto;
    }
    
    .hero-code {
        position: static;
        transform: none;
        margin-top: 2rem;
        max-width: 100%;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ======================
   ESTILOS PARA NUEVAS SECCIONES
   ====================== */

/* Estadísticas del hero */
.hero-stats {
    margin: 2rem 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--medium);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sección de aprendizaje */
.learning-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.learning-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.learning-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 20px 40px -12px rgba(59, 130, 246, 0.15);
}

.learning-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto 1.5rem;
    color: white;
    font-family: 'Courier New', monospace;
}

.xml-icon {
    background: linear-gradient(135deg, var(--xml-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.json-icon {
    background: linear-gradient(135deg, var(--json-color) 0%, #047857 100%);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
}

.yaml-icon {
    background: linear-gradient(135deg, var(--yaml-color) 0%, #c2410c 100%);
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3);
}

.md-icon {
    background: linear-gradient(135deg, var(--markdown-color) 0%, #7c3aed 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.learning-card h4 {
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 600;
}

.learning-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.learning-list li {
    padding: 0.5rem 0;
    color: var(--medium);
    position: relative;
    padding-left: 1.5rem;
}

.learning-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* Sección "Por qué" */
.why-section {
    padding: 4rem 0;
    margin: 4rem 0;
}

.why-list {
    list-style: none;
    padding: 0;
}

.why-list li {
    padding: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.why-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.why-visual {
    padding: 2rem;
}

.code-example {
    background: var(--dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.code-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
}

.code-tab {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.code-tab.active {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

.code-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.code-content {
    margin: 0;
    padding: 1.5rem;
    background: transparent;
    color: #e5e7eb;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .hero-stats .col-6 {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .why-visual {
        padding: 1rem;
        margin-top: 2rem;
    }
    
    .learning-section,
    .why-section {
        padding: 2rem 0;
    }
}

/* ======================
   EJERCICIOS INTERACTIVOS INTEGRADOS
   ====================== */

.integrated-exercise {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid var(--primary);
    border-radius: 16px;
    margin: 3rem 0;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.integrated-exercise:hover {
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.exercise-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.exercise-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.exercise-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.exercise-description {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.exercise-body {
    padding: 2rem;
}

.exercise-instructions {
    background: rgba(99, 102, 241, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.exercise-instructions h6 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.mini-editor {
    background: var(--dark);
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e5e7eb;
    overflow-x: auto;
    margin: 1rem 0;
    min-height: 150px;
    resize: vertical;
    width: 100%;
}

.mini-editor:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.exercise-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-validate {
    background: linear-gradient(90deg, var(--success) 0%, #047857 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-validate:hover {
    background: linear-gradient(90deg, #047857 0%, #065f46 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -3px rgba(5, 150, 105, 0.4);
}

.btn-hint {
    background: linear-gradient(90deg, var(--warning) 0%, #c2410c 100%);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-hint:hover {
    background: linear-gradient(90deg, #c2410c 0%, #9a3412 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px -3px rgba(217, 119, 6, 0.4);
}

.exercise-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    display: none;
    animation: slideIn 0.3s ease;
}

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

.exercise-result.success {
    background: rgba(5, 150, 105, 0.1);
    border-color: var(--success);
    color: #065f46;
}

.exercise-result.error {
    background: rgba(220, 38, 38, 0.1);
    border-color: var(--error);
    color: #991b1b;
}

.exercise-hint {
    background: rgba(217, 119, 6, 0.1);
    border-left: 4px solid var(--warning);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 8px 8px 0;
    display: none;
    animation: slideIn 0.3s ease;
}

.exercise-hint h6 {
    color: var(--warning);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Progress indicator for exercises */
.exercise-progress {
    position: absolute;
    top: 0;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0.75rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Responsive design for exercises */
@media (max-width: 768px) {
    .exercise-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-validate,
    .btn-hint {
        justify-content: center;
        width: 100%;
    }
    
    .exercise-body {
        padding: 1.5rem;
    }
}
