/* G2 Actas: base de la Suite G2 Labs (g2labs.co) + oro como color propio. */
:root {
  --fondo: #f8f9fa;
  --superficie: #ffffff;
  --borde: #e2e8f0;
  --texto: #1e293b;
  --suave: #64748b;
  --accion: #005c97;
  --accion-hover: #004878;
  --oro: #d4af37;
  --oro-fuerte: #8a6a12;
  --oro-suave: #fbf6e6;
  --noche: #0b1220;
  --peligro: #b91c1c;
  --sombra: 0 1px 2px rgb(15 23 42 / 0.04), 0 10px 28px rgb(15 23 42 / 0.06);
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  color: var(--texto);
  background:
    radial-gradient(900px 420px at 100% -10%, rgb(212 175 55 / 0.18), transparent 70%),
    radial-gradient(700px 380px at -10% 110%, rgb(0 92 151 / 0.07), transparent 70%),
    var(--fondo);
  background-attachment: fixed;
}
h1, h2 { font-family: var(--display); letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgb(0 92 151 / 0.45); outline-offset: 2px; }

/* Barra superior */
.barra {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-left));
  background: rgb(248 249 250 / 0.8); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgb(226 232 240 / 0.8);
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); }
.marca-nombre { font-family: var(--display); font-weight: 700; font-size: 19px; }
.mini-cara {
  width: 40px; height: 30px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(160deg, #1a2338, var(--noche));
}
.mini-cara span { width: 7px; height: 11px; border-radius: 4px; background: #fffbef; box-shadow: 0 0 6px rgb(212 175 55 / 0.9); }
.barra-derecha { display: flex; align-items: center; gap: 10px; min-width: 0; }
.usuario { color: var(--suave); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .usuario { display: none; } }

/* Botones */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
  font: 600 14px "Inter", sans-serif; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s;
}
.boton:active { transform: scale(0.98); }
.boton-prin { background: var(--accion); color: #fff; box-shadow: 0 10px 24px -10px rgb(0 92 151 / 0.6); }
.boton-prin:hover { background: var(--accion-hover); }
.boton-prin:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.boton-sec { background: var(--superficie); color: var(--texto); border-color: var(--borde); }
.boton-sec:hover { background: #f1f5f9; }
.boton-chico { min-height: 38px; padding: 0 14px; font-size: 13px; }
.boton-grande { min-height: 54px; padding: 0 24px; font-size: 16px; border-radius: 16px; }
.boton-peligro { background: transparent; color: var(--peligro); border-color: rgb(185 28 28 / 0.25); margin-top: 18px; }
.boton-peligro:hover { background: #fef2f2; }

/* Contenido */
.contenedor { width: 100%; max-width: 980px; margin: 0 auto; padding: 24px 16px 64px; }
@media (min-width: 768px) { .contenedor { padding: 40px 32px 80px; } }
.tarjeta { background: var(--superficie); border: 1px solid var(--borde); border-radius: 22px; box-shadow: var(--sombra); }
.suave { color: var(--suave); }
.sobretitulo { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--oro-fuerte); }
.aviso-central { text-align: center; padding: 80px 16px; color: var(--suave); }

/* Inicio */
.hero {
  display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center;
  padding: 32px 20px; border-radius: 28px; border: 1px solid var(--borde);
  background: radial-gradient(520px 300px at 50% 0%, rgb(212 175 55 / 0.22), transparent 72%), var(--superficie);
  box-shadow: var(--sombra);
}
@media (min-width: 768px) { .hero { flex-direction: row; text-align: left; padding: 40px 44px; gap: 44px; } }
.hero-texto { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1; }
.hero h1 { font-size: 30px; line-height: 1.1; }
@media (min-width: 768px) { .hero h1 { font-size: 38px; } }
.lead { color: var(--suave); font-size: 16px; line-height: 1.55; }
.form-empezar { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
@media (min-width: 640px) { .form-empezar { flex-direction: row; } }
.form-empezar input {
  flex: 1; min-width: 0; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--borde);
  background: #f8fafc; font: 16px "Inter", sans-serif; color: var(--texto);
}
.form-empezar input:focus { outline: none; border-color: var(--oro); box-shadow: 0 0 0 4px rgb(212 175 55 / 0.2); background: #fff; }
.nota { font-size: 13px; color: var(--suave); }
.nota-alerta { color: #92400e; background: #fffbeb; border: 1px solid #fde68a; padding: 10px 12px; border-radius: 12px; }

.borrador { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; margin-top: 18px; border-color: rgb(212 175 55 / 0.5); background: var(--oro-suave); }
@media (min-width: 640px) { .borrador { flex-direction: row; align-items: center; justify-content: space-between; } }
.borrador h2 { font-size: 17px; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; }

.lista-actas { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.lista-actas h2 { font-size: 22px; }
.actas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 768px) { .actas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.actas a {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; min-height: 44px;
  background: var(--superficie); border: 1px solid var(--borde); border-radius: 18px; text-decoration: none; color: var(--texto);
  transition: box-shadow .15s, transform .15s;
}
.actas a:hover { box-shadow: var(--sombra); transform: translateY(-1px); }
.actas .meta { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--oro-fuerte); }
.actas .titulo { font-weight: 600; font-size: 15px; }
.actas .extracto { font-size: 13px; color: var(--suave); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Acta */
.volver { display: inline-flex; min-height: 44px; align-items: center; color: var(--accion); font-weight: 600; text-decoration: none; }
.acta-cabecera { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 8px 0 18px; }
.acta-titulos { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.acta-titulos h1 { font-size: 28px; line-height: 1.15; }
.acta { padding: 22px 20px; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 768px) { .acta { padding: 30px 34px; } }
.acta h2 { font-size: 19px; margin-bottom: 8px; }
.acta p { line-height: 1.65; color: #334155; }
.vinetas { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.vinetas li { position: relative; padding-left: 26px; line-height: 1.55; }
.vinetas li::before { content: ""; position: absolute; left: 6px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--oro); }
.vinetas-check li::before { content: "✓"; left: 0; top: 0; width: 18px; height: 18px; border-radius: 6px; background: #ecfdf5; color: #047857; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.vinetas-pend li::before { left: 2px; top: 4px; width: 12px; height: 12px; border-radius: 4px; background: transparent; border: 2px solid var(--accion); }
.transcripcion summary { cursor: pointer; font-weight: 600; color: var(--accion); min-height: 44px; display: flex; align-items: center; }
.transcripcion p { font-size: 14px; color: var(--suave); white-space: pre-wrap; max-height: 360px; overflow: auto; padding: 12px 14px; background: #f8fafc; border-radius: 12px; }
.aviso-error { display: flex; align-items: center; gap: 18px; padding: 24px; }

/* Cara del robot */
.cara {
  position: relative; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: radial-gradient(70% 60% at 50% 0%, rgb(212 175 55 / 0.38), transparent 70%), linear-gradient(160deg, #1a2338, var(--noche));
  box-shadow: 0 30px 60px -24px rgb(11 18 32 / 0.55), inset 0 2px 0 rgb(255 255 255 / 0.08);
}
.cara-hero { width: 200px; height: 150px; border-radius: 52px; gap: 34px; --ojo-w: 32px; --ojo-h: 50px; animation: flotar 4s ease-in-out infinite; }
.cara-grande { width: min(78vw, 470px); height: min(56vw, 330px); border-radius: min(18vw, 110px); gap: min(12vw, 72px); --ojo-w: min(11vw, 70px); --ojo-h: min(17vw, 108px); animation: flotar 4.5s ease-in-out infinite; }
.cara-mini { width: 72px; height: 54px; border-radius: 20px; gap: 12px; --ojo-w: 13px; --ojo-h: 20px; box-shadow: 0 10px 24px -12px rgb(11 18 32 / 0.6); }
.ojos {
  display: flex; align-items: center; justify-content: center; gap: inherit;
  translate: var(--mx, 0px) var(--my, 0px);
  transition: translate .5s cubic-bezier(.2, .8, .2, 1);
}
.ojo {
  width: var(--ojo-w); height: calc(var(--ojo-h) * (1 + var(--nivel, 0) * 0.14)); border-radius: 999px; background: #fffbef;
  box-shadow: 0 0 calc(16px + var(--nivel, 0) * 18px) rgb(245 226 160 / 0.9), 0 0 calc(40px + var(--nivel, 0) * 40px) rgb(212 175 55 / calc(0.5 + var(--nivel, 0) * 0.4));
  transition: width .3s, height .12s, border-radius .3s, box-shadow .12s;
}
/* La cara sigue la voz: sube un poco con cada palabra y se inclina cuando algo le da curiosidad */
.cara-grande { translate: 0 calc(var(--nivel, 0) * -10px); rotate: var(--giro, 0deg); transition: translate .1s linear, rotate .5s cubic-bezier(.2, .8, .2, 1); }
.estado-escuchando .ojo { animation: parpadeo 4s ease-in-out infinite; }
.estado-pausa .ojo { height: calc(var(--ojo-w) * 0.22); animation: none; }
/* Pensando: mira hacia arriba como quien hace memoria, entrecierra un ojo y se balancea */
.estado-pensando .ojos { animation: hacer-memoria 3.6s ease-in-out infinite; }
.estado-pensando .ojo { height: calc(var(--ojo-h) * 0.72); }
.estado-pensando .ojo:first-child { height: calc(var(--ojo-h) * 0.5); }
.cara-grande.estado-pensando { animation: balanceo 3.6s ease-in-out infinite; }
.estado-listo.cara-grande { animation: saltito .7s cubic-bezier(.3, 1.6, .5, 1) 1, flotar 4.5s ease-in-out .7s infinite; }
.estado-listo .ojo {
  height: calc(var(--ojo-w) * 0.55); width: calc(var(--ojo-w) * 1.1); background: transparent; box-shadow: none;
  border: calc(var(--ojo-w) * 0.2) solid #fffbef; border-bottom: 0; border-radius: 999px 999px 0 0;
  filter: drop-shadow(0 0 8px rgb(212 175 55 / 0.85));
}
/* Expresiones mientras escucha */
.cara.asiente .ojos { animation: asentir .55s ease-in-out; }
.cara.sorpresa .ojo { width: calc(var(--ojo-w) * 1.18); height: calc(var(--ojo-h) * 1.12); }
.cara.feliz .ojo, .cara.dormido.feliz .ojo {
  height: calc(var(--ojo-w) * 0.55); width: calc(var(--ojo-w) * 1.1); background: transparent; box-shadow: none; animation: none;
  border: calc(var(--ojo-w) * 0.2) solid #fffbef; border-bottom: 0; border-radius: 999px 999px 0 0; filter: drop-shadow(0 0 8px rgb(212 175 55 / 0.85));
}
.cara.dormido .ojo { height: calc(var(--ojo-w) * 0.3); animation: respirar 3.2s ease-in-out infinite; }
.cara.escribiendo .ojo { height: calc(var(--ojo-h) * 0.7); }
@keyframes asentir { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(12%); } 70% { transform: translateY(-4%); } }
@keyframes respirar { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
/* Más expresiones */
.cara.estrella .ojo {
  width: calc(var(--ojo-w) * 1.45); height: calc(var(--ojo-w) * 1.45); border-radius: 0; animation: brillar 1.6s ease-in-out;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.cara.estrella { animation: saltito .6s cubic-bezier(.3, 1.6, .5, 1); }
/* Preocupado: el borde superior de cada ojo cae hacia afuera, como cejas preocupadas */
.cara.preocupado .ojo { height: calc(var(--ojo-h) * 0.82); width: calc(var(--ojo-w) * 1.12); border-radius: 40%; animation: none; }
.cara.preocupado .ojo:first-child { clip-path: polygon(0 42%, 100% 0, 100% 100%, 0 100%); }
.cara.preocupado .ojo:last-child { clip-path: polygon(0 0, 100% 42%, 100% 100%, 0 100%); }
.cara.preocupado .ojos { translate: 0 8%; }
.cara-grande.preocupado { translate: 0 6px; }
.cara.riendo .ojo {
  height: calc(var(--ojo-w) * 0.55); width: calc(var(--ojo-w) * 1.1); background: transparent; box-shadow: none; animation: none;
  border: calc(var(--ojo-w) * 0.2) solid #fffbef; border-bottom: 0; border-radius: 999px 999px 0 0; filter: drop-shadow(0 0 8px rgb(212 175 55 / 0.85));
}
.cara.riendo .ojos { animation: reir .32s ease-in-out 4; }
.cara.guino .ojo:last-child { height: calc(var(--ojo-w) * 0.18); }
.cara.atento .ojo { height: calc(var(--ojo-h) * 0.62); width: calc(var(--ojo-w) * 1.08); }
.mejillas { position: absolute; left: 0; right: 0; bottom: 22%; display: flex; justify-content: center; gap: calc(var(--ojo-w, 40px) * 2.6); pointer-events: none; }
.mejillas span { width: calc(var(--ojo-w, 40px) * 0.9); height: calc(var(--ojo-w, 40px) * 0.38); border-radius: 50%; background: rgb(251 146 160 / 0.55); filter: blur(6px); opacity: 0; transition: opacity .4s; }
.cara.sonrojado .mejillas span { opacity: 1; }
.zzz { position: absolute; top: 4%; right: 8%; pointer-events: none; font-family: var(--display); font-weight: 700; color: #fffbef; text-shadow: 0 0 8px rgb(212 175 55 / 0.9); }
.zzz span { position: absolute; opacity: 0; font-size: 18px; }
.zzz span:nth-child(2) { font-size: 24px; }
.zzz span:nth-child(3) { font-size: 32px; }
.cara.dormido .zzz span { animation: flotar-z 3.6s ease-in infinite; }
.cara.dormido .zzz span:nth-child(2) { animation-delay: 1.2s; }
.cara.dormido .zzz span:nth-child(3) { animation-delay: 2.4s; }
.chispas { position: absolute; inset: -8%; pointer-events: none; }
.chispas span { position: absolute; width: 10px; height: 10px; background: #f5e2a0; opacity: 0; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.chispas span:nth-child(1) { top: 6%; left: 10%; }
.chispas span:nth-child(2) { top: 2%; right: 16%; width: 14px; height: 14px; }
.chispas span:nth-child(3) { bottom: 12%; left: 4%; width: 12px; height: 12px; }
.chispas span:nth-child(4) { bottom: 6%; right: 6%; }
.cara.estrella .chispas span, .estado-listo .chispas span { animation: chispa 1.2s ease-out 2; }
.chispas span:nth-child(2) { animation-delay: .15s !important; }
.chispas span:nth-child(3) { animation-delay: .3s !important; }
.chispas span:nth-child(4) { animation-delay: .45s !important; }
@keyframes hacer-memoria {
  0%, 100% { transform: translate(14%, -22%); }
  45% { transform: translate(14%, -22%); }
  55% { transform: translate(-14%, -20%); }
  90% { transform: translate(-14%, -20%); }
}
@keyframes balanceo { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes saltito { 0% { transform: translateY(0); } 40% { transform: translateY(-18px) scale(1.03); } 100% { transform: translateY(0); } }
@keyframes brillar { 0% { rotate: 0deg; scale: .4; } 60% { rotate: 20deg; scale: 1.15; } 100% { rotate: 0deg; scale: 1; } }
@keyframes reir { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9%); } }
@keyframes flotar-z { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(26px, -48px); } }
@keyframes chispa { 0% { opacity: 0; transform: scale(.2) rotate(0); } 40% { opacity: 1; transform: scale(1.2) rotate(45deg); } 100% { opacity: 0; transform: scale(.4) rotate(90deg); } }
@keyframes parpadeo { 0%, 90%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.08); } }
@keyframes mirar { from { transform: translateX(-40%); } to { transform: translateX(40%); } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes punto { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgb(212 175 55 / .5); } 100% { box-shadow: 0 0 0 20px rgb(212 175 55 / 0); } }
@media (prefers-reduced-motion: reduce) { .cara, .ojo, .ojos, .control-terminar, .zzz span, .chispas span { animation: none !important; transition: none !important; } }

/* Sesión a pantalla completa */
.sesion {
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom));
  background:
    radial-gradient(700px 480px at 50% 38%, rgb(212 175 55 / 0.24), transparent 70%),
    radial-gradient(500px 360px at 100% 100%, rgb(0 92 151 / 0.08), transparent 70%),
    var(--fondo);
  overflow: hidden;
}
.sesion-barra { width: 100%; max-width: 1200px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sesion-titulos { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sesion-app { font-family: var(--display); font-weight: 700; font-size: 18px; }
.sesion-sub { font-size: 13px; color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.chip .punto { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip-escuchando { background: var(--oro-suave); color: var(--oro-fuerte); }
.chip-escuchando .punto { animation: punto 1.2s infinite; }
.chip-pausa { background: #f1f5f9; color: #475569; }
.chip-pensando { background: #e0f2fe; color: var(--accion); }
.chip-listo { background: #ecfdf5; color: #047857; }
.sesion-centro { flex: 1; width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; min-height: 0; }
.ondas { display: flex; align-items: center; gap: 5px; height: 54px; }
.ondas span { width: 6px; height: 54px; border-radius: 6px; background: linear-gradient(180deg, var(--oro), #f1de9c); transform: scaleY(.15); transition: transform .08s linear; }
.ondas.simulada span { animation: onda 1.1s ease-in-out infinite; }
@keyframes onda { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(.9); } }
.pensando { display: flex; align-items: center; gap: 8px; height: 54px; color: var(--suave); font-size: 15px; }
.pensando span { width: 10px; height: 10px; border-radius: 50%; background: var(--oro); animation: punto 1.2s infinite; }
.pensando span:nth-child(2) { animation-delay: .2s; }
.pensando span:nth-child(3) { animation-delay: .4s; }
.reloj { font-family: var(--mono); font-size: clamp(30px, 6vw, 42px); font-weight: 500; letter-spacing: .02em; }
.subtitulo {
  width: 100%; min-height: 3.2em; padding: 14px 18px; border-radius: 18px; background: rgb(255 255 255 / 0.88);
  border: 1px solid var(--borde); box-shadow: 0 10px 30px -14px rgb(15 23 42 / 0.18);
  font-size: 15px; line-height: 1.5; color: #334155; text-align: center;
}
.subtitulo:empty::before { content: "Lo que escuche aparecerá aquí…"; color: #94a3b8; }
.subtitulo .provisional { color: #94a3b8; }
.sesion-error { max-width: 560px; text-align: center; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.controles { display: flex; align-items: center; justify-content: center; gap: 18px; }
.control { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 15px "Inter", sans-serif; }
.control-sec { width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 1px solid var(--borde); color: var(--texto); box-shadow: 0 8px 20px -10px rgb(15 23 42 / 0.25); }
.control-terminar { height: 68px; padding: 0 26px; border-radius: 34px; background: linear-gradient(160deg, var(--oro), #a6821a); color: #fff; animation: pulso 1.8s infinite; }
.control:disabled { opacity: .45; cursor: not-allowed; animation: none; }
.control .ico-seguir { display: none; }
.control.pausado .ico-pausa { display: none; }
.control.pausado .ico-seguir { display: block; }
@media (max-width: 420px) { .control-terminar span { display: none; } .control-terminar { width: 76px; height: 76px; padding: 0; border-radius: 50%; } }

/* Burbuja: lo que el robot "piensa" mientras escucha */
.burbuja {
  position: relative; max-width: min(90vw, 420px); min-height: 40px; padding: 10px 16px; border-radius: 16px;
  background: #fff; border: 1px solid rgb(212 175 55 / 0.45); color: var(--oro-fuerte); font-weight: 600; font-size: 14px; text-align: center;
  box-shadow: 0 10px 26px -14px rgb(138 106 18 / 0.5);
  opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .35s, transform .35s cubic-bezier(.2, .8, .2, 1);
}
.burbuja::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: #fff; border-right: 1px solid rgb(212 175 55 / 0.45); border-bottom: 1px solid rgb(212 175 55 / 0.45); transform: translateX(-50%) rotate(45deg); }
.burbuja.visible { opacity: 1; transform: none; }
@media (max-height: 700px) { .burbuja { min-height: 0; padding: 8px 12px; font-size: 13px; } }

/* Guía de uso */
.enlace { background: none; border: 0; padding: 0; font: inherit; color: var(--accion); font-weight: 600; text-decoration: underline; cursor: pointer; }
.guia {
  width: min(680px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--borde); border-radius: 24px;
  color: var(--texto); background: var(--superficie); box-shadow: 0 30px 80px -20px rgb(15 23 42 / 0.4);
}
.guia::backdrop { background: rgb(15 23 42 / 0.45); backdrop-filter: blur(4px); }
.guia-cabecera { display: flex; align-items: center; gap: 16px; padding: 22px 24px 14px; background: radial-gradient(420px 200px at 100% 0%, rgb(212 175 55 / 0.2), transparent 70%); }
.guia-cabecera h2 { font-size: 22px; line-height: 1.2; }
.guia-cuerpo { padding: 4px 24px 8px; display: flex; flex-direction: column; gap: 18px; overflow: auto; max-height: calc(100vh - 220px); }
.guia h3 { margin: 0 0 6px; font-family: var(--display); font-size: 17px; }
.guia p, .guia li { font-size: 14.5px; line-height: 1.55; color: #334155; }
.guia ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.guia-pie { display: flex; justify-content: flex-end; padding: 14px 24px 20px; border-top: 1px solid var(--borde); margin: 0; }
.guia:focus, .guia:focus-visible, .guia-cuerpo:focus, .guia-cuerpo:focus-visible { outline: none; }
.ico-app { width: 20px; height: 20px; border-radius: 6px; }
