/* PADSI · Sistema NFC de fidelidad — estilos de la plantilla (demo).
   Dirección de arte (referencia «121 BAR»): negro profundo, foto hero de
   bar arriba, panel con arco, nombre ENORME en blanco bold, botones de
   contorno fino. El acento de color son las cervecitas doradas. */
:root {
  --primario: #C9A227;
  --fondo: #050506;
  --tarjeta: #0d0d10;
  --texto: #ffffff;
  --tenue: #b9b4a8;
  --borde: rgba(255,255,255,.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--fondo);
  color: var(--texto);
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 0 18px 22px;
}
.demo-badge {
  display: inline-block; background: #7753DC; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .8px;
  border-radius: 6px; padding: 3px 9px;
}
/* ---------- Hero + arco (la firma visual de la plantilla) ---------- */
.hero {
  width: calc(100% + 36px); margin: 0 -18px;
  height: 300px; overflow: hidden; position: relative; flex: none;
}
.hero.compact { height: 190px; }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch {
  width: calc(100% + 36px); margin: -64px -18px 0; position: relative;
  background: var(--fondo);
  border-radius: 50% 50% 0 0 / 64px;
  padding: 30px 18px 4px;
  display: flex; flex-direction: column; align-items: center;
}
.mark { width: 44px; height: 44px; color: var(--primario); }
h1.bizname {
  font-weight: 900; text-transform: uppercase; text-align: center;
  font-size: clamp(42px, 13.5vw, 78px); line-height: .98; letter-spacing: -1px;
  margin-top: 12px; max-width: 560px;
}
h1.pagetitle {
  font-weight: 900; text-transform: uppercase; text-align: center;
  font-size: clamp(30px, 9vw, 46px); line-height: 1; letter-spacing: -.5px; margin-top: 10px;
}
.sub { color: var(--texto); font-size: 15px; font-weight: 300; margin-top: 12px; text-align: center; }
.addr { color: var(--tenue); font-size: 13.5px; margin-top: 8px; text-align: center; line-height: 1.5; }
/* ---------- Contenedores ---------- */
.card, .box {
  width: 100%; max-width: 430px; margin-top: 22px;
  background: var(--tarjeta);
  border: 1px solid var(--borde); border-radius: 14px; padding: 22px 20px;
}
.card.gold { border-color: rgba(201,162,39,.65); }
.card h2, .box h2 { font-size: 12px; letter-spacing: 3px; color: var(--primario); text-align: center; text-transform: uppercase; }
.box h3 { font-size: 21px; font-weight: 800; text-align: center; letter-spacing: -.3px; }
.box p, .card p.desc { text-align: center; color: var(--tenue); font-size: 13.5px; margin-top: 6px; line-height: 1.5; }
/* ---------- Formularios y botones de contorno fino ---------- */
label { display: block; font-size: 12.5px; color: var(--tenue); margin: 14px 0 6px; letter-spacing: .4px; }
input {
  width: 100%; background: #000; border: 1px solid var(--borde); border-radius: 4px;
  color: var(--texto); padding: 13px 14px; font-family: 'Inter', sans-serif; font-size: 15px;
}
input:focus { outline: 1px solid #fff; border-color: transparent; }
.btn {
  display: block; width: 100%; text-align: center; margin-top: 16px;
  background: transparent; color: #fff; font-weight: 500; font-size: 16px;
  padding: 16px; border-radius: 3px; border: 1px solid rgba(255,255,255,.85); cursor: pointer;
  text-decoration: none; font-family: 'Inter', sans-serif; letter-spacing: .3px;
}
.btn:active { transform: scale(.98); }
.btn.gold { border-color: var(--primario); color: var(--primario); font-weight: 600; }
.btn.solid { background: var(--primario); border-color: var(--primario); color: #141310; font-weight: 700; }
.btn.wa { border-color: rgba(34,192,100,.8); color: #4ade80; }
.link { color: var(--primario); cursor: pointer; text-decoration: underline; background: none; border: none; font-size: 14px; font-family: 'Inter', sans-serif; }
.center { text-align: center; }
.msg { margin-top: 14px; border-radius: 8px; padding: 11px 13px; font-size: 14px; text-align: center; line-height: 1.45; }
.msg.ok { background: rgba(34,192,100,.14); border: 1px solid rgba(34,192,100,.5); }
.msg.err { background: rgba(220,60,60,.13); border: 1px solid rgba(220,60,60,.5); }
.msg.info { background: rgba(201,162,39,.1); border: 1px solid rgba(201,162,39,.45); }
.hint {
  margin-top: 14px; background: rgba(119,83,220,.12); border: 1px dashed rgba(119,83,220,.65);
  border-radius: 8px; padding: 11px 13px; font-size: 13px; line-height: 1.55; text-align: center;
}
.hint code { background: rgba(0,0,0,.5); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
/* ---------- Botón «Continuar con Google» (estilo oficial de Google) ---------- */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin-top: 18px; padding: 11px 16px;
  background: #fff; color: #3c4043; border: 1px solid #dadce0; border-radius: 999px;
  font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-google svg { width: 19px; height: 19px; flex: none; }
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(60,64,67,.25); }
.btn-google:active { transform: scale(.98); }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; color: var(--tenue); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--borde); }
/* ---------- Selector de cuenta estilo Google (simulado) ---------- */
.g-overlay {
  position: fixed; inset: 0; z-index: 50; padding: 18px;
  background: rgba(0,0,0,.62);
  display: flex; align-items: center; justify-content: center;
}
.g-card {
  position: relative; width: 100%; max-width: 400px;
  background: #fff; color: #1f1f1f; border-radius: 14px;
  padding: 28px 24px 20px; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.g-card > svg { width: 34px; height: 34px; }
.g-close {
  position: absolute; top: 8px; right: 12px; padding: 4px;
  background: none; border: none; font-size: 24px; line-height: 1; color: #5f6368; cursor: pointer;
}
.g-title { font-size: 22px; font-weight: 500; margin-top: 10px; }
.g-sub { font-size: 15px; color: #444746; margin-top: 6px; }
.g-accounts { margin-top: 20px; border-top: 1px solid #e0e0e0; text-align: left; }
.g-account {
  display: flex; align-items: center; gap: 12px; width: 100%;
  background: none; border: none; border-bottom: 1px solid #e0e0e0;
  padding: 12px 6px; cursor: pointer; text-align: left;
  font-family: 'Inter', system-ui, sans-serif;
}
.g-account:hover { background: #f0f4f9; }
.g-avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: #7b1fa2; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 600;
}
.g-avatar.alt { background: #00897b; }
.g-acc-txt { display: flex; flex-direction: column; min-width: 0; }
.g-acc-name { font-size: 15px; font-weight: 600; color: #1f1f1f; }
.g-acc-mail { font-size: 13px; color: #444746; overflow: hidden; text-overflow: ellipsis; }
.g-badge {
  margin-left: auto; flex: none; font-size: 10.5px; font-weight: 700;
  color: #137333; background: #e6f4ea; border-radius: 99px; padding: 3px 8px;
}
.g-error {
  margin-top: 14px; padding: 10px 12px; border-radius: 8px;
  background: #fdecea; color: #b3261e; font-size: 13.5px; line-height: 1.45; text-align: center;
}
.g-foot { margin-top: 16px; font-size: 11.5px; color: #80868b; line-height: 1.5; }
/* ---------- Sellos: cervecitas doradas ---------- */
.stamps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; margin-top: 18px; }
.stamps .beer { flex: none; }
.stamps .beer svg { width: 36px; height: 44px; }
.beer { display: flex; align-items: center; justify-content: center; padding: 2px 0; }
.beer svg { width: 40px; height: 48px; overflow: visible; }
.beer .glass { fill: rgba(255,255,255,.03); stroke: #6b5a25; stroke-width: 2; }
.beer .hnd { fill: none; stroke: #6b5a25; stroke-width: 3; }
.beer .foam { fill: rgba(255,255,255,.08); }
.beer .bub { fill: rgba(255,255,255,0); }
.beer.on .glass { fill: url(#beerGrad); stroke: var(--primario); }
.beer.on .hnd { stroke: var(--primario); }
.beer.on .foam { fill: #FFF6E0; }
.beer.on .bub { fill: rgba(255,255,255,.4); }
.prog { text-align: center; margin-top: 16px; font-size: 15px; }
.prog b { color: var(--primario); }
.bar { height: 6px; background: #232329; border-radius: 99px; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #8a6d1d, var(--primario), #f0d47a); border-radius: 99px; transition: width .4s; }
.reward { margin-top: 16px; background: rgba(201,162,39,.08); border: 1px solid rgba(201,162,39,.45); border-radius: 10px; padding: 12px 14px; text-align: center; font-size: 14.5px; line-height: 1.45; }
/* ---------- Panel: pestañas, totales y tabla ---------- */
.tabs { display: flex; gap: 10px; width: 100%; max-width: 430px; margin-top: 20px; }
.tab {
  flex: 1; padding: 13px; background: transparent; color: var(--tenue);
  border: 1px solid var(--borde); border-radius: 3px; font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: .4px; cursor: pointer;
}
.tab.on { color: #fff; border-color: #fff; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; width: 100%; max-width: 430px; }
.stat { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 10px; padding: 14px; text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 900; color: #fff; }
.stat span { font-size: 11px; color: var(--tenue); letter-spacing: .8px; text-transform: uppercase; }
.tablewrap { width: 100%; margin-top: 14px; overflow-x: auto; border: 1px solid var(--borde); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; background: var(--tarjeta); }
th { text-align: left; color: var(--primario); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; padding: 11px 10px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid #1d1d23; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
td.num { text-align: center; font-weight: 800; font-size: 15px; }
.beers-mini { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 3px; flex: none; }
.beers-mini .beer svg { width: 14px; height: 17px; display: block; }
.beers-mini .beer { flex: none; padding: 0; }
td .vnum { font-weight: 800; font-size: 14px; margin-left: 6px; white-space: nowrap; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.pill.si { background: rgba(201,162,39,.18); color: #f0d47a; border: 1px solid var(--primario); }
.pill.no { background: #1b1b21; color: var(--tenue); border: 1px solid var(--borde); }
footer { margin-top: auto; padding-top: 28px; text-align: center; font-size: 11.5px; color: #7d7460; line-height: 1.7; max-width: 430px; }
footer b { color: #b9a8e8; }
.hidden { display: none !important; }
.wide { max-width: 430px; width: 100%; display: flex; flex-direction: column; align-items: center; }
