/* ── Paleta "pasatiempos de periódico" (igual que Color.kt) ── */
:root {
  --crema: #F6F1E7;
  --crema-sup: #FBF7EF;
  --tinta: #1A1A1A;
  --tinta-suave: #5A5A5A;
  --naranja: #F2A63C;
  --rosa: #F29FC7;
  --amarillo: #F2C94C;
  --verde: #8BC15E;
  --azul: #6FB8E0;
  --morado: #B79BE0;
  --acento: #2E7D32;
  --rojo: #C0392B;
  --sombra: 3px 4px 0 var(--tinta);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--crema);
  color: var(--tinta);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }

.pantalla { display: none; min-height: 100vh; min-height: 100dvh; }
.pantalla.activa { display: flex; }

/* ══════════ SPLASH ══════════ */
#splash { align-items: center; justify-content: center; transition: opacity .35s; }
#splash.saliendo { opacity: 0; }
.splash-centro { display: flex; flex-direction: column; align-items: center; width: min(82vw, 420px); }
#barco { width: 100%; height: auto; overflow: visible; }
#barco .pieza, #s-cubierta { stroke: var(--tinta); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
#barco .humo { fill: var(--tinta); opacity: 0; }
#s-marca {
  font-family: "Outfit", sans-serif; font-weight: 900; font-size: 21px;
  letter-spacing: 1.4px; fill: var(--crema); opacity: 0;
}
.splash-titulo { font-family: "Outfit", sans-serif; font-weight: 900; font-size: 34px; margin: 18px 0 0; opacity: 0; }
.splash-sub { margin: 0; font-weight: 700; font-size: 15px; color: rgba(26,26,26,.55); opacity: 0; }
.splash-by { margin: 40px 0 0; font-size: 12px; color: rgba(26,26,26,.4); opacity: 0; }

/* ══════════ LOGIN ══════════ */
#login { align-items: center; justify-content: center; padding: 28px 16px; }
.login-col { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; }
.logo-circulo {
  width: 88px; height: 88px; border-radius: 50%; background: var(--amarillo);
  display: grid; place-items: center; font-size: 44px;
}
.login-titulo { font-family: "Outfit", sans-serif; font-weight: 900; font-size: 32px; margin: 16px 0 0; }
.login-sub { margin: 0; font-size: 13px; font-weight: 600; color: rgba(26,26,26,.5); }
.login-tarjeta {
  width: 100%; margin-top: 36px; background: #fff; border-radius: 24px;
  padding: 28px 24px; box-shadow: 0 4px 14px rgba(0,0,0,.08); text-align: center;
}
.login-tarjeta h2, .hoja h2 { margin: 0; font-size: 22px; font-weight: 800; }
.login-texto { margin: 6px 0 24px; font-size: 14px; line-height: 20px; color: rgba(26,26,26,.45); }
.login-nota { margin-top: 14px; font-size: 12px; color: rgba(26,26,26,.5); }

.btn-linea {
  width: 100%; height: 54px; margin-bottom: 12px; border-radius: 14px;
  border: 1.5px solid #DADCE0; background: #fff; color: rgba(26,26,26,.8);
  font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 12px;
}
.btn-linea:hover { background: #fafafa; }
.btn-linea:disabled { opacity: .6; cursor: default; }
.btn-texto {
  width: 100%; height: 48px; border: 0; background: none; border-radius: 14px;
  color: var(--acento); font-size: 15px; font-weight: 700;
}
.btn-texto:hover { background: rgba(46,125,50,.06); }
.btn-texto.gris { color: rgba(26,26,26,.5); font-weight: 600; }
.btn-negro {
  width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--tinta);
  color: #fff; font-size: 16px; font-weight: 700;
}
.btn-negro.peq { width: auto; height: 42px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
.btn-negro:disabled { opacity: .6; cursor: default; }

.separador { display: flex; align-items: center; gap: 8px; margin: 6px 0 18px; color: rgba(26,26,26,.3); font-size: 13px; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: #E8E8E8; }

.caja-error {
  margin: 2px 0 14px; padding: 12px; border-radius: 10px; background: #FFEBEE;
  color: #CC4444; font-size: 12px; text-align: center;
}

.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent;
  animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* Hoja inferior de email */
.hoja-fondo {
  position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.35);
  display: flex; align-items: flex-end; justify-content: center;
}
.hoja-fondo[hidden] { display: none; }
.hoja {
  width: 100%; max-width: 520px; background: #fff; border-radius: 24px 24px 0 0;
  padding: 28px 28px 32px; text-align: center; animation: subir .25s ease-out;
}
@media (min-width: 640px) {
  .hoja-fondo { align-items: center; }
  .hoja { border-radius: 24px; }
}
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }
.hoja label { display: block; text-align: left; font-size: 13px; font-weight: 600; color: rgba(26,26,26,.6); margin-bottom: 12px; }
.hoja input {
  display: block; width: 100%; margin-top: 4px; height: 52px; padding: 0 14px;
  border: 1.5px solid #C9C9C9; border-radius: 12px; font: inherit; font-size: 16px; color: var(--tinta);
}
.hoja input:focus { outline: none; border-color: var(--tinta); }
.hoja .btn-negro { margin-top: 12px; }
.hoja .btn-texto { margin-top: 8px; }

/* ══════════ MENÚ ══════════ */
#menu { flex-direction: column; }
.menu-cabecera {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1200px; width: 100%; margin: 0 auto; padding: 18px 16px 8px;
}
.marca { display: flex; align-items: center; gap: 8px; color: var(--tinta); text-decoration: none; }
.marca-icono { font-size: 26px; }
.marca-texto { font-family: "Outfit", sans-serif; font-weight: 900; font-size: 26px; }
.cabecera-der { display: flex; align-items: center; gap: 12px; }

.moneda-badge {
  display: flex; align-items: center; gap: 6px; background: #fff;
  border: 2px solid var(--tinta); border-radius: 14px; padding: 5px 10px;
  box-shadow: var(--sombra); font-weight: 900; font-size: 16px;
}

.usuario-chip {
  display: flex; align-items: center; gap: 8px; background: #fff;
  border: 2px solid var(--tinta); border-radius: 999px; padding: 4px 12px 4px 4px;
  box-shadow: var(--sombra); max-width: 200px;
}
.usuario-chip:active { transform: translate(2px, 2px); box-shadow: 1px 2px 0 var(--tinta); }
.avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--amarillo);
  border: 2px solid var(--tinta); display: grid; place-items: center;
  font-weight: 900; font-size: 14px;
}
.usuario-nombre { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .marca-texto { font-size: 22px; }
  .marca-icono { font-size: 22px; }
  .cabecera-der { gap: 10px; }
  .usuario-nombre { display: none; }
  .usuario-chip { padding: 4px; }
}

.menu-main { max-width: 1200px; width: 100%; margin: 0 auto; padding: 8px 16px 40px; }
.menu-fecha { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: rgba(26,26,26,.55); }
.menu-fecha::first-letter { text-transform: uppercase; }
.seccion { margin: 18px 0 16px; font-size: 15px; font-weight: 700; color: rgba(26,26,26,.55); }

/* Juegos en horizontal */
.juegos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .juegos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .juegos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }

.juego { display: flex; flex-direction: column; align-items: center; }
.juego-copa { height: 76px; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 10px; }

.tarjeta {
  position: relative; width: 100%; aspect-ratio: 1 / 1.08;
  border: 2.5px solid var(--tinta); border-radius: 20px; box-shadow: 4px 5px 0 var(--tinta);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 10px; color: var(--tinta); text-align: center;
  transition: transform .12s, box-shadow .12s;
}
.tarjeta:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--tinta); }
.tarjeta:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--tinta); }
.tarjeta:focus-visible { outline: 3px solid var(--tinta); outline-offset: 4px; }
.tarjeta-icono {
  width: 64px; height: 64px; border-radius: 18px; background: rgba(255,255,255,.55);
  border: 2px solid var(--tinta); display: grid; place-items: center; font-size: 34px;
}
.tarjeta-icono img { width: 40px; height: 40px; }
.tarjeta-titulo { font-family: "Outfit", sans-serif; font-weight: 900; font-size: 18px; line-height: 1.15; }
.tarjeta-estado {
  font-size: 12px; font-weight: 800; background: #fff; border: 2px solid var(--tinta);
  border-radius: 999px; padding: 3px 10px;
}

.aviso-invitado {
  margin-top: 36px; display: flex; align-items: center; gap: 16px; justify-content: space-between;
  background: #fff; border: 2px solid var(--tinta); border-radius: 16px; box-shadow: var(--sombra);
  padding: 14px 16px; font-size: 14px; font-weight: 600;
}
.aviso-invitado[hidden] { display: none; }
@media (max-width: 600px) { .aviso-invitado { flex-direction: column; align-items: stretch; text-align: center; } }

/* ── Copas (SVG generado en copas.js) ── */
.copa-caja { position: relative; flex: none; }
.copa-caja svg { position: absolute; display: block; overflow: visible; }
.mota { animation: mota 2.6s linear infinite; }
@keyframes mota {
  0%   { transform: translate(0, 0); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(var(--dx), calc(var(--dy) * .5)); }
  100% { transform: translate(0, var(--dy)); opacity: 0; }
}
.puf { transform-box: fill-box; transform-origin: center; animation: puf 2.6s ease-in-out infinite; }
@keyframes puf { 50% { transform: scale(1.25); opacity: .4; } }

/* ── Menú de usuario y toast ── */
.menu-usuario {
  position: absolute; z-index: 15; background: #fff; border: 2px solid var(--tinta);
  border-radius: 14px; box-shadow: var(--sombra); padding: 6px; min-width: 200px;
}
.menu-usuario p { margin: 8px 10px; font-size: 12px; color: rgba(26,26,26,.55); word-break: break-all; }
.menu-usuario button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 10px; border-radius: 10px; font-weight: 700;
}
.menu-usuario button:hover { background: rgba(26,26,26,.06); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30;
  background: var(--tinta); color: var(--crema); padding: 12px 18px; border-radius: 14px;
  font-weight: 700; font-size: 14px; max-width: calc(100% - 32px); text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .mota, .puf { animation: none; }
  .tarjeta { transition: none; }
}

/* ══════════ PESTAÑAS Y FLECHAS LATERALES ══════════ */
.tab { display: none; }
.tab.activa { display: block; animation: entrar .22s ease-out; }
@keyframes entrar { from { opacity: 0; transform: translateX(var(--desde, 0)); } }

.nav-lado {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 84px; padding: 16px 6px; border: 2.5px solid var(--tinta); border-radius: 20px;
  background: #fff; box-shadow: 4px 5px 0 var(--tinta); color: var(--tinta);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .12s, box-shadow .12s;
}
.nav-lado[hidden] { display: none; }
.nav-lado.izq { left: 16px; }
.nav-lado.der { right: 16px; }
.nav-lado:hover { transform: translateY(calc(-50% - 2px)); box-shadow: 6px 7px 0 var(--tinta); }
.nav-lado:active { transform: translateY(calc(-50% + 3px)); box-shadow: 1px 1px 0 var(--tinta); }
.nav-lado.der { flex-direction: column-reverse; }
.nav-flecha { font-family: "Outfit", sans-serif; font-weight: 900; font-size: 40px; line-height: .8; }
.nav-texto { font-size: 12px; font-weight: 800; line-height: 1.2; text-align: center; }
.nav-icono { font-size: 24px; }

@media (min-width: 901px) {
  .menu-main, .menu-cabecera { padding-left: 116px; padding-right: 116px; max-width: 1432px; }
}
@media (max-width: 900px) {
  .nav-lado {
    top: auto; bottom: 16px; transform: none; width: auto; padding: 10px 16px;
    flex-direction: row; border-radius: 999px;
  }
  .nav-lado.der { flex-direction: row-reverse; }
  .nav-lado:hover { transform: translateY(-2px); }
  .nav-lado:active { transform: translateY(3px); }
  .nav-flecha { font-size: 28px; }
  .nav-texto { font-size: 14px; white-space: nowrap; }
  .nav-texto br { display: none; }
  .nav-icono { font-size: 18px; margin-right: 4px; }
  .menu-main { padding-bottom: 100px; }
}

/* ══════════ ESTADÍSTICAS ══════════ */
.titulo-tab { display: flex; align-items: center; gap: 12px; margin: 8px 0 16px; }
.titulo-tab h2 { margin: 0; font-family: "Outfit", sans-serif; font-weight: 900; font-size: 26px; flex: 1; }
.pegatina {
  background: #fff; border: 2px solid var(--tinta); border-radius: 16px; box-shadow: var(--sombra);
}
.btn-pegatina {
  border: 2px solid var(--tinta); border-radius: 12px; box-shadow: var(--sombra);
  padding: 8px 14px; font-weight: 800; font-size: 14px; color: var(--tinta); background: var(--verde);
}
.btn-pegatina:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--tinta); }

.resumen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 700px) { .resumen { grid-template-columns: repeat(6, minmax(0, 1fr)); } .resumen > :nth-child(-n+3) { grid-column: span 2; } .resumen > :nth-child(n+4) { grid-column: span 3; } }
.big-stat { text-align: center; padding: 12px 6px; border-radius: 16px; border: 2px solid var(--tinta); box-shadow: var(--sombra); }
.big-stat b { display: block; font-family: "Outfit", sans-serif; font-size: 26px; font-weight: 900; }
.big-stat span { font-size: 12px; font-weight: 700; color: rgba(26,26,26,.7); }

.dos-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .dos-col { grid-template-columns: minmax(0, 1fr); } }

.selector { display: flex; gap: 8px; margin-bottom: 14px; }
.selector button {
  flex: 1; height: 52px; border: 2px solid var(--tinta); border-radius: 14px; background: #fff;
  font-size: 24px; transition: transform .12s, box-shadow .12s, background .12s; filter: grayscale(.5); opacity: .7;
}
.selector button.sel { background: var(--c); box-shadow: 3px 4px 0 var(--tinta); transform: translate(-1px, -2px); filter: none; opacity: 1; }

.stat-juego { padding: 14px; }
.stat-cabecera { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.icono-cuadro {
  width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1.5px solid var(--tinta);
  display: grid; place-items: center; font-size: 22px;
}
.stat-cabecera b { display: block; font-size: 16px; font-weight: 900; }
.stat-cabecera small { font-size: 12px; color: rgba(26,26,26,.6); }
.histo { display: grid; gap: 6px; }
.histo-fila { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 8px; }
.histo-barra {
  height: 22px; min-width: 26px; border: 2px solid var(--tinta); border-radius: 7px;
  display: flex; align-items: center; justify-content: flex-end; padding: 0 6px; font-size: 12px; font-weight: 900;
}
.vacio { font-size: 13px; color: rgba(26,26,26,.55); margin: 4px 0 12px; }

/* Tarjeta de amigo */
.amigo { position: relative; overflow: hidden; margin-bottom: 14px; background: var(--crema); }
.amigo-fondo { position: absolute; inset: 0; background-size: cover; background-position: center; }
.amigo-fondo::after { content: ""; position: absolute; inset: 0; background: rgba(246,241,231,.5); }
.amigo-cuerpo { position: relative; padding: 12px 14px; }
.amigo-cab { display: flex; align-items: center; gap: 10px; }
.amigo-cab .nombre { flex: 1; min-width: 0; }
.amigo-cab .nombre b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.amigo-cab .nombre small { display: block; font-size: 12px; font-weight: 700; color: rgba(26,26,26,.65); }
.quitar { border: 0; background: none; font-size: 22px; font-weight: 900; color: rgba(26,26,26,.5); padding: 0 6px; }
.amigo hr { border: 0; border-top: 1px solid rgba(26,26,26,.1); margin: 10px 0; }
.amigo-copas { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); justify-items: center; }
.amigo-copas .icono-cuadro { width: 22px; height: 22px; border-radius: 7px; font-size: 13px; margin-top: 5px; }

.avatar.grande { width: 52px; height: 52px; font-size: 24px; }
.avatar.enorme { width: 96px; height: 96px; font-size: 44px; border-width: 2.5px; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Tienda */
.tienda-cab { display: flex; align-items: center; justify-content: space-between; }
.articulo { padding: 14px; margin-bottom: 14px; }
.articulo-cab { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.articulo-cab b { display: block; font-size: 16px; font-weight: 900; }
.articulo-cab small { font-size: 12px; color: rgba(26,26,26,.6); }
.muestra {
  width: 72px; height: 52px; flex: none; border: 2px solid var(--tinta); border-radius: 10px;
  display: grid; place-items: center; overflow: hidden; background-size: cover; background-position: center;
  font-weight: 900; font-size: 22px;
}
.btn-comprar {
  width: 100%; height: 44px; border: 2px solid var(--tinta); border-radius: 12px; background: var(--amarillo);
  font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--tinta);
}
.btn-comprar:disabled { opacity: .45; cursor: default; }
.comprado {
  height: 44px; border-radius: 12px; border: 2px solid rgba(26,26,26,.25); background: rgba(139,193,94,.35);
  display: grid; place-items: center; font-weight: 900; color: rgba(26,26,26,.7);
}
.faltan { text-align: center; font-size: 12px; color: rgba(26,26,26,.5); margin: 6px 0 0; }
.msg-ok { color: #4C8C3F; font-weight: 700; font-size: 13px; }
.msg-error { color: #B3261E; font-weight: 700; font-size: 13px; }

/* ══════════ PERFIL ══════════ */
.perfil-col { max-width: 560px; margin: 0 auto; }
.perfil-cab { text-align: center; }
.perfil-cab .avatar { margin: 0 auto; }
.perfil-nombre { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 14px; }
.perfil-nombre b { font-size: 22px; }
.icono-btn { border: 0; background: none; font-size: 18px; padding: 6px; border-radius: 10px; }
.icono-btn:hover { background: rgba(26,26,26,.07); }
.info-fila { padding: 12px 16px; background: #fff; border: 1.5px solid rgba(26,26,26,.15); border-radius: 14px; margin: 16px 0 20px; }
.info-fila small { display: block; font-size: 12px; font-weight: 700; color: rgba(26,26,26,.5); }
.info-fila span { font-size: 16px; font-weight: 600; word-break: break-all; }
.btn-borde {
  width: 100%; height: 54px; margin-bottom: 12px; border: 2px solid var(--tinta); border-radius: 14px;
  background: transparent; font-weight: 800; font-size: 16px; color: var(--tinta);
}
.btn-borde:hover { background: rgba(26,26,26,.04); }
.btn-peligro { width: 100%; height: 50px; border: 0; background: none; color: var(--rojo); font-weight: 700; font-size: 15px; }

.personalizar { padding: 14px; margin-bottom: 14px; }
.personalizar.bloqueado h3 { opacity: .45; }
.personalizar h3 { margin: 0 0 8px; font-size: 16px; font-weight: 900; }
.fila-img { display: flex; align-items: center; gap: 12px; }
.fila-img .btn-negro { height: 44px; font-size: 14px; flex: 1; width: auto; }
.fila-img .btn-borde { height: 44px; width: auto; padding: 0 16px; margin: 0; font-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 6px 8px 2px; scrollbar-width: thin; }
.chip {
  flex: none; border: 2px solid var(--tinta); border-radius: 12px; background: #fff; padding: 8px 12px;
  font-weight: 700; font-size: 13px; white-space: nowrap; color: var(--tinta); transition: transform .12s, box-shadow .12s, background .12s;
}
.chip.sel { background: var(--amarillo); font-weight: 900; box-shadow: 3px 3px 0 var(--tinta); transform: translate(-1px, -1px); }
.chip.tenue:not(.sel) { color: rgba(26,26,26,.55); }
.chip-estilo { width: 92px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; }
.ahora { font-size: 13px; color: rgba(26,26,26,.6); margin: 0 0 8px; }

/* ══════════ DIÁLOGOS ══════════ */
.dialogo-fondo {
  position: fixed; inset: 0; z-index: 40; background: rgba(26,26,26,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.dialogo-fondo[hidden] { display: none; }
.dialogo {
  width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--crema); border: 2.5px solid var(--tinta); border-radius: 20px; box-shadow: 5px 7px 0 var(--tinta);
  padding: 22px; animation: subir .2s ease-out;
}
.dialogo h2 { margin: 0 0 12px; font-family: "Outfit", sans-serif; font-weight: 900; font-size: 22px; }
.dialogo p { font-size: 14px; color: rgba(26,26,26,.7); }
.dialogo input[type=text] {
  width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid rgba(26,26,26,.4); border-radius: 12px;
  font: inherit; font-size: 16px; background: #fff;
}
.dialogo input[type=text]:focus { outline: none; border-color: var(--tinta); }
.dialogo-acciones { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.dialogo-acciones .btn-negro { width: auto; height: 44px; padding: 0 20px; font-size: 15px; }
.dialogo-acciones .btn-texto { width: auto; height: 44px; padding: 0 14px; }
.ayuda { font-size: 12px; margin-top: 6px; }
.resultado-busqueda { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(26,26,26,.08); }
.resultado-busqueda span { flex: 1; }
.resultado-busqueda .btn-negro { width: auto; height: 34px; padding: 0 14px; font-size: 12px; }

/* Recorte de imagen */
.recorte { position: relative; margin: 0 auto; overflow: hidden; border: 2px solid var(--tinta); border-radius: 12px; background: #222; touch-action: none; cursor: grab; }
.recorte.circulo { border-radius: 50%; }
.recorte img { position: absolute; left: 0; top: 0; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; pointer-events: none; max-width: none; }
.zoom { width: 100%; margin-top: 14px; accent-color: var(--tinta); }

/* ══════════ ARCHIVO (botones del menú) ══════════ */
.archivo-botones { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 980px) { .archivo-botones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .archivo-botones { grid-template-columns: minmax(0, 1fr); } }
.boton-archivo {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; color: var(--tinta);
  border: 2px solid var(--tinta); border-radius: 14px; box-shadow: var(--sombra); text-decoration: none;
  font-weight: 800; font-size: 14px; transition: transform .12s, box-shadow .12s;
}
.boton-archivo:hover { transform: translate(-1px, -2px); box-shadow: 4px 6px 0 var(--tinta); }
.boton-archivo:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 var(--tinta); }
.boton-archivo .icono-cuadro { width: 32px; height: 32px; font-size: 18px; }
.boton-archivo-texto { flex: 1; min-width: 0; line-height: 1.15; }

/* ══════════ PUBLICIDAD: bloque vertical en el margen izquierdo ══════════ */
.publi {
  position: fixed; left: 16px; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 160px; text-align: center; display: none;
}
.publi small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: rgba(26,26,26,.4); margin-bottom: 4px; }
@media (min-width: 1400px) {
  #menu.en-jugar.con-publi .publi:not([hidden]) { display: block; }
  #menu.en-jugar.con-publi .menu-main, #menu.en-jugar.con-publi .menu-cabecera { padding-left: 200px; }
}
