/* ============================================================
   Vögel Academy — demo navegable
   Identidad: blanco y negro premium, filetes finos, sans geométrica
   ============================================================ */

:root {
  --paper: #FFFFFF;
  --soft: #F6F5F2;
  --ink: #131211;
  --muted: #716D68;
  --line: #E7E4DF;
  --inv-paper: #131211;
  --inv-ink: #F4F2EE;
  --inv-muted: #9C9890;
  --inv-line: #2C2A27;
  --ok: #1F6B45;
  --bad: #8C2F2F;
  --maxw: 72rem;
  --font: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Helvetica, ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }

/* ---------- tipografía utilitaria ---------- */
.eyebrow {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; line-height: 1.12; }
.lede { color: var(--muted); font-size: 1.06rem; max-width: 38rem; }
.fine { font-size: 0.82rem; color: var(--muted); }

/* ---------- wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { width: 30px; height: 30px; }
.wordmark { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; line-height: 1.2; }
.wordmark small { display: block; font-size: 0.5rem; font-weight: 500; letter-spacing: 0.58em; color: var(--muted); margin-top: 0.1rem; }
.inv .wordmark small { color: var(--inv-muted); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.78rem 1.5rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--inv-ink);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--inv-ink); }
.btn.inverse { background: var(--inv-ink); color: var(--ink); border-color: var(--inv-ink); }
.btn.inverse:hover { background: transparent; color: var(--inv-ink); }
.btn.small { padding: 0.55rem 1.05rem; font-size: 0.66rem; }
.btn .arr { transition: transform 0.18s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

.linkmore {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 0.2rem;
}

/* ---------- cabecera pública ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 4.2rem; gap: 1rem; }
.site-nav { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a:not(.btn) {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); transition: color 0.15s ease;
  padding: 0.4rem 0;
}
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--ink); }
.menu-toggle { display: none; padding: 0.5rem; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.6rem 1.4rem 1.2rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 0.7rem 0; }
  .site-nav .btn { margin-top: 0.8rem; }
}

/* ---------- hero ---------- */
.hero { padding: 5rem 0 4.2rem; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.7rem); margin: 0 0 1.2rem; }
.hero .lede { margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual .frame { border: 1px solid var(--ink); position: relative; z-index: 1; background: var(--soft); }
.hero-visual::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--line); z-index: 0;
}
.hero-visual figcaption {
  margin-top: 0.9rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); display: flex; justify-content: space-between; gap: 1rem;
}
@media (max-width: 860px) {
  .hero { padding: 3.2rem 0 3rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2.6rem; }
}

/* fila de beneficios bajo el hero */
.benefits { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefits .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.benefit { display: flex; gap: 0.95rem; padding: 1.6rem 1.6rem 1.6rem 0; align-items: flex-start; }
.benefit + .benefit { border-left: 1px solid var(--line); padding-left: 1.6rem; }
.benefit .ic { flex: 0 0 auto; margin-top: 0.15rem; }
.benefit h3 { font-size: 0.88rem; margin-bottom: 0.15rem; }
.benefit p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 860px) {
  .benefits .wrap { grid-template-columns: 1fr; }
  .benefit + .benefit { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .benefit { padding: 1.2rem 0; }
}

/* ---------- secciones ---------- */
.section { padding: 5.4rem 0 5.8rem; }
.section.soft { background: var(--soft); }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3.2rem; }
.section-head .eyebrow { margin-bottom: 0.8rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); }

/* tarjetas de características */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature {
  border: 1px solid var(--line); background: var(--paper); padding: 1.7rem 1.5rem;
  transition: border-color 0.2s ease;
}
.feature:hover { border-color: var(--ink); }
.feature .ic { margin-bottom: 1.1rem; }
.feature h3 { font-size: 0.94rem; margin-bottom: 0.4rem; }
.feature p { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid4 { grid-template-columns: 1fr; } }

/* tarjetas de curso */
.course-card {
  border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.course-card:hover { border-color: var(--ink); transform: translateY(-4px); }
.course-card .thumb { border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; overflow: hidden; }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.course-card .body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.course-card .area { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.course-card h3 { font-size: 1.02rem; }
.course-card p { font-size: 0.84rem; color: var(--muted); line-height: 1.55; flex: 1; }
.course-card .linkmore { margin-top: 0.9rem; align-self: flex-start; }
.section-cta { text-align: center; margin-top: 2.8rem; }

/* barra de cifras */
.stats { background: var(--inv-paper); color: var(--inv-ink); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.4rem 1.5rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--inv-line); }
.stat .big { font-size: 1.95rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.stat .lbl { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--inv-muted); margin-top: 0.5rem; }
@media (max-width: 860px) {
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--inv-line); }
}

/* comunidad */
.community .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.mosaic .tile { border: 1px solid var(--line); aspect-ratio: 1; overflow: hidden; }
.mosaic .tile img { width: 100%; height: 100%; object-fit: cover; }
.mosaic .tile.dark {
  background: var(--inv-paper); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.9rem; border-color: var(--inv-paper);
}
.mosaic .tile.dark img { width: 40%; height: auto; }
.mosaic .tile.dark .wordmark { color: var(--inv-ink); font-size: 0.66rem; text-align: center; }
.mosaic .tile.dark .wordmark small { color: var(--inv-muted); }
.community h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-bottom: 1rem; }
.community .lede { font-size: 0.95rem; margin-bottom: 1.6rem; }
.checklist { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 2rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.92rem; }
.checklist .ic { flex: 0 0 auto; margin-top: 0.22rem; }
@media (max-width: 860px) { .community .wrap { grid-template-columns: 1fr; gap: 2.4rem; } }

/* banda asesor */
.advisor { border: 1px solid var(--line); background: var(--paper); padding: 1.7rem 2rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.advisor .ic { flex: 0 0 auto; }
.advisor .txt { flex: 1 1 16rem; }
.advisor h3 { font-size: 1.02rem; margin-bottom: 0.15rem; }
.advisor p { font-size: 0.86rem; color: var(--muted); }

/* testimonios */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quote { border: 1px solid var(--line); background: var(--paper); padding: 1.7rem 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.quote .stars { display: flex; gap: 0.25rem; color: var(--ink); }
.quote blockquote { font-size: 0.92rem; line-height: 1.6; flex: 1; }
.quote .who { display: flex; align-items: center; gap: 0.8rem; }
.avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--inv-paper); color: var(--inv-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; flex: 0 0 auto;
}
.avatar.light { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.quote .who strong { display: block; font-size: 0.88rem; }
.quote .who span { font-size: 0.76rem; color: var(--muted); }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }

/* ---------- pie ---------- */
.site-foot { background: var(--inv-paper); color: var(--inv-ink); margin-top: 5rem; }
.site-foot a:hover { color: var(--inv-ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.8rem 0 3rem; }
.foot-brand p { font-size: 0.84rem; color: var(--inv-muted); margin: 1.1rem 0 1.4rem; max-width: 17rem; line-height: 1.6; }
.foot-col h4 { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--inv-muted); margin-bottom: 1rem; }
.foot-col ul { list-style: none; display: grid; gap: 0.55rem; }
.foot-col a, .foot-col li { font-size: 0.86rem; color: #CFCBC4; }
.social { display: flex; gap: 0.9rem; }
.social a { color: var(--inv-muted); transition: color 0.15s ease; }
.foot-bar { border-top: 1px solid var(--inv-line); padding: 1.3rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.74rem; color: var(--inv-muted); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- cabecera del campus (logueado) ---------- */
.campus-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--inv-paper); color: var(--inv-ink);
}
.campus-head .wrap { display: flex; align-items: center; height: 4rem; gap: 1.6rem; }
.campus-head .wordmark small { color: var(--inv-muted); }
.campus-nav { display: flex; gap: 1.5rem; margin-left: 1rem; }
.campus-nav a {
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--inv-muted); padding: 0.4rem 0; transition: color 0.15s ease;
}
.campus-nav a:hover, .campus-nav a.active { color: var(--inv-ink); }
.campus-tools { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; }
.tool-btn { padding: 0.55rem; color: var(--inv-muted); transition: color 0.15s ease; position: relative; }
.tool-btn:hover { color: var(--inv-ink); }
.tool-btn .dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--inv-ink); }
.user-menu { position: relative; margin-left: 0.4rem; }
.user-menu .avatar { width: 2.15rem; height: 2.15rem; background: var(--inv-ink); color: var(--ink); font-size: 0.66rem; }
.user-pop {
  position: absolute; right: 0; top: calc(100% + 0.7rem); min-width: 15rem;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(19, 18, 17, 0.12);
  padding: 1rem 1.1rem; display: none; z-index: 60;
}
.user-pop.open { display: block; }
.user-pop strong { display: block; font-size: 0.9rem; }
.user-pop .fine { display: block; margin-bottom: 0.8rem; word-break: break-all; }
@media (max-width: 700px) { .campus-nav { display: none; } }

/* ---------- páginas del campus ---------- */
.page-head { padding: 3.4rem 0 2.6rem; border-bottom: 1px solid var(--line); background: var(--soft); }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 0.5rem; }
.page-head .meta { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); margin-top: 0.9rem; }
.page-head .meta span { display: inline-flex; align-items: center; gap: 0.45rem; }

.progressbar { height: 6px; background: var(--line); position: relative; overflow: hidden; }
.progressbar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); transition: width 0.5s ease; }
.progress-box { border: 1px solid var(--line); background: var(--paper); padding: 1.1rem 1.3rem 1.3rem; }
.progress-box .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem; }
.progress-box .row b { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.progress-box .row span { font-size: 0.78rem; color: var(--muted); }

/* tarjeta continuar (campus) */
.continue-card { border: 1px solid var(--ink); background: var(--paper); display: grid; grid-template-columns: 0.9fr 1.1fr; overflow: hidden; }
.continue-card .thumb { border-right: 1px solid var(--line); background: var(--soft); }
.continue-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.continue-card .body { padding: 2rem 2.2rem; display: flex; flex-direction: column; gap: 0.9rem; justify-content: center; }
@media (max-width: 780px) {
  .continue-card { grid-template-columns: 1fr; }
  .continue-card .thumb { border-right: 0; border-bottom: 1px solid var(--line); max-height: 220px; }
  .continue-card .thumb img { height: 220px; }
}
.course-card .locked-note { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: inline-flex; gap: 0.5rem; align-items: center; margin-top: 0.9rem; }
.course-card.locked { opacity: 0.75; }
.course-card.locked:hover { transform: none; border-color: var(--line); }

/* ---------- acordeón de módulos ---------- */
.module { border: 1px solid var(--line); background: var(--paper); }
.module + .module { margin-top: -1px; }
.module-head { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.05rem 1.2rem; text-align: left; }
.module-head:hover { background: var(--soft); }
.module-head .st { flex: 0 0 auto; display: inline-flex; }
.module-head .t { flex: 1; }
.module-head .t b { display: block; font-size: 0.93rem; font-weight: 600; }
.module-head .t span { font-size: 0.74rem; color: var(--muted); }
.module-head .chev { transition: transform 0.2s ease; color: var(--muted); }
.module.open .module-head .chev { transform: rotate(180deg); }
.module-body { display: none; border-top: 1px solid var(--line); }
.module.open .module-body { display: block; }
.lesson-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.72rem 1.2rem 0.72rem 1.35rem; font-size: 0.86rem; color: var(--ink); }
.lesson-row:hover { background: var(--soft); }
.lesson-row + .lesson-row { border-top: 1px solid var(--soft); }
.lesson-row .st { flex: 0 0 auto; display: inline-flex; }
.lesson-row .nm { flex: 1; }
.lesson-row .dur { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson-row.current { background: var(--soft); box-shadow: inset 3px 0 0 var(--ink); font-weight: 600; }
.lesson-row.pending { color: var(--muted); }

/* estados (círculos) */
.st-done, .st-progress, .st-pending { width: 1.15rem; height: 1.15rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.st-done { background: var(--ink); color: var(--inv-ink); }
.st-progress { border: 1.5px dashed var(--ink); }
.st-progress::after { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--ink); }
.st-pending { border: 1.5px solid var(--line); }

/* ---------- lección ---------- */
.lesson-layout { display: grid; grid-template-columns: 1fr 21rem; gap: 3rem; padding: 2.8rem 1.4rem 4rem; align-items: start; }
@media (max-width: 980px) { .lesson-layout { grid-template-columns: 1fr; } }
.lesson-main h1 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 0.4rem; }
.lesson-main .coursename { font-size: 0.86rem; color: var(--muted); margin-bottom: 1.6rem; }
.backlink { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem; transition: color 0.15s ease; }
.backlink:hover { color: var(--ink); }
.lesson-main h2.block { font-size: 1.05rem; margin: 2.4rem 0 1rem; }
.lesson-main p { margin-bottom: 1rem; }
.lesson-side { position: sticky; top: 5.4rem; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.side-head b { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.side-head button { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 0.1rem; }
.side-head button:hover { color: var(--ink); border-color: var(--ink); }
.lesson-side .module-head { padding: 0.85rem 1rem; }
.lesson-side .lesson-row { padding: 0.6rem 1rem; font-size: 0.8rem; }

/* material de apoyo */
.material { border: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: 0.95rem 1.2rem; }
.material .ic { flex: 0 0 auto; }
.material .t { flex: 1; }
.material .t b { display: block; font-size: 0.9rem; font-weight: 600; }
.material .t span { font-size: 0.74rem; color: var(--muted); }

/* botonera de la lección */
.lesson-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2.2rem; align-items: center; }
.lesson-actions .spacer { flex: 1; }
@media (max-width: 640px) { .lesson-actions .spacer { display: none; } }

/* ---------- player ---------- */
.player { position: relative; background: #000; border: 1px solid var(--ink); aspect-ratio: 16 / 9; overflow: hidden; }
.player video { width: 100%; height: 100%; }
.player .brandmark {
  position: absolute; top: 1rem; left: 1.1rem; z-index: 3;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(244, 242, 238, 0.75); pointer-events: none;
}
.watermark {
  position: absolute; z-index: 3; pointer-events: none;
  font-size: 0.66rem; letter-spacing: 0.06em; line-height: 1.45;
  color: rgba(244, 242, 238, 0.6);
  background: rgba(19, 18, 17, 0.28);
  padding: 0.3rem 0.55rem;
  transition: top 1.1s ease, left 1.1s ease;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.player-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  background: rgba(19, 18, 17, 0.25);
  transition: opacity 0.25s ease;
}
.player-overlay.hidden { opacity: 0; pointer-events: none; }
.bigplay {
  width: 4.6rem; height: 4.6rem; border-radius: 50%;
  border: 1px solid rgba(244, 242, 238, 0.9);
  background: rgba(19, 18, 17, 0.45); color: #F4F2EE;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease;
}
.bigplay:hover { transform: scale(1.06); background: rgba(19, 18, 17, 0.7); }
.player-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  color: #F4F2EE;
  opacity: 0; transition: opacity 0.25s ease;
}
.player:hover .player-bar, .player.paused .player-bar, .player:focus-within .player-bar { opacity: 1; }
.player-bar button { color: #F4F2EE; padding: 0.3rem; display: inline-flex; }
.player-bar button:hover { color: #fff; }
.player-bar .time { font-size: 0.7rem; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.seek { flex: 1; height: 20px; display: flex; align-items: center; cursor: pointer; }
.seek .track { width: 100%; height: 3px; background: rgba(244, 242, 238, 0.3); position: relative; }
.seek .fill { position: absolute; inset: 0 auto 0 0; background: #F4F2EE; width: 0; }
.player-note { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 0.8rem; font-size: 0.76rem; color: var(--muted); }
.player-note .ic { flex: 0 0 auto; margin-top: 0.1rem; }

/* ---------- quiz ---------- */
.quiz-card { border: 1px solid var(--line); background: var(--paper); padding: 1.6rem 1.7rem; margin-bottom: 1rem; }
.quiz-card .qn { font-size: 0.64rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.quiz-card h3 { font-size: 1rem; margin-bottom: 1.1rem; }
.option { display: flex; align-items: flex-start; gap: 0.85rem; padding: 0.8rem 1rem; border: 1px solid var(--line); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; font-size: 0.92rem; }
.option + .option { margin-top: 0.55rem; }
.option:hover { border-color: var(--ink); }
.option input { position: absolute; opacity: 0; }
.option .radio { flex: 0 0 auto; width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 1.5px solid var(--muted); margin-top: 0.2rem; display: inline-flex; align-items: center; justify-content: center; }
.option input:checked + .radio { border-color: var(--ink); }
.option input:checked + .radio::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ink); }
.option input:focus-visible + .radio { outline: 2px solid var(--ink); outline-offset: 2px; }
.option.checked { border-color: var(--ink); background: var(--soft); }
.quiz-card.good { border-left: 3px solid var(--ok); }
.quiz-card.poor { border-left: 3px solid var(--bad); }
.qfeedback { margin-top: 1rem; padding: 0.85rem 1.1rem; background: var(--soft); font-size: 0.84rem; display: flex; gap: 0.6rem; align-items: flex-start; }
.qfeedback .ic { flex: 0 0 auto; margin-top: 0.15rem; }
.qfeedback.okc { color: var(--ok); }
.qfeedback.badc { color: var(--bad); }

.result-band { border: 1px solid var(--ink); padding: 2rem 2.2rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin: 2rem 0; }
.result-band .score { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.result-band .score small { font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.result-band .txt { flex: 1 1 16rem; }
.result-band .txt h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.result-band .txt p { font-size: 0.86rem; color: var(--muted); }
.result-band.pass { background: var(--inv-paper); color: var(--inv-ink); }
.result-band.pass .txt p { color: var(--inv-muted); }
.result-band.pass .score small { color: var(--inv-muted); }

/* ---------- acceso ---------- */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--inv-paper); color: var(--inv-ink); padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side .quote-big { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; max-width: 24rem; text-wrap: balance; }
.auth-side .fine { color: var(--inv-muted); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 3rem 1.6rem; }
.auth-box { width: 100%; max-width: 24rem; }
.auth-box h1 { font-size: 1.55rem; margin-bottom: 0.5rem; }
.auth-box > p { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.field input {
  width: 100%; padding: 0.75rem 0.95rem; font-family: inherit; font-size: 0.95rem;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--ink); }
.auth-note { border: 1px dashed var(--line); background: var(--soft); padding: 0.9rem 1.1rem; font-size: 0.8rem; color: var(--muted); margin: 1.4rem 0 0; }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

/* ---------- certificado ---------- */
.cert-stage { background: var(--soft); padding: 3.5rem 1.4rem 4.5rem; }
.certificate {
  max-width: 52rem; margin: 0 auto; background: var(--paper);
  border: 1px solid var(--ink); padding: 0.55rem;
  box-shadow: 0 24px 60px rgba(19, 18, 17, 0.12);
}
.cert-inner { border: 1px solid var(--line); padding: 3.4rem 3rem 2.6rem; text-align: center; }
.cert-inner .logo { width: 54px; margin: 0 auto 1.2rem; }
.cert-inner .eyebrow { margin-bottom: 2rem; }
.cert-inner .confers { font-size: 0.92rem; color: var(--muted); }
.cert-name { font-family: "Iowan Old Style", "Palatino", Georgia, serif; font-style: italic; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.7rem 0; letter-spacing: 0.01em; }
.cert-course { font-size: 1.12rem; font-weight: 600; margin: 0.6rem 0 0.2rem; }
.cert-meta { font-size: 0.84rem; color: var(--muted); margin-top: 0.3rem; }
.cert-rule { width: 64px; height: 1px; background: var(--ink); margin: 1.8rem auto; }
.cert-sigs { display: flex; justify-content: center; gap: 4rem; margin-top: 2.4rem; flex-wrap: wrap; }
.cert-sig { min-width: 13rem; }
.cert-sig .line { border-top: 1px solid var(--ink); padding-top: 0.5rem; font-size: 0.8rem; }
.cert-sig .line b { display: block; font-size: 0.86rem; }
.cert-sig .line span { color: var(--muted); font-size: 0.74rem; }
.cert-foot { margin-top: 2.6rem; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cert-actions { text-align: center; margin-top: 2rem; display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
@media print {
  body * { visibility: hidden; }
  .certificate, .certificate * { visibility: visible; }
  .certificate { position: absolute; inset: 0; margin: 0; box-shadow: none; max-width: none; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* ---------- píldora demo ---------- */
.demo-pill {
  position: fixed; left: 1.1rem; bottom: 1.1rem; z-index: 90;
  font-family: var(--font);
}
.demo-pill .pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--inv-paper); color: var(--inv-ink);
  border: 1px solid var(--inv-paper);
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.5rem 0.9rem;
}
.demo-pill .pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #F4F2EE; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.demo-pill .panel {
  display: none; position: absolute; left: 0; bottom: calc(100% + 0.7rem);
  width: 19rem; background: var(--paper); color: var(--ink);
  border: 1px solid var(--ink); padding: 1.1rem 1.2rem;
  font-size: 0.8rem; line-height: 1.55;
  box-shadow: 0 18px 40px rgba(19, 18, 17, 0.15);
}
.demo-pill.open .panel { display: block; }
.demo-pill .panel b { display: block; margin-bottom: 0.35rem; font-size: 0.84rem; }
.demo-pill .panel p { color: var(--muted); margin-bottom: 0.5rem; }
.demo-pill .panel p:last-child { margin-bottom: 0; }
@media print { .demo-pill { display: none; } }

/* ---------- animación de aparición (solo si hay JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--inv-paper); color: var(--inv-ink);
  font-size: 0.8rem; padding: 0.75rem 1.3rem; z-index: 95;
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
