/* Panel del alumno — PL_PANEL_20261005 */
:root {
  --paper: #f4efe6;
  --paper-2: #fffaf3;
  --ink: #1c1915;
  --muted: #6d6458;
  --line: rgba(28, 25, 21, 0.12);
  --blue: #1646b8;
  --blue-deep: #0d2d78;
  --red: #c82909;
  --gold: #a68445;
  --shadow: 0 24px 60px rgba(48, 32, 12, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(22, 70, 184, 0.12), transparent 55%),
    radial-gradient(700px 380px at -10% 20%, rgba(200, 41, 9, 0.08), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
}
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lede { color: var(--muted); line-height: 1.5; }
.err { color: var(--red); margin: 10px 0 0; }
.go {
  appearance: none; border: 0; cursor: pointer;
  background: var(--ink); color: #fffaf3;
  border-radius: 999px; padding: 12px 18px; font-weight: 650;
}
.go:hover { background: var(--blue-deep); }
.textlink {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  color: var(--blue); font-weight: 600; text-decoration: none; padding: 0;
}

.gate { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; }
.gate__card {
  width: min(440px, 100%);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.gate__card h1 { margin: 0 0 8px; font-size: 2.4rem; }
.gate__card label, .join label { display: grid; gap: 6px; margin: 12px 0; font-size: 0.85rem; color: var(--muted); }
.gate__card input, .join__row input, .shelf input {
  width: 100%; border: 1px solid var(--line); background: white;
  border-radius: 14px; padding: 12px 14px;
}
.gate__card .go { width: 100%; margin-top: 6px; }

.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px;
  background: rgba(244, 239, 230, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.brand { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; }
.top__who { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); }
.top__who strong {
  background: white; border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 10px; color: var(--ink); font-weight: 600;
}
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto 64px; }
.join { padding: 28px 0 10px; }
.join h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 8px; max-width: 16ch; }
.join__row { display: flex; gap: 10px; align-items: center; max-width: 520px; }
.join__row input {
  font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.18em; text-transform: uppercase;
}

.hero { margin: 12px 0 8px; }
.ticket {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  background: var(--paper-2);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.ticket__main { padding: 28px 28px 24px; }
.ticket__main h2 { margin: 6px 0 8px; font-size: clamp(2rem, 4vw, 3rem); }
.ticket__time {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 0;
}
.ticket__when { color: var(--gold); font-weight: 700; letter-spacing: 0.04em; }
.ticket__notes { max-width: 38rem; line-height: 1.5; color: #3f382f; }
.ticket__side {
  background:
    linear-gradient(160deg, rgba(255,255,255,.14), transparent 40%),
    linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: white;
  padding: 28px 24px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 12px;
  position: relative;
}
.ticket__side::before {
  content: "";
  position: absolute; left: 0; top: 18px; bottom: 18px; width: 14px;
  background: radial-gradient(circle at 0 10px, var(--paper-2) 6px, transparent 7px) 0 0 / 14px 22px repeat-y;
}
.ticket__side span { opacity: .85; }
.ticket__side .go { background: white; color: var(--blue-deep); align-self: flex-start; }
.ticket--empty { display: block; padding: 36px 28px; }
.ticket--empty h2 { margin: 0 0 8px; font-size: 2.2rem; }

.block { margin-top: 34px; }
.block__head h2 { margin: 0 0 4px; font-size: 1.8rem; }
.block__head p { margin: 0 0 14px; color: var(--muted); }
.sessions { display: grid; gap: 10px; }
.session {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 92px 1fr auto;
  gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 18px;
  background: rgba(255,255,255,.66); border: 1px solid var(--line);
}
.session strong { display: block; }
.session em, .session small { color: var(--muted); font-style: normal; }
.session b { font-family: var(--serif); font-size: 1.35rem; font-weight: 560; }
.doors { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; align-items: start; }
.academia {
  display: grid; gap: 6px; text-decoration: none;
  min-height: 180px; padding: 22px;
  border-radius: 24px; color: white;
  background:
    radial-gradient(400px 180px at 100% 0%, rgba(200,41,9,.55), transparent 60%),
    linear-gradient(160deg, #1646b8, #0d2d78);
}
.academia span { letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; font-weight: 700; }
.academia strong { font-family: var(--serif); font-size: 2rem; font-weight: 560; }
.academia em { font-style: normal; opacity: .88; }
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.world {
  display: grid; gap: 4px; text-decoration: none; text-align: left;
  background: white; border: 1px solid var(--line); border-radius: 18px;
  padding: 14px; cursor: pointer; font: inherit; color: inherit;
}
.world b { font-size: 1.4rem; }
.world span { font-weight: 600; }
.ads { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ad {
  background: white; border-radius: 20px; padding: 16px 16px 14px;
  border: 1px solid var(--line);
}
.ad i { display: block; font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--red); }
.ad.source-plataforma i { color: var(--blue); }
.ad h3 { margin: 6px 0; font-size: 1.25rem; }
.ad p { margin: 0 0 8px; color: #3f382f; line-height: 1.45; }
.ad img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; margin-bottom: 8px; }
.shelf {
  margin-top: 14px; background: white; border-radius: 22px; border: 1px solid var(--line); padding: 16px;
}
.shelf h3 { margin: 0 0 10px; }
.lesson {
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); border-radius: 14px;
  padding: 10px 12px; margin-bottom: 8px;
}
.lesson small { color: var(--muted); }
.shelf__body { line-height: 1.55; white-space: pre-wrap; }
.shelf__frame { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 16px; background: #111; }

.room {
  position: fixed; inset: 0; z-index: 20;
  background: #100e0c;
  color: #f6f1e7;
  display: grid;
  grid-template-rows: auto auto 1fr;
}
.room__bar {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px;
}
.room__bar .textlink { color: #f3d7a1; }
.room__bar strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.room__bar span, .room__notes { color: rgba(246,241,231,.75); }
.room__notes { margin: 0 18px 10px; max-width: 46rem; line-height: 1.45; }
.room__stage { min-height: 0; margin: 0 12px 12px; border-radius: 18px; overflow: hidden; background: #000; }
.room__stage iframe { width: 100%; height: 100%; border: 0; background: #000; }
.room__out {
  height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; gap: 8px;
}
.room__out .go { text-decoration: none; display: inline-block; }

.empty { color: var(--muted); }
@media (max-width: 800px) {
  .ticket, .doors, .session, .join__row { grid-template-columns: 1fr; display: grid; }
  .ticket__side::before { display: none; }
  .top__who span { display: none; }
}

[hidden] { display: none !important; }

.top { flex-wrap: wrap; }
#logoutBtn { flex: none; white-space: nowrap; }
.top__who { min-width: 0; }
.top__who span, .top__who strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tablero del alumno — PL_DASH_20261005 */
.gate__card select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
}
.dash { display: grid; gap: 16px; margin-bottom: 8px; }
.dash__cards { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 14px; }
.spark {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 28px 28px 24px;
  border-radius: 28px;
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(200, 41, 9, 0.45), transparent 60%),
    linear-gradient(160deg, #241c16 0%, #1c1915 55%, #0d2d78 140%);
  color: #f4efe6;
  box-shadow: var(--shadow);
}
.spark .eyebrow { color: #f0c27a; }
.spark h2 { margin: 0 0 12px; max-width: 16ch; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.05; }
.spark p { margin: 0; max-width: 36ch; color: rgba(244, 239, 230, 0.82); line-height: 1.45; }
.spark img {
  position: absolute; right: -8px; bottom: -18px; width: 148px; height: auto;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.28));
  pointer-events: none;
}
.tipcard {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px;
  border-radius: 28px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.tipcard h3 { margin: 0; font-size: 1.45rem; line-height: 1.2; }
.tipcard p { margin: 0; color: var(--muted); }
.tipcard a {
  margin-top: auto;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
}
.tipcard a img { width: 72px; height: 72px; object-fit: cover; border-radius: 16px; background: #efe8dc; }
.dash__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash__stats article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
}
.dash__stats b { display: block; font-family: var(--serif); font-size: 2rem; letter-spacing: -0.04em; line-height: 1; }
.dash__stats span { color: var(--muted); font-size: 0.85rem; }
.chart, .courses {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px 18px 16px;
}
.chart__bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 180px;
  margin-top: 8px;
  padding-top: 8px;
  border-bottom: 1px solid var(--line);
}
.vbar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.vbar b { font-size: 0.72rem; color: var(--muted); font-weight: 650; }
.vbar i { display: block; width: min(42px, 100%); border-radius: 12px 12px 4px 4px; min-height: 8px; }
.vbar span { font-size: 0.72rem; font-weight: 650; text-align: center; }
.courses__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.course {
  display: grid;
  text-decoration: none;
  color: inherit;
  background: white;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.course__pic { display: block; height: 132px; background-size: cover; background-repeat: no-repeat; background-color: #efe8dc; }
.course__body { display: grid; gap: 6px; padding: 12px 14px 14px; }
.course__body strong { font-family: var(--serif); font-size: 1.2rem; }
.course__body em { font-style: normal; color: var(--muted); font-size: 0.85rem; }
.meter { display: block; height: 8px; border-radius: 99px; background: #efe8dc; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; }
@media (max-width: 860px) {
  .dash__cards, .dash__stats { grid-template-columns: 1fr; }
  .spark img { width: 110px; }
  .spark h2 { max-width: 18ch; }
  .chart__bars { height: 150px; gap: 4px; }
}

/* PL_BRAND_20261005 — identidad de la escuela en el panel del alumno */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { height: 36px; width: auto; max-width: 120px; object-fit: contain; }
.schoolbanner { margin: 0 0 18px; }
.schoolbanner img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 22px; display: block; }
body.is-branded {
  background:
    radial-gradient(900px 420px at 100% -10%, color-mix(in srgb, var(--blue) 18%, transparent), transparent 55%),
    radial-gradient(700px 380px at -10% 20%, color-mix(in srgb, var(--red) 12%, transparent), transparent 50%),
    var(--paper);
}
.schoolpop {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  background: rgba(28, 25, 21, 0.46);
  padding: 20px;
}
.schoolpop__card {
  width: min(380px, 100%);
  background: var(--paper-2);
  border-radius: 28px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.schoolpop__card img { width: 96px; height: 96px; object-fit: contain; }
.schoolpop__card h2 { margin: 10px 0 6px; font-size: 2rem; }
.schoolpop__card p { margin: 0 0 16px; color: var(--muted); }
.schoolpop__card .go { min-width: 140px; }

.gate-branded .gate__card { border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
.gate__logo {
  display: block;
  width: min(240px, 72%);
  height: auto;
  max-height: 96px;
  margin: 0 auto 0.65rem;
  object-fit: contain;
}
.gate-branded .eyebrow { color: var(--blue); }
.gate-branded .go { background: var(--blue); }
.gate-branded .go:hover { background: var(--blue-deep); filter: brightness(0.92); }
.gate-branded .textlink { color: var(--blue); }
