/* Sistema visual Andoni Dharma (mismo que las presentaciones de Slides y la web) */
@font-face { font-family: 'Montserrat'; src: url('/fuentes/montserrat-variable-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fuentes/poppins-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fuentes/poppins-600-latin.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Mistrully'; src: url('/fuentes/mistrully.ttf') format('truetype'); font-display: swap; }

:root {
  --violet-900: #26113c;
  --violet-800: #2e1d57;
  --violet-500: #5a35a0;
  --electric: #852cd8;
  --magenta: #aa20a5;
  --magenta-400: #b74bb7;
  --magenta-300: #d46fd0;
  --cyan-300: #9af2f7;
  --cyan-400: #5fdfe8;
  --ink-900: #1f2129;
  --ink-500: #4a5066;
  --paper: #ffffff;
  --paper-alt: #f1f1fa;
  --hairline: rgba(38, 17, 60, 0.08);
  --hairline-dark: rgba(255, 255, 255, 0.1);
  --brand-tint: rgba(170, 32, 165, 0.1);
  --shadow-sm: 0 2px 10px rgba(38, 17, 60, 0.06);
  --shadow-lg: 0 30px 70px -20px rgba(38, 17, 60, 0.35);
  --shadow-glow: 0 24px 70px -20px rgba(170, 32, 165, 0.55);
  --grad-brand: linear-gradient(90deg, #852cd8 0%, #aa20a6 100%);
  --grad-dark: linear-gradient(160deg, #2e1d57 0%, #26113c 60%, #3a1652 100%);
  --grad-text: linear-gradient(90deg, #d46fd0 0%, #9af2f7 100%);
  /* Colores de los halos del fondo y del QR (cada marca los cambia en su tema.css) */
  --blob-a: #aa20a5; --blob-b: #5a35a0; --blob-c: #852cd8; --blob-d: #5fdfe8; --blob-e: #d46fd0; --blob-f: #9af2f7;
  --qr: #26113c;
  --display: 'Montserrat', system-ui, -apple-system, sans-serif;
  --accent: 'Poppins', system-ui, sans-serif;
  --script: 'Mistrully', 'Brush Script MT', cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--display); color: var(--ink-900); background: var(--paper-alt); }
h1, h2, h3, p { margin: 0; }
a { color: var(--magenta); }

.eyebrow { font-family: var(--accent); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--magenta); }
.dark .eyebrow { color: var(--cyan-300); }
.accent { color: var(--magenta); }
.dark .accent { color: var(--magenta-300); }

.btn {
  display: inline-block; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-glow);
  font: 600 15px/1.4 var(--accent); letter-spacing: .02em; padding: 13px 28px;
}
.btn:disabled { opacity: .4; box-shadow: none; cursor: default; }
.btn.ghost { background: transparent; color: var(--magenta); box-shadow: inset 0 0 0 1.5px var(--magenta); }

/* ---------- Panel de inicio ---------- */
.admin-top { background: var(--grad-dark); color: #fff; padding: 56px 16px 64px; }
.admin-top > div, .admin main { max-width: 1000px; margin: 0 auto; }
.admin-top img { height: 22px; margin-bottom: 44px; display: block; }
.admin-top h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.01em; }
.admin-top p:not(.eyebrow) { color: rgba(255,255,255,.78); margin-top: 12px; font-size: 17px; line-height: 1.6; }
.admin-top .eyebrow { font-size: 14px; margin-bottom: 14px; color: var(--cyan-300); }
.admin main { padding: 48px 16px 96px; }
.admin h2 { font-size: 24px; font-weight: 800; color: var(--violet-900); margin: 8px 0 18px; }
.admin section + section { margin-top: 48px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cards li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 22px 26px;
}
.cards strong { font-weight: 800; color: var(--violet-900); font-size: 18px; }
.cards span { display: block; color: var(--ink-500); font-size: 14px; margin-top: 4px; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
th { font: 600 12px var(--accent); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); }
td b { font-weight: 800; color: var(--magenta); letter-spacing: .06em; }

/* ---------- Presentador: lienzo 1920×1080 ---------- */
.presenter { background: #120a1c; overflow: hidden; height: 100vh; }
.viewport { position: fixed; inset: 0; overflow: hidden; }
.stage { width: 1920px; height: 1080px; position: absolute; left: 50%; top: 50%; overflow: hidden; transform-origin: center; }

.slide {
  position: absolute; inset: 0; padding: 128px 128px 160px;
  display: flex; flex-direction: column; gap: 48px;
  background: var(--paper-alt); color: var(--ink-900);
  animation: fadein .45s ease;
}
.slide.dark { background: var(--grad-dark); color: #fff; }
@keyframes fadein { from { opacity: 0; } }
.slide > * { position: relative; }
.slide > .bg, .slide > .photo, .slide > .veil { position: absolute; }
.bg { inset: 0; width: 1920px; height: 1080px; }
.photo { top: 0; height: 1080px; object-fit: cover; filter: saturate(.85); }
.veil { top: 0; height: 1080px; background: linear-gradient(135deg, rgba(90,53,160,.35) 0%, rgba(170,32,165,.25) 100%); mix-blend-mode: multiply; }

.heading { display: flex; flex-direction: column; gap: 20px; }
.heading .eyebrow { font-size: 26px; }
.heading h2 { font-size: 80px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--violet-900); }
.dark .heading h2 { color: #fff; }
.lead { font-size: 40px; line-height: 1.5; color: var(--ink-500); max-width: 1400px; }
.dark .lead { color: rgba(255,255,255,.78); }

.footer {
  position: absolute; left: 128px; right: 128px; bottom: 64px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 24px; color: var(--ink-500);
}
.dark .footer { color: rgba(255,255,255,.72); }
.footer img { width: 248px; height: 24px; object-fit: contain; object-position: right; }

/* Portada */
.slide.title { justify-content: center; gap: 40px; }
.slide.title .eyebrow { font-size: 28px; letter-spacing: 4.5px; }
.slide.title h1 { font-size: 150px; font-weight: 800; line-height: 1.05; letter-spacing: -1.8px; color: #fff; max-width: 1150px; }
.slide.title.light h1 { color: var(--violet-900); }
.slide.title .sub { font-size: 36px; line-height: 1.5; color: rgba(255,255,255,.78); }
.slide.title.light .sub { color: var(--ink-500); }
.slide.title .logo { position: absolute; left: 128px; bottom: 64px; width: 480px; height: 71px; object-fit: contain; object-position: left; }
.slide.title .fade { position: absolute; top: 0; left: 1100px; width: 820px; height: 1080px; background: linear-gradient(90deg, #26113c 0%, rgba(38,17,60,0) 40%); }

/* Bloque (portadilla de sección) */
.slide.section { justify-content: center; gap: 24px; }
.slide.section .eyebrow { font-size: 30px; letter-spacing: .2em; }
.slide.section .num { font-size: 260px; font-weight: 800; line-height: 1; letter-spacing: -.02em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide.section h2 { font-size: 110px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; max-width: 1500px; }
.slide.section .lead { max-width: 1300px; }

/* Texto: tarjetas numeradas (2 columnas: número en círculo; 3: número grande) */
.slide.text { gap: 56px; }
.cardgrid { flex: 1; display: grid; gap: 32px; grid-template-columns: repeat(var(--cols, 2), 1fr); grid-auto-rows: 1fr; max-height: 600px; }
.card {
  display: flex; align-items: center; gap: 32px; background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 10px; box-shadow: var(--shadow-sm); padding: 40px 48px; animation: rise .5s ease backwards;
}
.card .n {
  flex: none; width: 80px; height: 80px; border-radius: 50%; background: var(--grad-brand); color: #fff;
  display: grid; place-items: center; font-size: 32px; font-weight: 800;
}
.card p { font-size: 40px; font-weight: 600; line-height: 1.3; color: var(--violet-900); }
.card b { font-weight: 800; }
.cols-3 .card { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 24px; padding: 40px; }
.cols-3 .card .n { width: auto; height: auto; background: none; border-radius: 0; color: var(--magenta); font-size: 56px; line-height: 1; }
.cols-3 .card p { font-size: 32px; font-weight: 400; line-height: 1.4; color: var(--ink-900); }
.cols-3 .card b { font-weight: 700; }
.dark .card { background: rgba(255,255,255,.06); border-color: var(--hairline-dark); box-shadow: none; }
.dark .card p { color: #fff; }
.dark .card .n { background: none; border: 2px solid var(--cyan-300); color: var(--cyan-300); }
.dark .cols-3 .card .n { border: 0; font-size: 44px; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* Cita / reflexión */
.slide.quote { justify-content: center; gap: 32px; }
.slide.quote .script { font-family: var(--script); font-size: 130px; line-height: 1.05; color: var(--magenta); }
.dark.quote .script { color: var(--magenta-300); }
.slide.quote h2 { font-size: 84px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; color: var(--violet-900); max-width: 1500px; }
.slide.quote.with-photo h2 { max-width: 960px; }
.dark.quote h2 { color: #fff; }
.slide .side-bar { position: absolute; left: 0; top: 0; width: 24px; height: 1080px; background: linear-gradient(180deg, #5fdfe8 0%, #aa20a5 100%); }

/* ---------- Diapositivas de pregunta ---------- */
.slide.question { padding-right: calc(600px + 96px); gap: 56px; }
.slide.question .heading h2 { font-size: 64px; }
.slide.question .footer { right: calc(600px + 96px); }
.join {
  position: absolute; top: 0; right: 0; width: 600px; height: 1080px; overflow: hidden;
  background: var(--grad-dark); color: #fff; padding: 96px 80px 72px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.join > * { position: relative; }
.join .bg { position: absolute; inset: 0; width: 600px; height: 1080px; }
.join .eyebrow { color: var(--cyan-300); font-size: 22px; }
.join .url { font-size: 34px; font-weight: 800; margin: 14px 0 44px; letter-spacing: -.01em; }
.join .qr { width: 340px; height: 340px; background: #fff; border-radius: 14px; padding: 26px; box-shadow: var(--shadow-lg); }
.join .qr img { width: 100%; height: 100%; display: block; }
.join .code-label { font: 600 22px var(--accent); letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); margin-top: 48px; }
.join .code { font-size: 96px; font-weight: 800; letter-spacing: .06em; line-height: 1.1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.join .count { margin-top: auto; display: flex; align-items: baseline; gap: 14px; font-size: 26px; color: rgba(255,255,255,.78); }
.join .count b { font-size: 56px; font-weight: 800; color: var(--cyan-300); }

.results { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.empty { color: var(--ink-500); font-size: 32px; }

/* Encuesta */
.bars { display: grid; gap: 30px; }
.bar-label { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; font-size: 32px; font-weight: 600; color: var(--violet-900); margin-bottom: 12px; }
.bar-label b { font-weight: 800; color: var(--magenta); font-size: 36px; }
.bar-track { height: 28px; background: var(--brand-tint); border-radius: 999px; overflow: hidden; }
/* Con más de 4 opciones las barras se compactan para que quepan todas */
.bars.many { gap: 14px; }
.bars.many .bar-label { font-size: 28px; margin-bottom: 6px; }
.bars.many .bar-label b { font-size: 30px; }
.bars.many .bar-track { height: 18px; }
.bars.tight { gap: 8px; }
.bars.tight .bar-label { font-size: 26px; margin-bottom: 4px; }
.bars.tight .bar-track { height: 14px; }
.bars.tighter { gap: 4px; }
.bars.tighter .bar-label { font-size: 23px; margin-bottom: 2px; }
.bars.tighter .bar-label b { font-size: 24px; }
.bars.tighter .bar-track { height: 10px; }
.bar-fill { height: 100%; width: 0; border-radius: 999px; background: var(--grad-brand); transition: width .7s cubic-bezier(.2,.8,.2,1); }
/* Prioridades (rank) y notas por tema (rate) */
.topic-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.topic { display: flex; align-items: center; gap: 24px; padding: 28px 32px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 16px; box-shadow: var(--shadow-sm); }
.topic .n { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font: 800 26px var(--display); color: #fff; background: var(--grad-brand); }
.topic p { flex: 1; font-size: 34px; font-weight: 700; line-height: 1.25; color: var(--violet-900); }
.topic b { font: 800 34px var(--display); color: var(--orange, #ff9900); }
.topics-steps { margin-top: 40px; padding-left: 1.1em; display: grid; gap: 8px; font-size: 26px; line-height: 1.4; color: var(--ink-700, #3d3550); }
.topics-steps b { color: var(--violet-900); }
.rank { display: grid; gap: 18px; }
.rank-row { display: flex; align-items: center; gap: 24px; opacity: .55; }
.rank-row.top { opacity: 1; }
.rank-pos { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 28px var(--display); color: var(--violet-900); background: var(--brand-tint); }
.rank-row.top .rank-pos { background: var(--grad-brand); color: #fff; }
.rank-body { flex: 1; min-width: 0; }
.rank-body .bar-label { margin-bottom: 8px; }
.rank-body .bar-label small { font-size: .6em; font-weight: 600; }
.rank-body .bar-track { height: 16px; }
.rank.many { gap: 10px; }
.rank.many .rank-pos { width: 44px; height: 44px; font-size: 22px; }
.rank.many .bar-label { font-size: 26px; margin-bottom: 4px; }
.rank.many .bar-label b { font-size: 28px; }
.rank.many .bar-track { height: 10px; }
.rank.tight { gap: 6px; }
.rank.tight .rank-pos { width: 36px; height: 36px; font-size: 18px; }
.rank.tight .bar-label { font-size: 23px; margin-bottom: 2px; }
.rank.tight .bar-label b { font-size: 24px; }
.rank.tight .bar-track { height: 8px; }
.rate { display: grid; gap: 22px; }
.rate .bar-label { margin-bottom: 8px; }
.rate .bar-label b { font-size: 40px; line-height: 1; }
.rate.many { gap: 12px; }
.rate.many .bar-label { font-size: 27px; margin-bottom: 4px; }
.rate.many .bar-label b { font-size: 32px; }
.rate.many .bar-track { height: 16px; }
.rate-row.low .bar-label b { color: var(--orange, #ff9900); }
.rate-row.low .bar-fill { background: var(--orange, #ff9900); }
.option.rank-option { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.rank-n { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hairline); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.rank-option.on .rank-n { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.rate-list { display: grid; gap: 22px; }
.rate-label { font-weight: 700; color: var(--violet-900); margin-bottom: 10px; line-height: 1.3; }
.rate-item .scale-pick .option { padding: 11px 0; font-size: 17px; }


/* Escala */
.scale-avg { display: flex; align-items: baseline; gap: 18px; font-size: 30px; color: var(--ink-500); margin-bottom: 28px; }
.scale-avg b { font-size: 96px; font-weight: 800; line-height: 1; color: var(--magenta); }
.q-scale .results { display: flex; flex-direction: column; }
.scale { flex: 1; min-height: 0; display: flex; align-items: flex-end; gap: 16px; }
.scale .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.scale .col .n { font-size: 24px; font-weight: 600; color: var(--ink-500); margin-bottom: 8px; }
.scale .col .fill { width: 100%; min-height: 6px; background: var(--grad-brand); border-radius: 10px 10px 4px 4px; transition: height .7s cubic-bezier(.2,.8,.2,1); }
.scale .col .v { font-size: 30px; font-weight: 800; color: var(--violet-900); margin-top: 12px; }
.scale-ends { display: flex; justify-content: space-between; font: 600 20px var(--accent); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); margin-top: 14px; }

/* Nube de palabras */
.cloud { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; align-content: center; gap: 6px 40px; min-height: 100%; }
.cloud span { font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.cloud span:nth-child(4n+1) { color: var(--violet-900); }
.cloud span:nth-child(4n+2) { color: var(--magenta); }
.cloud span:nth-child(4n+3) { color: var(--electric); }
.cloud span:nth-child(4n) { color: var(--magenta-400); font-weight: 600; }

/* Respuestas abiertas */
.wall { columns: 2; column-gap: 24px; height: 100%; overflow: hidden; }
.wall div {
  break-inside: avoid; position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: var(--shadow-sm);
  padding: 24px 28px 24px 34px; margin-bottom: 20px; font-size: 28px; line-height: 1.4;
  animation: rise .45s ease backwards;
}
.wall div::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--grad-brand); }

/* Controles */
.controls {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; gap: 4px; align-items: center; padding: 6px; border-radius: 999px;
  background: rgba(18,10,28,.85); color: #fff; opacity: 0; transition: opacity .25s;
  font: 400 14px var(--accent);
}
body:hover .controls, .controls:focus-within { opacity: 1; }
.controls button, .controls a { background: transparent; border: 0; color: #fff; font: inherit; cursor: pointer; padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.controls button:hover, .controls a:hover { background: rgba(255,255,255,.12); }
.controls .pos { padding: 0 8px; opacity: .8; min-width: 60px; text-align: center; }
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: #c0392b; color: #fff; padding: 10px 18px; border-radius: 10px; display: none; font-family: var(--accent); }

/* ---------- Participante (móvil) ---------- */
.participant { min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper-alt); }
.p-top { background: var(--grad-dark); padding: 18px 16px; display: flex; justify-content: space-between; align-items: center; }
.p-top img { height: 18px; }
.p-top .code { font: 600 12px var(--accent); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-300); }
.p-main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 32px 16px 48px; }
.p-main .eyebrow { font-size: 12px; margin-bottom: 10px; }
.p-main h1 { font-size: 26px; font-weight: 800; line-height: 1.22; letter-spacing: -.01em; color: var(--violet-900); margin-bottom: 26px; }
.p-main .accent { color: var(--magenta); }
.p-center { text-align: center; padding-top: 10vh; }
.p-center p { color: var(--ink-500); line-height: 1.6; }
.p-center .script { font-family: var(--script); font-size: 64px; color: var(--magenta); line-height: 1.1; margin-bottom: 6px; }
.pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--grad-brand); margin: 0 auto 26px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.7); opacity: .4; } }
.field { width: 100%; font: 400 17px var(--display); padding: 15px 18px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--paper); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.field:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px var(--brand-tint); }
.field.code-input { text-align: center; font-size: 34px; font-weight: 800; letter-spacing: .3em; color: var(--violet-900); }
textarea.field { min-height: 140px; resize: vertical; line-height: 1.5; }
.stack { display: grid; gap: 12px; }
.option {
  display: block; width: 100%; text-align: left; font: 600 16px/1.35 var(--display); color: var(--violet-900);
  padding: 18px 20px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--paper); box-shadow: var(--shadow-sm); cursor: pointer;
}
.option.on { border-color: var(--magenta); background: #fbf2fb; box-shadow: 0 0 0 2px var(--magenta); }
.scale-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale-pick .option { text-align: center; font-size: 20px; font-weight: 800; padding: 15px 0; }
.scale-pick-ends { display: flex; justify-content: space-between; font: 600 11px var(--accent); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); margin-top: 10px; }
.p-main .btn { width: 100%; padding: 16px; font-size: 16px; margin-top: 24px; }
.hint { font-size: 14px; color: var(--ink-500); margin-top: 10px; }
.thanks { background: var(--grad-dark); color: #fff; border-radius: 14px; padding: 28px 22px; text-align: center; box-shadow: var(--shadow-lg); }
.thanks .script { font-family: var(--script); font-size: 56px; line-height: 1.1; color: var(--magenta-300); }
.thanks p { color: rgba(255,255,255,.78); margin-top: 6px; }
.error { color: #b3261e; margin-top: 12px; font-size: 15px; }

/* ---------- Diapositivas importadas de Claude Design (formato 1920×1080 con estilos en línea) ---------- */
.ds { position: absolute; inset: 0; }
.ds > section {
  position: absolute; inset: 0; width: 1920px; height: 1080px; overflow: hidden;
  display: flex; flex-direction: column; color: #000; font-family: sans-serif; animation: fadein .45s ease;
  font-size: 32px; font-weight: 400; line-height: 1.4; /* los párrafos heredan, como en Claude Design */
}
.ds section *, .ds section *::before, .ds section *::after { box-sizing: border-box; margin: 0; }
/* El contenido en flujo se pinta en su orden, no siempre debajo de lo posicionado */
.ds > section > * { position: relative; }
.ds div { display: flex; flex-direction: column; }
.ds h1 { font-size: 96px; font-weight: 600; line-height: 1.1; }
.ds h2 { font-size: 64px; font-weight: 600; line-height: 1.15; }
.ds h3 { font-size: 44px; font-weight: 600; line-height: 1.2; }
.ds ul, .ds ol { padding-left: 1.2em; font-size: 32px; line-height: 1.4; }
.ds img, .ds svg { display: block; }
/* Una foto sin indicación se recorta para llenar su caja (nunca se deforma) */
.ds img { object-fit: cover; }
.ds x-icon { display: block; }
.ds x-icon svg { width: 100%; height: 100%; }
.ds x-shape { display: block; }
.ds x-shape[kind="ellipse"] { border-radius: 50%; }
.ds x-shape[kind="rounded"] { border-radius: 24px; }
.ds x-shape[kind="diamond"] { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ds x-shape[kind="arrow-right"] { clip-path: polygon(0 30%, 60% 30%, 60% 0, 100% 50%, 60% 100%, 60% 70%, 0 70%); }
.ds x-shape[kind="arrow-left"] { clip-path: polygon(100% 30%, 40% 30%, 40% 0, 0 50%, 40% 100%, 40% 70%, 100% 70%); }
.ds x-shape[kind="arrow-down"] { clip-path: polygon(30% 0, 70% 0, 70% 60%, 100% 60%, 50% 100%, 0 60%, 30% 60%); }
.ds x-shape[kind="arrow-up"] { clip-path: polygon(30% 100%, 70% 100%, 70% 40%, 100% 40%, 50% 0, 0 40%, 30% 40%); }
.ds .x-embed { border: 0; background: transparent; pointer-events: none; color-scheme: normal; }

/* Animaciones de entrada: translate/scale sueltos para no pisar el transform propio del elemento */
.b-hide { visibility: hidden; opacity: 0; }
.b-in-fade { animation: b-fade .5s ease both; }
.b-in-rise { animation: b-rise .6s cubic-bezier(.2,.8,.2,1) both; }
.b-in-drop { animation: b-drop .6s cubic-bezier(.2,.8,.2,1) both; }
.b-in-left { animation: b-left .6s cubic-bezier(.2,.8,.2,1) both; }
.b-in-right { animation: b-right .6s cubic-bezier(.2,.8,.2,1) both; }
.b-in-scale { animation: b-scale .5s ease both; }
.b-in-pop { animation: b-pop .5s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes b-fade { from { opacity: 0; } }
@keyframes b-rise { from { opacity: 0; translate: 0 48px; } }
@keyframes b-drop { from { opacity: 0; translate: 0 -48px; } }
@keyframes b-left { from { opacity: 0; translate: -64px 0; } }
@keyframes b-right { from { opacity: 0; translate: 64px 0; } }
@keyframes b-scale { from { opacity: 0; scale: .85; } }
@keyframes b-pop { from { opacity: 0; scale: .6; } }

/* Preguntas con fondo oscuro (para encajar en presentaciones oscuras) */
.question.dark .heading h2 { color: #fff; }
.question.dark .bar-label { color: #fff; }
.question.dark .bar-label b { color: var(--cyan-300); }
.question.dark .bar-track { background: rgba(255,255,255,.12); }
.question.dark .scale .col .v, .question.dark .scale-avg { color: #fff; }
.question.dark .scale .col .n, .question.dark .scale-ends, .question.dark .empty { color: rgba(255,255,255,.72); }
.question.dark .scale-avg b { color: var(--cyan-300); }
.question.dark .cloud span:nth-child(4n+1) { color: #fff; }
.question.dark .cloud span:nth-child(4n+2) { color: var(--magenta-300); }
.question.dark .cloud span:nth-child(4n+3) { color: var(--cyan-300); }
.question.dark .cloud span:nth-child(4n) { color: rgba(255,255,255,.7); }
.question.dark .wall div { background: rgba(255,255,255,.06); border-color: var(--hairline-dark); color: #fff; box-shadow: none; }
.question.dark .join { background: rgba(255,255,255,.05); border-left: 1px solid var(--hairline-dark); }
.question.dark .join .bg { display: none; }
.q-label { display: flex; align-items: center; gap: 32px; margin-bottom: -24px; }
.q-label .script { font-family: var(--script); font-size: 110px; line-height: 1.1; color: var(--magenta); }
.dark .q-label .script { color: var(--magenta-300); }
.q-label .badge {
  font: 600 24px var(--accent); letter-spacing: .12em; text-transform: uppercase; color: var(--magenta);
  background: var(--brand-tint); padding: 10px 28px; border-radius: 999px;
}
.dark .q-label .badge { color: var(--cyan-300); background: rgba(154,242,247,.12); }

/* Aviso de respuesta múltiple bajo la etiqueta de la pregunta */
.pick-note { order: 0; font: 600 24px var(--accent); letter-spacing: .14em; text-transform: uppercase; color: var(--magenta); margin-bottom: -32px; }
.dark .pick-note { color: var(--cyan-300); }

.thanks .thanks-next { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); font-size: 15px; line-height: 1.5; color: #fff; }

/* Copias del presentador dentro de la vista de notas: sin controles ni cursor de espera */
body.embedded .controls, body.embedded .toast { display: none !important; }
body.embedded { cursor: default; }
.end-note { position: absolute; inset: 0; display: grid; place-items: center; font: 600 64px var(--display); color: rgba(255,255,255,.5); background: #120a1c; }

.cards .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cards div span a { color: inherit; }
@media (max-width: 640px) { .cards li { flex-direction: column; align-items: stretch; } .cards .actions { justify-content: flex-start; } }
/* Fichas de cliente en el panel */
.clients { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.clients a {
  display: block; height: 100%; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 24px 26px;
  transition: box-shadow .15s, border-color .15s;
}
.clients a:hover { border-color: var(--magenta); box-shadow: var(--shadow-glow); }
.clients strong { display: block; font-weight: 800; color: var(--violet-900); font-size: 20px; margin-bottom: 10px; }
.clients span { display: block; color: var(--ink-500); font-size: 14px; margin-top: 2px; }
.clients span + span { font: 600 13px var(--accent); letter-spacing: .08em; text-transform: uppercase; color: var(--magenta); margin-top: 8px; }

/* En la vista «siguiente» no hay animaciones: se ve directamente cómo quedará */
body.embedded .b-in-fade, body.embedded .b-in-rise, body.embedded .b-in-drop, body.embedded .b-in-left,
body.embedded .b-in-right, body.embedded .b-in-scale, body.embedded .b-in-pop { animation-duration: .01s; }

/* Pregunta numérica: total de la sala y cálculos */
.numbers { display: grid; gap: 22px; }
.num-row { display: flex; align-items: baseline; gap: 26px; }
.num-row b { font-size: 104px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--magenta); font-variant-numeric: tabular-nums; white-space: nowrap; }
.num-row span { font-size: 34px; line-height: 1.25; color: var(--ink-900); }
.dark .num-row b { color: var(--cyan-300); }
.dark .num-row span { color: #fff; }
.num-source { margin-top: 26px; font-size: 22px; color: var(--ink-500); }
.dark .num-source { color: rgba(255,255,255,.6); }
/* Barras de resultados dentro de una diapositiva de Design */
.ds .ds-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; transition: width 1s cubic-bezier(.2,.8,.2,1); }

.field.number-input { font-size: 30px; font-weight: 800; text-align: center; letter-spacing: .04em; color: var(--violet-900); }

/* Cifra con la frase debajo (para números largos) */
.num-row.below { flex-direction: column; align-items: flex-start; gap: 4px; }
