/* ========================= */
/* VARIABLES Y RESET         */
/* ========================= */
:root {
    --navy: #1B2A4A;
    --navy-light: #243556;
    --teal: #00897B;
    --teal-dark: #00695C;
    --teal-glow: rgba(0,137,123,0.12);
    --gold: #D4A017;
    --gold-light: #E6B422;
    --bg: #F7F8FB;
    --bg-card: #FFFFFF;
    --bg-elevated: #FFFFFF;
    --text: #1A2332;
    --text-light: #546E7A;
    --text-muted: #90A4AE;
    --border: #E0E6ED;
    --shadow: 0 2px 12px rgba(27,42,74,0.06);
    --shadow-hover: 0 6px 24px rgba(27,42,74,0.12);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255,255,255,0.7);
    --glass-border: rgba(255,255,255,0.3);
    --glass-blur: 20px;
    --navbar-bg: rgba(27,42,74,0.97);
    --navbar-border: rgba(255,255,255,0.08);
    --overlay-bg: rgba(15,27,51,0.7);
}

/* === DARK THEME === */
[data-theme="dark"] {
    --bg: #0F1420;
    --bg-card: #1A1F2E;
    --bg-elevated: #222738;
    --text: #E2E8F0;
    --text-light: #94A3B8;
    --text-muted: #64748B;
    --border: #2D3548;
    --shadow: 0 2px 12px rgba(0,0,0,0.25);
    --shadow-hover: 0 6px 24px rgba(0,0,0,0.35);
    --glass-bg: rgba(26,31,46,0.8);
    --glass-border: rgba(255,255,255,0.06);
    --navbar-bg: rgba(15,20,32,0.97);
    --navbar-border: rgba(255,255,255,0.05);
    --overlay-bg: rgba(0,0,0,0.8);
}

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

/* Skip to content — accessibility */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--navy);
    color: white;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* ========================= */
/* NAVEGACIÓN                */
/* ========================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(27,42,74,0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 2rem;
    transition: var(--transition);
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 12px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.logo-text {
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
}

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

/* Main nav links */
.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: white;
    background: rgba(0,191,166,0.15);
}

.nav-cta {
    background: var(--teal) !important;
    color: white !important;
    font-weight: 600 !important;
}

.nav-cta:hover { background: var(--teal-dark) !important; }

/* Utility area (right side: auth + dark mode + language) */
.nav-utility {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nav-mobile-auth { display: none; }

.nav-utility-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-utility-btn:hover {
    background: rgba(255,255,255,0.14);
    color: white;
    border-color: rgba(255,255,255,0.25);
}

.nav-utility-btn.active {
    background: rgba(0,191,166,0.15);
    color: var(--teal);
    border-color: rgba(0,191,166,0.3);
}

/* Language toggle pill */
.lang-toggle {
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    overflow: hidden;
    height: 38px;
    flex-shrink: 0;
    cursor: pointer;
}

.lang-option {
    padding: 0 12px;
    height: 100%;
    display: flex;
    align-items: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.lang-option:hover {
    color: rgba(255,255,255,0.8);
}

.lang-option.active {
    background: rgba(0,191,166,0.2);
    color: white;
}

.lang-divider {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================= */
/* HERO                      */
/* ========================= */
.hero {
    min-height: 100vh;
    background: linear-gradient(160deg, var(--navy) 0%, #152238 40%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 2rem 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,137,123,0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(212,160,23,0.05) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    border-radius: 50%;
}

.hero-content {
    max-width: 1280px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,191,166,0.12);
    border: 1px solid rgba(0,191,166,0.25);
    padding: 6px 16px;
    border-radius: 50px;
    color: var(--teal);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.18;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--teal), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: rgba(255,255,255,0.65);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ========================= */
/* BOTONES                   */
/* ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--teal);
    color: white;
    box-shadow: 0 2px 8px rgba(0,137,123,0.2);
}

.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,137,123,0.25);
}

.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

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

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
}

/* ========================= */
/* ESTADÍSTICAS HERO         */
/* ========================= */
.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.stat { text-align: left; }

.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.stat-number span { color: var(--teal); }

.stat-label {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ========================= */
/* HERO VISUAL (CARD)        */
/* ========================= */
.hero-visual {
    position: relative;
    animation: fadeInRight 0.8s ease-out 0.3s both;
}

.hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(10px);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.hero-card-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #FF6B6B; }
.dot-yellow { background: var(--gold); }
.dot-green { background: var(--teal); }

.mini-course {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.mini-course:hover {
    background: rgba(0,191,166,0.08);
    border-color: rgba(0,191,166,0.2);
}

.mini-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.mini-course-info h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.mini-course-info p {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

.mini-progress {
    margin-left: auto;
    width: 48px;
    height: 48px;
    position: relative;
}

.mini-progress svg {
    transform: rotate(-90deg);
    width: 48px;
    height: 48px;
}

.mini-progress circle {
    fill: none;
    stroke-width: 4;
}

.progress-bg { stroke: rgba(255,255,255,0.08); }

.progress-fill {
    stroke: var(--teal);
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease-out;
}

.mini-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ========================= */
/* SECCIONES GENERALES       */
/* ========================= */
.section {
    padding: 100px 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--teal-glow);
    color: var(--teal-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 48px;
    max-width: 620px;
}

/* ========================= */
/* BÚSQUEDA DE CURSOS        */
/* ========================= */
.search-container {
    margin-bottom: 24px;
    position: relative;
    max-width: 400px;
}

.search-container input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    background: var(--bg-card);
    color: var(--text);
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}

.search-container input::placeholder { color: var(--text-muted); }

.search-container i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* ========================= */
/* TARJETAS DE CURSOS        */
/* ========================= */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.course-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--teal);
}

.course-banner {
    height: 4px;
    width: 100%;
}

.course-body { padding: 24px; }

.course-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.course-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.course-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.course-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.course-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.course-meta-item i { font-size: 0.85rem; }

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.level-basico { background: #E8F5E9; color: #2E7D32; }
.level-intermedio { background: #FFF3E0; color: #E65100; }
.level-avanzado { background: #FCE4EC; color: #C62828; }

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.course-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--navy);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.course-btn:hover { background: var(--teal); }

/* ========================= */
/* FUNCIONALIDADES           */
/* ========================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ========================= */
/* ECOSISTEMA DE HERRAMIENTAS */
/* ========================= */
.tools-container {
    background: var(--navy);
    border-radius: 24px;
    padding: 60px;
    margin-top: 48px;
    position: relative;
    overflow: hidden;
}

.tools-container::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0,191,166,0.1) 0%, transparent 70%);
    top: -100px;
    right: -50px;
}

.tools-container h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 8px;
    position: relative;
}

.tools-container > p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    position: relative;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    position: relative;
}

.tool-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
}

.tool-item:hover {
    background: rgba(0,191,166,0.1);
    border-color: rgba(0,191,166,0.3);
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tool-info h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.tool-info p {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

/* ========================= */
/* ROADMAP                   */
/* ========================= */
.roadmap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.roadmap-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 32px;
    position: relative;
    transition: var(--transition);
}

.roadmap-card:hover { box-shadow: var(--shadow); }

.roadmap-card.active {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px var(--teal-glow);
}

.roadmap-phase {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.roadmap-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.roadmap-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.roadmap-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-light);
}

.roadmap-list li i {
    color: var(--teal);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ========================= */
/* DASHBOARD PREVIEW         */
/* ========================= */
.dashboard-preview {
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.dashboard-topbar {
    background: var(--navy);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-topbar .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dashboard-body {
    padding: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.dash-widget {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 24px;
}

.dash-widget h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.dash-big-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy);
}

.dash-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.dash-bar-label {
    font-size: 0.82rem;
    color: var(--text-light);
    min-width: 80px;
}

.dash-bar-track {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.dash-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1.5s ease-out;
}

.dash-bar-pct {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    min-width: 36px;
    text-align: right;
}

/* ========================= */
/* CTA SECTION               */
/* ========================= */
.cta-section {
    background: linear-gradient(160deg, var(--navy), #152238);
    border-radius: 20px;
    padding: 72px 56px;
    text-align: center;
    margin: 0 2rem 100px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,191,166,0.12), transparent);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
}

.cta-section h2 {
    color: white;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
}

.cta-section p {
    color: rgba(255,255,255,0.6);
    font-size: 1.1rem;
    margin-bottom: 36px;
    position: relative;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ========================= */
/* FOOTER                    */
/* ========================= */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.5);
    padding: 60px 2rem 30px;
    border-top: 3px solid var(--teal);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer h4 {
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: block;
    margin-bottom: 8px;
}

.footer a:hover { color: var(--teal); }

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--teal);
    color: white;
}

.footer-newsletter {
    max-width: 1280px;
    margin: 32px auto 0;
    padding: 28px 32px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}
.footer-newsletter h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: white;
}
.footer-newsletter h4 i { color: var(--teal); margin-right: 6px; }
.newsletter-form {
    display: flex;
    max-width: 420px;
    margin: 0 auto;
    gap: 0;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255,255,255,0.15);
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: rgba(255,255,255,0.08);
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s ease;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: var(--teal); }
.newsletter-form button {
    padding: 12px 20px;
    background: var(--teal);
    color: white;
    border: 2px solid var(--teal);
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.25s ease;
}
.newsletter-form button:hover { background: var(--teal-dark); }
.newsletter-hint {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    margin-top: 8px;
}
.footer-bottom {
    max-width: 1280px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    font-size: 0.85rem;
}

/* ========================= */
/* MODAL                     */
/* ========================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 27, 51, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    animation: fadeInUp 0.3s ease-out;
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: #FCE4EC;
    color: #C62828;
    border-color: #C62828;
}

.modal-body { padding: 24px; }

.modal-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.modal-body .modal-category {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    display: inline-block;
}

.modal-body .modal-desc {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.modal-meta-item i { color: var(--teal); }

.modal-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    margin-top: 20px;
}

.modal-modules-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.modal-modules-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

.modal-modules-list li i { color: var(--teal); font-size: 0.85rem; }

.modal-requirements {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
}

.modal-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-light);
}

.modal-requirements li i { color: var(--gold); font-size: 0.8rem; }

.modal-footer {
    padding: 0 24px 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========================= */
/* TAB SYSTEM                */
/* ========================= */
.tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-light);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover { border-color: var(--teal); color: var(--teal); }

.tab-btn.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* ========================= */
/* ESTADO VACÍO (NO RESULTS) */
/* ========================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.empty-state p {
    font-size: 1.1rem;
}

/* ========================= */
/* ANIMACIONES               */
/* ========================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================= */
/* RESPONSIVE                */
/* ========================= */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-stats { justify-content: center; }
    .hero-buttons { justify-content: center; }
    .hero-visual { display: none; }
    .hero h1 { font-size: 2.4rem; }
    .dashboard-body { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .nav-utility { gap: 6px; }
    .nav-utility .nav-auth-item { display: none; }
    .nav-links .nav-mobile-auth { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .hero { min-height: auto; padding: 120px 1.5rem 60px; }
    .hero h1 { font-size: 2rem; }
    .hero-stats { flex-direction: column; gap: 20px; align-items: center; }
    .section { padding: 60px 1.5rem; }
    .section-title { font-size: 1.8rem; }
    .tools-container { padding: 32px 20px; }
    .cta-section { padding: 48px 24px; margin: 0 1rem 60px; }
    .cta-section h2 { font-size: 1.8rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .courses-grid { grid-template-columns: 1fr; }

    /* MOBILE: Bottom sheet modal */
    .modal-overlay { align-items: flex-end; padding: 0; }
    .modal {
        max-height: 85vh;
        border-radius: var(--radius) var(--radius) 0 0;
        margin: 0;
        animation: slideUpSheet 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* MOBILE: Touch-friendly targets */
    .btn, .course-btn { min-height: 44px; }
    .tab-btn { min-height: 44px; padding: 10px 16px; }
    .nav-links a { min-height: 44px; display: flex; align-items: center; }
    .quiz-option { min-height: 48px; padding: 14px 16px; }
    .cal-day { min-height: 40px; min-width: 40px; }

    /* MOBILE: Slide-in menu */
    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        background: var(--navy);
        padding: 80px 20px 20px;
        z-index: 999;
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .nav-links.open {
        display: flex;
        transform: translateX(0);
    }

    /* MOBILE: Toasts at bottom */
    .toast-container {
        top: auto;
        bottom: 80px;
        right: 12px;
        left: 12px;
        max-width: none;
    }

    /* MOBILE: Horizontal scroll snap for grids */
    .courses-grid,
    .labs-grid,
    .recursos-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
    }
    .courses-grid > *,
    .labs-grid > *,
    .recursos-grid > * {
        scroll-snap-align: start;
        min-width: 280px;
        flex-shrink: 0;
    }
    .courses-grid::-webkit-scrollbar,
    .labs-grid::-webkit-scrollbar,
    .recursos-grid::-webkit-scrollbar { height: 4px; }
    .courses-grid::-webkit-scrollbar-thumb,
    .labs-grid::-webkit-scrollbar-thumb,
    .recursos-grid::-webkit-scrollbar-thumb {
        background: var(--teal-glow);
        border-radius: 4px;
    }
}

/* Mobile backdrop */
.nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-backdrop.active {
    display: block;
    opacity: 1;
}

/* ========================= */
/* ENHANCED KEYFRAMES         */
/* ========================= */
@keyframes fadeInUpStagger {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,191,166,0); }
    50% { box-shadow: 0 0 20px 4px rgba(0,191,166,0.15); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideUpSheet {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}
@keyframes counterPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(5deg); }
    50% { transform: translate(-5px, -25px) rotate(-3deg); }
    75% { transform: translate(-15px, -10px) rotate(2deg); }
}
@keyframes confettiFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================= */
/* STAGGERED GRID SYSTEM      */
/* ========================= */
.stagger-grid > * {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
}
.stagger-grid.animated > * {
    animation: fadeInUpStagger 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.stagger-grid.animated > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-grid.animated > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-grid.animated > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-grid.animated > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-grid.animated > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-grid.animated > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-grid.animated > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-grid.animated > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-grid.animated > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-grid.animated > *:nth-child(10) { animation-delay: 0.5s; }
.stagger-grid.animated > *:nth-child(11) { animation-delay: 0.55s; }
.stagger-grid.animated > *:nth-child(12) { animation-delay: 0.6s; }

/* ========================= */
/* CLEAN OVERLAY EFFECTS      */
/* ========================= */
.navbar {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.modal {
    background: var(--bg-card) !important;
    border: 1px solid var(--border);
    animation: fadeInUp 0.25s ease-out;
}
.modal-overlay.active {
    background: var(--overlay-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.onboarding-card,
.password-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    animation: fadeInUp 0.3s ease-out;
}

/* ========================= */
/* PROFESSIONAL CARD EFFECTS  */
/* ========================= */
.course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.lab-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0,137,123,0.2);
}

/* ========================= */
/* SUBTLE BACKGROUND EFFECTS  */
/* ========================= */
.cta-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212,160,23,0.05) 0%, transparent 70%);
    bottom: -80px;
    right: -60px;
    border-radius: 50%;
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212,160,23,0.04) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    border-radius: 50%;
    pointer-events: none;
}

/* ========================= */
/* HAMBURGER → X ANIMATION    */
/* ========================= */
.hamburger span {
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================= */
/* MICRO-INTERACTIONS CSS     */
/* ========================= */

/* Tab sliding indicator */
.tab-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: var(--teal);
    border-radius: 3px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Input focus glow */
.input-focused input,
.input-focused select {
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 3px var(--teal-glow), 0 0 16px rgba(0,191,166,0.1) !important;
}
.form-group label { transition: color 0.2s ease; }
.input-focused label { color: var(--teal); }

/* Toast system */
.toast-container {
    position: fixed;
    top: 90px;
    right: 20px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 360px;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    font-size: 0.9rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: var(--text);
    animation: toastIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast-success { border-left: 4px solid #4CAF50; }
.toast-success i:first-child { color: #4CAF50; }
.toast-error { border-left: 4px solid #F44336; }
.toast-error i:first-child { color: #F44336; }
.toast-info { border-left: 4px solid #2196F3; }
.toast-info i:first-child { color: #2196F3; }
.toast-warning { border-left: 4px solid var(--gold); }
.toast-warning i:first-child { color: var(--gold); }
.toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 0.85rem;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--radius-sm);
}
.skeleton-card { height: 200px; border-radius: var(--radius); }
.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-text.short { width: 50%; }

/* Loading spinner */
.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

/* Form validation shake */
.shake-error {
    animation: shake 0.4s ease;
    border-color: #F44336 !important;
}

/* Button hover icon slide */
.btn i.fa-arrow-right,
.course-btn i.fa-arrow-right {
    transition: transform 0.3s ease;
}
.btn:hover i.fa-arrow-right,
.course-btn:hover i.fa-arrow-right {
    transform: translateX(4px);
}

/* ========================= */
/* DARK MODE OVERRIDES        */
/* ========================= */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0A0F1A 0%, #0F1420 50%, #141B2D 100%);
}
[data-theme="dark"] .section-title { color: var(--text); }
[data-theme="dark"] .course-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .roadmap-card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .quiz-select-card,
[data-theme="dark"] .lab-card,
[data-theme="dark"] .recurso-card,
[data-theme="dark"] .recurso-ext-card,
[data-theme="dark"] .event-card,
[data-theme="dark"] .badge-card,
[data-theme="dark"] .activity-item {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .course-title,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .roadmap-card h3,
[data-theme="dark"] .modal-body h2,
[data-theme="dark"] .dash-section-title {
    color: var(--text);
}
[data-theme="dark"] .modal { background: var(--bg-card) !important; }
[data-theme="dark"] .cta-section {
    background: linear-gradient(135deg, #0A0F1A, #141B2D);
}
[data-theme="dark"] .search-container input,
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .comm-card textarea,
[data-theme="dark"] .comm-card select {
    background: var(--bg-elevated);
    color: var(--text);
    border-color: var(--border);
}
[data-theme="dark"] .tab-btn {
    background: var(--bg-card);
    color: var(--text-light);
    border-color: var(--border);
}
[data-theme="dark"] .tab-btn.active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}
[data-theme="dark"] .footer { background: #0A0F1A; border-top-color: var(--teal); }
[data-theme="dark"] .page-hero { background: linear-gradient(135deg, #0A0F1A, #141B2D); }
[data-theme="dark"] .course-desc,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .recurso-card p,
[data-theme="dark"] .recurso-ext-card p,
[data-theme="dark"] .event-card p {
    color: var(--text-light);
}
[data-theme="dark"] .quiz-option {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] .dashboard-preview { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .dash-widget { background: var(--bg-elevated); }
[data-theme="dark"] .welcome-card { background: linear-gradient(135deg, #0A0F1A, #141B2D); }
[data-theme="dark"] .tools-container { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .onboarding-card,
[data-theme="dark"] .password-card {
    background: var(--bg-card);
}
[data-theme="dark"] .cert-form-card {
    background: var(--bg-card);
    border-color: var(--border);
}
[data-theme="dark"] #certificado {
    background: #1A1F2E;
    border-color: var(--border);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
