/* Club MANADA · estilos compartidos (cliente y barra) */
:root {
  --tinta: #16130F;
  --crema: #F2EADB;
  --papel: #FBF7EF;
  --arena: #E9DFCC;
  --linea: #DCCFB8;
  --borde: #CDBFA6;
  --texto-2: #5A4F40;
  --tinta-2: #26211B;
  --linea-osc: #3A332B;
  --punteado-osc: #5C5348;
  --apagado: #8C8170;
  --etiqueta-osc: #B3A895;
  --texto-osc: #CFC5B4;
  --ambar: #E0A43A;
  --display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --texto: 'DM Sans', system-ui, -apple-system, sans-serif;
  --r-grande: 28px;
  --r-chico: 22px;
  --r-boton: 18px;
  --r-campo: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--crema); color: var(--tinta); font-family: var(--texto); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pantalla { min-height: 100dvh; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; }
.pad { padding: 20px 24px; }
.encabezado { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 0; }
.encabezado img { height: 30px; width: auto; }
.micro { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; }
.micro.chico { font-size: 10px; }
.display { font-family: var(--display); font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: 0.88; letter-spacing: -0.01em; margin: 0; }
.centro { text-align: center; }
.sub { font-size: 16px; line-height: 1.35; color: var(--texto-2); margin: 12px 0 0; }

/* ----- Registro */
.hero { display: flex; flex-direction: column; align-items: center; padding: 14px 24px 22px; }
.hero img { height: min(206px, 26dvh); width: auto; }
.hero h1 { font-size: clamp(48px, 15vw, 64px); margin-top: 16px; text-align: center; }
.hoja { margin-top: auto; background: var(--tinta); color: var(--crema); border-radius: var(--r-grande) var(--r-grande) 0 0;
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.promesa { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 4px; }
.puntos { display: flex; align-items: center; gap: 4px; }
.puntos span { width: 8px; height: 8px; border-radius: 999px; background: var(--crema); }
.puntos img { width: 17px; height: 17px; margin-left: 3px; filter: invert(1); }
.ambar { color: var(--ambar); font-family: var(--display); font-weight: 800; font-size: 15px; }
.campo { display: flex; flex-direction: column; gap: 2px; background: var(--tinta-2); border: 1.5px solid var(--linea-osc); border-radius: var(--r-campo); padding: 9px 16px 8px; }
.campo:focus-within { border-color: var(--etiqueta-osc); }
.campo .micro { color: var(--etiqueta-osc); }
.campo input { border: none; background: transparent; padding: 0; height: 26px; font: inherit; font-size: 17px; color: var(--crema); outline: none; width: 100%; min-width: 0; }
.campo input::placeholder { color: var(--apagado); }
.campo.error { border-color: var(--ambar); }
.error-txt { color: var(--ambar); font-size: 13px; margin: -6px 2px 0; }
.lada { display: flex; align-items: center; gap: 10px; }
.lada b { font-size: 17px; }
.lada i { width: 1.5px; height: 18px; background: var(--punteado-osc); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.35; color: var(--texto-osc); cursor: pointer; padding: 2px 2px 0; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--ambar); flex-shrink: 0; }
.check small { color: var(--etiqueta-osc); font-size: 14px; }
.btn { height: 58px; border: none; border-radius: var(--r-boton); font-family: var(--display); font-weight: 800; font-size: 20px;
  display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; width: 100%; }
.btn-crema { background: var(--crema); color: var(--tinta); }
.btn-tinta { background: var(--tinta); color: var(--crema); }
.btn-borde { background: transparent; border: 1.5px solid var(--tinta); color: var(--tinta); font-family: var(--texto); font-weight: 700; font-size: 16px; height: 56px; }
.btn-apple { background: #000; color: #fff; font-family: var(--texto); font-weight: 700; font-size: 16px; height: 56px; }
.btn[disabled] { opacity: .5; }
.legal { margin: 0; font-size: 11px; line-height: 1.4; color: var(--etiqueta-osc); text-align: center; }

/* ----- Tarjeta (igual en la página del cliente y en barra) */
.tarjeta { background: var(--tinta); color: var(--crema); border-radius: var(--r-grande); padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.tarjeta-top { display: flex; justify-content: space-between; align-items: center; }
.tarjeta-top img { height: 30px; width: auto; filter: invert(1); }
.contador { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1; }
.contador span { color: var(--apagado); }
.sellos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sello { aspect-ratio: 1; border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--punteado-osc); }
.sello img { width: 68%; height: 68%; object-fit: contain; filter: invert(1); opacity: .14; }
.sello.ultimo { border-color: var(--ambar); }
.sello.ultimo img { opacity: .22; }
.sello.on { background: var(--crema); border: none; }
.sello.on img { filter: none; opacity: 1; }
.sello.nuevo { animation: sellar .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes sellar { from { transform: scale(.4); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .sello.nuevo { animation: none; } }
.tarjeta-pie { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--linea-osc); padding-top: 14px; font-size: 12px; color: var(--etiqueta-osc); }
.premio { display: flex; align-items: center; gap: 6px; }
.premio img { width: 15px; height: 15px; filter: invert(72%) sepia(60%) saturate(500%) hue-rotate(350deg); }

/* ----- Página de la tarjeta del cliente */
.bienvenida { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 24px 0; }
.bienvenida .micro { color: var(--texto-2); }
.bienvenida h1 { margin-top: 8px; max-width: 100%; white-space: nowrap; }
.acciones { margin-top: auto; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.acciones p { margin: 0 0 4px; font-size: 14px; color: var(--texto-2); text-align: center; }
.qr-caja { background: #fff; border-radius: 16px; padding: 10px; width: 220px; margin: 0 auto; border: 2px solid var(--tinta); }
details.qr summary { list-style: none; text-align: center; font-weight: 700; font-size: 13px; text-decoration: underline; cursor: pointer; padding: 8px; }
details.qr summary::-webkit-details-marker { display: none; }
details.qr[open] summary { margin-bottom: 8px; }

.aviso { margin: 24px; padding: 28px 24px; background: var(--papel); border-radius: var(--r-grande); text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.aviso h1 { font-size: 40px; }
.aviso p { margin: 0; color: var(--texto-2); line-height: 1.4; }
