/* Tikabu Live: base compartida (landing + panel).
   Acabado profesional: fondo oscuro neutro, UN acento de marca, tarjetas limpias.
   La energía la ponen las portadas de los juegos, no la interfaz. */
:root {
  color-scheme: dark;
  --fondo: #0a0a0f;
  --fondo-2: #0f0f16;
  --capa: #14141c;
  --capa-2: #1c1c26;
  --borde: #262632;
  --borde-suave: rgba(255, 255, 255, 0.07);
  --tinta: #0a0a0f;
  --texto: #f4f4f7;
  --suave: #b3b3c0;
  --tenue: #7d7d8c;

  /* Acento de marca único */
  --acento: #ff3d7f;
  --acento-osc: #d61f62;
  --acento-tenue: rgba(255, 61, 127, 0.14);

  /* Semánticos (sólo estados) */
  --verde: #3ddc97;
  --naranja: #f5a524;
  --error: #ff6b6b;

  /* Alias heredados: todo lo que antes era un color de arcoíris ahora es el acento */
  --rosa: var(--acento);
  --rosa-osc: var(--acento-osc);
  --amarillo: var(--acento);
  --turquesa: var(--acento);
  --morado: var(--acento);

  --radio: 18px;
  --radio-chico: 12px;
  --sombra: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -24px rgba(0, 0, 0, 0.7);
  --ancho: 1200px;
  --titulos: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  --cuerpo: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 400 17px/1.6 var(--cuerpo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--texto); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--acento) 70%, transparent); }
a:hover { color: #fff; text-decoration-color: var(--acento); }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.05; margin: 0; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }

/* Foco visible y consistente */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; border-radius: 8px; }

.oculto-visual {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar {
  position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--acento); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.saltar:focus { top: 12px; }

.contenedor { width: min(100% - 32px, var(--ancho)); margin-inline: auto; }

/* Botones */
.boton {
  --b: var(--acento); --b-hover: #ff5a93; --b-texto: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 12px;
  background: var(--b); color: var(--b-texto); font: 700 16px/1.1 var(--cuerpo); text-decoration: none;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap; box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--b) 70%, transparent);
}
.boton:hover { color: var(--b-texto); background: var(--b-hover); transform: translateY(-1px); }
.boton:active { transform: translateY(1px); }
.boton:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.boton.amarillo { --b: var(--acento); --b-hover: #ff5a93; --b-texto: #fff; }
.boton.verde { --b: var(--verde); --b-hover: #5ae6aa; --b-texto: var(--tinta); }
.boton.claro { --b: #f4f4f7; --b-hover: #fff; --b-texto: var(--tinta); box-shadow: none; }
.boton.fantasma { --b: rgba(255, 255, 255, 0.04); --b-hover: rgba(255, 255, 255, 0.08); --b-texto: var(--texto); border-color: var(--borde); box-shadow: none; }
.boton.fantasma:hover { border-color: #3a3a48; }
.boton.chico { min-height: 40px; padding: 8px 16px; font-size: 15px; border-radius: 10px; }

/* Selector de idioma */
.idiomas { display: inline-flex; border: 1px solid var(--borde); border-radius: 10px; padding: 3px; gap: 2px; background: var(--fondo-2); }
.idiomas button {
  border: 0; background: transparent; color: var(--tenue); font: 700 13px/1 var(--cuerpo); letter-spacing: 0.06em;
  min-width: 40px; min-height: 34px; border-radius: 7px; cursor: pointer;
}
.idiomas button:hover { color: var(--texto); }
.idiomas button[aria-pressed="true"] { background: var(--capa-2); color: var(--texto); }

/* Marca */
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--texto); }
.marca:hover { color: var(--texto); }
.marca-logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--acento);
  display: grid; place-items: center; flex: none; box-shadow: 0 6px 18px -6px var(--acento);
}
.marca-logo::after {
  content: ''; width: 0; height: 0; margin-left: 3px;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #fff;
}
.marca-nombre { font: 800 20px/1 var(--titulos); letter-spacing: -0.02em; }
.marca-nombre b { color: var(--tenue); font-weight: 700; }

/* Etiquetas */
.etiqueta {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px;
  font: 700 11px/1.2 var(--cuerpo); letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(10, 10, 15, 0.72); color: var(--texto); border: 1px solid var(--borde-suave);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.etiqueta.listo { color: var(--verde); }
.etiqueta.listo::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.etiqueta.pronto { color: var(--suave); }

/* Campos de formulario */
.campo { display: grid; gap: 6px; }
.campo label { font-weight: 700; font-size: 14px; color: var(--suave); }
.campo input, .campo select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radio-chico);
  border: 1px solid var(--borde); background: var(--fondo); color: var(--texto); font-size: 17px;
  transition: border-color 0.15s;
}
.campo input:hover, .campo select:hover { border-color: #3a3a48; }
.campo input:focus-visible, .campo select:focus-visible { outline: 2px solid var(--acento-tenue); outline-offset: 0; border-color: var(--acento); }
.campo .ayuda { font-size: 14px; color: var(--tenue); }
.con-prefijo { position: relative; }
.con-prefijo > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--tenue); font-weight: 700; }
.con-prefijo > input { padding-left: 32px; }
