/* "El Poste": el mismo mundo de la tarjeta digital de Barber Wishop (claro, marino, rojo y azul de poste). */
@font-face{font-family:'Bebas';src:url(/marca/fuentes/bebas-neue.woff2) format('woff2');font-display:swap}
@font-face{font-family:'Outfit';src:url(/marca/fuentes/outfit.woff2) format('woff2');font-weight:100 900;font-display:swap}
:root{--fondo:#f3f4f6;--papel:#fff;--hielo:#e4ebf6;--tinta:#111a33;--tenue:#474d5e;--rojo:#c4202f;--rojo-hondo:#9d1522;
  --azul:#1d4691;--noche:#16294f;--linea:#c9d1e2;--verde:#17693a}
*{box-sizing:border-box;margin:0;padding:0}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{background:var(--fondo);color:var(--tinta);font:400 17px/1.5 'Outfit',system-ui,sans-serif;min-height:100vh;display:flex;flex-direction:column}
h1,h2,h3,.letrero{font-family:'Bebas','Outfit',sans-serif;font-weight:400;letter-spacing:.02em;line-height:1}
h1{font-size:2.7rem;text-wrap:balance}
h2{font-size:1.75rem}
h3{font-size:1.35rem}
a{color:var(--azul)}
.poste{height:14px;flex:none;background:repeating-linear-gradient(135deg,var(--rojo) 0 12px,#fff 12px 24px,var(--azul) 24px 36px,#fff 36px 48px);
  background-size:67.88px 100%;animation:poste 2.4s linear 2}
@keyframes poste{to{background-position:67.88px 0}}
main{width:100%;max-width:30rem;margin:0 auto;padding:0 1.1rem 2.5rem;flex:1}
.cabeza{display:flex;justify-content:center;padding:1rem 1rem .4rem;background:var(--papel);border-bottom:1px solid var(--linea);margin:0 -1.1rem 1.1rem}
.cabeza img{width:min(15rem,70%);height:auto}
.muestra{background:var(--hielo);color:var(--noche);border-radius:.4rem;padding:.5rem .75rem;font-size:.88rem;font-weight:600;margin-bottom:1rem;text-align:center}
.sub{color:var(--tenue);margin-top:.5rem}
.invito{margin-top:1rem;background:var(--noche);color:#fff;border-radius:.6rem;padding:.8rem 1rem;font-weight:600}

/* ── La tarjeta de sellos ── */
.cartilla{margin:1.2rem 0;background:var(--noche);border-radius:1rem;padding:1.1rem;color:#fff;box-shadow:0 10px 24px -14px rgba(17,26,51,.7)}
.cartilla header{display:flex;justify-content:space-between;align-items:baseline;gap:.75rem;margin-bottom:.9rem}
.cartilla header b{font:400 1.5rem/1 'Bebas',sans-serif;letter-spacing:.05em}
.cartilla header span{font-size:.85rem;color:#c6d3ee;text-align:right}
.casillas{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}
.casillas.muchas{grid-template-columns:repeat(4,1fr)}
.casillas.muchisimas{grid-template-columns:repeat(5,1fr)}
.casilla{aspect-ratio:1;border-radius:50%;border:2px dashed #7f94c4;display:flex;flex-direction:column;align-items:center;justify-content:center;
  font:400 1.6rem/1 'Bebas',sans-serif;color:#9fb1da}
.casilla svg{width:58%;height:58%}
.casilla.llena{border:3px solid var(--rojo);background:#fff;color:var(--rojo);transform:rotate(-7deg)}
.casilla.llena:nth-child(even){transform:rotate(6deg)}
.casilla.premio{border-color:#ff8b94;color:#ffb3b9;font-size:.95rem;text-align:center}
.casilla.premio svg{width:44%;height:44%}
.casilla.premio.listo{background:var(--rojo);border:3px solid #fff;color:#fff}
.casilla.nuevo{animation:sello .55s cubic-bezier(.2,1.4,.4,1)}
@keyframes sello{from{transform:scale(2.1) rotate(-24deg);opacity:0}}
.estado{font-size:1.15rem;font-weight:600;margin-top:.35rem}
.premio-listo{background:var(--rojo);color:#fff;border-radius:.8rem;padding:1rem 1.1rem;margin-bottom:1.2rem}
.premio-listo h2{margin-bottom:.35rem}

/* ── Bloques ── */
.bloque{background:var(--papel);border:1px solid var(--linea);border-radius:.8rem;padding:1.15rem;margin-bottom:1rem}
.bloque h2{margin-bottom:.4rem}
.bloque p+p{margin-top:.5rem}
.qr{width:min(15rem,100%);margin:.8rem auto .5rem;display:block}
.qr svg{width:100%;height:auto;display:block}
.centro{text-align:center}
.codigo{font:400 2.6rem/1 'Bebas',sans-serif;letter-spacing:.22em;text-align:center;background:var(--hielo);border-radius:.6rem;padding:.8rem .5rem .6rem;margin:.8rem 0}
.chico{font-size:.88rem;color:var(--tenue)}
#agendar{margin:0 0 1rem}
#invitados{margin-top:.7rem}
.cabeza+h1+.sub{margin-bottom:1rem}
.historial{list-style:none}
.historial li{display:flex;justify-content:space-between;gap:1rem;padding:.55rem 0;border-top:1px solid var(--linea);font-size:.97rem}
.historial li:first-child{border-top:0}
.historial b{font-weight:600;text-align:right}

/* ── Formularios y botones ── */
form{margin-top:.25rem}
label{display:block;font-weight:600;margin:.85rem 0 .3rem}
input[type=text],input[type=tel],input[type=password],input[type=search],input[type=number],select,textarea{width:100%;font:400 1.05rem 'Outfit',system-ui,sans-serif;color:var(--tinta);
  background:var(--papel);border:2px solid var(--linea);border-radius:.55rem;padding:.7rem .8rem;min-height:3rem}
textarea{min-height:7rem;resize:vertical}
input:focus,select:focus,textarea:focus{outline:3px solid var(--azul);outline-offset:1px;border-color:var(--azul)}
.tel{display:flex;gap:.5rem}
.tel select{width:7.2rem;flex:none}
.casilla-texto{display:flex;gap:.65rem;align-items:flex-start;font-weight:400;font-size:.95rem;margin-top:.9rem}
.casilla-texto input{width:1.4rem;height:1.4rem;flex:none;accent-color:var(--azul);margin-top:.1rem}
button,.boton{font:600 1.05rem 'Outfit',system-ui,sans-serif;border:2px solid transparent;border-radius:.55rem;min-height:3.1rem;padding:.7rem 1.1rem;cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;text-decoration:none;text-align:center}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--azul);outline-offset:2px}
button:disabled{opacity:.55;cursor:default}
.principal{background:var(--rojo);color:#fff;width:100%;margin-top:1rem}
.principal:active{background:var(--rojo-hondo)}
.segundo{background:var(--papel);color:var(--noche);border-color:var(--noche);width:100%;margin-top:.6rem}
.liga{background:none;border:0;color:var(--azul);text-decoration:underline;min-height:2.6rem;padding:.3rem 0;font-weight:500}
.peligro{color:var(--rojo-hondo)}
.error{color:var(--rojo-hondo);font-weight:600;margin-top:.7rem}
.ok{color:var(--verde);font-weight:600;margin-top:.7rem}
details{margin:.4rem 0 1rem}
summary{cursor:pointer;font-weight:600;padding:.6rem 0}
details p{margin-bottom:.5rem}
dialog{border:0;border-radius:.9rem;padding:1.3rem;width:min(24rem,calc(100vw - 2rem));margin:auto;color:var(--tinta)}
dialog::backdrop{background:rgba(10,16,34,.65)}
dialog h2{margin-bottom:.4rem}

/* ── Pie y firma ── */
.pie{background:var(--noche);color:#dbe3f5;text-align:center;padding:1.8rem 1.1rem 2rem;font-size:.93rem}
.pie a{color:#fff}
.firma{margin-top:1.4rem;padding-top:1.3rem;border-top:1px solid rgba(255,255,255,.18);display:flex;flex-direction:column;align-items:center;gap:.5rem}
.firma .hecho{font-size:.82rem;color:#aebbd9}
.lb{display:inline-block;padding:.6rem;overflow:visible}
.lb svg{width:12rem;height:auto;overflow:visible;display:block}
.firma .wa{font-weight:600;font-size:1.02rem}
.firma .wa b{display:block;font-size:1.35rem;letter-spacing:.03em}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
