:root {
  --fondo: #0a0d14;
  --fondo-2: #111624;
  --tarjeta: #151b2c;
  --borde: #232b42;
  --texto: #eef1f8;
  --texto-2: #9aa3b8;
  --acento: #4be3c1;
  --acento-2: #7c8cff;
  --peligro: #ff6b6b;
  --radio: 18px;
  --sombra: 0 20px 60px rgba(0, 0, 0, .45);
  --fuente: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --fondo: #f5f7fb; --fondo-2: #ffffff; --tarjeta: #ffffff; --borde: #e3e7f0;
    --texto: #0e1424; --texto-2: #5b6478; --acento: #0fae8c; --acento-2: #4d5ce6;
    --sombra: 0 20px 50px rgba(20, 30, 60, .12); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --fondo: #f5f7fb; --fondo-2: #ffffff; --tarjeta: #ffffff; --borde: #e3e7f0;
  --texto: #0e1424; --texto-2: #5b6478; --acento: #0fae8c; --acento-2: #4d5ce6;
  --sombra: 0 20px 50px rgba(20, 30, 60, .12); color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--acento-2) 18%, transparent), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--acento) 14%, transparent), transparent 60%),
              var(--fondo);
  color: var(--texto);
  font-family: var(--fuente);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--acento); }

.marca { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .2px; }
.marca .punto { width: 10px; height: 10px; border-radius: 50%; background: var(--acento);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 25%, transparent); }
.marca small { color: var(--texto-2); font-weight: 400; }

.contenedor { width: 100%; max-width: 560px; margin: 0 auto; padding: 24px 16px 40px; min-height: 100%;
  display: flex; flex-direction: column; gap: 22px; }

.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 24px; box-shadow: var(--sombra); }

h1 { font-size: clamp(26px, 6vw, 34px); line-height: 1.15; margin: 0; letter-spacing: -.4px; }
.sub { color: var(--texto-2); margin: 8px 0 0; }

.boton { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 22px; border-radius: 14px; width: 100%; text-decoration: none;
  background: var(--acento); color: #04140f; transition: transform .12s ease, opacity .2s; }
.boton:active { transform: scale(.98); }
.boton[disabled] { opacity: .5; cursor: default; }
.boton.secundario { background: transparent; color: var(--texto); border: 1px solid var(--borde); }
.boton.peligro { background: color-mix(in srgb, var(--peligro) 15%, transparent); color: var(--peligro); }

.estado { display: flex; align-items: center; gap: 12px; color: var(--texto-2); font-size: 15px; }
.pulso { width: 12px; height: 12px; border-radius: 50%; background: var(--acento); flex: none;
  animation: pulso 1.6s ease-in-out infinite; }
@keyframes pulso { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }

.oculto { display: none !important; }
.pie { margin-top: auto; text-align: center; color: var(--texto-2); font-size: 12.5px; }

/* ── Diapositiva ───────────────────────────────────────────────────── */
.diapo { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radio);
  background: linear-gradient(145deg, var(--fondo-2), var(--tarjeta)); border: 1px solid var(--borde);
  overflow: hidden; container-type: inline-size; box-shadow: var(--sombra); }
.diapo::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, color-mix(in srgb, var(--acento) 22%, transparent), transparent 65%); pointer-events: none; }
.diapo .interior { position: absolute; inset: 0; padding: 6cqw 7cqw; display: flex; flex-direction: column; justify-content: center; gap: 2.4cqw; }
.diapo .num { position: absolute; top: 4cqw; right: 5cqw; font-size: 2.2cqw; color: var(--texto-2); letter-spacing: 1px; }
.diapo .etiqueta { position: absolute; top: 4cqw; left: 7cqw; font-size: 2.2cqw; color: var(--acento); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }
.diapo h2 { margin: 0; font-size: 6.4cqw; line-height: 1.08; letter-spacing: -.1cqw; }
.diapo ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.5cqw; }
.diapo li { font-size: 3.2cqw; color: var(--texto-2); padding-left: 3.4cqw; position: relative;
  opacity: 0; transform: translateY(1cqw); animation: entra .5s ease forwards; }
.diapo li::before { content: ""; position: absolute; left: 0; top: .62em; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--acento); }
.diapo.portada h2 { font-size: 11cqw; }
.diapo.portada li { font-size: 3.8cqw; padding-left: 0; }
.diapo.portada li::before { display: none; }
@keyframes entra { to { opacity: 1; transform: none; } }

.puntos { display: flex; gap: 6px; justify-content: center; }
.puntos i { width: 7px; height: 7px; border-radius: 50%; background: var(--borde); transition: background .3s, width .3s; }
.puntos i.activo { background: var(--acento); width: 20px; border-radius: 4px; }

/* ── Sesión ───────────────────────────────────────────────────────── */
.subtitulos { min-height: 96px; max-height: 32vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; }
.subtitulos p { margin: 0; }
.subtitulos .dex { color: var(--texto); }
.subtitulos .yo { color: var(--texto-2); text-align: right; }
.subtitulos .yo::before { content: "Tú: "; opacity: .7; }

.controles { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.mic { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--borde); background: var(--tarjeta);
  color: var(--texto); display: grid; place-items: center; cursor: pointer; position: relative; }
.mic svg { width: 26px; height: 26px; }
.mic .nivel { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--acento); opacity: 0; transition: opacity .1s, transform .1s; }
.mic.mudo { color: var(--peligro); }

@media (min-width: 900px) {
  .contenedor.ancho { max-width: 1100px; display: grid; grid-template-columns: 1.6fr 1fr; align-items: start; }
  .contenedor.ancho > header, .contenedor.ancho > .pie { grid-column: 1 / -1; }
}
