/* ============================================================
   MGC Global Group — Deep Dive Workshop
   Sistema de Diseño
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,700&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --red:     #FF1935;
  --black:   #0A0A0A;
  --white:   #FFFFFF;
  --orange:  #FF6B1A;
  --magenta: #FF1F8E;
  --blue:    #1F3DFF;
  --gray:    #F0EFEA;
  --green:   #00C9A7;
  --font-ui: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-editorial: 'Playfair Display', Georgia, serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Logo ──────────────────────────────────────────────────── */
.mgc-logo-img {
  height: 28px;
  width: auto;
  display: block;
  user-select: none;
}
.mgc-logo-img.par-logo {
  height: 24px;
}
/* Fallback text logo */
.mgc-logo {
  font-family: var(--font-ui);
  font-weight: 900;
  letter-spacing: -1px;
  text-transform: lowercase;
  font-size: 28px;
  color: var(--white);
  user-select: none;
}
.mgc-logo span { color: var(--red); }

/* ── Tipografía mixta ──────────────────────────────────────── */
.title-hero {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 70px);
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--white);
}
.title-hero .italic {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 700;
}
.subtitle {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 18px;
  opacity: 0.7;
}

/* ── GIF box ───────────────────────────────────────────────── */
.gif-box {
  background: var(--gray);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(180px, 25vh, 320px);
}
.gif-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 100px;
  padding: 14px 36px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: none;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:active { transform: scale(0.97); }
.btn-red {
  background: var(--red);
  color: var(--white);
}
.btn-red:hover { background: #e0152f; }
.btn-red:disabled {
  background: #555;
  cursor: not-allowed;
  opacity: 0.5;
}
.btn-white {
  background: var(--white);
  color: var(--black);
}
.btn-white:hover { background: var(--gray); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); }
.btn-small {
  padding: 8px 20px;
  font-size: 13px;
}

/* ── Decorativos ───────────────────────────────────────────── */
.wave-decoration {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.color-line {
  height: 3px;
  border-radius: 2px;
  display: block;
}

/* ── Connection indicator ──────────────────────────────────── */
.ws-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}
.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  transition: background 0.3s;
}
.ws-dot.connected { background: #00ff88; }
.ws-dot.disconnected { background: var(--red); animation: pulse-dot 1s infinite; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Participant counter ───────────────────────────────────── */
.participant-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.5s infinite;
}

/* ════════════════════════════════════════════════════════════
   FACILITADOR — Layout (TV-optimized, no sidebar)
   ════════════════════════════════════════════════════════════ */
body.facilitador {
  background: var(--black);
  color: var(--white);
  height: 100vh;
  overflow: hidden;
}

.fac-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 72px 1fr auto auto;
  height: 100vh;
  width: 100vw;
}

/* ── Topbar (TV: 72px tall) ──────────────────────────────── */
.fac-topbar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 2vw, 48px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 10;
  min-height: 72px;
}
.fac-topbar-left {
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.5vw, 28px);
}
.fac-topbar .mgc-logo-img {
  height: 36px;
}
.session-badge {
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  background: rgba(255,25,53,0.1);
  padding: 6px 16px;
  border-radius: 100px;
}
.assistant-badge {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  padding: 4px 12px;
  border-radius: 100px;
}
.topbar-participants {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 700;
  color: var(--white);
}
.fac-topbar-right {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1vw, 16px);
}
.topbar-icon-btn {
  background: #1a1a1a;
  border: 1px solid #333;
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  padding: 0;
}
.topbar-icon-btn:hover { background: #2a2a2a; }
.settings-wrap { position: relative; }
.settings-menu {
  display: none;
  position: absolute;
  top: 48px;
  right: 0;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 8px 0;
  min-width: 240px;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.settings-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  text-align: left;
  transition: background 0.12s;
}
.settings-icon { font-size: 18px; }
.settings-divider { height: 1px; background: #333; margin: 4px 0; }
.settings-danger { color: #FF4444; }

/* ── Main panel (full width) ────────────────────────────── */
.fac-main {
  grid-column: 1;
  grid-row: 2;
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.5vh, 40px) clamp(32px, 3vw, 64px);
  display: flex;
  flex-direction: column;
}

/* ── Action bar (bottom controls) ────────────────────────── */
.fac-actionbar {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px clamp(24px, 3vw, 64px);
  min-height: 0;
}
.fac-actionbar:empty { display: none; }
.fac-actionbar .btn {
  min-height: 56px;
  font-size: clamp(16px, 1.2vw, 20px);
  padding: 14px 40px;
}

/* ── Progress bar (8 pills) ──────────────────────────────── */
.fac-progressbar {
  grid-column: 1;
  grid-row: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 16px);
  padding: 10px clamp(24px, 3vw, 64px);
  border-top: 1px solid rgba(255,255,255,0.06);
  min-height: 0;
}
.progress-pill {
  width: clamp(36px, 3vw, 48px);
  height: clamp(36px, 3vw, 48px);
  border-radius: 50%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}
.progress-pill span {
  font-size: clamp(14px, 1vw, 18px);
  font-weight: 900;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
}
.progress-pill.active {
  background: var(--red);
  transform: scale(1.15);
  box-shadow: 0 0 16px rgba(255,25,53,0.4);
}
.progress-pill.active span { color: #fff; }
.progress-pill.completed {
  background: rgba(255,25,53,0.35);
}
.progress-pill.completed span { color: rgba(255,255,255,0.7); }

/* ── Lobby screen (TV-optimized) ───────────────────────────── */
.lobby-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  min-height: 0;
  gap: clamp(48px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.lobby-left {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.5vh, 20px);
  flex: 0 1 auto;
  max-width: 600px;
  justify-content: center;
}
.lobby-left .title-hero { margin-bottom: 8px; }
.lobby-right {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qr-card {
  background: var(--white);
  border-radius: 24px;
  padding: clamp(24px, 3vh, 40px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.qr-card img {
  width: clamp(200px, 25vh, 320px);
  height: clamp(200px, 25vh, 320px);
}
.qr-card .session-code {
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 900;
  letter-spacing: 8px;
  color: var(--black);
}
.qr-card .qr-hint {
  font-size: clamp(13px, 1vw, 18px);
  color: rgba(0,0,0,0.5);
  font-weight: 400;
}
.lobby-gif {
  width: clamp(180px, 25vh, 400px);
  height: clamp(180px, 25vh, 400px);
  margin-top: 8px;
}
.lobby-left .title-hero {
  font-size: clamp(48px, 5vw, 80px);
}

/* ── Lava lamp background ──────────────────────────────────── */
.lava-bg {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  background: #0A0A0A;
}
.lava-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 40%, #0A0A0A 75%);
  z-index: 2;
}
.lobby-screen { z-index: 1; }
.lobby-left, .lobby-right { position: relative; z-index: 3; }

/* Fluid gradient blobs */
.lava-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0;
  will-change: transform, opacity;
}
.lava-blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #FF1935 0%, #FF1935 30%, transparent 70%);
  top: -10%; left: -5%;
  animation: lavaFloat1 14s ease-in-out infinite;
}
.lava-blob-2 {
  width: 340px; height: 340px;
  background: radial-gradient(circle, #FF6B1A 0%, #FF6B1A 30%, transparent 70%);
  top: 60%; right: -8%;
  animation: lavaFloat2 18s ease-in-out infinite;
  animation-delay: -4s;
}
.lava-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #FF1F8E 0%, #FF1F8E 25%, transparent 70%);
  bottom: -12%; left: 30%;
  animation: lavaFloat3 16s ease-in-out infinite;
  animation-delay: -8s;
}
.lava-blob-4 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, #1F3DFF 0%, #1F3DFF 20%, transparent 70%);
  top: 30%; left: 50%;
  animation: lavaFloat4 20s ease-in-out infinite;
  animation-delay: -2s;
}
.lava-blob-5 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #FF1935 0%, #FF6B1A 40%, transparent 70%);
  top: 10%; right: 20%;
  animation: lavaFloat5 15s ease-in-out infinite;
  animation-delay: -6s;
}

/* Floating SVG shapes from MGC logo */
.lava-shape {
  position: absolute;
  opacity: 0;
  will-change: transform, opacity;
  filter: blur(1px);
}
.lava-shape svg {
  width: 100%; height: 100%;
}
.lava-shape-1 {
  width: 120px; height: 70px;
  top: 15%; left: 8%;
  animation: shapeFloat1 22s ease-in-out infinite;
}
.lava-shape-2 {
  width: 80px; height: 80px;
  top: 70%; right: 15%;
  animation: shapeFloat2 19s ease-in-out infinite;
  animation-delay: -5s;
}
.lava-shape-3 {
  width: 100px; height: 70px;
  bottom: 20%; left: 55%;
  animation: shapeFloat3 24s ease-in-out infinite;
  animation-delay: -10s;
}
.lava-shape-4 {
  width: 60px; height: 60px;
  top: 45%; left: 25%;
  animation: shapeFloat4 17s ease-in-out infinite;
  animation-delay: -3s;
}

/* Blob animations — slow, organic, fluid */
@keyframes lavaFloat1 {
  0%   { opacity: 0.35; transform: translate(0, 0) scale(1); }
  25%  { opacity: 0.55; transform: translate(80px, 60px) scale(1.2); }
  50%  { opacity: 0.4;  transform: translate(40px, 120px) scale(0.9); }
  75%  { opacity: 0.6;  transform: translate(-30px, 50px) scale(1.15); }
  100% { opacity: 0.35; transform: translate(0, 0) scale(1); }
}
@keyframes lavaFloat2 {
  0%   { opacity: 0.3;  transform: translate(0, 0) scale(1); }
  25%  { opacity: 0.5;  transform: translate(-70px, -40px) scale(1.15); }
  50%  { opacity: 0.35; transform: translate(-120px, 30px) scale(0.85); }
  75%  { opacity: 0.5;  transform: translate(-40px, -80px) scale(1.1); }
  100% { opacity: 0.3;  transform: translate(0, 0) scale(1); }
}
@keyframes lavaFloat3 {
  0%   { opacity: 0.25; transform: translate(0, 0) scale(1); }
  30%  { opacity: 0.5;  transform: translate(60px, -70px) scale(1.3); }
  60%  { opacity: 0.35; transform: translate(-50px, -40px) scale(0.9); }
  100% { opacity: 0.25; transform: translate(0, 0) scale(1); }
}
@keyframes lavaFloat4 {
  0%   { opacity: 0.2;  transform: translate(0, 0) scale(1); }
  20%  { opacity: 0.35; transform: translate(-60px, 50px) scale(1.1); }
  50%  { opacity: 0.25; transform: translate(40px, -60px) scale(0.85); }
  80%  { opacity: 0.4;  transform: translate(80px, 20px) scale(1.2); }
  100% { opacity: 0.2;  transform: translate(0, 0) scale(1); }
}
@keyframes lavaFloat5 {
  0%   { opacity: 0.2;  transform: translate(0, 0) scale(1); }
  35%  { opacity: 0.45; transform: translate(-40px, 80px) scale(1.25); }
  65%  { opacity: 0.3;  transform: translate(50px, 40px) scale(0.9); }
  100% { opacity: 0.2;  transform: translate(0, 0) scale(1); }
}

/* Shape float animations — slower drift, fade in/out */
@keyframes shapeFloat1 {
  0%   { opacity: 0;    transform: translate(0, 0) rotate(0deg) scale(0.8); }
  15%  { opacity: 0.12; }
  50%  { opacity: 0.08; transform: translate(100px, 80px) rotate(15deg) scale(1); }
  85%  { opacity: 0.12; }
  100% { opacity: 0;    transform: translate(0, 0) rotate(0deg) scale(0.8); }
}
@keyframes shapeFloat2 {
  0%   { opacity: 0;    transform: translate(0, 0) rotate(0deg) scale(0.7); }
  20%  { opacity: 0.15; }
  50%  { opacity: 0.1;  transform: translate(-80px, -60px) rotate(-20deg) scale(1.1); }
  80%  { opacity: 0.15; }
  100% { opacity: 0;    transform: translate(0, 0) rotate(0deg) scale(0.7); }
}
@keyframes shapeFloat3 {
  0%   { opacity: 0;    transform: translate(0, 0) rotate(0deg) scale(0.9); }
  25%  { opacity: 0.1;  }
  50%  { opacity: 0.07; transform: translate(70px, -50px) rotate(25deg) scale(1.05); }
  75%  { opacity: 0.1;  }
  100% { opacity: 0;    transform: translate(0, 0) rotate(0deg) scale(0.9); }
}
@keyframes shapeFloat4 {
  0%   { opacity: 0;    transform: translate(0, 0) rotate(0deg) scale(0.6); }
  30%  { opacity: 0.18; }
  60%  { opacity: 0.1;  transform: translate(-50px, 70px) rotate(-10deg) scale(0.9); }
  100% { opacity: 0;    transform: translate(0, 0) rotate(0deg) scale(0.6); }
}

/* ── Intro instruction bullets ─────────────────────────────── */
.intro-instruction ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.intro-instruction ul li {
  position: relative;
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.45;
}
.intro-instruction ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ── Dinámica screen (facilitador, TV full-width) ──────────── */
.din-screen {
  display: grid;
  grid-template-columns: 30fr 70fr;
  gap: clamp(24px, 2.5vw, 48px);
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.din-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(8px, 1.5vh, 16px);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.din-live-panel {
  position: relative;
  z-index: 1;
}

/* ── Din-screen animated background ─────────────────────────── */
@keyframes dinBlobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -60px) scale(1.15); }
  66%       { transform: translate(-30px, 30px) scale(0.9); }
}
@keyframes dinBlobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-50px, 40px) scale(1.2); }
}
@keyframes dinBlobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(0.95); }
  40%       { transform: translate(30px, -50px) scale(1.1); }
  80%       { transform: translate(-20px, 20px) scale(1.05); }
}
@keyframes dinShapeSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes dinShapePulse {
  0%, 100% { opacity: 0.04; transform: scale(1); }
  50%       { opacity: 0.10; transform: scale(1.06); }
}
@keyframes dinDotDrift {
  0%, 100% { transform: translate(0, 0); opacity: 0.15; }
  50%       { transform: translate(var(--dx, 20px), var(--dy, -30px)); opacity: 0.04; }
}
.din-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.din-blob-1 {
  width: 500px; height: 500px;
  background: var(--red);
  opacity: 0.07;
  bottom: -160px; left: -100px;
  animation: dinBlobFloat1 20s ease-in-out infinite;
}
.din-blob-2 {
  width: 350px; height: 350px;
  background: var(--orange);
  opacity: 0.05;
  top: -120px; right: 15%;
  animation: dinBlobFloat2 25s ease-in-out infinite;
}
.din-blob-3 {
  width: 280px; height: 280px;
  background: var(--magenta);
  opacity: 0.04;
  top: 30%; right: -80px;
  animation: dinBlobFloat3 30s ease-in-out infinite;
}
.din-shape {
  position: absolute;
  color: rgba(255,255,255,0.055);
  pointer-events: none;
}
.din-shape-rings {
  width: 560px; height: 560px;
  bottom: -180px; left: -120px;
  animation: dinShapeSpin 90s linear infinite;
}
.din-shape-triangle {
  width: 220px; height: 220px;
  top: 8%; right: 4%;
  animation: dinShapePulse 14s ease-in-out infinite;
}
.din-shape-dashes {
  width: 180px; height: 180px;
  top: 55%; left: 40%;
  animation: dinShapeSpin 70s linear infinite reverse;
  opacity: 0.07;
}
.din-dot {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
}
.din-dot-1 { width: 6px; height: 6px; top: 22%; left: 44%; --dx: 35px; --dy: -45px; animation: dinDotDrift 15s ease-in-out infinite; }
.din-dot-2 { width: 4px; height: 4px; top: 68%; left: 28%; --dx: -25px; --dy: 22px; animation: dinDotDrift 21s ease-in-out infinite reverse; }
.din-dot-3 { width: 7px; height: 7px; top: 38%; right: 18%; --dx: 18px; --dy: 38px; animation: dinDotDrift 18s ease-in-out infinite; }

/* ── Participant roster in live panel ───────────────────────── */
.participant-roster {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.participant-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(10px, 1vh, 16px) clamp(14px, 1.2vw, 22px);
  border-radius: 12px;
  font-size: clamp(14px, 1.1vw, 20px);
  font-weight: 600;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
  border: 1px solid transparent;
}
.participant-chip.pending {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.4);
}
.participant-chip.responded {
  background: rgba(0,200,100,0.10);
  color: rgba(255,255,255,0.92);
  border-color: rgba(0,200,100,0.25);
}
.chip-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.participant-chip.pending .chip-status { background: rgba(255,255,255,0.2); }
.participant-chip.responded .chip-status {
  background: #00c864;
  box-shadow: 0 0 7px rgba(0,200,100,0.55);
}
.chip-label { flex: 1; }
.chip-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.3);
  transition: color 0.4s ease;
}
.participant-chip.responded .chip-tag { color: rgba(0,200,100,0.75); }
.din-number {
  font-size: clamp(15px, 1.2vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
}
.din-name {
  font-size: clamp(56px, 5vw, 80px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
}
.din-subtitle {
  font-size: clamp(22px, 1.8vw, 32px);
  font-weight: 400;
  color: var(--orange);
  font-family: var(--font-editorial);
  font-style: italic;
}
.din-objective {
  font-size: clamp(15px, 1.2vw, 19px);
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  max-width: 640px;
}
.din-gif {
  width: clamp(160px, 22vh, 320px);
  height: clamp(160px, 22vh, 320px);
  margin-top: 8px;
  flex-shrink: 0;
}
.din-live-panel {
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  padding: clamp(20px, 2vh, 32px);
  overflow-y: auto;
  min-height: 0;
}
.din-live-title {
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.response-count-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: clamp(12px, 0.9vw, 16px);
  font-weight: 900;
  padding: 3px 12px;
  border-radius: 100px;
  margin-left: 8px;
}

/* ── Response items in live panel (TV-sized) ───────────────── */
.response-item {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: clamp(12px, 1.2vh, 20px) clamp(16px, 1.5vw, 28px);
  margin-bottom: 8px;
  font-size: clamp(16px, 1.2vw, 22px);
  color: var(--white);
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.response-item .response-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--red);
  margin-bottom: 4px;
}

/* ── Results visualizations (TV-sized) ──────────────────────── */
.results-screen {
  padding: clamp(16px, 1.5vh, 24px) 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.results-title {
  font-size: clamp(14px, 1vw, 20px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 8px;
}
.results-din-name {
  font-size: clamp(36px, 4vw, 64px);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: clamp(16px, 2vh, 32px);
}

/* Word Cloud (TV: larger words) */
.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(12px, 1vw, 20px);
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vh, 48px) clamp(20px, 2vw, 40px);
  min-height: 0;
  flex: 1;
}
.word-cloud .word {
  display: inline-block;
  font-weight: 900;
  transition: all 0.3s ease;
  animation: fadeInWord 0.5s ease;
}
@keyframes fadeInWord {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* Columns */
.columns-grid {
  display: grid;
  gap: 24px;
  padding: 20px 0;
}
.columns-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.columns-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.columns-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.column-box {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 20px;
  min-height: 200px;
}
.column-title {
  font-size: clamp(14px, 1.2vw, 24px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.1);
}
.column-title.red { color: var(--red); border-color: var(--red); }
.column-title.orange { color: var(--orange); border-color: var(--orange); }
.column-title.green { color: var(--green); border-color: var(--green); }
.column-title.blue { color: var(--blue); border-color: var(--blue); }

.chip {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  padding: clamp(6px, 0.6vh, 10px) clamp(14px, 1.2vw, 22px);
  border-radius: 100px;
  font-size: clamp(14px, 1.1vw, 20px);
  margin: 3px;
  animation: slideIn 0.3s ease;
}
.chip.highlight {
  background: rgba(255,25,53,0.3);
  color: var(--red);
  font-weight: 700;
}

/* Bar chart */
.bar-chart { display: flex; flex-direction: column; gap: 16px; padding: 20px 0; }
.bar-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  align-items: center;
}
.bar-label {
  font-size: clamp(16px, 1.3vw, 24px);
  font-weight: 700;
  text-align: right;
}
.bar-pair { display: flex; flex-direction: column; gap: 4px; }
.bar-track {
  height: clamp(32px, 3.5vh, 52px);
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  min-width: 0;
}
.bar-fill.hoy { background: var(--red); }
.bar-fill.futuro { background: var(--orange); }
.bar-legend {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}
.bar-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
}
.bar-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Slider dispersión */
.tension-chart { display: flex; flex-direction: column; gap: 32px; padding: 20px 0; }
.tension-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tension-labels {
  display: flex;
  justify-content: space-between;
  font-size: clamp(14px, 1.2vw, 22px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tension-track {
  height: clamp(40px, 4vh, 56px);
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  position: relative;
}
.tension-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  top: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.3s;
}
.tension-avg {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--white);
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: left 0.3s;
}
.tension-dispersion-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-left: 8px;
}
.tension-dispersion-badge.high {
  background: rgba(255,25,53,0.2);
  color: var(--red);
}
.tension-dispersion-badge.medium {
  background: rgba(255,107,26,0.2);
  color: var(--orange);
}
.tension-dispersion-badge.low {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
}

/* Ranking / votes */
.ranking-list { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; }
.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  transition: all 0.3s;
}
.ranking-item.top-3 {
  background: rgba(255,25,53,0.1);
  border: 1px solid rgba(255,25,53,0.3);
}
.ranking-item.top-3:first-child {
  background: rgba(255,25,53,0.2);
  font-size: clamp(18px, 1.5vw, 32px);
}
.ranking-position {
  font-size: clamp(24px, 2vw, 36px);
  font-weight: 900;
  color: var(--red);
  width: 40px;
  text-align: center;
}
.ranking-text {
  flex: 1;
  font-size: clamp(16px, 1.3vw, 24px);
  color: var(--white);
}
.ranking-votes {
  font-size: clamp(18px, 1.5vw, 28px);
  font-weight: 700;
  color: var(--red);
}

/* ── Finished screen ───────────────────────────────────────── */
.finished-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  text-align: center;
  gap: 24px;
}
.finished-screen .title-hero {
  font-size: clamp(56px, 7vw, 100px);
}
.export-buttons {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

/* ════════════════════════════════════════════════════════════
   PARTICIPANTE — Layout (mobile-first)
   ════════════════════════════════════════════════════════════ */
body.participante {
  background: var(--white);
  color: var(--black);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.par-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header participante ───────────────────────────────────── */
.par-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.par-header .mgc-logo { color: var(--red); font-size: 24px; }
.par-header .mgc-logo span { color: var(--black); }
.par-session {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(0,0,0,0.3);
}

/* ── Progress bar ──────────────────────────────────────────── */
.par-progress {
  display: flex;
  gap: 4px;
  padding: 12px 0;
}
.par-progress-segment {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(0,0,0,0.08);
  transition: background 0.3s;
}
.par-progress-segment.active { background: var(--red); }
.par-progress-segment.completed { background: var(--black); }

/* ── Content area ──────────────────────────────────────────── */
.par-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 0 0;
  min-height: 0;
  overflow-y: auto;
}

/* ── Dinámica header (participante) ────────────────────────── */
.par-din-header {
  margin-bottom: 24px;
}
.par-din-number {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 4px;
}
.par-din-name {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--black);
}
.par-din-subtitle {
  font-size: 14px;
  color: var(--orange);
  font-family: var(--font-editorial);
  font-style: italic;
  margin-top: 6px;
}

/* ── Form inputs ───────────────────────────────────────────── */
.par-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(0,0,0,0.6);
}
.form-input,
.form-textarea {
  font-family: var(--font-ui);
  font-size: 16px;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  background: var(--white);
  color: var(--black);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--red);
}
.form-textarea {
  resize: none;
  min-height: 100px;
}
.form-hint {
  font-size: 12px;
  color: rgba(0,0,0,0.3);
  text-align: right;
}

/* ── Archetype cards ───────────────────────────────────────── */
.archetype-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 4px;
}
.archetype-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 8px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  text-align: center;
}
.archetype-card:active { transform: scale(0.96); }
.archetype-card.selected {
  border-color: var(--red);
  background: rgba(255,25,53,0.05);
}
.archetype-card .emoji { font-size: 28px; }
.archetype-card .arch-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

/* ── Sliders ───────────────────────────────────────────────── */
.slider-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.slider-row { display: flex; flex-direction: column; gap: 4px; }
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: rgba(0,0,0,0.5);
}
.slider-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(0,0,0,0.08);
  outline: none;
}
.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red);
  cursor: pointer;
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.slider-value {
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
}

/* ── Timer ──────────────────────────────────────────────────── */
.timer-bar {
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}
.timer-fill {
  height: 100%;
  background: var(--red);
  border-radius: 3px;
  transition: width 1s linear;
}
.timer-text {
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  margin-bottom: 12px;
}

/* ── Submit area ───────────────────────────────────────────── */
.par-submit {
  position: sticky;
  bottom: 0;
  background: var(--white);
  padding: 12px 0;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.par-submit .btn { width: 100%; justify-content: center; font-size: 18px; padding: 16px; }

/* ── Wait / submitted screen ───────────────────────────────── */
.par-wait {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  padding: 40px 20px;
}
.par-wait .check-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,200,167,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--green);
}
.par-wait h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.par-wait p {
  font-size: 14px;
  color: rgba(0,0,0,0.5);
}
.par-wait .gif-box {
  width: 180px;
  height: 180px;
}

/* ── Lobby participante ────────────────────────────────────── */
.par-lobby {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 60px 0 40px;
}
.par-lobby .gif-box {
  width: 120px !important;
  height: 120px !important;
}
.par-lobby h1 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--black);
}
.par-lobby h1 .italic {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 700;
}
.par-lobby p {
  font-size: 14px;
  color: rgba(0,0,0,0.5);
}

/* ── Vote cards (D08 fase 2) ───────────────────────────────── */
.vote-list { display: flex; flex-direction: column; gap: 10px; }
.vote-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.vote-card.voted {
  border-color: var(--red);
  background: rgba(255,25,53,0.05);
}
.vote-card .vote-heart {
  font-size: 22px;
  transition: transform 0.2s;
}
.vote-card.voted .vote-heart { transform: scale(1.2); }
.vote-card .vote-text {
  flex: 1;
  font-size: 14px;
  color: var(--black);
}

/* ── Finished participante ─────────────────────────────────── */
.par-finished {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
.par-finished h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -1px;
}
.par-finished p {
  font-size: 14px;
  color: rgba(0,0,0,0.5);
}

/* ── Animations ────────────────────────────────────────────── */
.fade-in {
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════════
   MICRO-ANIMACIONES — Duolingo-inspired
   ════════════════════════════════════════════════════════════ */

/* ── Pop In (bouncy entrance for chips, badges, cards) ──── */
.anim-pop {
  opacity: 0;
  transform: scale(0.3);
  animation: animPopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes animPopIn {
  0%   { opacity: 0; transform: scale(0.3); }
  60%  { opacity: 1; transform: scale(1.08); }
  80%  { transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── Slide In Up (staggered list items, result rows) ────── */
.anim-slide-up {
  opacity: 0;
  transform: translateY(24px);
  animation: animSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes animSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Slide In Left (columns, panels entering) ─────────── */
.anim-slide-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: animSlideLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes animSlideLeft {
  to { opacity: 1; transform: translateX(0); }
}

/* ── Slide In Right ──────────────────────────────────────── */
.anim-slide-right {
  opacity: 0;
  transform: translateX(30px);
  animation: animSlideRight 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes animSlideRight {
  to { opacity: 1; transform: translateX(0); }
}

/* ── Counter Bump (number changes, badge updates) ────── */
.anim-bump {
  animation: animBump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes animBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ── Celebrate Pop (big moments, dominant results) ──── */
.anim-celebrate {
  opacity: 0;
  transform: scale(0);
  animation: animCelebrate 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--d, 0.2s);
}
@keyframes animCelebrate {
  0%   { opacity: 0; transform: scale(0) rotate(-8deg); }
  50%  { opacity: 1; transform: scale(1.15) rotate(3deg); }
  70%  { transform: scale(0.95) rotate(-1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── Wiggle (playful attention on hover or focus) ──── */
.anim-wiggle {
  animation: animWiggle 0.5s ease;
}
@keyframes animWiggle {
  0%, 100% { transform: rotate(0deg); }
  15%  { transform: rotate(-4deg); }
  30%  { transform: rotate(3deg); }
  45%  { transform: rotate(-2deg); }
  60%  { transform: rotate(1deg); }
  75%  { transform: rotate(-0.5deg); }
}

/* ── Glow Pulse (live indicators, active elements) ──── */
.anim-glow {
  animation: animGlow 2s ease-in-out infinite;
}
@keyframes animGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255,25,53,0.3); }
  50%      { box-shadow: 0 0 24px rgba(255,25,53,0.6), 0 0 48px rgba(255,25,53,0.15); }
}

/* ── Bar Fill (elastic width for bar charts) ───────── */
.anim-bar-fill {
  width: 0 !important;
  animation: animBarFill 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes animBarFill {
  to { width: var(--w, 100%); }
}

/* ── Float Up Reveal (synthesis cards) ──────────────── */
.anim-float-reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  animation: animFloatReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0.5s);
}
@keyframes animFloatReveal {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── Scatter Dots (individual dots appearing on tension tracks) */
.anim-dot-scatter {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  animation: animDotScatter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes animDotScatter {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ── Flip In (archetype emoji reveals) ─────────────── */
.anim-flip {
  opacity: 0;
  transform: perspective(300px) rotateY(-90deg);
  animation: animFlip 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes animFlip {
  to { opacity: 1; transform: perspective(300px) rotateY(0deg); }
}

/* ── Shimmer (loading/reveal highlight sweep) ────── */
.anim-shimmer {
  position: relative;
  overflow: hidden;
}
.anim-shimmer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(255,255,255,0.08) 45%,
    rgba(255,255,255,0.15) 50%,
    rgba(255,255,255,0.08) 55%,
    transparent 70%);
  animation: animShimmer 1.5s ease forwards;
  animation-delay: var(--d, 0.3s);
  transform: translateX(-100%);
  pointer-events: none;
}
@keyframes animShimmer {
  to { transform: translateX(100%); }
}

/* ── Confetti canvas ──────────────────────────────── */
#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
}

/* ── Stagger helpers: auto-delay children ──────── */
.stagger-children > *:nth-child(1)  { --d: 0.05s; }
.stagger-children > *:nth-child(2)  { --d: 0.10s; }
.stagger-children > *:nth-child(3)  { --d: 0.15s; }
.stagger-children > *:nth-child(4)  { --d: 0.20s; }
.stagger-children > *:nth-child(5)  { --d: 0.25s; }
.stagger-children > *:nth-child(6)  { --d: 0.30s; }
.stagger-children > *:nth-child(7)  { --d: 0.35s; }
.stagger-children > *:nth-child(8)  { --d: 0.40s; }
.stagger-children > *:nth-child(9)  { --d: 0.45s; }
.stagger-children > *:nth-child(10) { --d: 0.50s; }
.stagger-children > *:nth-child(11) { --d: 0.55s; }
.stagger-children > *:nth-child(12) { --d: 0.60s; }
.stagger-children > *:nth-child(13) { --d: 0.65s; }
.stagger-children > *:nth-child(14) { --d: 0.70s; }
.stagger-children > *:nth-child(15) { --d: 0.75s; }
.stagger-children > *:nth-child(n+16) { --d: 0.80s; }

/* ── Response chip arrive animation ───────────── */
.participant-chip {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.participant-chip.just-arrived {
  animation: animPopIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.participant-chip.responded {
  animation: chipResponded 0.4s ease;
}
@keyframes chipResponded {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.08); background: rgba(0,201,167,0.15); }
  100% { transform: scale(1); }
}

/* ── Pulso timer fullscreen overlay ─────────── */
@keyframes timerOverlayIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes timerOverlayOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.05); }
}

/* ── Results title entrance ──────────────────── */
.results-title {
  animation: animSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.results-din-name {
  animation: animSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

/* ── Live dot bounce on increment ───────────── */
.live-dot {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.live-dot.bump {
  animation: animBump 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Synthesis card hover micro-interaction ────── */
.synthesis-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.synthesis-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,25,53,0.12);
}

/* ── Freq chip hover ────────────────────────────── */
.freq-chip {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.freq-chip:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 12px rgba(255,25,53,0.15);
}

/* ── Column box entrance ────────────────────────── */
.anim-column {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  animation: animColumnIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes animColumnIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Number count-up visual ────────────────────── */
.anim-number {
  display: inline-block;
  animation: animNumberPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: var(--d, 0.3s);
}
@keyframes animNumberPop {
  0%   { opacity: 0; transform: scale(0.5) translateY(8px); }
  60%  { opacity: 1; transform: scale(1.2) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Emoji bounce for archetype reveals ────────── */
.anim-emoji-bounce {
  display: inline-block;
  animation: animEmojiBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: var(--d, 0.2s);
}
@keyframes animEmojiBounce {
  0%   { opacity: 0; transform: scale(0) rotate(-15deg); }
  50%  { opacity: 1; transform: scale(1.3) rotate(5deg); }
  70%  { transform: scale(0.9) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ── Scrollbar styling ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
body.participante ::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); }

/* ── Utility ───────────────────────────────────────────────── */
.hidden { display: none !important; }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }

/* ════════════════════════════════════════════════════════════
   PARTICIPANTE — Chips de sugerencia (D02, D05, D06)
   ════════════════════════════════════════════════════════════ */
.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.sug-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 100px;
  border: 2px solid rgba(0,0,0,0.1);
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sug-chip:active { transform: scale(0.95); }
.sug-chip.selected {
  border-color: var(--red);
  background: rgba(255,25,53,0.06);
  color: var(--red);
  font-weight: 700;
}
.sug-chip-otro {
  border-style: dashed;
  color: rgba(0,0,0,0.4);
}
.sug-chip-otro.selected {
  border-style: solid;
  border-color: var(--red);
  color: var(--red);
}

/* ════════════════════════════════════════════════════════════
   PARTICIPANTE — Archetype cards (D03)
   ════════════════════════════════════════════════════════════ */
.arch-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.arch-card:active { transform: scale(0.96); }
.arch-card.selected {
  border-color: var(--red);
  background: rgba(255,25,53,0.05);
}
.arch-card .emoji { font-size: 26px; }
.arch-card .arch-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}
.arch-card.selected .arch-name { color: var(--red); }
.arch-check {
  font-size: 13px;
  font-weight: 900;
  color: var(--red);
}
.arch-step { width: 100%; padding: 4px; }
.arch-slide-out { display: none !important; }
.arch-slide-in-hidden { display: none !important; }

/* ════════════════════════════════════════════════════════════
   PARTICIPANTE — Dials semicircle (D04 Tensiones)
   ════════════════════════════════════════════════════════════ */
.dial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dial-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.dial-svg {
  width: 100%;
  max-width: 160px;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.dial-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 160px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(0,0,0,0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.dial-label-left { text-align: left; }
.dial-label-right { text-align: right; }

/* ════════════════════════════════════════════════════════════
   INTRO CAROUSEL — Multi-slide system
   ════════════════════════════════════════════════════════════ */
.intro-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.intro-track {
  display: flex;
  height: 100%;
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.intro-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Dots navigation ──────────────────────────────────────── */
.intro-dots {
  position: absolute;
  bottom: clamp(16px, 2.5vh, 32px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.intro-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.intro-dot.active {
  background: var(--red);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(255, 25, 53, 0.5);
}
.intro-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.4);
}

/* ── Confirm badge ────────────────────────────────────────── */
.intro-confirm-badge {
  position: absolute;
  top: clamp(12px, 2vh, 24px);
  right: clamp(16px, 2vw, 32px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: clamp(13px, 1vw, 18px);
  font-weight: 700;
  color: #fff;
  z-index: 10;
}
.intro-confirm-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0f0;
  animation: pulse-dot 1.5s infinite;
}

/* ── Presentation slide (red bg, 2-col) ───────────────────── */
.intro-pres {
  width: 100%;
  height: 100%;
  background: var(--red);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding: clamp(32px, 4vh, 64px) clamp(40px, 4vw, 80px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.intro-pres::before {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 260px;
  height: 260px;
  background: var(--orange);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  pointer-events: none;
}
.intro-pres-left {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5vh, 16px);
  z-index: 1;
}
.intro-pres-label {
  font-size: clamp(12px, 1vw, 16px);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.intro-pres-title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(72px, 10vh, 120px);
  color: #fff;
  line-height: 0.95;
  letter-spacing: -2px;
  margin: 0;
}
.intro-pres-subtitle {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(24px, 3vh, 40px);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.intro-pres-objective {
  font-size: clamp(14px, 1.3vw, 20px);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  max-width: 600px;
  margin: 0;
}
.intro-pres-right {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.intro-pres-gif {
  width: clamp(220px, 30vw, 440px);
  height: clamp(220px, 30vw, 440px);
  object-fit: cover;
  border-radius: 24px;
}

/* ── Concept slide (black bg, centered) ───────────────────── */
.intro-concept {
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 4vh, 64px) clamp(40px, 4vw, 80px);
  gap: clamp(8px, 1vh, 16px);
}

/* ── Instruction slide (black bg, mock forms) ─────────────── */
.intro-instr {
  width: 100%;
  height: 100%;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(24px, 3vh, 48px) clamp(32px, 3vw, 64px);
  gap: clamp(16px, 2vh, 28px);
}
.intro-mock-label {
  font-size: clamp(14px, 1.2vw, 20px);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: clamp(8px, 1vh, 16px);
}
/* Slider demo animation for D05 intro */
@keyframes sliderDemo {
  0%, 100% { left: 30%; }
  50% { left: 70%; }
}
.anim-slider-demo {
  animation: sliderDemo 4s ease-in-out infinite;
}
.intro-mock-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: clamp(12px, 1.5vh, 20px) clamp(16px, 1.5vw, 28px);
  color: rgba(255, 255, 255, 0.3);
  font-size: clamp(20px, 2.5vh, 32px);
  text-align: left;
}
.intro-mock-chip {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(6px, 0.7vh, 10px) clamp(12px, 1.2vw, 20px);
  border-radius: 999px;
  font-size: clamp(14px, 1.3vw, 20px);
  font-weight: 500;
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════
   RESULTS FULLSCREEN — Minimal wrapper
   ════════════════════════════════════════════════════════════ */
.results-full {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.results-header {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 1.5vw, 24px);
  padding-bottom: clamp(8px, 1vh, 14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: clamp(8px, 1vh, 14px);
}
.results-tag {
  font-size: clamp(11px, 0.9vw, 16px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
}
.results-dname {
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
}
.results-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Empty state ──────────────────────────────────────────── */
.results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.3);
  font-size: clamp(16px, 1.3vw, 22px);
}
.results-empty-icon {
  font-size: clamp(48px, 6vh, 80px);
  opacity: 0.5;
}
