/* Asistente · la web es el asistente. */
:root {
  --fondo: #02030a; --texto: #eef3ff; --texto-2: #9aa6c4; --texto-3: #64708f;
  --a: #0b3bff; --b: #19d9ff; --c: #d6f6ff;
  --cristal: rgba(6, 9, 20, .82); --linea: rgba(150, 180, 255, .2);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--fondo); color: var(--texto); overflow: hidden;
  font: 400 16px/1.5 Inter, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; }

#lienzo { position: fixed; inset: 0; width: 100%; height: 100%; }
.estrellas { position: fixed; inset: 0; pointer-events: none; opacity: .55;
  background:
    radial-gradient(1px 1px at 12% 22%, #fff8, transparent), radial-gradient(1px 1px at 78% 14%, #fff6, transparent),
    radial-gradient(1px 1px at 33% 71%, #fff5, transparent), radial-gradient(1px 1px at 88% 63%, #fff7, transparent),
    radial-gradient(1px 1px at 52% 9%, #fff4, transparent), radial-gradient(1px 1px at 6% 84%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 66% 88%, #fff5, transparent), radial-gradient(1px 1px at 22% 46%, #fff3, transparent),
    radial-gradient(1px 1px at 94% 38%, #fff4, transparent), radial-gradient(ellipse 80% 60% at 50% 40%, #0a1a5a22, transparent 70%); }

.arriba { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: max(16px, env(safe-area-inset-top)) 22px 0; }
.marca { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 17px/1 'Space Grotesk', sans-serif; letter-spacing: -.01em; }
.marca svg { width: 26px; height: 26px; }
.arriba-der { display: flex; gap: 6px; }
.arriba-der a { text-decoration: none; font-size: 14px; color: var(--texto-2); padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.arriba-der a:hover { color: var(--texto); background: #ffffff0d; }
.arriba-der .acceder { color: var(--texto); border: 1px solid var(--linea); }

.mundo { position: fixed; inset: 0; }
.nombre { position: absolute; left: 0; right: 0; margin: 0; text-align: center; pointer-events: none;
  font: 700 clamp(26px, 4.4vw, 46px)/1 'Space Grotesk', sans-serif; letter-spacing: -.03em;
  text-shadow: 0 0 4px #000, 0 2px 24px #000c; transition: opacity .6s; }
.nombre.nace { animation: nace 1.2s cubic-bezier(.2, .9, .2, 1); }
@keyframes nace { from { opacity: 0; letter-spacing: .3em; filter: blur(8px); } }
.estado { position: absolute; left: 0; right: 0; margin: 0; text-align: center; pointer-events: none;
  font: 600 11px/1 Inter, sans-serif; letter-spacing: .28em; text-transform: uppercase; color: var(--b); text-shadow: 0 0 6px #000; }

/* Habilidades y satélites: se colocan en órbita desde mundo.js. */
.orbita, .satelites { position: absolute; inset: 0; pointer-events: none; }
.hab, .sat { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform, opacity; border-radius: 999px; }
.hab { padding: 5px 13px; font-size: 13px; font-weight: 600; background: var(--cristal);
  border: 1px solid color-mix(in srgb, var(--b) 55%, transparent); box-shadow: 0 0 18px -6px var(--b); }
.hab.nueva { color: #02040c; background: linear-gradient(100deg, var(--b), var(--c)); border-color: transparent; box-shadow: 0 0 30px var(--b); }
.sat { pointer-events: auto; cursor: pointer; padding: 6px 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--texto-2); background: #05081499; border: 1px dashed #9ab0ff40; transition: color .2s, border-color .2s, background .2s; }
.sat:hover, .sat:focus-visible { color: var(--texto); border-style: solid; border-color: var(--b); background: var(--cristal); }

/* La conversación */
.charla { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(640px, 100% - 32px);
  padding-bottom: max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: stretch; gap: 10px; z-index: 3; }
.tu { margin: 0; min-height: 1.2em; text-align: center; font-size: 13.5px; color: var(--texto-3); }
.tu:not(:empty)::before { content: '— '; }
.voz { margin: 0; min-height: 3em; text-align: center; font-size: clamp(17px, 2vw, 20px); line-height: 1.45; font-weight: 500;
  text-shadow: 0 0 3px #000, 0 1px 14px #000; text-wrap: balance; }
.voz b { color: var(--c); font-weight: 700; }
.voz .cursor { display: inline-block; width: .5ch; animation: parpadeo 1s steps(1) infinite; color: var(--b); }
@keyframes parpadeo { 50% { opacity: 0; } }
.opciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 40px; }
.op { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--linea); background: var(--cristal); cursor: pointer; font-size: 14.5px; font-weight: 500;
  opacity: 0; transform: translateY(6px); animation: entra .45s forwards; transition: border-color .2s, background .2s; }
.op:hover { border-color: var(--b); background: #0b1430; }
.op.color { display: inline-flex; align-items: center; gap: 8px; }
.op.color i { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d6f6ff, #19d9ff 45%, #0b3bff); box-shadow: 0 0 10px #19d9ff; }
@keyframes entra { to { opacity: 1; transform: none; } }

.hablar { display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--cristal); border: 1px solid var(--linea);
  backdrop-filter: blur(10px); transition: border-color .3s, box-shadow .3s; }
.hablar:focus-within { border-color: var(--b); box-shadow: 0 0 40px -12px var(--b); }
.hablar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 0 14px; font-size: 16px; }
.hablar input::placeholder { color: var(--texto-3); }
.hablar button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer; font-size: 18px; font-weight: 700; color: #02040c;
  background: linear-gradient(100deg, var(--b), var(--c)); }
.ocupado .hablar button { opacity: .45; cursor: progress; }
.ocupado .op { pointer-events: none; }
.pie { margin: 0; text-align: center; font-size: 12px; color: var(--texto-3); letter-spacing: .02em; }

/* Tarjeta final: así sería el tuyo */
.final { padding: 18px 20px; border-radius: 22px; background: var(--cristal); border: 1px solid color-mix(in srgb, var(--b) 60%, transparent);
  box-shadow: 0 0 60px -20px var(--b); backdrop-filter: blur(12px); animation: entra .6s forwards; opacity: 0; }
.final dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: 14.5px; }
.final dt { color: var(--texto-2); }
.final dd { margin: 0; font-weight: 600; }
.final .fila { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--linea);
  background: none; cursor: pointer; font-weight: 600; font-size: 15px; text-decoration: none; }
.btn:hover { border-color: var(--b); }
.btn.si { border: 0; color: #02040c; background: linear-gradient(100deg, var(--b), var(--c)); box-shadow: 0 0 30px -8px var(--b); }
.final .precio { margin-left: auto; font-size: 13px; color: var(--texto-2); }

/* Paneles de los satélites */
.velo { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: #02030acc; backdrop-filter: blur(6px); }
.panel { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 26px 26px 22px; border-radius: 24px;
  background: #070b1a; border: 1px solid var(--linea); box-shadow: 0 30px 80px -30px #000; animation: entra .35s forwards; opacity: 0; }
.panel h2 { margin: 0 0 14px; font: 700 24px/1.15 'Space Grotesk', sans-serif; letter-spacing: -.02em; }
.panel p, .panel li { color: #c9d3ec; }
.panel ol, .panel ul { padding-left: 20px; margin: 0; display: grid; gap: 10px; }
.panel li b { color: var(--texto); }
.cerrar { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--linea); background: none; cursor: pointer; }
.planes { display: grid; gap: 12px; }
.plan { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--linea); }
.plan.destacado { border-color: color-mix(in srgb, var(--b) 60%, transparent); box-shadow: 0 0 40px -18px var(--b); }
.plan header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plan h3 { margin: 0; font: 700 19px/1.2 'Space Grotesk', sans-serif; }
.plan .eur { font: 700 22px/1 'Space Grotesk', sans-serif; } .plan .eur small { font: 400 13px Inter, sans-serif; color: var(--texto-2); }
.plan p { margin: 4px 0 10px; font-size: 14px; }
.plan ul { font-size: 14px; gap: 4px; margin-bottom: 14px; }

.sin-js { position: fixed; inset: auto 0 40px; text-align: center; }

@media (max-width: 700px) {
  .arriba { padding-inline: 16px; }
  .arriba-der a:not(.acceder) { display: none; }
  .sat { font-size: 10.5px; padding: 5px 10px; letter-spacing: .05em; }
  .hab { font-size: 11.5px; padding: 4px 10px; }
  .voz { font-size: 16.5px; min-height: 2.8em; }
  .op { font-size: 14px; padding: 8px 13px; }
  .final dl { font-size: 13.5px; }
  .final .precio { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .op, .final, .panel, .nombre.nace { animation: none; opacity: 1; transform: none; } }
