/* PADSI · Administrador de Tarjeta NFC (GENÉRICO) — estilos.
   Tema BLANCO estilo Google/Material: fondo blanco, texto oscuro,
   acentos con los colores de Google (azul #4285F4, rojo #EA4335,
   amarillo #FBBC04, verde #34A853). Los sellos son ESTRELLITAS ⭐. */
:root {
  --primario: #4285F4;
  --rojo: #EA4335;
  --amarillo: #FBBC04;
  --verde: #34A853;
  --fondo: #ffffff;
  --tarjeta: #ffffff;
  --texto: #202124;
  --tenue: #5f6368;
  --borde: #dadce0;
  --suave: #f8f9fa;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Inter', 'Roboto', 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;
}
/* ---------- Hero + arco ---------- */
.hero {
  width: calc(100% + 36px); margin: 0 -18px;
  height: 300px; overflow: hidden; position: relative; flex: none;
  background: var(--suave);
}
.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: 800; text-align: center; color: var(--texto);
  font-size: clamp(30px, 9.5vw, 52px); line-height: 1.05; letter-spacing: -.5px;
  margin-top: 12px; max-width: 560px;
}
h1.pagetitle {
  font-weight: 800; text-align: center; color: var(--texto);
  font-size: clamp(26px, 8vw, 40px); line-height: 1.05; letter-spacing: -.5px; margin-top: 10px;
}
.sub { color: var(--texto); font-size: 15px; font-weight: 400; 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: 16px; padding: 22px 20px;
  box-shadow: 0 1px 2px rgba(60,64,67,.08), 0 1px 3px rgba(60,64,67,.06);
}
.card.gold { border-color: var(--amarillo); }
.card h2, .box h2 { font-size: 12px; letter-spacing: 2.5px; color: var(--primario); text-align: center; text-transform: uppercase; font-weight: 700; }
.box h3 { font-size: 21px; font-weight: 700; text-align: center; letter-spacing: -.3px; color: var(--texto); }
.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 estilo Google ---------- */
label { display: block; font-size: 12.5px; color: var(--tenue); margin: 14px 0 6px; letter-spacing: .4px; font-weight: 500; }
input {
  width: 100%; background: #fff; border: 1px solid var(--borde); border-radius: 8px;
  color: var(--texto); padding: 13px 14px; font-family: 'Inter', sans-serif; font-size: 15px;
}
input:focus { outline: none; border-color: var(--primario); box-shadow: 0 0 0 2px rgba(66,133,244,.25); }
.btn {
  display: block; width: 100%; text-align: center; margin-top: 16px;
  background: #fff; color: var(--primario); font-weight: 600; font-size: 15.5px;
  padding: 14px 16px; border-radius: 24px; border: 1px solid var(--borde); cursor: pointer;
  text-decoration: none; font-family: 'Inter', sans-serif; letter-spacing: .2px;
}
.btn:hover { background: #f8faff; }
.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: #fff; font-weight: 600; }
.btn.solid:hover { background: #1a73e8; }
.btn.wa { border-color: rgba(52,168,83,.7); color: #137333; }
.link { color: var(--primario); cursor: pointer; text-decoration: none; background: none; border: none; font-size: 14px; font-family: 'Inter', sans-serif; font-weight: 500; }
.link:hover { text-decoration: underline; }
.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(52,168,83,.12); border: 1px solid rgba(52,168,83,.55); color: #0d652d; }
.msg.err { background: rgba(234,67,53,.09); border: 1px solid rgba(234,67,53,.5); color: #a50e0e; }
.msg.info { background: rgba(66,133,244,.09); border: 1px solid rgba(66,133,244,.45); color: #174ea6; }
/* ---------- Sellos: estrellitas ---------- */
.stamps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; margin-top: 18px; }
.stamps .star { flex: none; }
.stamps .star svg { width: 40px; height: 40px; }
.star { display: flex; align-items: center; justify-content: center; padding: 2px 0; }
.star svg { width: 40px; height: 40px; overflow: visible; }
.star .shape { fill: #e8eaed; stroke: #bdc1c6; stroke-width: 1.2; stroke-linejoin: round; }
.star.on .shape { fill: var(--amarillo); stroke: #F9AB00; }
.prog { text-align: center; margin-top: 16px; font-size: 15px; }
.prog b { color: var(--primario); }
.bar { height: 6px; background: #e8eaed; border-radius: 99px; margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primario); border-radius: 99px; transition: width .4s; }
.reward { margin-top: 16px; background: rgba(251,188,4,.14); border: 1px solid rgba(249,171,0,.55); border-radius: 10px; padding: 12px 14px; text-align: center; font-size: 14.5px; line-height: 1.45; color: var(--texto); }
/* ---------- Panel: pestañas, totales y tabla ---------- */
.tabs { display: flex; gap: 10px; width: 100%; max-width: 430px; margin-top: 20px; }
.tab {
  flex: 1; padding: 12px; background: #fff; color: var(--tenue);
  border: 1px solid var(--borde); border-radius: 24px; font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600; letter-spacing: .2px; cursor: pointer;
}
.tab.on { color: #1a73e8; background: #e8f0fe; border-color: var(--primario); }
.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: 12px; padding: 14px; text-align: center; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--texto); }
.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: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; background: #fff; }
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 #e8eaed; vertical-align: middle; color: var(--texto); }
tr:last-child td { border-bottom: none; }
td.num { text-align: center; font-weight: 800; font-size: 15px; }
.stars-mini { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 3px; flex: none; }
.stars-mini .star svg { width: 15px; height: 15px; display: block; }
.stars-mini .star { flex: none; padding: 0; }
td .vnum { font-weight: 700; font-size: 14px; margin-left: 6px; white-space: nowrap; }
.btn-del {
  background: transparent; border: 1px solid var(--borde); border-radius: 8px;
  color: var(--rojo); font-size: 15px; line-height: 1; padding: 7px 9px; cursor: pointer;
}
.btn-del:hover { border-color: rgba(234,67,53,.6); background: rgba(234,67,53,.07); }
.btn-del:active { transform: scale(.94); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.pill.si { background: rgba(52,168,83,.13); color: #137333; border: 1px solid var(--verde); }
.pill.no { background: #f1f3f4; color: var(--tenue); border: 1px solid var(--borde); }
footer { margin-top: auto; padding-top: 28px; text-align: center; font-size: 11.5px; color: #80868b; line-height: 1.7; max-width: 430px; }
footer b { color: var(--primario); }
.hidden { display: none !important; }
.wide { max-width: 430px; width: 100%; display: flex; flex-direction: column; align-items: center; }
