:root {
  --bg: #020611;
  --panel: rgba(6, 18, 40, 0.62);
  --line: rgba(64, 160, 255, 0.28);
  --line-strong: rgba(80, 180, 255, 0.65);
  --text: #e9f2ff;
  --muted: #8fa6c8;
  --faint: #536886;
  --blue: #2f8bff;
  --cyan: #45c8ff;
  --glow: rgba(47, 139, 255, 0.55);

  /* Color de estado (cambia con data-state) */
  --c1: #45c8ff;
  --c2: #1e6bff;
  --c3: rgba(47, 139, 255, 0.45);
  --amp: 0;

  --font: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  color-scheme: dark;
}
body[data-state="listening"]  { --c1: #4cf5d0; --c2: #10b49a; --c3: rgba(60, 240, 200, 0.42); }
body[data-state="processing"] { --c1: #ffc061; --c2: #ff8a1f; --c3: rgba(255, 160, 60, 0.40); }
body[data-state="speaking"]   { --c1: #9be8ff; --c2: #3a8bff; --c3: rgba(90, 190, 255, 0.60); }

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  overflow: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
svg { stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Fondo ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, #061a3a 0%, #030a1c 55%, #01040b 100%); }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(70, 150, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 150, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 15%, transparent 80%);
}
.bg-glow {
  position: absolute; left: 50%; top: 45%;
  width: 1100px; height: 900px; max-width: 180vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, var(--c3) 0%, transparent 55%);
  opacity: 0.45;
  transition: background 0.8s ease;
}
.bg-frame { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; }
.bg-frame path { stroke: rgba(60, 150, 255, 0.45); stroke-width: 1.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 4px rgba(60, 150, 255, 0.8)); }

/* ---------- Cabecera ---------- */
.top {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px clamp(16px, 3.5vw, 56px) 6px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 56px; height: 42px; stroke: none; filter: drop-shadow(0 0 10px rgba(60, 160, 255, 0.6)); }
.brand-name { font-size: clamp(24px, 2.6vw, 36px); font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.brand-tag { font-size: 13px; color: #c9d8ee; margin-top: 3px; }
.top-right { display: flex; align-items: center; gap: 16px; }
.top-tags { margin: 0; color: var(--cyan); font-size: clamp(14px, 1.3vw, 19px); letter-spacing: 0.01em; white-space: nowrap; }
.top-tags i { font-style: normal; margin: 0 8px; color: var(--muted); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: rgba(6, 18, 40, 0.6);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.icon-btn:hover { border-color: var(--line-strong); box-shadow: 0 0 14px var(--glow); }
.icon-btn svg { width: 19px; height: 19px; fill: currentColor; }
.icon-btn svg path[fill="none"] { fill: none; }
.icon-btn .ic-off { display: none; }
.icon-btn[aria-pressed="true"] .ic-on { display: none; }
.icon-btn[aria-pressed="true"] .ic-off { display: block; color: #ff9b4a; }

/* ---------- Distribución ---------- */
.layout {
  flex: 1 1 auto; min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1.25fr) minmax(320px, 1fr);
  gap: clamp(14px, 2vw, 32px);
  padding: 8px clamp(16px, 3.5vw, 56px) 8px;
  max-width: 1720px; width: 100%; margin: 0 auto;
}
.col { min-height: 0; display: flex; flex-direction: column; }

/* ---------- Paneles ---------- */
.panel {
  position: relative;
  background:
    linear-gradient(160deg, rgba(10, 34, 74, 0.72), rgba(3, 10, 26, 0.86)) padding-box,
    linear-gradient(160deg, rgba(90, 190, 255, 0.75), rgba(40, 110, 230, 0.15) 45%, rgba(70, 170, 255, 0.55)) border-box;
  border: 1.5px solid transparent;
  border-radius: 22px;
  box-shadow: 0 0 30px rgba(30, 110, 255, 0.18), inset 0 0 40px rgba(30, 110, 255, 0.08);
}
.corner { position: absolute; width: 26px; height: 26px; pointer-events: none; }
.corner.tl { top: -6px; left: -6px; border-top: 2px solid var(--cyan); border-left: 2px solid var(--cyan); border-top-left-radius: 14px; filter: drop-shadow(0 0 6px var(--cyan)); }
.corner.br { bottom: -6px; right: -6px; border-bottom: 2px solid var(--cyan); border-right: 2px solid var(--cyan); border-bottom-right-radius: 14px; filter: drop-shadow(0 0 6px var(--cyan)); }
.panel-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 650; color: #6cc4ff;
}
.panel-title svg { width: 34px; height: 34px; color: var(--cyan); filter: drop-shadow(0 0 6px var(--glow)); }
.panel-title.small { font-size: 17px; margin-bottom: 10px; }

/* ---------- Diálogo (izquierda) ---------- */
.dialog {
  flex: 1 1 auto; min-height: 0;
  display: flex; flex-direction: column;
  padding: clamp(18px, 2vw, 28px) clamp(18px, 2vw, 30px) 18px;
}
.dialog-title {
  margin: 0; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; font-weight: 750; letter-spacing: -0.01em;
  background: linear-gradient(180deg, #b8e6ff, #3f9bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(60, 150, 255, 0.45));
}
.dialog-sub { margin: 4px 0 0; font-size: clamp(17px, 1.5vw, 22px); color: #9ad3ff; }
.dialog-line { height: 2px; margin: 14px 0 14px; background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--cyan) 60%, transparent); opacity: 0.7; box-shadow: 0 0 8px var(--cyan); }

.conversation {
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
  padding-right: 6px;
  scrollbar-width: thin; scrollbar-color: rgba(80, 170, 255, 0.35) transparent;
}
.msg { animation: rise 0.35s ease-out both; }
.msg-q {
  align-self: flex-end; max-width: 90%;
  padding: 7px 13px; border-radius: 14px 14px 4px 14px;
  background: rgba(47, 139, 255, 0.14); border: 1px solid rgba(80, 170, 255, 0.35);
  color: #cfe6ff; font-size: 14.5px;
}
.msg-a p { margin: 0; font-size: clamp(15px, 1.15vw, 17.5px); color: #eaf3ff; line-height: 1.55; }
.msg-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tag { padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--cyan); letter-spacing: 0.08em; }
.tag.pending { color: #ffb066; border-color: rgba(255, 150, 60, 0.45); }
.tag.unknown { color: var(--muted); }
.msg-a .w { opacity: 0; transition: opacity 0.25s; }
.msg-a .w.on { opacity: 1; }
.welcome p { margin: 0 0 14px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; color: #eef5ff; }
.welcome .ask { color: #8fd2ff; margin: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Micrófono grande ---------- */
.mic-zone { flex: none; display: flex; flex-direction: column; align-items: center; padding: 16px 0 0; }
.mic-big {
  --s: clamp(110px, 13vh, 150px);
  position: relative; width: var(--s); height: var(--s);
  border: 0; background: none; border-radius: 50%;
  display: grid; place-items: center;
}
.mic-big > span { position: absolute; border-radius: 50%; }
.mic-core {
  inset: 22%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #0f3f86, #041431 70%);
  border: 2px solid var(--c1);
  box-shadow: 0 0 24px var(--c3), inset 0 0 18px var(--c3);
  color: var(--c1);
  transition: border-color 0.4s, color 0.4s, box-shadow 0.4s, transform 0.15s;
}
.mic-core svg { width: 44%; height: 44%; filter: drop-shadow(0 0 6px var(--c1)); }
.mic-core svg rect { fill: currentColor; stroke: none; }
.mic-ring { border: 1.5px solid var(--c1); transition: border-color 0.4s; }
.mic-ring.r1 { inset: 12%; opacity: 0.55; }
.mic-ring.r2 { inset: 2%; opacity: 0.3; border-style: dashed; animation: spin 24s linear infinite; }
.mic-ring.r3 { inset: -8%; opacity: 0.18; }
.mic-big:hover .mic-core { box-shadow: 0 0 36px var(--c3), inset 0 0 22px var(--c3); }
.mic-big:active .mic-core { transform: scale(0.95); }
.mic-big.active .mic-ring { animation: micPulse 1.6s ease-out infinite; }
.mic-big.active .mic-ring.r2 { animation-delay: 0.5s; }
.mic-big.active .mic-ring.r3 { animation-delay: 1s; }
.mic-big:disabled { opacity: 0.4; cursor: not-allowed; }
.mic-title { margin: 8px 0 0; font-size: 18px; color: #e3eeff; }
.mic-sub { margin: 0; font-size: 14px; color: #79b8ff; text-align: center; max-width: 260px; }
@keyframes micPulse { 0% { transform: scale(0.9); opacity: 0.7; } 100% { transform: scale(1.35); opacity: 0; } }

/* ---------- Escenario central (avatar) ---------- */
.col-center { align-items: center; justify-content: flex-end; }
.stage {
  position: relative;
  flex: 1 1 auto; min-height: 0;
  width: 100%;
  display: flex; align-items: flex-end; justify-content: center;
}
.halo {
  position: absolute; left: 50%; bottom: 14%;
  width: min(92%, 640px); aspect-ratio: 1;
  transform: translateX(-50%) scale(calc(1 + var(--amp) * 0.06));
  background: radial-gradient(circle, var(--c3) 0%, transparent 62%);
  transition: background 0.6s, transform 0.12s ease-out;
  animation: breathe 5s ease-in-out infinite;
}
.hud {
  position: absolute; left: 50%; bottom: calc(10% + 30px);
  aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%);
  border: 2px solid transparent;
  transition: border-color 0.6s;
}
.hud1 { width: min(78%, 520px); border-top-color: var(--c1); border-left-color: var(--c1); opacity: 0.75; filter: drop-shadow(0 0 8px var(--c1)); animation: spinX 18s linear infinite; }
.hud2 { width: min(86%, 580px); border: 1px dashed var(--c1); opacity: 0.3; animation: spinX 50s linear infinite reverse; }
.hud3 { width: min(70%, 470px); border-bottom-color: var(--c1); border-right-color: var(--c1); opacity: 0.5; animation: spinX 11s linear infinite reverse; }

.avatar-wrap {
  position: relative; z-index: 2;
  height: 88%; max-height: 640px;
  aspect-ratio: 550 / 640;
  margin-bottom: 7%;
  transform: scale(calc(1 + var(--amp) * 0.012));
  transform-origin: 50% 100%;
  transition: transform 0.12s ease-out;
}
.avatar {
  width: 100%; height: 100%; object-fit: cover; display: block;
  -webkit-mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, #000 52%, transparent 78%), linear-gradient(#000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(ellipse 58% 62% at 50% 50%, #000 52%, transparent 78%), linear-gradient(#000 70%, transparent 100%);
  mask-composite: intersect;
  filter: saturate(1.05) brightness(calc(1 + var(--amp) * 0.08));
  user-select: none; -webkit-user-drag: none;
}
.scan {
  position: absolute; left: 15%; right: 15%; height: 3px; top: 10%;
  background: linear-gradient(90deg, transparent, var(--c1), transparent);
  box-shadow: 0 0 14px var(--c1);
  opacity: 0;
}
.beam {
  position: absolute; z-index: 1; left: 50%; bottom: 9%;
  width: min(46%, 300px); height: 52%;
  transform: translateX(-50%);
  background: linear-gradient(0deg, var(--c3), transparent 85%);
  clip-path: polygon(8% 100%, 92% 100%, 70% 0, 30% 0);
  opacity: calc(0.55 + var(--amp) * 0.35);
  transition: background 0.6s;
}
.platform {
  position: absolute; z-index: 3; left: 50%; bottom: 2%;
  width: min(96%, 640px); aspect-ratio: 5 / 1;
  transform: translateX(-50%);
}
.platform > span {
  position: absolute; left: 50%; top: 50%;
  border-radius: 50%; transform: translate(-50%, -50%);
  border: 2px solid var(--c1);
  transition: border-color 0.6s, box-shadow 0.6s;
}
.platform .p1 { width: 100%; height: 100%; opacity: 0.35; border-width: 1px; }
.platform .p2 { width: 78%; height: 74%; opacity: 0.6; box-shadow: 0 0 18px var(--c3), inset 0 0 18px var(--c3); }
.platform .p3 { width: 54%; height: 48%; opacity: 0.85; border-width: 3px; box-shadow: 0 0 26px var(--c1), inset 0 0 22px var(--c3); }
.platform .p4 { width: 26%; height: 22%; border: 0; background: radial-gradient(ellipse, #fff 0%, var(--c1) 35%, transparent 72%); opacity: calc(0.7 + var(--amp) * 0.3); }
.platform .wave { width: 54%; height: 48%; opacity: 0; border-width: 2px; }
.state-label {
  margin: 4px 0 8px; font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--c1); text-shadow: 0 0 10px var(--c3); transition: color 0.4s;
}

/* Estados */
body[data-state="listening"] .platform .wave { animation: platWave 2s ease-out infinite; }
body[data-state="listening"] .platform .wave:nth-of-type(6) { animation-delay: 0.65s; }
body[data-state="listening"] .platform .wave:nth-of-type(7) { animation-delay: 1.3s; }
body[data-state="listening"] .hud1 { animation-duration: 7s; }

body[data-state="processing"] .hud1 { animation-duration: 1.4s; }
body[data-state="processing"] .hud3 { animation-duration: 1s; }
body[data-state="processing"] .hud2 { animation-duration: 6s; opacity: 0.5; }
body[data-state="processing"] .scan { animation: scan 1.3s ease-in-out infinite; }

body[data-state="speaking"] .halo { animation: none; }
body[data-state="speaking"] .hud1 { animation-duration: 9s; }
body[data-state="speaking"] .platform .p3 { box-shadow: 0 0 calc(20px + var(--amp) * 30px) var(--c1), inset 0 0 22px var(--c3); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinX { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
@keyframes platWave { 0% { width: 54%; height: 48%; opacity: 0.8; } 100% { width: 120%; height: 120%; opacity: 0; } }
@keyframes scan { 0% { top: 8%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 88%; opacity: 0; } }

/* ---------- Barra de pregunta ---------- */
.composer {
  flex: none; position: relative; z-index: 4;
  width: 100%; max-width: 820px;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 9px 9px 18px;
  border-radius: 22px;
  background:
    linear-gradient(rgba(5, 16, 38, 0.92), rgba(5, 16, 38, 0.92)) padding-box,
    linear-gradient(90deg, rgba(90, 190, 255, 0.7), rgba(40, 110, 230, 0.25), rgba(90, 190, 255, 0.7)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 26px rgba(30, 110, 255, 0.25);
}
.composer:focus-within { box-shadow: 0 0 34px rgba(60, 170, 255, 0.45); }
.composer .kb { width: 30px; height: 30px; color: #b8d4f5; flex: none; stroke-width: 1.4; }
.composer input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; padding: 12px 4px; font-size: 17px; }
.composer input::placeholder { color: #7f93b3; }
.composer button {
  flex: none; width: 56px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; border: 0;
  transition: transform 0.15s, box-shadow 0.2s;
}
.composer button:active { transform: scale(0.95); }
.composer button svg { width: 26px; height: 26px; stroke-width: 2; }
.send-btn { background: linear-gradient(150deg, #4fb6ff, #1e63ff); color: #fff; box-shadow: 0 0 18px rgba(50, 140, 255, 0.55); }
.send-btn:hover { box-shadow: 0 0 28px rgba(80, 170, 255, 0.8); }
.stop-btn { width: 46px !important; background: rgba(255, 140, 50, 0.12); border: 1px solid rgba(255, 150, 60, 0.5) !important; color: #ffab5e; }
.stop-btn svg rect { fill: currentColor; stroke: none; }

/* ---------- Columna derecha ---------- */
.col-right { gap: clamp(14px, 2vh, 24px); }
.sugg { flex: 1 1 auto; min-height: 0; padding: clamp(16px, 1.8vw, 24px); display: flex; flex-direction: column; }
.sugg-list { display: flex; flex-direction: column; gap: clamp(8px, 1.2vh, 12px); overflow-y: auto; min-height: 0; padding: 2px; scrollbar-width: none; }
.sugg-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  padding: clamp(10px, 1.4vh, 14px) 16px;
  border-radius: 16px;
  background: rgba(4, 16, 40, 0.85);
  border: 1.5px solid rgba(70, 160, 255, 0.5);
  box-shadow: inset 0 0 18px rgba(40, 120, 255, 0.12);
  font-size: clamp(14px, 1.05vw, 16px); color: #e4eeff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
}
.sugg-item:hover { border-color: rgba(110, 200, 255, 0.9); background: rgba(14, 40, 86, 0.8); box-shadow: 0 0 18px rgba(60, 160, 255, 0.35), inset 0 0 18px rgba(40, 120, 255, 0.18); }
.sugg-item:active { transform: scale(0.985); }
.sugg-item .ico { width: 26px; height: 26px; flex: none; color: #5cc0ff; filter: drop-shadow(0 0 4px var(--glow)); }
.sugg-item .txt { flex: 1; }
.sugg-item .chev { width: 18px; height: 18px; flex: none; color: #7cc8ff; stroke-width: 2.4; }

.more { flex: none; padding: 16px clamp(14px, 1.5vw, 22px) 14px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px 8px;
  border-radius: 14px; border: 1px solid transparent; background: transparent;
  font-size: 14px; color: #dbe8fb;
  transition: background 0.2s, border-color 0.2s;
}
.tile svg { width: 36px; height: 36px; color: #56bdff; filter: drop-shadow(0 0 6px var(--glow)); }
.tile:hover { background: rgba(20, 60, 120, 0.35); border-color: rgba(80, 170, 255, 0.4); }

/* ---------- Pie ---------- */
.bottom {
  flex: none;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  padding: 10px clamp(16px, 3.5vw, 56px) 2px;
  font-size: 15px;
}
.online { display: inline-flex; align-items: center; gap: 10px; color: #7fd8a8; }
.online .dot { width: 12px; height: 12px; border-radius: 50%; background: #2fe07a; box-shadow: 0 0 10px #2fe07a; }
body[data-state="listening"] .online .dot { background: #4cf5d0; box-shadow: 0 0 12px #4cf5d0; }
body[data-state="processing"] .online .dot { background: #ffc061; box-shadow: 0 0 12px #ffc061; }
body[data-state="speaking"] .online .dot { background: #9be8ff; box-shadow: 0 0 12px #9be8ff; }
body:not([data-state="idle"]) .online { color: var(--c1); }
.slogan { color: #b9d3f3; font-size: clamp(15px, 1.3vw, 20px); text-align: center; }
.place { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: #c9d8ee; font-size: 14px; }
.place svg { width: 20px; height: 20px; fill: var(--blue); stroke: none; }
.disclaimer { flex: none; margin: 0; padding: 2px 16px 8px; text-align: center; font-size: 11px; color: var(--faint); }

/* ---------- Pantalla inicial ---------- */
.intro {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center; padding: 16px;
  background: radial-gradient(ellipse at 50% 40%, rgba(8, 30, 70, 0.94), rgba(1, 4, 11, 0.98));
  backdrop-filter: blur(8px);
  transition: opacity 0.5s ease, visibility 0.5s;
}
.intro.hide { opacity: 0; visibility: hidden; }
.intro-card { max-width: 580px; text-align: center; }
.intro-avatar {
  width: 128px; height: 128px; margin: 0 auto 22px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--cyan); box-shadow: 0 0 40px rgba(60, 170, 255, 0.55);
}
.intro-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.5); transform-origin: 50% 35%; }
.intro-kicker { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan); margin: 0 0 8px; }
.intro h1 { margin: 0 0 14px; font-size: clamp(36px, 7vw, 56px); font-weight: 750; line-height: 1.05;
  background: linear-gradient(180deg, #c8ecff, #3f9bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro h1 span { font-weight: 600; }
.intro-text { color: #cddcf0; font-size: 17px; margin: 0 0 26px; }
.start-btn {
  padding: 14px 42px; border-radius: 999px; border: 0;
  background: linear-gradient(150deg, #4fb6ff, #1e63ff);
  color: #fff; font-weight: 700; letter-spacing: 0.04em; font-size: 16px;
  box-shadow: 0 0 30px rgba(50, 140, 255, 0.55);
  transition: transform 0.15s, box-shadow 0.2s;
}
.start-btn:hover { box-shadow: 0 0 44px rgba(80, 170, 255, 0.8); }
.start-btn:active { transform: scale(0.97); }
.intro-note { margin: 22px auto 0; font-size: 12.5px; color: var(--faint); max-width: 460px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .layout { grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.2fr); grid-template-rows: 1fr auto; }
  .col-right { grid-column: 1 / -1; flex-direction: row; }
  .sugg { flex: 1.4; }
  .more { flex: 1; }
  .top-tags { display: none; }
}
@media (max-width: 1180px) and (min-width: 821px) {
  body { overflow-y: auto; height: auto; min-height: 100dvh; }
  .layout { min-height: 760px; }
  .sugg-list { overflow: visible; }
}
@media (max-width: 820px) {
  body { height: auto; min-height: 100dvh; overflow-y: auto; }
  .layout { display: flex; flex-direction: column; gap: 14px; padding: 4px 16px 8px; }
  .col-center { order: 1; }
  .col-left { order: 2; }
  .col-right { order: 3; flex-direction: column; }
  .stage { flex: none; height: 46vh; min-height: 300px; }
  .dialog { max-height: 56vh; }
  .conversation { max-height: 40vh; }
  .mic-zone { flex-direction: row; gap: 14px; justify-content: center; padding-top: 10px; }
  .mic-big { --s: 86px; }
  .mic-zone .mic-title { margin: 0; }
  .bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 4px; }
  .place { justify-self: center; }
  .brand-mark { width: 44px; height: 34px; }
  .top { padding-top: 12px; }
  .composer { padding-left: 12px; }
  .composer .kb { display: none; }
  .composer button { width: 50px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Panel de voz ---------- */
.voice-wrap { position: relative; }
.icon-btn[aria-expanded="true"] { border-color: var(--line-strong); box-shadow: 0 0 14px var(--glow); color: var(--cyan); }
.voice-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30;
  width: min(340px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 18px;
  background: rgba(4, 14, 34, 0.97);
  border: 1.5px solid rgba(80, 180, 255, 0.55);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.6), 0 0 24px rgba(30, 110, 255, 0.25);
  animation: rise 0.2s ease-out both;
}
.vp-title { margin: 0 0 12px; font-weight: 650; color: #8fd2ff; }
.vp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.vp-field span { display: flex; justify-content: space-between; }
.vp-field output { color: var(--text); font-variant-numeric: tabular-nums; }
.vp-field select {
  width: 100%; padding: 9px 10px; border-radius: 10px;
  background: #061633; color: var(--text); font-size: 14px;
  border: 1px solid var(--line); outline: 0;
}
.vp-field select:focus { border-color: var(--line-strong); }
.vp-field input[type="range"] { width: 100%; accent-color: var(--blue); }
.vp-actions { display: flex; gap: 8px; }
.vp-btn {
  flex: 1; padding: 9px 12px; border-radius: 10px; border: 0;
  background: linear-gradient(150deg, #4fb6ff, #1e63ff); color: #fff; font-weight: 600; font-size: 14px;
}
.vp-btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.vp-btn:hover { filter: brightness(1.1); }
.vp-note { margin: 10px 0 0; font-size: 12px; color: var(--faint); line-height: 1.45; }

/* Pantallas bajas (portátiles): compacta el panel derecho para que quepan todas las preguntas */
@media (min-width: 1181px) and (max-height: 920px) {
  .sugg { padding: 14px 16px; }
  .panel-title { margin-bottom: 10px; }
  .panel-title svg { width: 28px; height: 28px; }
  .sugg-list { gap: 7px; }
  .sugg-item { padding: 8px 12px; font-size: 14px; border-radius: 13px; }
  .sugg-item .ico { width: 22px; height: 22px; }
  .more { padding: 12px 14px 10px; }
  .tile { padding: 6px 4px; gap: 4px; font-size: 13px; }
  .tile svg { width: 30px; height: 30px; }
  .top { padding-top: 12px; }
}
