/* ==========================================================================
   PIEL "ECOS" · tomada del diseño de Figma del equipo
   --------------------------------------------------------------------------
   - Ilustraciones a pantalla completa (img/escenas/*.jpg)
   - Títulos en Bebas Neue blanco, botones tipo placa café con borde dorado
   - Decisión de mito con dos medallones circulares (Alejandro | criatura)
   Solo cambia la apariencia: la lógica y el audio siguen iguales.
   ========================================================================== */
:root {
  --gold: #c99a3c;
  --gold-hi: #e9c46f;
  --plaque: #2a1c0c;
  --plaque-ink: #f6dcab;
  --font-title: 'Bebas Neue', 'Oswald', Impact, sans-serif;
}
body { --accent: var(--gold-hi); }

/* ---------- ilustración de fondo ---------- */
.scene-img {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 1;
}
.scene-img.fade-in { animation: sceneIn 1.2s ease both; }
@keyframes sceneIn { from { opacity: 0; transform: scale(1.03); } }
/* sombra inferior para leer subtítulos sobre la ilustración */
.scene-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 48%, rgba(4,10,6,0.88) 100%); }
body[data-status='waiting'] .scene-shade { background: radial-gradient(ellipse at 50% 45%, rgba(0,0,0,0.25), rgba(0,0,0,0.7)); }
/* con ilustración, los resplandores de color quedan muy suaves */
.scene .glow { opacity: 0.18; mix-blend-mode: screen; }
.grain { opacity: 0.05; }

/* ---------- barra superior y línea de actos ---------- */
.brand-title, .act-n, .card-eyebrow, .eyebrow { font-family: var(--font-title); letter-spacing: 0.06em; }
.brand-title { font-size: 22px; font-weight: 400; }
.topbar { background: rgba(6, 12, 8, 0.75); }
.rail { background: rgba(6, 12, 8, 0.55); }
.act-n { font-size: 15px; }

/* ---------- narración: subtítulo de película sobre la ilustración ---------- */
.now { justify-content: flex-end; max-width: 1100px; padding-bottom: 28px; }
body[data-status='waiting'] .now, body[data-status='ended'] .now { justify-content: center; }
.line { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.9), 0 0 2px rgba(0,0,0,0.9); font-size: clamp(20px, 2.2vw, 30px); }
.cue { color: rgba(255,255,255,0.75); text-shadow: 0 1px 6px rgba(0,0,0,0.9); }
.speaker .portrait { --size: 46px; font-size: 15px; }
.who-name { font-family: var(--font-title); font-size: 22px; font-weight: 400; letter-spacing: 0.05em; text-shadow: 0 1px 8px rgba(0,0,0,0.8); }
.who-role { color: rgba(255,255,255,0.6); }
.node-title { color: rgba(255,255,255,0.8); text-shadow: 0 1px 6px rgba(0,0,0,0.8); }
.chip { background: rgba(0,0,0,0.45); }
body[data-status='waiting'] .speaker, body[data-status='ended'] .speaker { display: none; }

/* ---------- botón tipo placa (EMPEZAR / CONTINUAR del Figma) ---------- */
.plaque, .btn-primary {
  position: relative;
  font-family: var(--font-title); font-weight: 400; letter-spacing: 0.05em;
  font-size: 22px; line-height: 1; padding: 12px 34px;
  color: var(--plaque-ink);
  background: linear-gradient(180deg, #3b2812, var(--plaque) 70%);
  border: 3px solid var(--gold); border-radius: 12px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.5), 0 6px 18px rgba(0,0,0,0.55);
  text-shadow: 0 0 10px rgba(255, 196, 110, 0.7);
}
.plaque::before, .plaque::after, .btn-primary::before, .btn-primary::after {
  content: ''; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--plaque);
}
.plaque::before, .btn-primary::before { left: -9px; }
.plaque::after, .btn-primary::after { right: -9px; }
.plaque:hover, .btn-primary:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-primary.sm, .plaque-sm { font-size: 16px; padding: 8px 18px; }
.btn-primary.sm::before, .btn-primary.sm::after, .plaque-sm::before, .plaque-sm::after { width: 10px; height: 10px; margin-top: -5px; left: -6px; }
.btn-primary.sm::after, .plaque-sm::after { left: auto; right: -6px; }
.ctl-main { background: var(--plaque); color: var(--plaque-ink); border: 2px solid var(--gold); }

/* ---------- pantalla INICIO del Figma ---------- */
.splash { container-type: size; padding: 0; background: #08130d; }
.splash::before { content: ''; position: absolute; inset: -40px; background: url('../img/escenas/inicio.jpg') center / cover; filter: blur(24px) brightness(0.5); }
.splash-art {
  position: relative; display: none;
  width: min(100cqw, calc(100cqh * 16 / 9)); aspect-ratio: 16 / 9;
  background: center / contain no-repeat;
}
body.has-inicio .splash-art { display: block; }
body.has-inicio .splash-card { display: none; }
/* zona clicable exactamente encima del botón EMPEZAR (x 760–1160, y 567–677 de 1920×1080) */
.hotspot { position: absolute; left: 39.58%; top: 52.5%; width: 20.83%; height: 10.19%; background: transparent; border: 0; border-radius: 14px; }
.hotspot:hover { box-shadow: 0 0 40px 8px rgba(255, 190, 90, 0.35); }
.hotspot:focus-visible { outline: 3px solid var(--gold-hi); }
#btn-continue-art { position: absolute; left: 50%; top: 66%; transform: translateX(-50%); white-space: nowrap; }
.splash-card { position: relative; }

/* ---------- decisión de mito: medallones ---------- */
.card { background: rgba(8, 14, 10, 0.74); border: 2px solid color-mix(in srgb, var(--gold) 70%, transparent); border-radius: 18px; }
.card-q { font-family: var(--font-title); font-size: clamp(30px, 3.4vw, 46px); letter-spacing: 0.03em; line-height: 1.05; color: #fff; }
.card-gate { background: transparent; border: 0; box-shadow: none; backdrop-filter: none; text-align: center; }
.gate-title { font-size: clamp(40px, 5vw, 84px); text-transform: uppercase; text-shadow: 0 4px 24px rgba(0,0,0,0.9); margin-bottom: 28px; }
.medals { display: flex; justify-content: center; gap: clamp(32px, 10vw, 180px); flex-wrap: wrap; }
.medal { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 260px; }
.medal-img {
  position: relative; width: clamp(130px, 14vw, 210px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #f4efe1, #9c9078 70%);
  box-shadow: 0 0 0 6px var(--gold), 0 0 0 9px #6a4a1a, 0 14px 40px rgba(0,0,0,0.7);
  transition: transform 0.25s, box-shadow 0.25s;
}
.medal-img b { font-family: var(--font-title); font-size: 48px; font-weight: 400; color: #4a3a22; }
.medal-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.medal:hover .medal-img, .medal:focus-visible .medal-img { transform: scale(1.06); box-shadow: 0 0 0 6px var(--gold-hi), 0 0 0 9px #6a4a1a, 0 0 50px 10px color-mix(in srgb, var(--c) 55%, transparent); }
.medal-label { font-family: var(--font-title); font-size: 28px; letter-spacing: 0.04em; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.9); }
.medal-hint { font-size: 12.5px; color: rgba(255,255,255,0.7); text-shadow: 0 1px 6px rgba(0,0,0,0.9); }
.medal-hint .k { font-family: var(--font-mono); font-size: 10px; border: 1px solid rgba(255,255,255,0.3); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.card-gate .voice { justify-content: center; }

/* ---------- opciones y retos ---------- */
.opt { background: rgba(255,255,255,0.06); }
.opt-label { font-size: 16px; }
.echo { background: rgba(0,0,0,0.35); }

/* ---------- final ---------- */
body[data-bg='final'] .now { justify-content: flex-end; }
.card-end { max-width: 640px; margin-right: auto; }

/* ---------- público: experiencia a pantalla completa ---------- */
body.public .now { padding-top: 70px; }
@media (max-width: 680px) {
  .medals { gap: 24px; }
  .medal-label { font-size: 22px; }
}
body.public[data-status='waiting'] .meta, body.public[data-status='waiting'] .caption,
body.public[data-status='ended'] .meta { display: none; }
.gate-title { font-size: clamp(34px, min(5vw, 8vh), 84px); }
.medal-img { width: clamp(110px, min(14vw, 22vh), 210px); }
/* el medallón exportado ya trae su aro dorado: solo se deja la sombra */
.medal-img:has(img) { background: transparent; box-shadow: 0 14px 40px rgba(0,0,0,0.7); overflow: visible; }
.medal-img img { object-fit: contain; }
.medal:hover .medal-img:has(img) { box-shadow: 0 0 60px 12px color-mix(in srgb, var(--c) 55%, transparent); }
