:root {
    /* Colores exactos del prototipo HTML */
    --primary: #4f46e5; /* Indigo */
    --secondary: #7c3aed; /* Purple */
    --gray-bg: #f3f4f6;
    --white: #ffffff;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --sidebar-w: 260px;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

html, body { 
    max-width: 100vw; 
    overflow-x: hidden; 
}
body { 
    background: var(--gray-bg); 
    color: var(--text-dark); 
    line-height: 1.6; 
}
a { color: var(--primary); text-decoration: none; transition: 0.3s; }

/* === MUNDO PÚBLICO === */
.public-page { padding-top: 75px; }
.main-nav-container {
    position: fixed; top: 0; width: 100%; height: 75px;
    z-index: 2000; display: flex; align-items: center; padding: 0 5%;
    transform: translateZ(0); 
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255,255,255,1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.main-nav-container.scrolled {
    background-color: rgba(255,255,255,0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.nav-content { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-size: 1.5rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-muted); font-weight: 600; }
.nav-links a:hover { color: var(--primary); }

/* === MUNDO DASHBOARD (ESTILO PROTOTIPO) === */
.layout-admin .dashboard-container { display: flex; width: 100%; min-height: 100vh; }
.layout-admin .sidebar {
    width: var(--sidebar-w); 
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    color: white; height: 100vh; position: fixed; top: 0; left: 0; z-index: 1000;
}
.layout-admin .dashboard-content { flex: 1; margin-left: var(--sidebar-w); background: var(--gray-bg); }
.dashboard-header { height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }
.dashboard-body { padding: 0 40px 40px 40px; }

/* MENU LATERAL */
.sidebar-header { padding: 30px 25px; font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px;}
.sidebar-nav ul { list-style: none; padding: 10px 15px; }
.sidebar-nav li { margin-bottom: 8px; }
.sidebar-nav li a { display: flex; align-items: center; padding: 12px 20px; color: rgba(255,255,255,0.8); gap: 15px; border-radius: 12px; font-weight: 500; }
.sidebar-nav li.active a, .sidebar-nav li a:hover { background: rgba(255,255,255,0.2); color: white; }

/* UI COMPONENTES (TARJETAS PROTOTIPO) */
.page-header { margin-bottom: 30px; }
.page-header h1 { font-size: 1.8rem; font-weight: 700; color: var(--text-dark); margin-bottom: 5px; }
.page-header p { color: var(--text-muted); }

.card { 
    background: #fff; border-radius: 24px; padding: 30px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); margin-bottom: 24px; border: none; 
}
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.card-header h2 { font-size: 1.25rem; font-weight: 700; color: var(--text-dark); display: flex; align-items: center; gap: 10px;}

/* BOTONES Y FORMS */
.btn { padding: 12px 24px; border-radius: 12px; font-weight: 600; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 8px; transition: 0.3s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #4338ca; box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3); transform: translateY(-2px);}
.btn-nav { padding: 10px 20px; border-radius: 10px; font-weight: 600; }
.btn-register { background: var(--primary); color: white !important; }

/* UTILIDADES PARA ICONOS (COMO EN EL PROTOTIPO) */
.icon-box { width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.icon-indigo { background: #e0e7ff; color: var(--primary); }
.icon-green { background: #dcfce7; color: #16a34a; }
.icon-orange { background: #ffedd5; color: #ea580c; }

/* === ESTILOS PARA FORMULARIOS (PERFIL) === */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; padding: 14px 18px; border: 1.5px solid #e5e7eb; 
    border-radius: 12px; font-size: 0.95rem; outline: none; transition: 0.3s;
    background: #f9fafb; color: var(--text-dark); font-weight: 500;
}
.form-group input:focus, .form-group select:focus { 
    border-color: var(--primary); background: var(--white); 
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); 
}
.form-group input:disabled { background: #e5e7eb; cursor: not-allowed; opacity: 0.7; }
.form-group small { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--text-muted); }

/* === BARRAS DE PROGRESO === */
.progress-bar-container { 
    width: 100%; background: #e5e7eb; border-radius: 999px; 
    height: 12px; overflow: hidden; margin: 15px 0; 
}
.progress-fill { 
    height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); 
    border-radius: 999px; transition: width 1s ease-in-out; 
}

/* === BADGES (ETIQUETAS) === */
.badge { padding: 6px 14px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; display: inline-block; }
.badge.active, .badge.completed { background: #d1fae5; color: #065f46; }
.badge.pending { background: #fef3c7; color: #92400e; }

.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon i { position: absolute; right: 15px; color: var(--text-muted); cursor: pointer; }

/* Ocultar menú hamburguesa en PC */
@media (min-width: 769px) {
    #menuToggle { display: none; }
}

/* Estilos para el Avatar en el Header */
.user-info { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--text-dark); cursor: pointer; }
.header-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary); background: #e5e7eb; }

/* ============================================
   INNOVAING ACADEMY - HOME MODERNIZACIÓN 2026
   ============================================ */

/* --- HERO --- */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 100px 5% 80px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79,70,229,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { flex: 1.2; min-width: 320px; position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e0e7ff;
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}
.hero-section h1 {
    font-size: 3.8rem;
    line-height: 1.05;
    margin: 0 0 25px;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -1px;
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 35px;
    color: var(--text-muted);
    max-width: 550px;
    line-height: 1.7;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
}
.stat-item { text-align: center; }
.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: #e5e7eb;
}
.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.btn-lg {
    padding: 18px 35px;
    border-radius: 16px;
    font-size: 1.1rem;
}
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.btn-white {
    background: white;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.trust-badges {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.trust-badges i {
    color: var(--primary);
    margin-right: 5px;
}

/* Hero Visual */
.hero-visual {
    flex: 0.9;
    min-width: 320px;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-main-graphic {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 60px rgba(79,70,229,0.3);
    position: relative;
    z-index: 2;
}
.hero-main-graphic i {
    font-size: 8rem;
    color: rgba(255,255,255,0.9);
}
.hero-card-float {
    position: absolute;
    background: white;
    padding: 15px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--text-dark);
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}
.hero-card-float i {
    font-size: 1.5rem;
    color: var(--primary);
}
.card-1 { top: 10%; left: 0; animation-delay: 0s; }
.card-2 { top: 50%; right: 0; animation-delay: 2s; }
.card-3 { bottom: 10%; left: 10%; animation-delay: 4s; }
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* --- FEATURES BAR --- */
.features-bar {
    background: white;
    padding: 40px 5%;
    border-bottom: 1px solid #edf2f7;
}
.features-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}
.feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 3px;
}
.feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}
.icon-purple { background: #f3e8ff; color: #9333ea; }

/* --- SECTIONS GLOBAL --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.section-tag {
    display: inline-block;
    background: #e0e7ff;
    color: var(--primary);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- PROGRAMAS --- */
.section-programs {
    padding: 100px 5%;
    background: #fcfcfd;
}
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}
.course-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #edf2f7;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}
.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #c7d2fe;
}
.course-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.course-icon i {
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
}
.course-badge-top {
    position: absolute;
    top: 15px;
    right: 15px;
}
.badge-live {
    background: #fee2e2;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-live i { font-size: 0.5rem; animation: pulse 2s infinite; }
.course-body { padding: 30px; flex: 1; }
.course-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-weight: 600;
}
.course-meta i { color: var(--primary); margin-right: 5px; }
.course-body h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.3;
}
.course-body > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}
.course-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.course-features span {
    font-size: 0.85rem;
    color: #059669;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.course-features i { font-size: 0.7rem; }
.course-footer {
    padding: 25px 30px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}
.price-value {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

/* --- COMO FUNCIONA --- */
.section-steps {
    padding: 100px 5%;
    background: white;
}
.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}
.step-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    min-width: 220px;
    max-width: 260px;
    position: relative;
    transition: all 0.3s ease;
}
.step-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(79,70,229,0.1);
}
.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}
.step-icon {
    width: 70px;
    height: 70px;
    background: #e0e7ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 20px;
}
.step-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}
.step-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-dark);
}
.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.step-arrow {
    color: #d1d5db;
    font-size: 1.5rem;
}

/* --- SOBRE NOSOTROS --- */
.section-about {
    padding: 100px 5%;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.about-grid {
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: wrap;
}
.about-content { flex: 1; min-width: 320px; }
.about-content > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}
.about-values {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}
.value-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.value-item i {
    width: 50px;
    height: 50px;
    background: #e0e7ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.value-item h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: var(--text-dark);
}
.value-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
.about-visual { flex: 0.8; min-width: 300px; }
.about-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.about-stat {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 20px;
}
.about-stat:last-child { border: none; padding: 0; }
.about-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.about-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* --- STAFF --- */
.section-staff {
    padding: 100px 5%;
    background: white;
}
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}
.staff-category {
    background: white;
    border: 2px solid #f3f4f6;
    border-radius: 24px;
    padding: 35px;
    transition: all 0.3s ease;
}
.staff-category:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}
.staff-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.staff-icon i {
    font-size: 1.5rem;
    color: white;
}
.staff-category h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.staff-category > p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}
.staff-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag {
    background: #f3f4f6;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.staff-cta {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 24px;
}
.staff-cta p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- TESTIMONIOS --- */
.section-testimonials {
    padding: 100px 5%;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
.testimonial-stars {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.testimonial-card > p {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.author-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.9rem;
}
.testimonial-author strong {
    display: block;
    color: var(--text-dark);
    font-weight: 700;
}
.testimonial-author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- FAQ --- */
.section-faq {
    padding: 100px 5%;
    background: white;
}
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.faq-question {
    width: 100%;
    padding: 25px 30px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
}
.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 30px 25px 30px;
}

/* --- BOTONES ADICIONALES --- */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
    border-radius: 10px;
}

.btn-success {
    background: #22c55e;
    color: white;
}
.btn-success:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.btn-danger {
    background: #ef4444;
    color: white;
}
.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Boton outline mejorado para fondos claros */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* --- TABLAS --- */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table thead th {
    text-align: left;
    padding: 0.875rem 1rem;
    font-weight: 600;
    color: #475569;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #f8fafc;
}

.data-table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    color: #334155;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

/* --- ENLACES DASHBOARD --- */
.dash-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
}

.dash-link:hover {
    text-decoration: underline;
    color: #4338ca;
}

/* --- CODIGOS Y REFERENCIAS --- */
code {
    font-family: 'Courier New', monospace;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
}

/* --- FIX DE CONTRASTE: Texto muted mas oscuro --- */
.text-muted {
    color: #6b7280;
}

/* --- FIX: Enlaces siempre visibles --- */
a:not(.btn):not(.nav-links a):not(.sidebar-nav a):not(.dash-link) {
    color: var(--primary);
    font-weight: 500;
}

a:not(.btn):hover {
    color: #4338ca;
}

/* --- FIX: Tablas en dashboard admin --- */
.dash-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dash-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.stat-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* --- MEJORAS DE NAVEGACIÓN --- */
.desktop-menu { display: flex; align-items: center; }

/* Botón Hamburguesa */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
}

/* Menú Desplegable Mobile */
.mobile-dropdown {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
    z-index: 1000;
}

.mobile-link {
    padding: 15px 0;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid #f9fafb;
}

/* Estado Activo en PC */
.nav-anchor {
    position: relative;
    padding: 5px 10px;
    transition: 0.3s;
}

.nav-anchor.active {
    color: var(--primary) !important;
    background: #eff6ff;
    border-radius: 8px;
}

/* --- FIX FOOTER Y MOBILE --- */
@media (max-width: 768px) {
    .desktop-menu { display: none !important; }
    .mobile-menu-toggle { display: block; }
    .mobile-dropdown.show { display: flex; }
    
    /* Arreglo de Footer recortado */
    footer {
        padding: 40px 20px !important;
    }
    footer > div > div {
        grid-template-columns: 1fr !important; /* Una sola columna en mobile */
        gap: 30px !important;
    }
    footer form {
        max-width: 100% !important;
    }
}

/* Asegurar que el footer no se desborde */
footer * {
    max-width: 100%;
    box-sizing: border-box;
}

.dash-stat-card.primary .stat-icon-wrap { background: #e0e7ff; color: var(--primary); }
.dash-stat-card.success .stat-icon-wrap { background: #d1fae5; color: #059669; }
.dash-stat-card.warning .stat-icon-wrap { background: #fef3c7; color: #b45309; }
.dash-stat-card.danger .stat-icon-wrap { background: #fee2e2; color: #dc2626; }

/* ==========================================
   FIX: BOTONES DE CURSOS VISIBLES
   ========================================== */
.btn-course {
    color: #ffffff !important; /* Fuerza el color blanco */
    justify-content: center;
}
.btn-course i {
    color: #ffffff !important;
}

/* ==========================================
   ANIMACIONES MODERNAS (SCROLL REVEAL)
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   FIX DEFINITIVO: CONTRASTE DE BOTONES
   Asegura letras blancas brillantes sobre 
   fondos oscuros (Primarios, Info, Success)
   ========================================== */
.btn-primary, 
.btn-success, 
.btn-danger, 
.btn-tc-action:hover,
.btn-course,
.nav-anchor.active,
.btn-buy-modern,
.action-pill.active {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Fix específico de iconos dentro del botón */
.btn-primary i, .btn-success i, .btn-danger i, .btn-course i {
    color: #ffffff !important;
}

/* Modales e inputs con mejor legibilidad */
.modern-modal p, .modern-modal label {
    color: #334155 !important;
}
/* ==========================================
   FIX UX: Ocultar flechas en inputs numéricos
   ========================================== */
input[type="number"], input[type="tel"] {
  -moz-appearance: textfield; 
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* ========================================== */