:root {
    /* Brand */
    --brand-dark: #087f5b;
    --brand: #0faf9a;
    --brand-light: #5eead4;
    --brand-tint: #e6fffa;
    --brand-gradient: linear-gradient(135deg, var(--brand-dark), var(--brand-light));

    /* Neutrals */
    --bg: #f8fafc;
    --surface: #ffffff;
    --bg-secondary: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --text: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --text-disabled: #94a3b8;

    /* Semantic */
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;

    /* Shape */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

header.site-header, header.admin-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
header.site-header { position: sticky; top: 0; z-index: 20; }

header .brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
header .brand span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
header .brand img { height: 32px; display: block; }
header .brand .brand-name, header .brand .brand-accent-none { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
header .brand .brand-mark { background: var(--brand-gradient); -webkit-background-clip: border-box; background-clip: border-box; color: #fff; }

header nav { display: flex; align-items: center; gap: 1.1rem; font-size: 0.9rem; color: var(--text-secondary); }

.admin-nav-dropdown { position: relative; }
.admin-nav-trigger {
    background: none; border: none; padding: 0; margin: 0; cursor: pointer;
    font: inherit; color: var(--text-secondary); display: flex; align-items: center; gap: 0.25rem;
}
.admin-nav-trigger:hover { color: var(--text); }
.admin-nav-trigger span { font-size: 0.7rem; }
.admin-nav-menu {
    display: none;
    position: absolute; top: calc(100% + 0.6rem); left: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-md); padding: 0.4rem; min-width: 170px; z-index: 20;
    flex-direction: column; gap: 0.1rem;
}
.admin-nav-dropdown.open .admin-nav-menu { display: flex; }
.admin-nav-menu a { padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); color: var(--text-secondary); white-space: nowrap; }
.admin-nav-menu a:hover { background: var(--bg-secondary); color: var(--text); }

.admin-nav-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    color: var(--text); cursor: pointer;
}
.admin-nav-toggle svg { width: 20px; height: 20px; }

.site-nav-toggle {
    display: none;
    align-items: center; justify-content: center;
    width: 40px; height: 40px; flex-shrink: 0;
    background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    color: var(--text); cursor: pointer;
}
.site-nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
    header.site-header, header.admin-header { padding: 0.8rem 1rem; }
    .admin-nav-toggle { display: flex; }
    .site-nav-toggle { display: flex; }
    header.site-header { position: relative; }
    /* Solo se oculta/colapsa cuando existe el botón hamburguesa (estudiante autenticado con varios
       links); si no hay toggle (visitante anónimo, un solo link "Iniciar sesión") se deja como está. */
    .site-nav-toggle ~ #site-nav { display: none; }
    .site-nav-toggle ~ #site-nav.open {
        display: flex;
        flex-direction: column; align-items: stretch; gap: 0.3rem;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
        padding: 0.8rem 1rem; z-index: 30;
    }
    .site-nav-toggle ~ #site-nav.open a, .site-nav-toggle ~ #site-nav.open form button { width: 100%; }
    .site-nav-toggle ~ #site-nav.open form { width: 100%; }
    .site-nav-toggle ~ #site-nav.open form button { width: 100%; justify-content: center; }
    header.admin-header { position: relative; }
    .admin-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
        padding: 0.5rem 1rem 1rem; z-index: 30; max-height: calc(100vh - 60px); overflow-y: auto;
    }
    .admin-nav.open { display: flex; }
    .admin-nav > a { padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--border); }
    .admin-nav-dropdown { width: 100%; }
    .admin-nav-trigger { width: 100%; justify-content: space-between; padding: 0.85rem 0.2rem; border-bottom: 1px solid var(--border); }
    .admin-nav-menu {
        display: none; position: static; box-shadow: none; border: none; background: var(--bg-secondary);
        padding: 0.3rem; min-width: 0; border-radius: var(--radius-sm); margin: 0.3rem 0;
    }
    .admin-nav-dropdown.open .admin-nav-menu { display: flex; }
    .admin-nav-menu a { padding: 0.7rem 0.6rem; }
    .admin-nav form[action*="/logout"] { width: 100%; margin-top: 0.6rem; }
    .admin-nav form[action*="/logout"] button { width: 100%; justify-content: center; padding: 0.7rem; }
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.admin-layout main { max-width: 1150px; }

h1, h2, h3 { color: var(--text); letter-spacing: -0.01em; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--brand-dark);
    background-image: var(--brand-gradient);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    transition: filter 180ms ease, transform 180ms ease;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.btn-danger { background-image: none; background: var(--danger); }
.btn.btn-secondary { background-image: none; background: var(--surface); color: var(--text-secondary); border: 1px solid var(--border-strong); }
.btn.btn-secondary:hover { background: var(--bg-secondary); color: var(--text); }

.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-tertiary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
td { text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--border); }

form.stacked label { display: block; margin: 0.9rem 0 0.3rem; font-weight: 600; font-size: 0.85rem; color: var(--text-secondary); }
form.stacked input[type="text"],
form.stacked input[type="email"],
form.stacked input[type="password"],
form.stacked input[type="url"],
form.stacked input[type="search"],
form.stacked input[type="tel"],
form.stacked input[type="number"],
form.stacked input[type="date"],
form.stacked input[type="month"],
form.stacked input[type="time"],
form.stacked select,
form.stacked textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
form.stacked input:focus,
form.stacked select:focus,
form.stacked textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-tint);
}
form.stacked textarea { min-height: 160px; resize: vertical; }

/* Input de archivo: el navegador no permite reestilizar el control completo, así que solo el botón se adapta a la marca */
form.stacked input[type="file"] {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--text-secondary);
}
form.stacked input[type="file"]::file-selector-button,
form.stacked input[type="file"]::-webkit-file-upload-button {
    margin-right: 0.9rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease;
}
form.stacked input[type="file"]:hover::file-selector-button,
form.stacked input[type="file"]:hover::-webkit-file-upload-button {
    background: var(--bg-secondary);
    border-color: var(--brand);
}

/* Selector de teléfono (intl-tel-input): que ocupe todo el ancho como los demás campos */
form.stacked .iti { display: block; width: 100%; }
form.stacked .iti input[type="tel"] { padding-left: 52px; }

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.muted { color: var(--text-tertiary); }
.lesson-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.2rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.lesson-nav a:last-child { border-bottom: none; }
.lesson-nav a:hover { color: var(--brand-dark); }
.lesson-nav-title { display: inline-flex; align-items: center; gap: 0.5rem; }
.lesson-done-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
    background: var(--success); color: #fff; font-size: 0.72rem; font-weight: 700;
}

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: var(--brand-tint);
    color: var(--brand-dark);
}
.actions-row { display: flex; gap: 0.5rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; }

/* Auth split screen */
.auth-page { display: flex; min-height: 100vh; }

.auth-visual {
    flex: 1 1 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    overflow: hidden;
    padding: 2rem;
}
.auth-visual::before,
.auth-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}
.auth-visual::before { width: 380px; height: 380px; top: -120px; left: -100px; }
.auth-visual::after { width: 260px; height: 260px; bottom: -80px; right: -60px; background: rgba(255, 255, 255, 0.08); }

.auth-logo-card {
    position: relative;
    z-index: 1;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    max-width: 260px;
}
.auth-logo-card img { width: 100%; display: block; }

.auth-form-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    padding: 2rem;
}

.auth-card { width: 100%; max-width: 360px; }
.auth-card h1 { margin: 0 0 0.35rem; font-size: 1.5rem; }
.auth-card p.lead { color: var(--text-tertiary); margin: 0 0 1.5rem; font-size: 0.95rem; }

.auth-forgot { display: block; text-align: right; font-size: 0.85rem; margin-top: 0.4rem; }

.divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-disabled);
    font-size: 0.8rem;
    margin: 1.5rem 0;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Botón «Continuar con Google»: blanco, con el logotipo de Google y forma de píldora, para no confundirse
   con los botones de acción de marca (Iniciar sesión / Crear mi academia). Se mantiene blanco también en modo oscuro. */
.btn.btn-google {
    width: 100%;
    justify-content: center;
    gap: 0.7rem;
    padding: 0.7rem 1.2rem;
    border-radius: 999px;
    background: #fff;
    background-image: none;
    color: #3c4043;
    border: 1px solid #dadce0;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
    transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.btn.btn-google::before {
    content: "";
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn.btn-google:hover { filter: none; background: #f8f9fa; border-color: #c6c9cc; color: #202124; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25); }
.btn-google:disabled { cursor: not-allowed; opacity: 0.6; }

@media (max-width: 860px) {
    /* En vez de ocultar el panel de marca por completo, lo convertimos en una franja
       compacta arriba del formulario: se ve corporativo (logo + degradado de marca)
       sin robarle media pantalla al formulario de login. */
    .auth-page { flex-direction: column; min-height: 0; }
    .auth-visual { flex: 0 0 auto; min-height: 0; padding: 1.5rem; }
    .auth-visual::before { width: 200px; height: 200px; top: -80px; left: -60px; }
    .auth-visual::after { width: 140px; height: 140px; bottom: -50px; right: -40px; }
    .auth-logo-card { max-width: 120px; padding: 0.8rem; }
    .auth-form-panel { flex: 1 1 auto; padding: 1.6rem 1.5rem; }
}

/* KPI dashboard cards */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}
.kpi-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--brand-tint);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.kpi-icon svg { width: 20px; height: 20px; }
.kpi-value { font-size: 1.5rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.kpi-label { font-size: 0.82rem; color: var(--text-tertiary); }

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 999px;
    transition: width 200ms ease;
}

/* ============ Landing page ============ */
.landing-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 20;
}
.landing-header .brand { font-weight: 700; font-size: 1.15rem; color: var(--text); }
.landing-header .brand span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.landing-nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.landing-nav a.nav-link { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.landing-nav a.nav-link:hover { color: var(--brand-dark); }
.landing-actions { display: flex; align-items: center; gap: 0.6rem; }

.landing-section { max-width: 1120px; margin: 0 auto; padding: 4.5rem 1.5rem; }
.landing-section.tight { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.landing-section h2 { font-size: 1.85rem; text-align: center; max-width: 40rem; margin: 0 auto; }
.landing-lead { color: var(--text-tertiary); text-align: center; max-width: 34rem; margin: 0.8rem auto 0; font-size: 1rem; }
.landing-eyebrow {
    display: block; text-align: center; text-transform: uppercase; letter-spacing: 0.12em;
    font-size: 0.75rem; font-weight: 700; color: var(--brand-dark); margin-bottom: 0.7rem;
}

/* Hero */
.hero { background: linear-gradient(180deg, var(--brand-tint) 0%, var(--bg) 65%); }
.hero-inner {
    max-width: 1120px; margin: 0 auto; padding: 4.5rem 1.5rem 3rem;
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }
.hero-copy h1 { font-size: 2.6rem; line-height: 1.15; margin: 0.8rem 0 1.1rem; }
.hero-copy p.lead { color: var(--text-secondary); font-size: 1.08rem; line-height: 1.6; max-width: 34rem; }
@media (max-width: 900px) { .hero-copy p.lead { margin: 0 auto; } }
.hero-ctas { display: flex; gap: 0.8rem; margin-top: 1.6rem; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-ctas { justify-content: center; } }
.hero-trust { margin-top: 1rem; font-size: 0.85rem; color: var(--text-tertiary); }
.btn-lg { padding: 0.8rem 1.5rem; font-size: 1rem; }

/* Hero mockup */
.hero-mock {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: 0 20px 45px rgba(8, 127, 91, 0.16); overflow: hidden;
}
.hero-mock-bar { display: flex; gap: 0.4rem; padding: 0.65rem 0.9rem; background: var(--bg-secondary); border-bottom: 1px solid var(--border); }
.hero-mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.hero-mock-body { padding: 1.5rem; }
.hero-mock-greeting { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.hero-mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin-bottom: 1.2rem; }
.hero-mock-kpi { background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 0.7rem; text-align: center; }
.hero-mock-kpi .n { font-size: 1.2rem; font-weight: 800; color: var(--brand-dark); }
.hero-mock-kpi .l { font-size: 0.68rem; color: var(--text-tertiary); }
.hero-mock-course { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.6rem; }
.hero-mock-course .dot { width: 34px; height: 34px; border-radius: 8px; background: var(--brand-gradient); flex-shrink: 0; }
.hero-mock-course .bar { flex: 1; }
.hero-mock-course .bar .t { height: 8px; width: 70%; background: var(--border-strong); border-radius: 4px; margin-bottom: 6px; }
.hero-mock-course .bar .p { height: 6px; width: 40%; background: var(--brand-light); border-radius: 4px; }

/* Value / feature / audience / step cards */
.value-grid, .feature-grid, .usecase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.5rem; }
.usecase-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 920px) { .value-grid, .feature-grid { grid-template-columns: repeat(2, 1fr); } .usecase-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .value-grid, .feature-grid { grid-template-columns: 1fr; } }

.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.4rem; }
.value-card .ico { width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.value-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.value-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.4rem; }
.feature-card .tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-dark); }
.feature-card h3 { font-size: 1.05rem; margin: 0.4rem 0 0.8rem; }
.feature-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.feature-card li { font-size: 0.86rem; color: var(--text-secondary); display: flex; gap: 0.5rem; line-height: 1.5; }
.feature-card li::before { content: "✓"; color: var(--brand-dark); font-weight: 700; flex-shrink: 0; }

.usecase-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.4rem; }
.usecase-card .tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); }
.usecase-card h3 { font-size: 1.05rem; margin: 0.4rem 0 0.5rem; }
.usecase-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.5rem; counter-reset: step; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.3rem; }
.step-num { counter-increment: step; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-gradient); color: #fff; font-weight: 800; font-size: 0.9rem; display: flex; align-items: center; justify-content: center; margin-bottom: 0.8rem; }
.step-num::before { content: counter(step); }
.step-card h3 { font-size: 0.98rem; margin-bottom: 0.35rem; }
.step-card p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; } }
.pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.7rem; display: flex; flex-direction: column; position: relative; }
.pricing-card.featured { border: 1.5px solid var(--brand); box-shadow: 0 12px 30px rgba(15, 175, 154, 0.18); }
.pricing-card.featured::before {
    content: "Más elegido"; position: absolute; top: -12px; left: 1.5rem; background: var(--brand-gradient); color: #fff;
    font-size: 0.68rem; font-weight: 700; padding: 0.28rem 0.7rem; border-radius: 999px;
}
.pricing-card h3 { font-size: 1.1rem; }
.pricing-card .price { font-size: 2.1rem; font-weight: 800; margin: 0.6rem 0 0.1rem; font-variant-numeric: tabular-nums; }
.pricing-card .price sup { font-size: 1rem; margin-right: 2px; }
.pricing-card .price small { font-size: 0.85rem; color: var(--text-tertiary); font-weight: 500; }
.pricing-card ul { list-style: none; margin: 1rem 0 1.4rem; padding: 0; display: grid; gap: 0.55rem; flex: 1; }
.pricing-card li { font-size: 0.87rem; color: var(--text-secondary); display: flex; gap: 0.5rem; line-height: 1.5; }
.pricing-card li::before { content: "✓"; color: var(--brand-dark); font-weight: 700; }
.pricing-note { text-align: center; color: var(--text-tertiary); font-size: 0.85rem; margin-top: 1.3rem; }

.pricing-toggle { display: flex; justify-content: center; gap: 0.3rem; margin: 1.6rem auto 0; padding: 0.25rem; background: var(--bg-secondary); border-radius: 999px; width: fit-content; }
.pricing-toggle-btn { border: 0; background: transparent; padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.88rem; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; gap: 0.4rem; }
.pricing-toggle-btn.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm, 0 1px 3px rgba(15, 23, 42, .12)); }
.pricing-toggle-badge { background: var(--success-soft); color: var(--success-ink); font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 999px; }
.price-annual-note { font-size: 0.82rem; color: var(--text-tertiary); margin: 0 0 0.6rem; }

/* FAQ */
.faq-list { display: grid; gap: 0.7rem; margin-top: 2.5rem; max-width: 760px; margin-left: auto; margin-right: auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0.2rem 1.3rem; }
.faq-item summary { padding: 1rem 0; font-weight: 600; font-size: 0.95rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--brand-dark); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--text-secondary); font-size: 0.89rem; line-height: 1.6; margin: 0 0 1.1rem; }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.contact-info p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }
.contact-methods { display: grid; gap: 0.9rem; margin-top: 1.3rem; }
.contact-method { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; }
.contact-method .ico { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 1.5rem; }
.success-box { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: 0.9rem; }

/* Final CTA band */
.final-cta-band { background: var(--brand-gradient); }
.final-cta-inner { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem; text-align: center; color: #fff; }
.final-cta-inner h2 { color: #fff; font-size: 1.9rem; }
.final-cta-inner p { color: rgba(255,255,255,0.92); margin-top: 0.7rem; font-size: 1rem; }
.final-cta-inner .btn { margin-top: 1.5rem; }
.final-cta-inner .btn-primary-inverse { background: #fff; color: var(--brand-dark); }

/* Footer */
.landing-footer { background: var(--text); color: #cbd5e1; padding: 3rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 960px) { .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand { font-weight: 700; color: #fff; font-size: 1.05rem; }
.footer-tagline { font-size: 0.85rem; color: #94a3b8; margin-top: 0.5rem; max-width: 20rem; }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: #cbd5e1; font-size: 0.87rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1120px; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid #334155; font-size: 0.8rem; color: #94a3b8; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed; bottom: 1.5rem; right: 1.5rem; width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25); z-index: 40; transition: transform 180ms ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; }

/* Biblioteca de medios */
.media-thumb { width: 100%; height: 140px; object-fit: cover; border-radius: var(--radius-sm, 6px); background: var(--bg, #f1f5f9); display: block; }
.media-card { padding: 0.75rem; }
.media-card .muted { font-size: 0.78rem; margin: 0.4rem 0; word-break: break-all; }

/* Portada de curso */
.cover-preview { width: 100%; max-width: 320px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm, 6px); display: block; margin-bottom: 0.6rem; border: 1px solid var(--border); }
.course-card-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm, 6px); display: block; margin-bottom: 0.8rem; }

/* Contenido enriquecido (descripcion de curso, contenido de leccion) */
.rich-text { line-height: 1.6; color: var(--text-secondary); }
.rich-text p { margin: 0 0 1rem; }
.rich-text h1, .rich-text h2, .rich-text h3 { margin: 1.2rem 0 0.6rem; color: var(--text); }
.rich-text ul, .rich-text ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.rich-text li { margin-bottom: 0.3rem; }
.rich-text a { color: var(--brand-dark); text-decoration: underline; }

/* Modulos de curso (admin) */
.hidden-form { display: none; }
.module-card { margin-bottom: 1.2rem; border-left: 3px solid var(--brand); }
.module-card-header { margin-bottom: 0.8rem; flex-wrap: wrap; gap: 0.5rem; }
.module-heading { margin: 1.4rem 0 0.6rem; font-size: 1.05rem; }

.avatar-thumb-sm {
    width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block;
    background: var(--brand-gradient); color: #fff; font-weight: 700; font-size: 0.85rem;
    align-items: center; justify-content: center;
}
.avatar-thumb-placeholder { display: flex; }

.checkbox-list { display: grid; gap: 0.5rem; max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; }
.checkbox-list-item { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; font-size: 0.9rem; }

.lesson-media-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.5rem; }
.lesson-media-item { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.lesson-media-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand-dark); display: flex; align-items: center; justify-content: center; }
.lesson-media-icon svg { width: 15px; height: 15px; }
.lesson-media-label { flex: 1; display: flex; align-items: baseline; gap: 0.6rem; font-size: 0.9rem; }

.icon-actions { display: flex; gap: 0.3rem; justify-content: flex-end; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0; border-radius: var(--radius-sm);
    border: 1px solid transparent; background: none; color: var(--text-tertiary); cursor: pointer;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--bg-secondary); color: var(--text); }
.icon-btn-danger:hover { background: #fee2e2; color: #991b1b; }

.lesson-reorder { display: flex; gap: 0.2rem; }
.lesson-reorder form { display: inline; }
.lesson-reorder-btn {
    width: 24px; height: 24px; padding: 0; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-secondary);
    font-size: 0.7rem; line-height: 1; cursor: pointer;
}
.lesson-reorder-btn:hover:not(:disabled) { background: var(--bg-secondary); color: var(--text); }
.lesson-reorder-btn:disabled { opacity: 0.35; cursor: default; }
.lesson-actions-col { text-align: right; white-space: nowrap; }

/* Constructor de quiz (admin) */
.btn-sm { padding: 0.2rem 0.6rem; font-size: 0.85rem; }
.quiz-question { margin-bottom: 1.2rem; }
form.stacked .quiz-question textarea { min-height: 70px; }
.quiz-question .question-type-select { max-width: 260px; margin-bottom: 0.8rem; }
.quiz-options { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; }
.quiz-option { display: flex; align-items: center; gap: 0.6rem; }
.quiz-option .correct-input { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--brand); }
.quiz-option .option-text { flex: 1; margin: 0; }
.quiz-option .option-text[readonly] { background: var(--bg, #f8fafc); color: var(--text-secondary); }
.remove-option-btn {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border);
    background: #fff; color: var(--text-secondary); cursor: pointer; font-size: 1rem; line-height: 1;
}
.remove-option-btn:hover { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.quiz-question-error { color: #991b1b; font-size: 0.85rem; margin: 0.6rem 0 0; min-height: 1.1em; }

/* ============ Tienda pública (catálogo y curso) ============ */
.store-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: var(--brand-gradient);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.2rem 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.store-hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.8rem;
}
.store-hero-text h1 { color: #fff; margin: 0 0 0.5rem; font-size: 1.9rem; }
.store-hero-lead { margin: 0; color: rgba(255, 255, 255, 0.92); max-width: 36rem; font-size: 0.98rem; line-height: 1.5; }
.store-hero-stat { background: rgba(255, 255, 255, 0.16); border-radius: var(--radius-md); padding: 1rem 1.6rem; text-align: center; flex-shrink: 0; }
.store-hero-stat .n { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.store-hero-stat .l { font-size: 0.75rem; margin-top: 0.35rem; color: rgba(255, 255, 255, 0.88); }

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }

.store-course-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.store-course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); color: inherit; }
.store-course-cover-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--brand-gradient); overflow: hidden; }
.store-course-cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.store-course-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.9); font-size: 2.2rem; font-weight: 800; }
.store-course-price-badge {
    position: absolute; top: 0.7rem; right: 0.7rem;
    background: rgba(15, 23, 42, 0.75); color: #fff; font-size: 0.72rem; font-weight: 700;
    padding: 0.28rem 0.7rem; border-radius: 999px;
}
.store-course-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.store-course-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.store-course-desc { margin: 0; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; flex: 1; }
.store-course-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.store-course-meta { display: flex; gap: 0.9rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-tertiary); margin: 0.2rem 0; }
.store-course-meta span { display: inline-flex; align-items: center; gap: 0.3rem; }
.store-course-meta svg { width: 13px; height: 13px; }
.store-course-cta { margin-top: 0.4rem; font-size: 0.85rem; font-weight: 700; color: var(--brand-dark); }
.store-course-card:hover .store-course-cta { color: var(--brand); }

.store-category-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }

/* ============ Panel del estudiante (mis cursos) ============ */
.mycourses-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    background: var(--brand-gradient); color: #fff;
    border-radius: var(--radius-lg); padding: 2rem 2rem; margin-bottom: 1.8rem; flex-wrap: wrap;
}
.mycourses-hero h1 { color: #fff; margin: 0 0 0.4rem; font-size: 1.7rem; }
.mycourses-hero p { margin: 0; color: rgba(255, 255, 255, 0.92); font-size: 0.95rem; }
.mycourses-hero-stat { background: rgba(255, 255, 255, 0.16); border-radius: var(--radius-md); padding: 0.9rem 1.4rem; text-align: center; flex-shrink: 0; }
.mycourses-hero-stat .n { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.mycourses-hero-stat .l { font-size: 0.72rem; margin-top: 0.3rem; color: rgba(255, 255, 255, 0.88); }
.mycourses-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 2rem 0 1rem; }
.mycourses-section-heading h2 { margin: 0; font-size: 1.2rem; }
.course-cover-badge {
    position: absolute; top: 0.7rem; right: 0.7rem;
    background: rgba(15, 23, 42, 0.75); color: #fff; font-size: 0.72rem; font-weight: 700;
    padding: 0.28rem 0.7rem; border-radius: 999px;
}
.course-cover-badge.is-done { background: #16a34a; }
.course-cover-badge.is-overdue { background: #dc2626; }
.mycourses-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.mycourses-card-body h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.mycourses-card-meta { font-size: 0.8rem; color: var(--text-tertiary); margin: 0; }
.mycourses-card-cta { margin-top: 0.4rem; font-size: 0.85rem; font-weight: 700; color: var(--brand-dark); text-decoration: none; }
.store-course-card:hover .mycourses-card-cta { color: var(--brand); }

/* ============ Perfil del estudiante ============ */
.profile-hero {
    display: flex; align-items: center; gap: 1.3rem;
    background: var(--brand-gradient); color: #fff;
    border-radius: var(--radius-lg); padding: 1.8rem 2rem; margin-bottom: 1.8rem; flex-wrap: wrap;
}
.profile-hero-avatar {
    width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: rgba(255, 255, 255, 0.2); border: 3px solid rgba(255, 255, 255, 0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; font-weight: 800; color: #fff;
}
.profile-hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-hero h1 { color: #fff; margin: 0 0 0.25rem; font-size: 1.5rem; }
.profile-hero p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; }

.profile-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .profile-grid { grid-template-columns: 1fr; } }
/* Cada columna es su propio contenedor apilado, para que una tarjeta corta (2FA) en la columna angosta no deje
   a la siguiente (Mis datos) colgando muy abajo, lejos de la tarjeta alta (Información personal) de al lado. */
.profile-col-main, .profile-col-side { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

.profile-photo-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.4rem; }
.cookie-banner {
    display: none;
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 100;
    max-width: 900px; margin: 0 auto;
    background: var(--text); color: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    padding: 1rem 1.2rem; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.85rem; line-height: 1.5; flex: 1; min-width: 220px; }
.cookie-banner p a { color: #fff; text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }
@media (max-width: 560px) {
    .cookie-banner { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; padding: 0.9rem; }
    .cookie-banner .btn { width: 100%; justify-content: center; }
}

.profile-photo-preview {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
    background: var(--brand-gradient); color: #fff; font-weight: 700; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
}
.store-category-chip {
    display: inline-block; padding: 0.4rem 0.9rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
    background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-secondary);
}
.store-category-chip:hover { background: var(--bg-secondary); color: var(--text); }
.store-category-chip.active { background: var(--brand-gradient); border-color: transparent; color: #fff; }

.store-related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.store-related-heading { font-size: 1.3rem; margin: 0 0 1.2rem; }

/* Página de detalle de curso */
.back-link { margin-bottom: 1.2rem; }
.back-link a { font-size: 0.88rem; font-weight: 600; }

.course-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .course-detail-grid { grid-template-columns: 1fr; } }

.course-detail-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: block; margin-bottom: 1.4rem; }
.course-detail-cover-placeholder {
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-gradient); color: rgba(255, 255, 255, 0.9); font-size: 3.5rem; font-weight: 800;
}
.course-detail-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.course-detail-title { font-size: 1.8rem; margin: 0 0 1.1rem; }
.course-content-heading { margin: 2rem 0 1rem; font-size: 1.25rem; }
.course-progress-card { margin-top: 1.5rem; }
.course-completed-card {
    margin-top: 1.5rem; display: flex; gap: 1rem; align-items: flex-start;
    background: linear-gradient(135deg, var(--brand-tint), var(--surface));
    border: 1px solid var(--brand-light);
}
.course-completed-icon { font-size: 2.2rem; line-height: 1; }

.lesson-video-embed { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.lesson-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.course-purchase-panel { position: sticky; top: 1.5rem; }
.course-purchase-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1.5rem; }
.course-purchase-price { font-size: 1.9rem; font-weight: 800; margin: 0 0 1rem; color: var(--text); }
.course-purchase-enrolled { background: #dcfce7; color: #166534; font-weight: 600; font-size: 0.88rem; text-align: center; border-radius: var(--radius-sm); padding: 0.7rem; margin: 0 0 1rem; }
.course-purchase-meta { list-style: none; margin: 1.3rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--border); display: grid; gap: 0.65rem; }
.course-purchase-meta li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--text-secondary); }
