/* MUTACORE · sitio. Paleta y tipografías tomadas de la interfaz del juego (Ui.Theme):
   fondo azul espacio, paneles azules, acento cian holográfico, dorado, naranja Marte.
   Títulos: Fredoka (FredokaOne en el juego) · Texto: Montserrat (Gotham) · Números: Michroma. */
:root {
  --fondo: #0a122a;
  --fondo2: #070d20;
  --panel: #14244e;
  --panel2: #1b2f62;
  --panel-claro: #243e7a;
  --placa: #0e1a3c;
  --borde: rgba(110, 180, 255, .22);
  --texto: #ffffff;
  --suave: #a0c0e8;
  --tenue: #6f8bb8;
  --acento: #38d6ff;
  --exito: #50de78;
  --peligro: #ff4c5c;
  --marte: #ff9628;
  --oro: #ffc83c;
  --brillo: #46a0ff;
  --contorno: #040816;
  --radio: 16px;
  --radio-chico: 10px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .35);
  --t-titulo: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --t-texto: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --t-tec: 'Michroma', 'Montserrat', system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(56, 214, 255, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(155, 80, 255, .10), transparent 60%);
  background-attachment: fixed;
  color: var(--texto);
  font-family: var(--t-texto);
  font-weight: 500;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--acento); }
a:hover { color: #8fe9ff; }
h1, h2, h3, h4 { font-family: var(--t-titulo); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.suave { color: var(--suave); }
.tenue { color: var(--tenue); font-size: .9rem; }
.num { font-family: var(--t-tec); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; border-radius: 6px; }

/* ---------- barra superior ---------- */
.barra {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  background: rgba(7, 13, 32, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); font-family: var(--t-titulo); font-weight: 700; font-size: 1.25rem; min-height: 44px; }
.marca img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 2px rgba(56, 214, 255, .35); }
.marca b { color: var(--exito); font-weight: 700; }
.menu-btn {
  margin-left: auto; min-width: 44px; min-height: 44px; padding: 0 14px;
  border-radius: 12px; border: 1px solid var(--borde); background: var(--panel);
  color: var(--texto); font: 700 1rem var(--t-titulo); cursor: pointer;
}
.nav { display: none; }
.nav.abierto {
  display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
  padding: 8px 16px 16px; background: rgba(7, 13, 32, .97); border-bottom: 1px solid var(--borde);
  max-height: calc(100vh - 60px); overflow-y: auto;
}
.nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px;
  color: var(--suave); text-decoration: none; font-weight: 700;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--texto); background: var(--panel); }
.nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--acento); }
.nav .boton { margin-top: 8px; justify-content: center; }
@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .nav, .nav.abierto { display: flex; flex-direction: row; position: static; padding: 0; background: none; border: 0; margin-left: auto; gap: 2px; align-items: center; overflow: visible; max-height: none; }
  .nav a { font-size: .92rem; padding: 0 10px; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--acento); }
  .nav .boton { margin: 0 0 0 8px; }
}

/* ---------- estructura ---------- */
main { display: block; }
.contenedor { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.seccion { padding: 40px 0; }
.seccion + .seccion { padding-top: 8px; }
.encabezado { padding: 32px 0 8px; }
.encabezado p { color: var(--suave); max-width: 720px; font-size: 1.05rem; }
.kicker { font: 400 .72rem var(--t-tec); letter-spacing: .14em; text-transform: uppercase; color: var(--acento); margin-bottom: 8px; }
.grilla { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grilla-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .grilla-2 { grid-template-columns: 1fr 1fr; } }
.fila { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- paneles ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 18px;
  box-shadow: var(--sombra), inset 0 1px 0 rgba(255, 255, 255, .06);
  min-width: 0;
}
.panel h3 { margin-bottom: .35em; }
.panel.brillo { box-shadow: var(--sombra), 0 0 0 1px rgba(56, 214, 255, .25), 0 0 28px rgba(70, 160, 255, .18); }
.placa { background: var(--placa); border: 1px solid var(--borde); border-radius: var(--radio-chico); padding: 10px 12px; }

/* ---------- botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; border: 0;
  font: 700 1.05rem var(--t-titulo); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  color: #04220f; background: linear-gradient(180deg, #7dff9e, var(--exito));
  box-shadow: 0 4px 0 #1f8a45, 0 8px 22px rgba(80, 222, 120, .28);
  transition: transform .12s ease, box-shadow .12s ease;
}
.boton:hover { color: #04220f; transform: translateY(-1px); }
.boton:active { transform: translateY(2px); box-shadow: 0 2px 0 #1f8a45; }
.boton.cian { color: #032430; background: linear-gradient(180deg, #8ff0ff, var(--acento)); box-shadow: 0 4px 0 #1a86a3, 0 8px 22px rgba(56, 214, 255, .25); }
.boton.cian:active { box-shadow: 0 2px 0 #1a86a3; }
.boton.oscuro { color: var(--texto); background: var(--panel-claro); box-shadow: 0 4px 0 #0c1a3a; }
.boton.oscuro:hover { color: var(--texto); }
.boton.tiktok { color: #fff; background: linear-gradient(180deg, #2b2b33, #111); box-shadow: 0 4px 0 #000, 0 0 0 2px #25f4ee inset, 0 8px 22px rgba(254, 44, 85, .25); }
.boton.tiktok:hover { color: #fff; }
.boton.chico { min-height: 44px; padding: 0 14px; font-size: .95rem; }

/* ---------- chips / filtros ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 2px 10px;
  border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  background: rgba(255, 255, 255, .07); color: var(--texto); border: 1px solid rgba(255, 255, 255, .12); white-space: nowrap;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 8px var(--c, #fff); flex: none; }
.chip.c { color: var(--c); border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.filtro {
  min-height: 44px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--borde); background: var(--placa); color: var(--suave);
  font: 700 .9rem var(--t-texto); display: inline-flex; align-items: center; gap: 8px;
}
.filtro i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--acento)); }
.filtro[aria-pressed="true"] { color: var(--texto); border-color: var(--c, var(--acento)); background: color-mix(in srgb, var(--c, var(--acento)) 18%, var(--placa)); box-shadow: 0 0 14px color-mix(in srgb, var(--c, var(--acento)) 35%, transparent); }
.campo, select.campo {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--borde); background: var(--placa); color: var(--texto); font: 600 1rem var(--t-texto);
}
.campo::placeholder { color: var(--tenue); }
.desplazable { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.desplazable > * { flex: none; }

/* ---------- héroe ---------- */
.heroe { position: relative; padding: 0 0 24px; }
.heroe-arte { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 72vh; overflow: hidden; background: #1a0f2c; }
.heroe-arte img { width: 100%; height: 100%; object-fit: cover; }
.heroe-arte::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, var(--fondo)); }
.heroe-texto { position: relative; margin-top: -24px; text-align: center; }
.heroe-texto h1 { font-size: clamp(1.6rem, 5.5vw, 2.8rem); }
.heroe-texto p { color: var(--suave); max-width: 680px; margin: 0 auto 18px; font-size: 1.05rem; }
.heroe .fila { justify-content: center; }
.cifras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
@media (min-width: 700px) { .cifras { grid-template-columns: repeat(4, 1fr); } }
.cifra { text-align: center; padding: 14px 8px; }
.cifra b { display: block; font: 400 1.7rem var(--t-tec); color: var(--acento); text-shadow: 0 0 16px rgba(56, 214, 255, .45); }
.cifra span { color: var(--suave); font-size: .85rem; font-weight: 700; }
.pilar h3 { display: flex; align-items: center; gap: 10px; }
.pilar .n { font: 400 .8rem var(--t-tec); color: var(--fondo); background: var(--acento); border-radius: 8px; padding: 4px 7px; }

/* ---------- tarjetas de criatura ---------- */
.avatar {
  --c: #888; --c2: #555;
  position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%;
  border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c2) 70%, white 10%) 0 22%, transparent 56%),
    radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%),
    linear-gradient(160deg, #13224a, #0a1330);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent), inset 0 0 30px color-mix(in srgb, var(--c) 30%, transparent);
}
.avatar span { font: 700 clamp(1.4rem, 6vw, 2.3rem) var(--t-titulo); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .45), 0 0 18px var(--c2); letter-spacing: .04em; }
.avatar small { position: absolute; bottom: 6px; left: 0; right: 0; text-align: center; font: 400 .55rem var(--t-tec); letter-spacing: .12em; color: rgba(255, 255, 255, .55); }
.carta {
  --r: #bebebe;
  position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left;
  padding: 10px; border-radius: 16px; cursor: pointer; color: var(--texto);
  border: 2px solid color-mix(in srgb, var(--r) 70%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--r) 16%, var(--panel2)), var(--panel));
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 0 18px color-mix(in srgb, var(--r) 18%, transparent);
  font: inherit; transition: transform .14s ease, box-shadow .14s ease; min-width: 0;
}
.carta:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 26px color-mix(in srgb, var(--r) 35%, transparent); }
.carta .costo {
  position: absolute; top: 4px; left: 4px; z-index: 2; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font: 400 .9rem var(--t-tec); color: #fff;
  background: radial-gradient(circle at 35% 30%, #d9a6ff, #8a3dff 60%, #4a138f); box-shadow: 0 0 0 2px var(--contorno), 0 0 12px rgba(155, 80, 255, .6);
}
.carta h3 { font-size: 1.08rem; margin: 0; }
.carta .meta { display: flex; flex-wrap: wrap; gap: 4px; }
.grilla-cartas { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .grilla-cartas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 820px) { .grilla-cartas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .grilla-cartas { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.vacio { text-align: center; padding: 30px; color: var(--suave); }

/* ---------- barras de estadísticas ---------- */
.stat { display: grid; grid-template-columns: 82px 1fr 52px; gap: 8px; align-items: center; font-size: .88rem; margin: 6px 0; }
.stat .pista { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.stat .pista b { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--c, var(--acento)), color-mix(in srgb, var(--c, var(--acento)) 60%, white)); transition: width .25s ease; }
.stat .v { text-align: right; font: 400 .82rem var(--t-tec); }

/* ---------- ficha (diálogo) ---------- */
dialog.ficha {
  width: min(760px, 100vw); max-width: 100vw; max-height: 100dvh; margin: auto; padding: 0;
  border: 1px solid var(--borde); border-radius: 20px; color: var(--texto);
  background: linear-gradient(180deg, #172a5a, var(--fondo2)); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
@media (max-width: 640px) { dialog.ficha { border-radius: 0; height: 100dvh; max-height: 100dvh; width: 100vw; } }
dialog.ficha::backdrop { background: rgba(2, 5, 15, .75); backdrop-filter: blur(3px); }
.ficha-cab { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; background: rgba(10, 18, 42, .96); border-bottom: 1px solid var(--borde); }
.ficha-cab h2 { font-size: 1.35rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cerrar { width: 44px; height: 44px; flex: none; border: 0; border-radius: 10px; background: #e23440; color: #fff; font: 700 1.3rem var(--t-titulo); cursor: pointer; box-shadow: 0 3px 0 #8f1c25; }
.ficha-cuerpo { padding: 16px; }
.ficha-top { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
@media (min-width: 560px) { .ficha-top { grid-template-columns: 170px 1fr; } }
.ficha h4 { font-size: 1.05rem; margin: 18px 0 8px; color: var(--oro); }
.etapas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.etapas button { min-height: 52px; border-radius: 12px; border: 1px solid var(--borde); background: var(--placa); color: var(--suave); font: 700 .92rem var(--t-titulo); cursor: pointer; line-height: 1.1; padding: 4px; }
.etapas button small { display: block; font: 600 .7rem var(--t-texto); color: var(--tenue); }
.etapas button[aria-pressed="true"] { color: var(--texto); border-color: var(--oro); background: color-mix(in srgb, var(--oro) 14%, var(--placa)); box-shadow: 0 0 14px rgba(255, 200, 60, .3); }
.flecha-evo { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.poder { border-left: 3px solid var(--c, var(--acento)); padding: 10px 12px; margin: 8px 0; background: var(--placa); border-radius: 0 10px 10px 0; }
.poder.activo { box-shadow: 0 0 0 1px var(--oro), 0 0 16px rgba(255, 200, 60, .25); border-left-color: var(--oro); }
.poder h5 { font: 700 1rem var(--t-titulo); margin: 0 0 4px; }
.mini { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 10px; background: var(--placa); border: 1px solid var(--borde); color: var(--texto); text-decoration: none; font-size: .85rem; font-weight: 700; cursor: pointer; min-height: 36px; }
.mini .avatar { width: 28px; border-radius: 8px; }
.mini .avatar span { font-size: .7rem; }
input[type="range"] { width: 100%; accent-color: var(--acento); min-height: 32px; }
.dato { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .08); font-size: .92rem; }
.dato:last-child { border-bottom: 0; }
.dato span:first-child { color: var(--suave); }

/* ---------- planetas ---------- */
.ruta { display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 12px; }
.ruta button {
  --c: #fff; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 92px; min-height: 44px; padding: 10px 8px; border-radius: 14px; cursor: pointer;
  background: var(--placa); border: 1px solid var(--borde); color: var(--suave); font: 700 .85rem var(--t-titulo);
}
.ruta button i { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 40%, white), var(--c) 55%, color-mix(in srgb, var(--c) 40%, black)); box-shadow: 0 0 16px color-mix(in srgb, var(--c) 60%, transparent); }
.ruta button[aria-pressed="true"] { color: #fff; border-color: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 35%, transparent); }
.planeta-cab { display: flex; gap: 16px; align-items: center; }
.orbe { --c: #fff; --g: #fff; flex: none; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 33% 30%, color-mix(in srgb, var(--g) 70%, white), var(--c) 50%, color-mix(in srgb, var(--c) 35%, black) 100%); box-shadow: 0 0 40px color-mix(in srgb, var(--g) 50%, transparent), inset -10px -12px 24px rgba(0, 0, 0, .35); }
.estado { font: 400 .65rem var(--t-tec); letter-spacing: .12em; padding: 4px 8px; border-radius: 6px; }
.estado.si { color: #04220f; background: var(--exito); }
.estado.no { color: var(--oro); border: 1px solid var(--oro); }
.zona { border-top: 3px solid var(--c); }
.cuenta { font: 400 clamp(1.6rem, 7vw, 2.4rem) var(--t-tec); color: var(--oro); text-shadow: 0 0 18px rgba(255, 200, 60, .4); }

/* ---------- matriz de elementos ---------- */
.matriz { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: .8rem; }
.matriz th { font: 700 .72rem var(--t-texto); color: var(--suave); padding: 4px; }
.matriz th.f { text-align: right; white-space: nowrap; }
.matriz td { text-align: center; border-radius: 8px; padding: 8px 2px; font: 400 .74rem var(--t-tec); background: var(--placa); }
.matriz td.v { background: rgba(80, 222, 120, .25); color: #b5ffc9; }
.matriz td.d { background: rgba(255, 76, 92, .22); color: #ffc2c8; }
.matriz td.sel { outline: 2px solid var(--oro); }
.envolver { overflow-x: auto; }
.resultado { font: 400 2rem var(--t-tec); }
.ciclo { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; font-weight: 700; }
.ciclo .chip { font-size: .9rem; min-height: 36px; }

/* ---------- rangos ---------- */
.escalera { display: flex; flex-direction: column-reverse; gap: 6px; }
.peldano { --c: #fff; display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--placa); border: 1px solid var(--borde); }
.peldano .gema { width: 44px; height: 44px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 60%, white), var(--c) 55%, color-mix(in srgb, var(--c) 45%, black)); }
.peldano.actual { border-color: var(--c); box-shadow: 0 0 18px color-mix(in srgb, var(--c) 40%, transparent); }
.peldano b { font-family: var(--t-titulo); font-size: 1.1rem; color: var(--c); }

/* ---------- tablas simples ---------- */
.tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabla th, .tabla td { text-align: left; padding: 9px 8px; border-bottom: 1px solid rgba(255, 255, 255, .07); vertical-align: top; }
.tabla th { color: var(--suave); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- mazo ---------- */
.ranuras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ranura { position: relative; min-height: 96px; border-radius: 12px; border: 2px dashed var(--borde); background: var(--placa); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; font-size: .74rem; text-align: center; color: var(--tenue); cursor: pointer; font-family: inherit; }
.ranura.llena { border-style: solid; border-color: var(--r, var(--acento)); color: var(--texto); background: linear-gradient(180deg, color-mix(in srgb, var(--r, var(--acento)) 18%, var(--panel2)), var(--placa)); }
.ranura .avatar { width: 48px; border-radius: 10px; }
.ranura .avatar span { font-size: .95rem; }
.ranura .costo { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 400 .65rem var(--t-tec); background: #8a3dff; }
.ranura b { font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.codigo-mazo { font: 400 clamp(1rem, 4.6vw, 1.4rem) var(--t-tec); letter-spacing: .12em; color: var(--exito); text-align: center; padding: 14px; border-radius: 12px; background: var(--contorno); border: 1px solid rgba(80, 222, 120, .4); user-select: all; overflow-wrap: anywhere; }
.aviso { padding: 10px 12px; border-radius: 10px; font-size: .9rem; margin: 6px 0; background: rgba(255, 150, 40, .12); border: 1px solid rgba(255, 150, 40, .4); }
.aviso.ok { background: rgba(80, 222, 120, .1); border-color: rgba(80, 222, 120, .4); }
.lista-elegir { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 60vh; overflow-y: auto; padding: 2px; }
.opcion { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 6px; border-radius: 12px; border: 1px solid var(--borde); background: var(--placa); color: var(--texto); cursor: pointer; text-align: left; font: 600 .85rem var(--t-texto); }
.opcion .avatar { width: 40px; flex: none; border-radius: 9px; }
.opcion .avatar span { font-size: .8rem; }
.opcion[disabled] { opacity: .35; cursor: not-allowed; }

/* ---------- galería ---------- */
.galeria { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 520px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.galeria img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; scroll-snap-align: start; border: 1px solid var(--borde); background: var(--panel); }
.insignias { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.insignia { text-align: center; padding: 12px 10px; }
.insignia img { width: 84px; height: 84px; margin: 0 auto 8px; border-radius: 50%; }
.insignia b { display: block; font-family: var(--t-titulo); font-size: .98rem; line-height: 1.2; }
.insignia span { display: block; color: var(--suave); font-size: .78rem; margin-top: 4px; }

/* ---------- pasos / código TikTok ---------- */
.pasos { counter-reset: p; list-style: none; padding: 0; margin: 0 0 16px; }
.pasos li { counter-increment: p; position: relative; padding: 4px 0 12px 46px; color: var(--suave); }
.pasos li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 400 .9rem var(--t-tec); color: var(--fondo); background: var(--acento); }
.codigo { font: 400 clamp(2rem, 11vw, 3rem) var(--t-tec); letter-spacing: .25em; color: var(--exito); text-align: center; margin: 12px 0; text-shadow: 0 0 22px rgba(80, 222, 120, .5); }

/* ---------- pie ---------- */
.pie { margin-top: 48px; padding: 28px 0 40px; border-top: 1px solid var(--borde); background: var(--fondo2); color: var(--tenue); font-size: .9rem; }
.pie nav { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-bottom: 10px; }
.pie a { color: var(--suave); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.pie a:hover { color: var(--texto); }
.legal h2 { margin-top: 28px; font-size: 1.3rem; }
.legal li, .legal p { color: var(--suave); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
