/* ══════════════════════════════════════════════════════════════
   CLUB VICIO — estilos
   Blanco, negro y dorado. La app sigue el tema del teléfono:
   clara de día, oscura de noche, sin que el cliente configure nada.
   ══════════════════════════════════════════════════════════════ */

/* ── Tema claro (por defecto) ── */
:root {
  --bg:        #FAF9F5;
  --surface:   #FFFFFF;
  --surface-2: #F1EFE8;
  --line:      #E3DFD5;
  --line-2:    #C9C3B5;
  --ink:       #131209;
  --ink-2:     #55524A;
  --ink-3:     #8B867A;
  --oro:       #8A6A18;
  --oro-vivo:  #C9A227;
  --oro-suave: #F7F0DA;
  --ok:        #3D6B4E;
  --alerta:    #9C3A26;
  --alerta-bg: #F8EAE6;
  --sombra:    0 1px 2px rgba(19,18,9,.06), 0 12px 32px -20px rgba(19,18,9,.35);

  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

/* ── Tema oscuro ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0B0B0A;
    --surface:   #171614;
    --surface-2: #201E1A;
    --line:      #2E2A24;
    --line-2:    #433D33;
    --ink:       #F6F3EC;
    --ink-2:     #ACA69A;
    --ink-3:     #777166;
    --oro:       #E3C05C;
    --oro-vivo:  #E3C05C;
    --oro-suave: #29220F;
    --ok:        #8FBF9B;
    --alerta:    #E08A72;
    --alerta-bg: #2B1A15;
    --sombra:    0 1px 2px rgba(0,0,0,.6), 0 12px 32px -20px rgba(0,0,0,.9);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

/* Sin esto, .hoja-qr y .hoja declaran display:grid y le ganan al atributo
   hidden: la capa queda invisible pero sigue tapando la pantalla y se come
   todos los toques del cliente. */
[hidden] { display: none !important; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ── Pantallas ── */
.pantalla { display: none; min-height: 100dvh; }
.pantalla.activa { display: block; }

.lienzo {
  max-width: 460px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100dvh;
}

/* ── Carga ── */
.splash {
  display: none;
  place-items: center;
  align-content: center;
  gap: 26px;
  min-height: 100dvh;
}
.splash.activa { display: grid; }
.cargando {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--oro);
  animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ── Logo ── */
.sello, .sello-chico { display: block; }

/* ── Acceso ── */
.acceso { justify-content: center; gap: 22px; }
.acceso-marca { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.acceso-marca .sello { border-radius: 50%; }

h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(30px, 8vw, 38px);
  letter-spacing: -.03em;
  line-height: 1;
}
.lema { color: var(--ink-2); font-size: 15.5px; max-width: 30ch; text-wrap: balance; }
.acceso code { font-family: var(--f-mono); font-size: .88em; background: var(--surface-2); padding: 1px 5px; border-radius: 3px; }

.pestanas {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  background: var(--surface-2); border-radius: 999px; padding: 4px;
}
.pestana {
  border: 0; background: none; color: var(--ink-2);
  font-family: var(--f-ui); font-size: 14.5px; font-weight: 600;
  padding: 10px 8px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s;
}
.pestana.activa { background: var(--surface); color: var(--ink); box-shadow: var(--sombra); }
.pestana:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

/* ── Formularios ── */
.formulario { display: flex; flex-direction: column; gap: 14px; }
.campo { display: flex; flex-direction: column; gap: 6px; border: 0; }
.campo > .pista { text-transform: none; letter-spacing: 0; font-weight: 400; }
.campo > span, .campo legend {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3);
}
.campo legend em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Un dato que se muestra pero no se edita. Tiene forma de campo para
   que se lea como parte del formulario, y fondo apagado para que se
   note enseguida que no se puede tocar. */
.dato-fijo {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 14px;
  font-size: 16px; color: var(--ink-2);
}

input, select {
  font-family: var(--f-ui); font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 14px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--ink-3); }
input:focus, select:focus {
  outline: 0; border-color: var(--oro);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--oro) 22%, transparent);
}
.cumple-fila { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.pista { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.pista.centrada { text-align: center; }
.pista strong { color: var(--oro); font-weight: 700; }

/* ── Botón de Google ── */
.boton.google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface); border-color: var(--line-2); color: var(--ink);
  font-weight: 600;
}
.boton.google .g { flex-shrink: 0; }

.separador {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; color: var(--ink-3); margin: 2px 0;
}
.separador::before, .separador::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* ── Botones ── */
.boton {
  font-family: var(--f-ui); font-size: 16px; font-weight: 600;
  border-radius: 12px; padding: 15px 18px; border: 1px solid transparent;
  cursor: pointer; width: 100%; transition: transform .1s, opacity .15s, background .15s;
}
.boton:active { transform: scale(.985); }
.boton:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.boton[disabled] { opacity: .55; cursor: progress; }

.primario { background: var(--ink); color: var(--bg); }
.primario.grande { padding: 19px; font-size: 17px; letter-spacing: -.01em; }
.borde { background: transparent; border-color: var(--line-2); color: var(--ink); }
.texto { background: none; border: 0; color: var(--ink-2); font-size: 14px; font-weight: 500; padding: 8px; }
.texto.peligro { color: var(--alerta); }

/* ── Avisos ── */
.aviso {
  background: var(--alerta-bg); color: var(--alerta);
  border-left: 3px solid var(--alerta); border-radius: 0 8px 8px 0;
  padding: 11px 14px; font-size: 14.5px; line-height: 1.45;
}
.aviso.bien { background: var(--oro-suave); color: var(--oro); border-left-color: var(--oro-vivo); }

/* ── Barra superior ── */
.barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.barra-marca { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.sello-chico { border-radius: 50%; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink);
  font-family: var(--f-ui); font-weight: 700; font-size: 14px; cursor: pointer;
}
.avatar:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

.barra-derecha { display: flex; align-items: center; gap: 8px; }

.campana {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.campana svg { width: 20px; height: 20px; display: block; }
.campana:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

/* El globito con el número va montado sobre el borde de la campana, y se
   corre hacia afuera para no tapar el dibujo cuando dice "9+". El borde
   del color del fondo lo despega visualmente del círculo. */
.punto {
  position: absolute; top: -3px; right: -3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; border: 2px solid var(--bg);
  background: var(--alerta); color: #fff;
  font-family: var(--f-ui); font-size: 10.5px; font-weight: 700;
  line-height: 14px; text-align: center;
}

/* ── Tarjeta de puntos ── */
.tarjeta {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px 22px 24px;
  box-shadow: var(--sombra);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative; overflow: hidden;
}
.tarjeta::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--oro-vivo), transparent);
}
.tarjeta-nombre { font-size: 14.5px; color: var(--ink-2); }
.saldo {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(64px, 20vw, 88px); line-height: 1;
  letter-spacing: -.045em; font-variant-numeric: tabular-nums;
  color: var(--oro);
}
.saldo-etq { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }

.progreso { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.progreso-texto { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; }
#progreso-titulo { color: var(--ink-2); }
#progreso-faltan { color: var(--ink); font-weight: 600; font-size: 13px; }
.barra-progreso { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.relleno {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--oro-vivo), var(--oro));
  transition: width .6s cubic-bezier(.2,.7,.3,1);
}
.canjeable {
  margin-top: 16px; font-size: 13.5px; color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  padding: 8px 14px; border-radius: 999px; text-align: center;
}

.pie { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); text-align: center; display: flex; flex-direction: column; gap: 4px; }
.pie .tenue { color: var(--ink-3); }

/* ── Código QR ── */
.hoja-qr {
  position: fixed; inset: 0; z-index: 60;
  background: #FFFFFF;           /* siempre claro: los escáneres necesitan contraste */
  color: #131209;
  display: grid; place-items: center;
  padding: 24px;
  animation: aparecer .2s ease-out;
}
@keyframes aparecer { from { opacity: 0 } to { opacity: 1 } }
.qr-caja { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 340px; width: 100%; text-align: center; }
.qr-titulo { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: #131209; }
.qr-marco {
  background: #FFFFFF; border: 1px solid #E3DFD5; border-radius: 16px;
  padding: 16px; width: 100%; aspect-ratio: 1; display: grid; place-items: center;
}
#qr-lienzo { width: 100%; height: 100%; display: grid; place-items: center; }
#qr-lienzo svg { width: 100%; height: 100%; }
#qr-lienzo rect { shape-rendering: crispEdges; }

.qr-codigo {
  font-family: var(--f-mono); font-size: clamp(24px, 7vw, 30px); font-weight: 500;
  letter-spacing: .06em; color: #131209; font-variant-numeric: tabular-nums;
}

.qr-tiempo { position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.anillo { position: absolute; inset: 0; transform: rotate(-90deg); }
.anillo circle { fill: none; stroke-width: 2.5; }
.anillo-fondo { stroke: #E3DFD5; }
.anillo-frente { stroke: #C9A227; stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
#qr-segundos { font-size: 14px; font-weight: 500; color: #55524A; }

.qr-pista { font-size: 13px; color: #55524A; line-height: 1.5; }
.hoja-qr .aviso { background: #F8EAE6; color: #9C3A26; border-left-color: #9C3A26; text-align: left; }
.hoja-qr .boton.borde { border-color: #C9C3B5; color: #131209; }

/* ── Hoja de perfil ── */
.hoja { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; }
.hoja-fondo { position: absolute; inset: 0; background: rgba(0,0,0,.5); animation: aparecer .2s ease-out; }
.hoja-panel {
  position: relative; background: var(--surface); border-radius: 20px 20px 0 0;
  max-height: 92dvh; overflow-y: auto;
  padding: 12px 22px calc(26px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px;
  max-width: 460px; margin: 0 auto; width: 100%;
  animation: subir .25s cubic-bezier(.2,.8,.3,1);
}
@keyframes subir { from { transform: translateY(100%) } to { transform: none } }
.hoja-asa { width: 38px; height: 4px; border-radius: 999px; background: var(--line-2); margin: 0 auto 8px; }
.hoja-panel h2 { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }

.datos { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 6px 0 8px; }
.datos > div { background: var(--surface); display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; }
.datos dt { font-size: 13.5px; color: var(--ink-3); }
.datos dd { font-size: 14.5px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Enlaces legales (condiciones y privacidad) ── */
.legal { margin-top: 10px; }
.legal a {
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover, .legal a:active { color: var(--oro); }

/* ══════════════════════════════════════════════════════════════
   CANJE DE PREMIOS
   ══════════════════════════════════════════════════════════════ */

/* ── Premios apartados, en la tarjeta ── */
.apartados {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.apartado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--oro-suave);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

/* El regalo se distingue del premio canjeado: uno se ganó con puntos y
   el otro se lo regalamos nosotros, y no da lo mismo cuál es cuál. */
.apartado.regalo { border-color: var(--oro-vivo); box-shadow: inset 0 0 0 1px var(--oro-vivo); }

.apartado-nombre {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}

.apartado-pista {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 2px;
}

.apartado-cierre {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.5;
  padding: 0 2px;
}

/* ── Lista del catálogo ── */
.lista-premios {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 4px 0 16px;
  max-height: 46dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.premio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

.premio.lejos { opacity: .62; }

.premio-nombre {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.3;
}

.premio-puntos {
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 3px;
}

.premio-faltan {
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap;
}

.premio-vacio {
  color: var(--ink-3);
  font-size: 14px;
  padding: 18px 4px;
  text-align: center;
}

/* Botón chico, para que quepa dentro de una fila de la lista */
.boton.chico {
  width: auto;
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.borde.grande { padding: 19px; font-size: 17px; letter-spacing: -.01em; }

/* El botón de canjear va pegado al de mostrar el código, como un par */
#btn-premios { margin-top: -4px; }

/* Un enlace que tiene que verse y comportarse como los botones de al lado */
.boton.enlace {
  display: block;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  margin-top: -4px;
}

/* ══════════════════════════════════════════════════════════════
   RESERVAS
   ══════════════════════════════════════════════════════════════ */

.dos-campos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }

.campo .opcional { font-style: normal; color: var(--ink-3); font-weight: 400; }

.turnos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.turno {
  font-family: var(--f-ui);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 8px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  text-align: center;
  color: var(--ink);
}
.turno:hover:not([disabled]) { border-color: var(--line-2); }
.turno:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

.turno.elegido {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.turno.elegido .turno-pie { color: var(--bg); opacity: .75; }

.turno.lejos { opacity: .5; cursor: not-allowed; }

.turno-hora { font-family: var(--f-mono); font-weight: 600; font-size: 16px; }
.turno-pie  { font-size: 11px; color: var(--ink-3); line-height: 1.3; }

.turnos-vacio {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--ink-3);
  padding: 14px 2px;
  line-height: 1.5;
}


/* ══════════ Mi historial ══════════ */

/* Cuatro cifras en dos columnas. En una pantalla angosta cuatro filas
   apiladas obligan a bajar antes de llegar a los movimientos, que es
   lo que el cliente vino a mirar. */
.resumen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 6px 0 10px;
}
.resumen > div { background: var(--surface); padding: 11px 13px; }
.resumen dt { font-size: 12px; color: var(--ink-3); }
.resumen dd { font-size: 17px; font-weight: 600; margin-top: 2px; }

.movimientos {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 8px 0 14px;
  max-height: 46dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mov {
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
}

.mov-motivo { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.mov-detalle { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }

.mov-cifras { text-align: right; flex: 0 0 auto; }
.mov-puntos { font-size: 15px; font-weight: 600; white-space: nowrap; }
.mov-puntos.suma  { color: var(--ok); }
.mov-puntos.resta { color: var(--ink-2); }
.mov-cuando { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; }

.mov-vacio {
  background: var(--surface);
  color: var(--ink-3);
  font-size: 13.5px;
  padding: 20px 14px;
  text-align: center;
  line-height: 1.5;
}


/* ══════════ La puerta del equipo ══════════
   Se distingue de los botones del cliente a propósito: no es una acción
   más de la tarjeta, es cruzar a otra pantalla. */

.equipo-paso {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 14px;
  text-decoration: none;
  color: var(--ink);
}
.equipo-paso:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

.equipo-icono {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--oro-suave); color: var(--oro);
  display: grid; place-items: center;
  font-size: 17px; font-weight: 700; line-height: 1;
}
.equipo-texto { display: grid; gap: 2px; min-width: 0; }
.equipo-texto strong { font-size: 15px; font-weight: 700; }
.equipo-texto small { font-size: 12.5px; color: var(--ink-2); }


/* ══════════ Novedades ══════════ */

.novedades {
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 8px 0 14px;
  max-height: 52dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nov {
  background: var(--surface);
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 13px;
}

/* Lo que todavía no se leyó queda marcado con una franja dorada al
   costado. Al cerrar y volver a abrir ya no está: es la señal de "esto
   es lo nuevo", no un estado permanente. */
.nov.nueva { box-shadow: inset 3px 0 0 var(--oro-vivo); }

.nov-cara {
  flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-2);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; line-height: 1;
}
.nov.nueva .nov-cara { background: var(--oro-suave); color: var(--oro); }

.nov-texto { min-width: 0; }
.nov-titulo { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.nov-cuerpo { font-size: 13px; color: var(--ink-2); margin-top: 3px; line-height: 1.45; }
.nov-cuando { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

.nov-vacio {
  background: var(--surface);
  color: var(--ink-3);
  font-size: 13.5px;
  padding: 22px 14px;
  text-align: center;
  line-height: 1.5;
}


/* ══════════ Instalar en el celular ══════════ */

.instalar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--oro-suave);
  border: 1px solid var(--oro-vivo);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 4px;
}

/* En tema oscuro el dorado claro encandila. Se apaga y se apoya en el
   borde para seguir destacando sin gritar. */
@media (prefers-color-scheme: dark) {
  .instalar { background: var(--surface-2); }
}

.instalar-texto { flex: 1 1 190px; min-width: 0; }
.instalar-titulo { font-weight: 700; font-size: 15px; color: var(--ink); }
.instalar-pie { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; margin-top: 3px; }

.instalar-botones {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.instalar-botones .boton { width: auto; }
.boton.texto.chico { min-height: 38px; padding: 0 10px; font-size: 13px; }

/* ── Los pasos para instalar a mano ── */
.pasos {
  list-style: none;
  counter-reset: paso;
  display: grid;
  gap: 10px;
  margin: 12px 0 14px;
}

.paso {
  counter-increment: paso;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}

/* El número va antes del ícono: primero «cuándo», después «qué tocar». */
.paso::before {
  content: counter(paso);
  flex: 0 0 auto;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
}

.paso-icono {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--oro);
}
.paso-icono svg { width: 20px; height: 20px; }

.paso-texto { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.paso-texto strong { color: var(--ink); font-weight: 600; }


/* ══════════ Avisos al celular ══════════ */

/* La invitación a los avisos comparte la forma con la de instalar, pero
   no el color: dos tarjetas doradas seguidas se leen como una sola cosa. */
.instalar.avisos { background: var(--surface-2); border-color: var(--line-2); }

.ajustes {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}
.ajustes-titulo {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}

.interruptor {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
}
.interruptor input {
  width: 20px; height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--oro);
}
.interruptor strong { display: block; font-size: 14.5px; font-weight: 600; }
.interruptor small  {
  display: block;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 2px;
}

#fila-promos { border-top: 1px solid var(--line); }

/* El cartel de error de la tarjeta de avisos ocupa el ancho entero, y no
   la columna angosta que le tocaría al lado de los botones. */
.instalar .aviso.ancho { flex: 1 0 100%; margin-top: 4px; }
