/* Plataforma del workshop · Alivira España · estilos compartidos (participante, ponente y proyector)
   Paleta y tipografías de marshals.es: navy #15162b, magenta #d1037f / #ec058e, rosa #ff3daa, crema #f4ede4,
   fluor #06e8ad, mint #7bdcb5; Work Sans (títulos), Public Sans (texto), Playfair Display (acento). */

@font-face { font-family: "Work Sans Variable"; src: url("fonts/work-sans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans Variable"; src: url("fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display Variable"; src: url("fonts/playfair-display-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  /* Marshals */
  --navy: #15162b;
  --navy-deep: #0f1022;
  --navy-violet: #21152b;
  --surface: #1e1f38;
  --surface-2: #36364d;
  --btn: #d1037f;
  --btn-hover: #c4006e;
  --magenta: #ec058e;
  --pink: #ff3daa;
  --pink-soft: #fbe2f0;
  --fluor: #06e8ad;
  --mint: #7bdcb5;
  --cream: #f4ede4;
  --ink: #1c1c2d;
  --text: #3d4c5e;
  --muted-dark: #c9c9dc;
  --line: #d8cfc3;
  /* Derivados para fondo claro */
  --muted: #66707f;
  --line-soft: #e8e0d5;
  --mint-soft: #e3f7ef;
  --track: #ece4d9;
  --bg: var(--cream);
  --card: #ffffff;
  /* Semáforo (semántico, no de marca) */
  --verde: #1f8a5b;
  --ambar: #c98a00;
  --rojo: #c0392b;
  --gris: #8b8590;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(21, 22, 43, .05), 0 8px 24px rgba(21, 22, 43, .06);
  --f-head: "Work Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-body: "Public Sans Variable", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-accent: "Playfair Display Variable", Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-weight: 400; color: var(--text); background: var(--bg); font-size: 17px; line-height: 1.55; }
h1, h2, h3, h4 { font-family: var(--f-head); color: var(--ink); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: 1.65rem; font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 600; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 .8em; }
strong, b { color: var(--ink); font-weight: 650; }
a { color: var(--btn); }
small, .muted { color: var(--muted); }
.accent-serif { font-family: var(--f-accent); font-style: italic; font-weight: 500; letter-spacing: 0; }
.hidden { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--btn); outline-offset: 2px; }

/* ---------- Estructura del participante ---------- */
.app { max-width: 720px; margin: 0 auto; min-height: 100vh; padding-bottom: 84px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: var(--navy); color: #fff; }
.brand { font-family: var(--f-head); font-weight: 700; font-size: .98rem; letter-spacing: .005em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand span { color: var(--pink); font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .84rem; font-weight: 600; background: rgba(255, 255, 255, .1); color: #fff; white-space: nowrap; border: 1px solid rgba(255, 255, 255, .14); }
.timer { font-variant-numeric: tabular-nums; background: #fff; color: var(--navy); border-color: #fff; }
.timer.warn { background: #ffe9a8; color: #5c4400; border-color: #ffe9a8; }
.timer.done { background: var(--btn); color: #fff; border-color: var(--btn); }
.banner { padding: 10px 16px; font-size: .92rem; }
.banner.offline { background: #fff3cd; color: #5c4400; border-bottom: 1px solid #f0d98a; }
.banner.msg { background: var(--navy-violet); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); }
main { padding: 16px; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--line-soft); padding-bottom: env(safe-area-inset-bottom); }
.tabs-inner { display: flex; width: 100%; max-width: 720px; }
.tab { flex: 1; border: 0; background: none; padding: 9px 2px 10px; font-size: .78rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--f-head); }
.tab svg { width: 22px; height: 22px; }
.tab[aria-selected="true"] { color: var(--btn); font-weight: 700; }

/* ---------- Tarjetas y bloques ---------- */
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.card.soft { background: var(--pink-soft); border-color: #f6c6e1; box-shadow: none; }
.card.ok { background: var(--mint-soft); border-color: var(--mint); box-shadow: none; }
.card.plain { box-shadow: none; }
.eyebrow { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--btn); margin-bottom: 6px; }
.lead { font-size: 1.08rem; color: var(--ink); }
.big { font-family: var(--f-head); font-size: 2.4rem; font-weight: 800; color: var(--btn); line-height: 1; letter-spacing: -.02em; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.divider { height: 1px; background: var(--line-soft); margin: 14px 0; }
blockquote { margin: 0 0 .8em; padding: 12px 16px; border-left: 4px solid var(--magenta); background: #fff; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--f-accent); font-style: italic; color: var(--ink); font-size: 1.1em; }
.dialogue p { margin: 0 0 .5em; }
.dialogue b { color: var(--btn); }
.email { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px; background: #fcfaf7; font-size: .95rem; }
.email .subj { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
ul.clean { margin: 0; padding-left: 1.1em; }
ul.clean li { margin-bottom: .35em; }
details { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; }
details > summary { list-style: none; padding: 12px 14px; font-family: var(--f-head); font-weight: 600; color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: "+"; color: var(--btn); font-weight: 700; font-size: 1.2rem; }
details[open] > summary::after { content: "–"; }
details > .body { padding: 0 14px 14px; }

/* ---------- Formularios ---------- */
label.f { display: block; font-family: var(--f-head); font-weight: 600; color: var(--ink); margin: 12px 0 6px; font-size: .95rem; }
input[type=text], input[type=number], input[type=date], input[type=password], input[type=search], input:not([type]), select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 1rem; color: var(--ink);
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--btn); outline: none; box-shadow: 0 0 0 3px rgba(209, 3, 127, .14); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 1rem; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--surface); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.cta { background: var(--btn); border-color: var(--btn); }
.btn.cta:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--cream); }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: .88rem; }
.btn.danger { background: #fff; color: var(--rojo); border-color: var(--rojo); }
.option { display: block; width: 100%; text-align: left; padding: 14px; margin-bottom: 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-size: 1rem; color: var(--ink); }
.option[aria-pressed="true"] { border-color: var(--btn); background: var(--pink-soft); box-shadow: inset 0 0 0 1px var(--btn); }
.option:disabled { opacity: .6; }
.option.correct { border-color: var(--verde); background: var(--mint-soft); opacity: 1; }
.option.wrong { border-color: var(--rojo); background: #fbeaea; opacity: 1; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { flex: 1; min-width: 70px; min-height: 44px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-family: var(--f-head); font-weight: 600; font-size: .92rem; padding: 6px 8px; color: var(--ink); }
.seg.tight button { min-width: 40px; padding: 6px 4px; }
.seg button[aria-pressed="true"] { border-color: var(--btn); background: var(--pink-soft); color: var(--navy); }
.proj-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.proj-modes button { min-height: 38px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; font-family: var(--f-head); font-weight: 600; font-size: .84rem; padding: 6px; color: var(--ink); }
.proj-modes button[aria-pressed="true"] { border-color: var(--btn); background: var(--pink-soft); color: var(--navy); }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--btn); }
.light { display: grid; grid-template-columns: 1fr; gap: 8px; }
.light button { text-align: left; padding: 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; display: flex; gap: 10px; align-items: center; font-size: .95rem; color: var(--ink); }
.light button .dot { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.light button[aria-pressed="true"] { border-width: 2.5px; }
.light button[data-v="verde"][aria-pressed="true"] { border-color: var(--verde); background: #e6f4ec; }
.light button[data-v="ambar"][aria-pressed="true"] { border-color: var(--ambar); background: #fff5d9; }
.light button[data-v="rojo"][aria-pressed="true"] { border-color: var(--rojo); background: #fbeaea; }
.dot.verde { background: var(--verde); } .dot.ambar { background: var(--ambar); } .dot.rojo { background: var(--rojo); } .dot.gris { background: var(--gris); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.note { font-size: .88rem; color: var(--muted); }
.sent-ok { color: var(--verde); font-weight: 700; }
.err { color: var(--rojo); font-weight: 600; }

/* ---------- Resultados ---------- */
.bar { margin: 8px 0; }
.bar .lab { display: flex; justify-content: space-between; gap: 8px; font-size: .92rem; margin-bottom: 4px; color: var(--ink); }
.bar .track { height: 12px; border-radius: 6px; background: var(--track); overflow: hidden; }
.bar .fill { height: 100%; background: var(--magenta); border-radius: 6px; transition: width .4s; }
.bar.accent .fill { background: var(--fluor); }
.bar.mine .lab { font-weight: 700; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--track); color: var(--ink); }
.pill.verde { background: #dff1e6; color: #1f6440; } .pill.ambar { background: #fff1c9; color: #6a4a00; } .pill.gris { background: #ecebed; color: #4c4850; }
.pill.ancla { background: var(--navy); color: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.t th, table.t td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
table.t th { font-family: var(--f-head); font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .92rem; z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--shadow); }
.toast.err { background: var(--rojo); }
.secret { border: 2px dashed var(--btn); }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--track); color: var(--ink); padding: 2px 6px; border-radius: 6px; }
pre.prompt { white-space: pre-wrap; background: #fcfaf7; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px; font-size: .9rem; max-height: 260px; overflow: auto; font-family: var(--f-body); color: var(--ink); }
.search { position: sticky; top: 52px; z-index: 10; background: var(--bg); padding: 4px 0 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.chips button { flex: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.hero { position: relative; overflow: hidden; color: #fff; border-radius: var(--radius); padding: 22px 20px; margin-bottom: 14px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(236, 5, 142, .38), rgba(236, 5, 142, 0) 55%), linear-gradient(160deg, var(--navy-violet), var(--navy) 70%); }
.hero h1, .hero h2, .hero strong { color: #fff; }
.hero .eyebrow { color: var(--pink); }
.hero .big { color: #fff; }
.hero .accent-serif { color: var(--pink); }
.c4 { display: grid; gap: 10px; }
.c4 .card { margin: 0; }
.c4 .c { font-family: var(--f-head); font-weight: 800; color: var(--btn); font-size: 1.1rem; }

/* ---------- Escritorio (ponente) ---------- */
.ponente { max-width: 1400px; margin: 0 auto; padding: 0 16px 40px; }
.ponente .topbar { margin: 0 -16px 16px; }
.ponente-grid { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.ponente-side { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow: auto; }
.agenda button { display: flex; width: 100%; gap: 10px; align-items: baseline; text-align: left; border: 1px solid transparent; background: none; padding: 8px 10px; border-radius: 10px; font-size: .92rem; color: var(--ink); }
.agenda button:hover { background: var(--cream); }
.agenda button.active { background: var(--navy); color: #fff; }
.agenda .time { font-variant-numeric: tabular-nums; color: var(--muted); width: 44px; flex: none; }
.agenda button.active .time, .agenda button.active .note { color: var(--pink); }
.agenda .sep { font-family: var(--f-head); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--btn); font-weight: 700; margin: 10px 10px 4px; }
.ponente-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.ponente-tabs button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font-family: var(--f-head); font-weight: 600; font-size: .9rem; color: var(--ink); }
.ponente-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.kpi { display: flex; gap: 10px; flex-wrap: wrap; }
.kpi .card { margin: 0; padding: 10px 14px; min-width: 120px; }
.kpi .n { font-family: var(--f-head); font-size: 1.6rem; font-weight: 800; color: var(--btn); line-height: 1.1; }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tables-grid .card { margin: 0; padding: 12px; }
.warn-box { color: #5c4400; background: #fff5d9; border-radius: 8px; padding: 4px 8px; font-size: .8rem; display: inline-block; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.sub-grid .card { margin: 0; }
.key-badge { background: var(--btn); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: .74rem; font-weight: 700; }
@media (max-width: 960px) { .ponente-grid { grid-template-columns: 1fr; } .ponente-side { position: static; max-height: none; } }

/* ---------- Proyector ---------- */
.proj { min-height: 100vh; background: #fff; color: var(--text); display: flex; flex-direction: column; font-size: 26px; }
.proj header { display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; background: var(--navy); color: #fff; }
.proj header .title { font-family: var(--f-head); font-size: 1.05em; font-weight: 700; }
.proj header .timer { font-size: 1.5em; padding: 4px 24px; border-radius: 999px; }
.proj main { flex: 1; padding: 34px 56px; display: flex; flex-direction: column; justify-content: center; }
.proj h1 { font-size: 2.1em; color: var(--navy); }
.proj h2 { font-size: 1.5em; color: var(--navy); }
.proj .bar .lab { font-size: .95em; }
.proj .bar .track { height: 30px; border-radius: 15px; }
.proj .bar .fill { border-radius: 15px; }
.proj .big { font-size: 4.2em; }
.proj .phrase { font-family: var(--f-accent); font-style: italic; font-size: 2em; font-weight: 600; color: var(--navy); line-height: 1.22; }
.proj .qr { width: min(46vh, 520px); height: auto; background: #fff; padding: 12px; border-radius: 24px; border: 1px solid var(--line-soft); }
.proj .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.proj table.t { font-size: .9em; }
.proj table.t th { font-size: .62em; }
.proj .wall { columns: 2; column-gap: 40px; }
.proj .wall p { break-inside: avoid; font-family: var(--f-accent); font-style: italic; font-size: 1.05em; color: var(--navy); padding: 14px 20px; background: var(--pink-soft); border-radius: 18px; }
.proj .rec { text-align: center; }
.proj .rec .name { font-family: var(--f-head); font-size: 2.6em; font-weight: 800; color: var(--btn); }
.proj.black { background: #000; }
.proj.black header, .proj.black footer { visibility: hidden; }
.proj footer { padding: 10px 40px; font-size: .55em; color: var(--muted); display: flex; justify-content: space-between; }
.proj .tables6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proj .tables6 .card { font-size: .7em; }
.proj .status6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.proj .status6 div { text-align: center; padding: 18px 8px; border-radius: 18px; background: var(--cream); font-family: var(--f-head); font-weight: 800; font-size: 1.1em; color: var(--navy); }
.proj .status6 div.done { background: var(--fluor); color: var(--navy); }

/* ---------- Impresión del plan ---------- */
@media print {
  .topbar, .tabs, .banner, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
