/* Tarjeta de lealtad pública: la letra de Milo; el color es el del negocio. */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fuentes/PlusJakartaSans-Variable.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --marino: #123a6b;
  --azul: #1e64b4;
  --texto: #1f2933;
  --secundario: #4b5563;
  --borde: #d5dfeb;
  --crema: #fdf3dc;
  --crema-texto: #6b4a00;
  --rojo: #b91c1c;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--texto); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.app { max-width: 480px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.contenido { flex: 1; padding: 28px 20px 18px; display: flex; flex-direction: column; gap: 16px; }
.contenido.centrado { justify-content: center; text-align: center; }
.saludo { text-align: center; display: flex; flex-direction: column; gap: 4px; }
h1 { margin: 0; font-size: 24px; font-weight: 800; color: var(--texto); }
.detalle { font-size: 14px; color: var(--secundario); }
.centro { text-align: center; }
.texto { margin: 0; font-size: 14px; color: var(--secundario); text-align: center; }
.crece { flex: 1; min-width: 0; }
.tarjeta { border-radius: 22px; overflow: hidden; }
.tarjeta .portada { display: block; width: 100%; aspect-ratio: 3; object-fit: cover; }
.cuerpo-tarjeta { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.compacta .cuerpo-tarjeta { padding: 12px 14px; gap: 10px; }
.cabeza { display: flex; align-items: center; gap: 10px; }
.titulo { display: block; font-weight: 800; font-size: 16px; }
.sub { display: block; font-size: 13px; opacity: 0.9; }
.cuenta { font-weight: 800; font-size: 20px; }
.compacta .cuenta { font-size: 16px; }
.logo { border-radius: 999px; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; overflow: hidden; flex: none; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.sellos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; justify-items: center; }
.sellos.fila { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.sello { width: 34px; height: 34px; border-radius: 999px; border: 2px dashed; opacity: 0.7; display: flex; align-items: center; justify-content: center; }
.fila .sello { width: 22px; height: 22px; border-width: 1.5px; }
.sello.lleno { border: none; opacity: 1; }
.icono-propio { object-fit: contain; }
.premios { font-size: 14px; font-weight: 600; }
.aviso { background: var(--crema); color: var(--crema-texto); border-radius: 16px; padding: 12px 14px; font-size: 15px; text-align: center; }
.botones { display: flex; flex-direction: column; gap: 10px; }
.wallet { min-height: 52px; border-radius: 14px; border: none; background: #111; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.reverso { border-top: 1px solid var(--borde); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--secundario); text-align: center; }
.reverso a { color: var(--azul); font-weight: 600; }
.pie { text-align: center; font-size: 13px; color: var(--secundario); }
.pie b { color: var(--marino); }
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--marino); }
.campo input { min-height: 52px; border: 1px solid var(--borde); border-radius: 16px; padding: 0 16px; font: inherit; font-size: 17px; font-weight: 500; color: var(--marino); }
.campo input:focus { outline: 2px solid var(--azul); outline-offset: 1px; }
.acepto { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--secundario); }
.acepto input { width: 22px; height: 22px; margin: 0; accent-color: var(--azul); flex: none; }
.principal { min-height: 52px; border-radius: 999px; border: none; background: var(--azul); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.principal:disabled { opacity: 0.6; }
.error { color: var(--rojo); font-size: 14px; min-height: 0; }
.error:empty { display: none; }
