/* Escuela de Límites · sistema de marca personal de Alba Gallardo (granate). No usar el azul #004AAD. */
:root {
  --granate: #9f011b;
  --granate-dark: #7d0115;
  --rosa: #ffe5e5;
  --rosa-soft: #fff3f3;
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #6f6f6f;
  --line: #ece7de;
  --ok: #2f7a4f;
  --ok-soft: #e4f2ea;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 8px 24px rgba(26, 26, 26, .05);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 Inter, -apple-system, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.5px; margin: 0 0 .5em; }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
a { color: var(--granate); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--granate); margin: 0 0 10px;
}
.lead { font-size: 1.15rem; font-weight: 300; color: #333; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.prewrap { white-space: pre-wrap; }
.center { text-align: center; }
.inline { display: inline; }

/* Barra superior */
.topbar { background: var(--bg); box-shadow: 0 1px 8px rgba(26, 26, 26, .04); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
}
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-eyebrow { font-size: .68rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.brand-name { font-size: 1.5rem; font-weight: 700; color: var(--granate); letter-spacing: -0.4px; }
@media (max-width: 760px) { .brand-name { font-size: 1.3rem; } }
.nav { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; }
.nav > a:not(.button) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav > a:not(.button):hover { color: var(--granate); }
.admin-strip {
  background: var(--ink); color: #fff; text-align: center; font-size: .72rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px;
}

.page { max-width: 1120px; margin: 0 auto; padding: 36px 16px 80px; }
.page-head { margin-bottom: 24px; }
.page-head.row, .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head { margin-bottom: 14px; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

/* Tarjetas */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px;
}
.card.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.card.empty { text-align: center; padding: 44px 24px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.two-col > .card, .two-col > .block { margin-bottom: 0; }

/* Botones */
.button {
  display: inline-block; border: 1.5px solid var(--granate); background: var(--granate); color: #fff;
  padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; transition: background .15s;
}
.button:hover { background: var(--granate-dark); border-color: var(--granate-dark); }
.button-light { background: transparent; color: var(--granate); }
.button-light:hover { background: var(--rosa); border-color: var(--granate); }
.button-danger { background: #fff; color: var(--granate); border-color: var(--granate); }
.button-danger:hover { background: var(--granate); color: #fff; }
.button-small { padding: 7px 16px; font-size: .85rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--granate); cursor: pointer; text-decoration: underline; }
.nav .link-button { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.link-button.danger { color: var(--granate); }
.icon-button {
  width: 30px; height: 30px; border: 1px solid var(--line); background: var(--surface); border-radius: 50%;
  cursor: pointer; color: var(--muted); font-size: .85rem; line-height: 1;
}
.icon-button:hover { color: var(--granate); border-color: var(--granate); }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }

/* Formularios */
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack > .button { align-self: flex-start; }
.stack > .card { margin-bottom: 0; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .95rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"],
input[type="datetime-local"], input:not([type]), select, textarea {
  font: inherit; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--rosa); border-color: var(--granate); }
input[type="file"] { font: inherit; font-weight: 400; font-size: .9rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--granate); width: 16px; height: 16px; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; }
legend { font-weight: 500; font-size: .95rem; padding: 0 6px; }
.check-row { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.help { font-size: .85rem; color: var(--muted); margin: -6px 0 0; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline-form input { flex: 1 1 240px; width: auto; }
.search { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.search input, .search select { flex: 1 1 200px; width: auto; }
.current-file { background: var(--rosa-soft); border: 1px solid var(--rosa); border-radius: 12px; padding: 12px 14px; font-size: .92rem; display: flex; flex-direction: column; gap: 6px; }
.form-page { max-width: 760px; margin: 0 auto; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-actions .push-right { margin-left: auto; }

/* Avisos */
.flash { padding: 13px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--rosa); color: var(--granate); }
.badge {
  display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .5px; padding: 4px 11px; border-radius: 999px;
  background: var(--rosa); color: var(--granate); vertical-align: middle; text-transform: none;
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-off { background: #eee; color: #555; }
.tag { display: inline-block; font-size: .75rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: #f1efea; color: var(--muted); white-space: nowrap; }
.tag-live { background: var(--rosa); color: var(--granate); }
.tag-live-done { background: var(--granate); color: #fff; }

/* Login */
.login-body { background: var(--bg); }
.login-body .page { padding: 0; }
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card {
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); border-top: 5px solid var(--granate);
  padding: 40px 32px; width: 100%; max-width: 420px; text-align: left;
}
.login-card .eyebrow { text-align: center; }
.login-title { font-size: 2.1rem; text-align: center; color: var(--granate); }
.login-card > .muted { text-align: center; }
.login-card .button { width: 100%; align-self: stretch; }
.login-card .small { margin: 20px 0 0; text-align: center; }
.login-foot { margin-top: 20px; font-size: .85rem; }
.login-foot a { color: var(--muted); text-decoration: none; }

/* Listado de cursos */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.course-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s;
}
.course-card:hover { transform: translateY(-3px); }
.course-cover {
  aspect-ratio: 16 / 9; background: var(--granate) center / cover no-repeat; position: relative;
  display: flex; align-items: flex-end; padding: 20px;
}
.course-cover-title { color: #fff; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.5px; line-height: 1.1; }
.course-cover .badge { position: absolute; top: 12px; right: 12px; }
.course-body { padding: 20px; background: var(--rosa-soft); flex: 1; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.progress { height: 6px; background: var(--rosa); border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.progress span { display: block; height: 100%; background: var(--granate); border-radius: 999px; }
.small-progress { display: inline-block; width: 120px; vertical-align: middle; margin: 0 6px 0 0; }

/* Página del curso */
.hero {
  background: var(--rosa); border-radius: 24px; padding: 40px; margin-bottom: 32px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap;
}
.hero-text { flex: 1 1 420px; }
.hero h1 { font-size: 2.8rem; color: var(--granate); margin-bottom: 12px; }
.hero .lead { margin: 0; }
.hero-progress { display: flex; align-items: center; gap: 18px; }
.hero-progress .small { margin: 0 0 10px; }
.progress-ring {
  --pct: 0; width: 84px; height: 84px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--granate) calc(var(--pct) * 1%), #fff 0);
  display: grid; place-items: center;
}
.progress-ring span {
  width: 66px; height: 66px; border-radius: 50%; background: var(--rosa); display: grid; place-items: center;
  font-weight: 700; color: var(--granate);
}
.modules { display: flex; flex-direction: column; gap: 20px; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.module-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 12px; }
.module-head h2 { margin: 0; }
.module-head .eyebrow { margin-bottom: 6px; }
.module-number {
  flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--rosa); color: var(--granate);
  display: grid; place-items: center; font-weight: 700; font-size: 1.15rem;
}
.lesson-list { list-style: none; padding: 0; margin: 0 0 0 76px; }
.lesson-list li { border-top: 1px solid var(--line); }
.lesson-list a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; color: var(--ink); text-decoration: none; flex-wrap: wrap; }
.lesson-list a:hover .lesson-title, .lesson-list a:hover .arrow { color: var(--granate); }
.lesson-title { flex: 1; font-weight: 500; }
.arrow { color: #bbb; transition: transform .15s; }
.lesson-list a:hover .arrow { transform: translateX(3px); }
.check {
  width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 600; color: var(--muted);
}
.is-done .check { background: var(--granate); border-color: var(--granate); color: #fff; }
.empty-row { padding: 12px 4px; }

/* Página de la clase */
.lesson { max-width: 920px; margin: 0 auto; }
.lesson-head { margin-bottom: 28px; }
.lesson-head h1 { font-size: 2.4rem; }
.block { margin-bottom: 28px; }
.block-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.block-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--granate); color: #fff; flex: none;
  display: inline-grid; place-items: center; font-size: .78rem; font-weight: 700;
}
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-frame iframe, .audio-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.placeholder {
  aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--rosa-soft); border: 1.5px dashed #f0c6c6;
  display: grid; place-items: center; text-align: center; padding: 24px; color: var(--granate); font-weight: 500;
}

/* Carátula «Masterclass en directo» */
.live-cover {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 229, 229, .18) 0 18%, transparent 18.5%),
    radial-gradient(circle at 85% 20%, transparent 0 26%, rgba(255, 229, 229, .12) 26.5% 27%, transparent 27.5%),
    radial-gradient(circle at 85% 20%, transparent 0 36%, rgba(255, 229, 229, .08) 36.5% 37%, transparent 37.5%),
    linear-gradient(135deg, #9f011b 0%, #6e0113 100%);
  display: flex; align-items: center; padding: 6% 7%; box-shadow: var(--shadow);
}
.live-cover-inner { max-width: 640px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px; padding: 6px 14px; font-size: .72rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; margin: 0 0 18px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rosa); box-shadow: 0 0 0 4px rgba(255, 229, 229, .25); }
.live-title { font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; margin: 0 0 6px; }
.live-sub { color: var(--rosa); font-weight: 300; margin: 0 0 14px; }
.live-date { display: inline-block; background: #fff; color: var(--granate); font-weight: 600; border-radius: 999px; padding: 6px 16px; margin: 0 0 14px; font-size: .92rem; }
.live-note { font-weight: 300; font-size: .95rem; max-width: 460px; margin: 0; opacity: .92; }
.live-brand { position: absolute; right: 5%; bottom: 6%; font-size: .66rem; letter-spacing: 2px; text-transform: uppercase; opacity: .7; }

.media-card { height: calc(100% - 40px); margin: 0; display: flex; flex-direction: column; justify-content: center; }
.media-card audio { width: 100%; }
.media-card p:last-child { margin-bottom: 0; }
.audio-frame { position: relative; height: 90px; }
.pdf-card { flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; }
.pdf-icon {
  width: 56px; height: 68px; flex: none; border-radius: 8px; background: var(--rosa); color: var(--granate);
  display: grid; place-items: center; font-weight: 700; font-size: .8rem; letter-spacing: 1px;
}
.pdf-name { font-weight: 500; margin-bottom: 10px; word-break: break-word; }
.lesson-text { font-size: 1.05rem; line-height: 1.75; font-weight: 300; }
.questions {
  background: var(--rosa); border-radius: var(--radius); padding: 24px 28px; margin: 8px 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
}
.questions .eyebrow { margin-bottom: 4px; }
.questions-text { font-size: 1.1rem; font-weight: 500; margin: 0; }
.questions-missing { background: var(--rosa-soft); border: 1.5px dashed #f0c6c6; }
.questions-missing p { margin: 0; }
.lesson-actions { margin: 32px 0; text-align: center; }
.lesson-nav { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.lesson-nav a { text-decoration: none; font-weight: 600; max-width: 48%; color: var(--ink); }
.lesson-nav a:hover { color: var(--granate); }
.lesson-nav .next { text-align: right; }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--granate); }
.stat span { color: var(--muted); font-size: .85rem; }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .7rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }
.card:not(.table-wrap) > .table th:first-child, .card:not(.table-wrap) > .table td:first-child,
.card form > .table th:first-child, .card form > .table td:first-child { padding-left: 0; }
.row-warn td { background: var(--rosa-soft); }
.card form > .table { margin-bottom: 16px; }
.module-admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.actions { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
.move { display: inline-flex; gap: 4px; }
.lesson-admin-list { list-style: none; margin: 8px 0 16px; padding: 0; }
.lesson-admin-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.class-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--rosa); color: var(--granate); flex: none;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
}
.class-link { flex: 1 1 160px; font-weight: 500; }
.chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .72rem; font-weight: 500; padding: 3px 9px; border-radius: 999px; background: #f1efea; color: #9a9a9a; white-space: nowrap; }
.chip.on { background: var(--ok-soft); color: var(--ok); }
.chip.wait { background: var(--rosa); color: var(--granate); }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 6px 0; }
.password-box { border-color: var(--granate); background: var(--rosa-soft); }
.password-box pre { background: var(--surface); padding: 14px; border-radius: 12px; font-size: 1rem; white-space: pre-wrap; word-break: break-all; }
.danger-zone { border-style: dashed; box-shadow: none; }
.pager { display: flex; justify-content: center; gap: 20px; align-items: center; }

@media (max-width: 760px) {
  h1, .lesson-head h1 { font-size: 1.75rem; }
  .hero { padding: 26px 22px; border-radius: 20px; }
  .hero h1 { font-size: 2rem; }
  .two-col { grid-template-columns: 1fr; }
  .card, .module { padding: 20px; }
  .module-head { gap: 14px; }
  .module-number { width: 44px; height: 44px; font-size: 1rem; }
  .lesson-list { margin-left: 0; }
  .live-cover { aspect-ratio: auto; min-height: 260px; padding: 28px 22px 44px; }
  .live-brand { right: 22px; bottom: 16px; }
  .media-card { height: auto; }
  .topbar-inner { padding: 10px 16px; }
  .nav { gap: 6px 16px; }
}

/* Mi cuenta */
.account-section { margin-bottom: 36px; }
.account-section h2 { margin-bottom: 16px; }
.account-card { max-width: 560px; }
.course-body h3 { margin: 0; }
.logout-row { margin-top: 8px; }

/* Módulos desplegables y apertura por goteo */
details.module > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
details.module > summary::-webkit-details-marker { display: none; }
details.module[open] > summary { margin-bottom: 12px; }
.module-head-text { flex: 1; }
.chevron {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); margin-top: 10px;
  background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239f011b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  transition: transform .2s;
}
details.module[open] .chevron { transform: rotate(180deg); }
.module-locked { background: #f5f3ef; box-shadow: none; }
.module-locked .module-number { background: #ebe7e0; color: var(--muted); }
.module-locked h2 { color: var(--muted); }
.module-locked .eyebrow { color: var(--muted); }
.unlock-note { margin: 6px 0 0; font-size: .92rem; color: var(--ink); }
.unlock-note strong { color: var(--granate); }
.staff-note { margin: 6px 0 0; font-size: .82rem; color: var(--granate); background: var(--rosa); display: inline-block; padding: 3px 10px; border-radius: 999px; }
.module-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; font-size: .85rem; color: var(--muted); }

/* Telegram */
.button-telegram.is-pending { cursor: default; }
.questions-admin { flex-basis: 100%; margin: 0; color: var(--muted); }

/* Roles */
.role-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.role-tabs a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .9rem; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
}
.role-tabs a.active { background: var(--granate); border-color: var(--granate); color: #fff; }
.role-tabs .count { opacity: .65; font-size: .8rem; margin-left: 2px; }
.role-form { margin: 0; }
.role-select { width: auto; padding: 6px 30px 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 500; }
.role-badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: #f1efea; color: var(--ink); vertical-align: middle; letter-spacing: 0; }
.role-admin { background: var(--granate); color: #fff; }
.role-team { background: #1a1a1a; color: #fff; }
.role-student { background: var(--rosa); color: var(--granate); }
.role-alumni { background: #f1efea; color: var(--ink); }
select.role-admin, select.role-team { color-scheme: dark; }
.role-legend p { margin: 0 0 6px; }
.role-legend p:last-child { margin: 0; }

/* Avance en orden */
.lesson-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; flex-wrap: wrap; cursor: not-allowed; }
.is-locked .lesson-title { color: #a5a5a5; }
.is-locked .check { background: #f5f3ef; color: #b0aaa2; border-color: #ebe7e0; }
.is-current .check { border-color: var(--granate); color: var(--granate); }
.tag-current { background: var(--granate); color: #fff; }
.completed-note { display: inline-block; margin: 0; padding: 10px 22px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.button-large { padding: 15px 30px; font-size: 1rem; }
.lesson-actions .small { margin: 10px 0 0; }
.nav-card {
  display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); text-decoration: none; min-width: 0; max-width: 48%;
}
.nav-card:hover { border-color: var(--granate); }
.nav-card.next { text-align: right; margin-left: auto; }
.nav-card.is-locked { opacity: .55; cursor: not-allowed; }
.nav-card.is-locked:hover { border-color: var(--line); }
.nav-title { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-nav { border-top: 0; padding-top: 0; }
.back-to-course { text-align: center; margin-top: 24px; font-size: .92rem; }

/* Progreso */
.status-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; vertical-align: middle; border: 2px solid transparent; }
.status-done { background: var(--granate); }
.status-viewed { background: var(--rosa); border-color: var(--granate); }
.status-current { background: #fff; border-color: var(--granate); border-style: dashed; }
.status-locked { background: #ebe7e0; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.matrix th, .matrix td { padding: 9px 10px; }
.matrix .lesson-col { text-align: center; padding: 9px 0; width: 30px; min-width: 30px; letter-spacing: 0; }
.matrix .lesson-col .status-dot { display: block; margin: 0 auto; }
.matrix .module-col { text-align: center; letter-spacing: 0; border-left: 2px solid var(--line); background: var(--rosa-soft); color: var(--granate); }
.matrix .module-start { border-left: 2px solid var(--line); }
.matrix-wrap { overflow-x: auto; }
.matrix-wrap .matrix { width: auto; min-width: 100%; }
.matrix td:first-child, .matrix th:first-child { width: 100%; }
.matrix .lesson-col { width: 30px; max-width: 30px; }
@media (max-width: 760px) { .matrix-wrap { padding: 0; } }
.row-inactive { opacity: .5; }
.role-badge.mini { font-size: .66rem; padding: 2px 8px; }
.progress-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.summary-item { background: var(--rosa-soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.summary-label { font-size: .7rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--granate); }
.summary-item .progress { margin: 6px 0 0; }
.progress-module { font-size: .95rem; margin: 18px 0 6px; display: flex; align-items: center; gap: 8px; }
.progress-table td { padding: 8px 10px; }
.progress-table .status-cell { width: 28px; padding-left: 0; }
.progress-table .right { text-align: right; }
.status-text.done { color: var(--granate); font-weight: 600; }
.status-text.viewed { color: #b36b00; font-weight: 600; }
.status-text.current { color: var(--muted); }
.check-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.role-guest { background: #fff4e0; color: #8a5a00; }
.matrix .current-col { min-width: 150px; }

/* Partes de la clase */
.lesson-parts { list-style: none; padding: 0; margin: 14px 0 0; display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: .9rem; font-weight: 500; }
.lesson-parts li { display: inline-flex; align-items: center; gap: 8px; }
.lesson-parts .part-extra { color: var(--muted); }
.lesson-parts .block-num { width: 22px; height: 22px; font-size: .7rem; }
.block-title-extra { color: var(--muted); }

/* Ejercicio en audio: bloque a todo el ancho, al mismo nivel que el vídeo y la masterclass */
.audio-cover {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 12% 110%, rgba(159, 1, 27, .10) 0 22%, transparent 22.5%),
    radial-gradient(circle at 12% 110%, transparent 0 32%, rgba(159, 1, 27, .08) 32.5% 33%, transparent 33.5%),
    radial-gradient(circle at 12% 110%, transparent 0 44%, rgba(159, 1, 27, .06) 44.5% 45%, transparent 45.5%),
    var(--rosa);
  padding: 44px 7% 48px;
}
.audio-cover-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.audio-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--granate);
  border-radius: 999px; padding: 6px 14px; font-size: .72rem; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; margin: 0 0 16px;
}
.audio-title { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 700; letter-spacing: -0.5px; line-height: 1.15; color: var(--granate); margin: 0 0 6px; }
.audio-sub { font-weight: 300; color: #444; margin: 0 0 28px; }
.audio-soon { background: #fff; border-radius: 14px; padding: 18px; color: var(--granate); font-weight: 500; margin: 0; }
.audio-cover .audio-frame { background: #fff; border-radius: 14px; overflow: hidden; }

.player {
  display: flex; align-items: center; gap: 20px; background: #fff; border-radius: 999px;
  padding: 12px 28px 12px 12px; box-shadow: 0 6px 20px rgba(159, 1, 27, .12); text-align: left;
}
.player audio { display: none; }
.player-play {
  flex: none; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--granate); color: #fff; display: grid; place-items: center; transition: transform .15s, background .15s;
}
.player-play:hover { background: var(--granate-dark); transform: scale(1.04); }
.player-play svg { margin-left: 3px; }
.player .icon-pause, .player.is-playing .icon-play { display: none; }
.player.is-playing .icon-pause { display: block; margin-left: 0; }
.player-main { flex: 1; min-width: 0; }
.player-seek {
  --pct: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; margin: 8px 0;
  background: linear-gradient(to right, var(--granate) var(--pct), var(--rosa) var(--pct)); cursor: pointer; border: 0; padding: 0;
}
.player-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--granate); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--granate); }
.player-seek::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--granate); border: 3px solid #fff; }
.player-seek:focus { outline: none; }
.player-seek:focus-visible { outline: 3px solid var(--rosa); }
.player-meta { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.player-tools { display: inline-flex; gap: 6px; }
.player-small {
  border: 1px solid var(--line); background: #fff; color: var(--granate); border-radius: 999px; padding: 3px 10px;
  font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
}
.player-small:hover { border-color: var(--granate); }

/* Material en PDF a todo el ancho */
.pdf-card { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin: 0; }
.pdf-info { flex: 1 1 220px; margin: 0; }
.pdf-info .pdf-name { margin: 0 0 2px; }
.pdf-info .small { margin: 0; }
.pdf-card .actions { margin: 0; }

@media (max-width: 760px) {
  .audio-cover { padding: 32px 18px 34px; }
  .player { padding: 10px 18px 10px 10px; gap: 14px; }
  .player-play { width: 54px; height: 54px; }
  .pdf-card .actions { width: 100%; }
}

/* Ficha del alumno */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center;
  background: var(--rosa); color: var(--granate); font-weight: 700; font-size: .85rem;
}
.avatar-xl { width: 140px; height: 140px; font-size: 2.6rem; }
.person-cell { display: flex; align-items: center; gap: 12px; }
.profile { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.profile-photo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.photo-form { display: flex; align-items: center; gap: 10px; }
.file-button { position: relative; }
.profile-info { flex: 1 1 320px; }
.profile-info h1 { margin-bottom: 8px; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.profile-contact { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.contact-label { display: inline-block; min-width: 76px; font-size: .7rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.profile-description { background: var(--rosa-soft); border-radius: 12px; padding: 14px 16px; font-weight: 300; }
.note-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.note-form textarea { min-height: 110px; }
.note-form .button { align-self: flex-start; }
.notes-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.note { border-left: 3px solid var(--granate); background: var(--bg); border-radius: 0 12px 12px 0; padding: 12px 16px; }
.note-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.note-body { margin: 0; }
@media (max-width: 760px) {
  .profile { flex-direction: column; align-items: center; text-align: center; }
  .profile-badges { justify-content: center; }
  .profile-contact { justify-items: center; }
}

/* ---------- Móvil ---------- */
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .hide-mobile { display: none; }
  .page { padding: 24px 16px 64px; }
  .page-head.row .button { padding: 10px 18px; }

  /* Menú en móvil: icono de tres rayas a la derecha del título; las opciones se despliegan debajo */
  .topbar-inner { flex-wrap: wrap; row-gap: 0; }
  .menu-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    border: 0; background: none; color: var(--granate); cursor: pointer; padding: 0;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 24px; height: 2.5px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
  .menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
  .menu-icon::before { top: -8px; }
  .menu-icon::after { top: 8px; }
  .menu-open .menu-icon { background: transparent; }
  .menu-open .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-open .menu-icon::after { top: 0; transform: rotate(-45deg); }
  body:not(.no-js) .topbar .nav { display: none; }
  body:not(.no-js) .topbar.menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding: 6px 0 2px;
  }
  .topbar.menu-open .nav > a, .topbar.menu-open .nav > form {
    display: block; padding: 14px 2px; border-top: 1px solid var(--line); font-size: 1.05rem; text-align: left;
  }
  /* En el menú desplegado, los botones se ven como opciones de texto */
  .topbar.menu-open .nav > a.button {
    background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; color: var(--ink);
    font-weight: 500; padding: 14px 2px;
  }
  .topbar.menu-open .nav > a.button:not(.button-light) { color: var(--granate); font-weight: 600; }
  .topbar.menu-open .nav .link-button { font-size: 1.05rem; color: var(--muted); }
  .admin-strip { font-size: .66rem; }

  /* Tablas como fichas */
  .table-wrap { padding: 0 16px; }
  .table.stackable thead { display: none; }
  .table.stackable, .table.stackable tbody, .table.stackable tr, .table.stackable td { display: block; width: 100%; }
  .table.stackable tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table.stackable tr:last-child { border-bottom: 0; }
  .table.stackable td { border: 0; padding: 3px 0 !important; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; }
  .table.stackable td[data-label]::before {
    content: attr(data-label); flex: none; font-size: .68rem; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); text-align: left;
  }
  .table.stackable td.person-cell { justify-content: flex-start; text-align: left; padding-bottom: 6px !important; }
  .table.stackable td.person-cell::before { display: none; }
  .table.stackable td.nowrap { white-space: normal; }
  .table.stackable .role-select { min-width: 150px; }

  /* Progreso en la ficha del alumno */
  .progress-table, .progress-table tbody { display: block; }
  .progress-table tr { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .progress-table td { border: 0; padding: 0 !important; }
  .progress-table .status-cell { grid-row: span 4; padding-top: 3px !important; }
  .progress-table td.nowrap { white-space: normal; }
  .progress-table .right { text-align: left; }

  /* Edición del curso: cada clase en varias líneas */
  .lesson-admin-list li { display: grid; grid-template-columns: 26px 1fr; gap: 8px 10px; }
  .lesson-admin-list li > .chips, .lesson-admin-list li > .actions { grid-column: 2; }
  .module-admin-head { flex-direction: column; }
  .module-admin-head > .actions { width: 100%; }

  /* Ficha */
  .contact-label { min-width: 0; margin-right: 6px; }
  .note-form .button, .stack > .button, .form-actions .button { width: 100%; }
  .form-actions .push-right { margin-left: 0; }
  .search .button { flex: 1 1 100%; }
  .role-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .role-tabs a { flex: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 1.6rem; }
  .quick-actions .button { flex: 1 1 100%; }
  .lesson-nav .nav-card { max-width: 49%; }
}

/* Progreso en móvil: una ficha por alumno */
.progress-cards { display: none; }
@media (max-width: 760px) {
  .matrix-wrap { display: none; }
  .progress-cards { display: flex; flex-direction: column; gap: 12px; }
  .progress-card { display: block; margin: 0; padding: 16px 18px; color: var(--ink); text-decoration: none; }
  .progress-card p { margin: 4px 0 0; }
  .progress-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .progress-card-head strong { color: var(--granate); }
  .progress-card-bar { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
  .progress-card-bar .progress { flex: 1; margin: 0; }
  .progress-card-modules { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
  .mini-module { display: inline-flex; align-items: center; gap: 4px; }
  .mini-module-label { font-size: .68rem; font-weight: 700; color: var(--granate); margin-right: 2px; }
  .mini-module .status-dot { width: 12px; height: 12px; }
  .legend { gap: 8px 14px; }
}

/* Actividad y Archivo */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide-col { width: 40px; text-align: right; }
.hide-button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid transparent; background: none; color: #b5aea6;
  font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.hide-button:hover { color: var(--granate); border-color: var(--line); background: #fff; }
.activity-hint { margin: -6px 0 12px; }
.table .right { text-align: right; }
@media (max-width: 760px) {
  .table.stackable td.hide-col { justify-content: flex-end; }
  .table.stackable td.hide-col::before { display: none; }
}
.send-link { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.send-link p { margin: 0 0 10px; }
code { background: var(--rosa-soft); color: var(--granate); padding: 1px 6px; border-radius: 6px; font-size: .88em; }

/* Zoom y directos */
.button-white { background: #fff; color: var(--granate); border-color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.button-white:hover { background: var(--rosa); border-color: var(--rosa); color: var(--granate); }
.live-join { margin: 0 0 14px; }
.locked-lives { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.locked-lives li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Calendario */
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.calendar-head h2 { margin: 0; }
.calendar-head .icon-button { display: grid; place-items: center; text-decoration: none; width: 36px; height: 36px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar-dow { text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: 1.5px; color: var(--muted); padding-bottom: 4px; }
.calendar-cell { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: #fff; min-width: 0; }
.calendar-cell.is-empty { border: 0; background: transparent; }
.calendar-cell.is-today { border-color: var(--granate); box-shadow: inset 0 0 0 1px var(--granate); }
.calendar-day { font-size: .82rem; font-weight: 600; color: var(--muted); }
.is-today .calendar-day { color: var(--granate); }
.calendar-event { display: block; font-size: .72rem; line-height: 1.3; padding: 3px 6px; border-radius: 6px; text-decoration: none; min-width: 0; }
.event-text { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-live { background: var(--granate); color: #fff; }
.event-module { background: var(--rosa); color: var(--granate); }
.legend-chip { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.calendar .legend { margin: 14px 0 0; }
.agenda { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.agenda-item { display: flex; gap: 18px; align-items: flex-start; margin: 0; }
.event-border-live { border-left: 4px solid var(--granate); }
.event-border-module { border-left: 4px solid #f0b8b8; }
.agenda-date { flex: none; width: 58px; text-align: center; background: var(--rosa); border-radius: 12px; padding: 8px 0; color: var(--granate); }
.agenda-day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1; }
.agenda-month { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.agenda-info { flex: 1; min-width: 0; }
.agenda-info .eyebrow { margin-bottom: 4px; }
.agenda-info h3 { margin: 0 0 4px; }
.agenda-info .small { margin: 0 0 10px; }
.agenda-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .calendar { padding: 14px; }
  .calendar-grid { gap: 3px; }
  .calendar-cell { min-height: 46px; padding: 4px; align-items: center; }
  .calendar-event { width: 8px; height: 8px; padding: 0; border-radius: 50%; }
  .calendar-event .event-text { display: none; }
  .calendar-cell.has-events { flex-flow: row wrap; justify-content: center; align-content: flex-start; }
  .calendar-cell.has-events .calendar-day { width: 100%; text-align: center; }
  .agenda-actions .button { flex: 1 1 100%; }
  .topbar .nav .button-small { padding: 6px 12px; }
}

/* Suscripción al calendario */
.subscribe { background: var(--rosa); border: 0; box-shadow: none; }
.subscribe h2 { color: var(--granate); margin-bottom: 6px; }
.subscribe-text p { margin-bottom: 16px; }
.subscribe-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe-actions .button { display: inline-flex; align-items: center; gap: 8px; }
.subscribe-actions .button-light { background: #fff; }
.subscribe-help { margin-top: 16px; }
.subscribe-help summary { cursor: pointer; color: var(--granate); font-weight: 600; }
.subscribe-help ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; }
@media (max-width: 760px) {
  .subscribe-actions .button { width: 100%; justify-content: center; }
}

/* Selector Goteo | Completo */
.segmented { display: inline-flex; background: #f1efea; border-radius: 999px; padding: 3px; gap: 2px; margin: 0; }
.segmented button {
  border: 0; background: none; font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.segmented button:hover { color: var(--granate); }
.segmented button.is-active { background: var(--granate); color: #fff; cursor: default; }
.profile-settings { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 16px; }
.profile-setting { display: flex; align-items: center; gap: 10px; }
.profile-setting .contact-label { min-width: 0; }
@media (max-width: 760px) {
  .profile-settings { justify-content: center; }
  .table.stackable .segmented { flex: none; }
}

/* Acceso en pausa (alumno) */
.paused-card { text-align: center; border-top: 5px solid var(--granate); }
.paused-card.small-card { text-align: left; background: var(--rosa-soft); border: 1px solid var(--rosa); border-top: 5px solid var(--granate); }
.paused-card.small-card p:last-child { margin: 0; }
.paused-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--rosa); color: var(--granate); display: grid; place-items: center; margin: 0 auto 16px; }
.paused-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 0; }

/* Estado del acceso */
.badge-paused { background: #fff1d6; color: #8a5a00; }
.badge-blocked { background: #1a1a1a; color: #fff; }
.access-note { background: var(--rosa-soft); border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; line-height: 1.5; }
.access-options { display: flex; flex-direction: column; }
.access-option { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.access-option > div { flex: 1 1 320px; }
.access-option h3 { margin: 0 0 2px; font-size: 1rem; }
.access-option p { margin: 0; }
.access-option form { margin: 0; }
.button-danger-solid { background: var(--granate); border-color: var(--granate); color: #fff; }

/* Ventana de confirmación */
.modal { border: 0; border-radius: 20px; padding: 0; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); color: var(--ink); }
.modal::backdrop { background: rgba(26, 26, 26, .45); }
.modal-inner { padding: 28px; border-top: 5px solid var(--granate); display: flex; flex-direction: column; gap: 12px; }
.modal-title { font-size: 1.3rem; margin: 0; }
.modal-text { margin: 0; color: #444; line-height: 1.55; }
.modal-reason { font-size: .9rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
@media (max-width: 760px) { .modal-actions .button { flex: 1 1 100%; } .access-option form, .access-option .button { width: 100%; } }
.badge-frozen { background: #e8eef7; color: #33507a; }
.access-disabled { font-style: italic; }
.shared-warning { background: #fff1d6; color: #6b4600; border-radius: 12px; padding: 10px 14px; }

/* ---------- Protección del contenido ---------- */
.area-student .lesson, .area-student .audio-cover, .area-student .live-cover {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.no-scroll { overflow: hidden; }
@media print {
  .area-student main { display: none !important; }
  .area-student::after { content: 'Contenido protegido de la Escuela de Límites.'; display: block; padding: 40px; font-size: 18px; }
}

/* Dispositivos y accesos */
.sub-title { font-size: .95rem; margin: 18px 0 8px; }
.device-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.device-list li { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 12px; padding: 10px 14px; }
.device-icon { font-size: 1.4rem; }
.related-accounts { background: #fff1d6; border-radius: 12px; padding: 4px 16px 12px; margin-top: 16px; }
.related-accounts .sub-title { color: #6b4600; }
.related-accounts p { margin: 0 0 6px; }
