/* ───────── Enfocarte · sistema de diseño ───────── */
:root {
  color-scheme: dark;
  --bg: #0b0e14; --surface: #10141c; --ink: #f3f4f6; --muted: #a39889; --line: #222731;
  --chip: #1a1f29; --accent: #f59e0b; --accent-soft: rgba(245,158,11,.12); --accent-ink: #f5b84a;
  --ok-soft: #10261a; --ok-ink: #6fd39a; --warn-soft: #2e2208; --warn-ink: #f0c46a;
  --danger: #ff7d72; --star: #f5a524;
  --grad: linear-gradient(90deg, #f59e0b, #f97316);
  --btn: #f59e0b; --btn-ink: #1a1105;
  --champagne: #d8c9b7;
  --stage: #000000; --stage-ink: #ecebe8; --stage-muted: #a6a4ae;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 44px -26px rgba(0,0,0,.9);
  --radius: 14px;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, Cambria, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
main { max-width: 1120px; margin: 0 auto; padding: 8px 20px 72px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font: 600 clamp(1.9rem, 4vw, 2.7rem)/1.1 var(--serif); letter-spacing: -.02em; margin: 10px 0 14px; }
h2 { font-size: 1.08rem; font-weight: 650; margin: 0 0 12px; }
h3 { font-size: 1.05rem; font-weight: 650; }
main > h2, main > section > h2 { margin-top: 34px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); } .pre { white-space: pre-wrap; } .danger { color: var(--danger); }
.lead { font: 400 1.18rem/1.65 var(--serif); max-width: 62ch; color: color-mix(in srgb, var(--ink) 88%, transparent); }
.eyebrow { font-size: .78rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin: 18px 0 0; }
.spacer { flex: 1; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; } .row h2, .row h3 { margin: 0; }

/* ───────── Cabecera ───────── */
.top { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px;
  padding: 12px max(20px, calc((100vw - 1120px) / 2)); background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font: 700 1.3rem/1 var(--serif); letter-spacing: -.02em; text-decoration: none; }
.brand:hover { color: var(--ink); } .logo { color: var(--ink); }
.top nav { display: flex; gap: 2px; flex: 1; }
.top nav a { padding: 7px 14px; border-radius: 999px; text-decoration: none; font-size: .93rem; font-weight: 550; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.top nav a:hover { color: var(--ink); background: var(--chip); }
.top nav a.active { color: var(--ink); background: var(--chip); }
.logout { display: flex; align-items: center; gap: 10px; margin: 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 760px) {
  .top { gap: 8px 12px; padding-bottom: 8px; }
  .top nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
  .logout { margin-left: auto; } .logout span { display: none; }
}

/* ───────── Superficies ───────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 16px 0; box-shadow: var(--shadow); }
@media (max-width: 560px) { .card { padding: 18px 16px; border-radius: 16px; } }
.narrow { max-width: 440px; margin: 64px auto; text-align: center; }
.narrow .stack { text-align: left; }
.narrow h1 { margin-top: 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 18px; }
.list { list-style: none; margin: 0; padding: 0; } .list li { padding: 11px 0; border-bottom: 1px solid var(--line); } .list li:last-child { border: 0; }
details.card summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-weight: 650; }
details.card summary::-webkit-details-marker { display: none; }
details.card[open] summary { margin-bottom: 16px; }
code { background: var(--chip); padding: 2px 6px; border-radius: 6px; font-size: .88em; }

/* ───────── Formularios ───────── */
.stack { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; align-items: end; }
label { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; font-weight: 550; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { resize: vertical; line-height: 1.5; }
input[type=file] { padding: 9px 12px; background: var(--surface); }
.inline-label { flex-direction: row; align-items: center; gap: 8px; }
.inline-label input { width: auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 .95rem/1 var(--sans); padding: 13px 22px; border: 1px solid var(--btn); border-radius: 999px; background: var(--btn); color: var(--btn-ink); cursor: pointer; text-decoration: none; transition: transform .12s, opacity .15s, background .15s; }
.btn:hover { color: var(--btn-ink); opacity: .88; } .btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.btn.ghost:hover { color: var(--ink); background: var(--chip); opacity: 1; }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn:disabled { opacity: .5; cursor: wait; }
.link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--danger); } .link:disabled { opacity: .3; cursor: default; }
form.inline { display: inline; margin: 0 4px; }

.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 650; background: var(--ok-soft); color: var(--ok-ink); white-space: nowrap; vertical-align: middle; }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { font: 550 .86rem/1 var(--sans); padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background .15s; }
.chip:hover { background: var(--chip); color: var(--ink); }
.chip.on { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.chip input { width: auto; margin: 0; }

/* ───────── Listado de temas ───────── */
.topic-card { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 0 22px; transition: transform .15s, box-shadow .15s; }
.topic-card:hover { transform: translateY(-2px); }
.topic-card .num { font: 600 3rem/1 var(--serif); letter-spacing: -.03em; color: var(--accent); text-align: center; padding-top: 2px; }
.topic-card .num small { display: block; font: 650 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.topic-card h2 { font: 600 1.45rem/1.2 var(--serif); margin: 0 0 6px; }
.topic-card h2 a { text-decoration: none; } .topic-card h2 a::after { content: ""; position: absolute; inset: 0; }
.topic-card { position: relative; }
.topic-card .when { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.topic-card .meta-line { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
@media (max-width: 560px) { .topic-card { grid-template-columns: 1fr; } .topic-card .num { text-align: left; display: flex; align-items: baseline; gap: 8px; font-size: 2rem; } .topic-card .num small { margin: 0; } }

/* ───────── Página del tema ───────── */
.pdf { width: 100%; height: 78vh; min-height: 420px; border: 1px solid var(--line); border-radius: 12px; margin-top: 16px; background: #fff; }
.block-text { font: 400 1.12rem/1.7 var(--serif); max-width: 62ch; margin: 22px 0; }
.block .row { margin-bottom: 10px; }
.slot-card { max-width: 620px; border: 2px dashed var(--line); box-shadow: none; background: transparent; }
.slot-card.done { border: 1px solid var(--line); border-style: solid; background: var(--surface); box-shadow: var(--shadow); }
.slot-title { font-size: .78rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.slot-card .pre { font: 400 1.15rem/1.5 var(--serif); margin-bottom: 16px; }
.slot-img { width: 100%; max-height: 420px; object-fit: contain; background: var(--stage); border-radius: 12px; display: block; }
.drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 190px; border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); border-radius: 14px; background: var(--surface); cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px; text-align: center; color: var(--muted); font-size: .86rem; pointer-events: none; }
.drop-empty svg { color: var(--accent); } .drop-empty strong { color: var(--ink); font-size: 1rem; }
.drop-preview { width: 100%; max-height: 360px; object-fit: contain; background: var(--stage); display: block; }
.drop.has-file { border-style: solid; border-color: var(--accent); }
.drop.has-file .drop-empty { display: none; }

/* ───────── Mosaico de fotos ───────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 14px 0; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.tile { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--stage); color: #fff; text-decoration: none; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tile:hover img { transform: scale(1.04); } .tile:hover { color: #fff; }
.tile .meta { position: absolute; inset: auto 0 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 36px 12px 11px; font-size: .84rem; background: linear-gradient(to top, rgba(0,0,0,.78), transparent); }
.tile .meta strong { font-weight: 650; } .tile .meta .muted { color: rgba(255,255,255,.72); } .tile .meta em { flex-basis: 100%; font: italic .82rem/1.3 var(--serif); color: rgba(255,255,255,.85); }
.stars { color: var(--star); letter-spacing: 1px; } .big-stars { font-size: 1.35rem; }

/* ───────── Foto a pantalla grande ───────── */
.crumbs { display: flex; align-items: center; gap: 18px; padding: 14px 0 6px; font-size: .92rem; } .crumbs a { text-decoration: none; font-weight: 550; }
.photo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .photo-layout { grid-template-columns: 1fr; } }
.big { margin: 0; background: var(--stage); border-radius: var(--radius); overflow: hidden; color: var(--stage-ink); box-shadow: var(--shadow); }
.big img { width: 100%; max-height: 82vh; object-fit: contain; display: block; background: var(--stage); }
.big figcaption { padding: 14px 18px 16px; font-size: .95rem; } .big figcaption .muted { color: var(--stage-muted); }
.side .card:first-child { margin-top: 0; }
.rate { display: flex; align-items: center; gap: 2px; }
.rate button:not(.link) { font-size: 2.1rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--line); padding: 2px 3px; transition: transform .1s, color .1s; }
.rate button.on, .rate button:not(.link):hover { color: var(--star); } .rate button:not(.link):active { transform: scale(1.2); }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); } .comment p { margin: 6px 0 0; }
.comment.by-teacher { border-left: 3px solid var(--accent); padding-left: 14px; }

/* ───────── Alumnos ───────── */
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th { text-align: left; padding: 8px 8px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 650; border-bottom: 1px solid var(--line); }
td { padding: 12px 8px; border-bottom: 1px solid var(--line); } tr:last-child td { border: 0; }
tr.off { opacity: .55; } .actions { white-space: nowrap; text-align: right; }
@media (max-width: 700px) { .actions { white-space: normal; } td:nth-child(3), th:nth-child(3), td:nth-child(4), th:nth-child(4) { display: none; } }
.x-btn { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--danger); cursor: pointer; font-size: .8rem; transition: background .15s; }
.x-btn:hover { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.struck { text-decoration: line-through; }

/* ───────── Modo clase ───────── */
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.review-layout > .enunciados { order: 2; position: sticky; top: 76px; margin: 16px 0; }
@media (max-width: 900px) { .review-layout { grid-template-columns: 1fr; } .review-layout > .enunciados { order: 0; position: static; } }
.review-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 16px 0; box-shadow: var(--shadow); }
.stu { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stu:last-child { border: 0; } .stu.empty { opacity: .55; } .stu.off .stu-name a { text-decoration: line-through; }
.stu-name { min-width: 200px; font-weight: 650; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .stu-name a { text-decoration: none; }
.stu-thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumb { position: relative; display: block; cursor: pointer; }
.thumb img { width: 132px; height: 96px; object-fit: cover; border-radius: 10px; display: block; border: 3px solid transparent; transition: border-color .12s; background: var(--stage); }
.thumb input { position: absolute; top: 8px; left: 8px; width: 20px; height: 20px; z-index: 1; accent-color: var(--accent); cursor: pointer; }
.thumb input:checked + img { border-color: var(--accent); }
.enunciados p { font-size: .93rem; margin-bottom: 10px; }
.viewer { margin: 0 0 22px; background: var(--stage); color: var(--stage-ink); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.viewer img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 10px; display: block; cursor: zoom-in; }
.viewer .prompt { margin: 2px 4px 12px; font-size: .95rem; } .viewer .muted { color: var(--stage-muted); }
.viewer .btn.ghost { color: var(--stage-ink); border-color: rgba(255,255,255,.3); margin-top: 12px; } .viewer .btn.ghost:hover { background: rgba(255,255,255,.1); color: var(--stage-ink); }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 14px; }
.compare .viewer { margin: 0; } .compare .viewer img { max-height: 72vh; }
:fullscreen { background: #000; } :fullscreen.compare { overflow: auto; padding: 10px; }
img:fullscreen { object-fit: contain; width: 100vw; height: 100vh; max-height: none; border-radius: 0; cursor: zoom-out; }

/* ───────── Estética «galería oscura» (inspirada en el ambiente de LUMENIRA) ───────── */
html { background: var(--bg); }
body { background: radial-gradient(ellipse 60% 100% at 50% 0, rgba(245,158,11,.09), transparent 100%) top center / 100% 360px no-repeat, var(--bg); min-height: 100vh; }
h1 { font-weight: 300; color: var(--champagne); letter-spacing: .01em; font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
h2 { color: var(--ink); }
.lead { color: color-mix(in srgb, var(--champagne) 82%, var(--ink)); font-weight: 300; }
.eyebrow { color: var(--accent); }

.top { background: rgba(8,9,12,.88); border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }
.brand { text-transform: uppercase; letter-spacing: .24em; font-weight: 400; font-size: 1.02rem; gap: 12px; align-items: center; color: var(--champagne); }
.brand:hover { color: var(--champagne); }
.brand-text { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-text small { font: 400 .56rem/1 var(--sans); letter-spacing: .3em; color: var(--muted); }
.logo { color: var(--champagne); width: 34px; height: 34px; }
.top nav { gap: 4px; margin-left: 10px; }
.top nav a { border-radius: 8px; padding: 9px 13px; color: var(--muted); font-weight: 500; }
.top nav a:hover { background: transparent; color: var(--champagne); }
.top nav a.active { background: transparent; color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.logout { color: var(--muted); }

.card, .review-list { border-radius: var(--radius); background: var(--surface); border-color: var(--line); }
.card.slot-card { background: transparent; }
.card.slot-card.done { background: var(--surface); }
.narrow { margin-top: 12vh; }

.btn { background: var(--grad); border-color: transparent; color: var(--btn-ink); border-radius: 11px; padding: 12px 20px; font-weight: 650; letter-spacing: .01em; }
.btn:hover { color: var(--btn-ink); opacity: 1; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--champagne); border: 1px solid #3a3f49; }
.btn.ghost:hover { background: var(--chip); color: var(--ink); filter: none; border-color: var(--accent); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.chip { border-radius: 10px; background: transparent; color: var(--muted); border-color: #2b303a; }
.chip:hover { color: var(--ink); background: var(--chip); border-color: #3a3f49; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.badge { border: 1px solid transparent; }
input, select, textarea { background: #0a0d12; border-color: var(--line); border-radius: 10px; }
input[type=file] { background: #0a0d12; }
::placeholder { color: #6d6a67; }
.x-btn { background: var(--surface); }
.x-btn:hover { background: color-mix(in srgb, var(--danger) 18%, var(--surface)); }

.topic-card .num { color: var(--accent); font-weight: 300; }
.topic-card h2 { color: var(--champagne); font-weight: 400; }
.session { color: var(--accent); }
.block-text { color: color-mix(in srgb, var(--champagne) 70%, var(--ink)); font-weight: 300; font-size: 1.18rem; }
.slot-card .pre { color: var(--champagne); font-weight: 300; }
.slot-title { color: var(--accent); }
.drop { background: #0a0d12; border-color: #343a45; }
.drop:hover, .drop:focus-within { background: var(--accent-soft); }

/* Mosaico: miniaturas cuadradas con huecos finos, como un portafolio */
.grid { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
@media (max-width: 560px) { .grid { gap: 6px; } }
.tile { aspect-ratio: 1 / 1; border-radius: 4px; box-shadow: none; background: #000; }
.tile .meta { background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.0)); }
.tile:hover img { transform: scale(1.03); }
.thumb img { border-radius: 4px; }
.big, .viewer { border-radius: 8px; box-shadow: none; border: 1px solid #15181f; }
.viewer { background: #000; }
.slot-img { border-radius: 6px; background: #000; }
.pdf { border-color: var(--line); }
th { color: var(--muted); }
tr:hover td { background: rgba(255,255,255,.015); }
.comment.by-teacher { border-left-color: var(--accent); }
.rate button:not(.link) { color: #2a2f39; }

/* ───────── Visor a pantalla completa (modo clase) ───────── */
body.vwr-open { overflow: hidden; }
.thumb img[data-viewer], .viewer img[data-viewer] { cursor: zoom-in; }
.pen-badge { display: none; position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; place-items: center; background: var(--accent); color: #1a1105; font-size: .8rem; font-weight: 700; pointer-events: none; }
.thumb.annotated .pen-badge { display: grid; }
.vwr { display: none; position: fixed; inset: 0; z-index: 1000; background: #000; color: #eceae6; flex-direction: column; font-family: var(--sans); }
.vwr.open { display: flex; }
.vwr-bar { position: relative; z-index: 3; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; background: rgba(12,12,14,.96); border-bottom: 1px solid #23262d; }
.vwr-spacer { flex: 1; }
.vwr-title { font-size: .9rem; color: #a6a4ae; min-width: 3.2rem; }
.vwr-btn { font: 550 .84rem/1 var(--sans); padding: 8px 12px; border-radius: 8px; border: 1px solid #3a3f49; background: transparent; color: #eceae6; cursor: pointer; white-space: nowrap; }
.vwr-btn:hover:not(:disabled) { border-color: var(--accent); }
.vwr-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.vwr-btn:disabled { opacity: .35; cursor: default; }
.vwr-close { font-size: 1rem; padding: 7px 11px; }
.vwr-opts { display: none; align-items: center; gap: 6px; padding: 0 6px; }
.vwr-opts.show { display: inline-flex; }
.vwr-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #3a3f49; cursor: pointer; padding: 0; }
.vwr-swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.vwr-range { width: 110px; padding: 0; accent-color: var(--accent); }
.vwr-dot { display: inline-block; border-radius: 50%; background: #ff3b30; flex: none; min-width: 3px; min-height: 3px; }
.vwr-status { font-size: .78rem; color: #a6a4ae; min-width: 6.5rem; text-align: right; }
.vwr-view { position: relative; flex: 1; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.vwr-view.tool-hand { cursor: grab; } .vwr-view.tool-hand.grabbing { cursor: grabbing; } .vwr-view.tool-pen { cursor: crosshair; }
.vwr-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; outline: var(--ow, 1px) solid rgba(255,255,255,.92); background: #111; will-change: transform; }
.vwr-stage.loading { opacity: .4; }
.vwr-img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.vwr-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.vwr-svg.hidden { display: none; }
.vwr-cap { position: relative; z-index: 3; padding: 8px 16px 2px; font-size: .92rem; background: rgba(12,12,14,.96); }
.vwr-prompt { color: #a6a4ae; }
.vwr-hint { position: relative; z-index: 3; padding: 0 16px 8px; font-size: .74rem; color: #6f6e76; background: rgba(12,12,14,.96); }
@media (max-width: 760px) { .vwr-hint { display: none; } .vwr-btn { padding: 8px 9px; } }

/* ───────── Anotaciones del profesor visibles en la foto ───────── */
.photo-wrap { position: relative; background: #000; }
.photo-wrap .photo-img { width: auto; height: auto; max-width: 100%; max-height: 82vh; display: block; margin: 0 auto; object-fit: initial; }
.annot-svg { position: absolute; pointer-events: none; overflow: visible; }
.annot-svg.hidden { display: none; }
.annot-toggle { position: absolute; top: 10px; right: 10px; z-index: 2; font: 600 .8rem/1 var(--sans); padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.62); color: #eceae6; cursor: pointer; backdrop-filter: blur(6px); }
.annot-toggle[hidden] { display: none; }
.annot-toggle.on { border-color: var(--accent); color: var(--accent-ink); background: rgba(40,28,8,.72); }
.annot-toggle:not(.on) { opacity: .85; text-decoration: line-through; }
.tile .pen-badge { display: grid; top: 8px; right: 8px; bottom: auto; }
