@font-face{font-family:"Cormorant Garamond";src:url(/fuentes/cormorant-garamond-latin-600-normal.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}@font-face{font-family:"Cormorant Garamond";src:url(/fuentes/cormorant-garamond-latin-500-italic.woff2) format("woff2");font-weight:500;font-style:italic;font-display:swap}@font-face{font-family:"Jost";src:url(/fuentes/jost-latin-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}@font-face{font-family:"Jost";src:url(/fuentes/jost-latin-500-normal.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}:root{--fondo:#14261c;--fondo2:#352f20;--claro:#f5eee4;--claro-suave:#b6b6ac;--papel:#fbf6f4;--tinta:#1f1e18;--tinta-suave:#6c6a65;--acento:#a9502c;--sobre-acento:#ffffff;--acento-texto:#a9502c;--realce:#e4ba96;--tarjeta1:#a9502c;--tarjeta2:#7a3a20;--tarjeta3:#4d2312;--sobre-tarjeta:#f5eee4;--linea:#d3cfcc;--sombra-acento:#a9502c;--sello:#f5eee4;--esquema:dark;}:root{--f-titulo:"Cormorant Garamond",Georgia,serif;--f-texto:"Jost",system-ui,sans-serif;}/* Club de fidelidad (plantilla). Colores y fuentes llegan como variables desde el servidor, según la marca del negocio. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: var(--f-texto); color: var(--claro); background: var(--fondo); color-scheme: var(--esquema);
  background-image: radial-gradient(120% 70% at 50% 0%, var(--fondo2) 0%, var(--fondo) 62%);
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
.marco { max-width: 460px; margin: 0 auto; padding: 18px 16px 48px; }
.cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.logo { height: 40px; width: auto; max-width: 190px; object-fit: contain; display: block; }
.logo--chip { background: #fff; padding: 5px 10px; border-radius: 12px; height: 46px; }
.logo--baldosa { border-radius: 10px; height: 44px; }
.nombre-texto { font: 600 22px var(--f-titulo); }
.idiomas { display: flex; gap: 4px; }
.idiomas button { background: none; border: 1px solid color-mix(in srgb, var(--claro) 30%, transparent); color: var(--claro); font: 500 12px var(--f-texto);
  letter-spacing: .08em; padding: 5px 8px; border-radius: 999px; cursor: pointer; }
.idiomas button[aria-pressed="true"] { background: var(--claro); color: var(--fondo); }
.portada { margin: 16px -16px 0; height: 190px; background-size: cover; background-position: center; position: relative; }
.portada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, var(--fondo) 100%); }
h1 { font: 600 34px/1.08 var(--f-titulo); margin: 22px 0 8px; }
h1 .pre { font: italic 500 22px var(--f-titulo); color: var(--realce); display: block; margin-bottom: 4px; }
.sub { color: var(--claro-suave); margin: 0 0 22px; line-height: 1.5; }
.panel { background: var(--papel); color: var(--tinta); border-radius: 18px; padding: 20px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
label { display: block; font-size: 13px; letter-spacing: .04em; color: var(--tinta-suave); margin: 0 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], select, textarea {
  width: 100%; font: 400 16px var(--f-texto); color: var(--tinta); background: #fff; border: 1px solid var(--linea);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--acento-texto); outline-offset: 1px; }
.fila { display: flex; gap: 10px; }
.fila > * { flex: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--tinta); margin: 4px 0 12px; line-height: 1.4; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--acento); flex: none; }
.check a { color: var(--acento-texto); }
.boton { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; cursor: pointer;
  font: 600 15px var(--f-texto); letter-spacing: .06em; text-transform: uppercase; color: var(--sobre-acento); background: var(--acento);
  padding: 15px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 22px color-mix(in srgb, var(--sombra-acento) 35%, transparent); }
.boton:active { transform: translateY(1px); }
.boton[disabled] { opacity: .55; cursor: default; }
.boton--claro { background: var(--claro); color: var(--fondo); box-shadow: none; }
.error { color: #b3261e; font-size: 14px; min-height: 20px; margin: 4px 0 10px; }
.nota { font-size: 12px; color: var(--tinta-suave); line-height: 1.5; margin-top: 12px; }

/* tarjeta */
.tarjeta { position: relative; overflow: hidden; border-radius: 20px; padding: 18px 18px 16px; color: var(--sobre-tarjeta);
  background: linear-gradient(135deg, var(--tarjeta1) 0%, var(--tarjeta2) 55%, var(--tarjeta3) 100%); box-shadow: 0 22px 46px rgba(0,0,0,.45); }
.tarjeta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--realce) 40%, transparent), transparent 70%); }
.tarjeta__cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 1; }
.tarjeta__cab .logo { height: 30px; max-width: 140px; }
.tarjeta__cab .logo--chip { height: 36px; padding: 4px 8px; }
.tarjeta__club { font: 600 11px var(--f-texto); letter-spacing: .18em; text-transform: uppercase; opacity: .92; text-align: right; }
.tarjeta__nombre { font: 600 26px var(--f-titulo); margin: 14px 0 2px; position: relative; z-index: 1; }
.tarjeta__premio { font-size: 13.5px; opacity: .92; position: relative; z-index: 1; }
.sellos { display: grid; grid-template-columns: repeat(var(--columnas, 4), 1fr); gap: 10px; margin: 16px 0 14px; position: relative; z-index: 1; }
.sello { aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--sobre-tarjeta) 55%, transparent); display: grid; place-items: center;
  font: 600 18px var(--f-titulo); color: color-mix(in srgb, var(--sobre-tarjeta) 55%, transparent); }
.sello--on { border: 0; background: var(--sello); color: var(--tarjeta2); box-shadow: inset 0 0 0 3px var(--realce); }
.sello--on svg { width: 60%; height: 60%; }
.qr { background: #fff; border-radius: 14px; padding: 12px; display: flex; gap: 14px; align-items: center; position: relative; z-index: 1; }
.qr canvas { width: 112px; height: 112px; image-rendering: pixelated; flex: none; }
.qr__txt { color: #231c17; font-size: 13px; line-height: 1.45; }
.qr__cod { font: 600 21px var(--f-titulo); letter-spacing: .1em; color: #231c17; display: block; margin-top: 4px; }
.aviso { background: var(--realce); color: var(--fondo); border-radius: 14px; padding: 12px 14px; margin: 14px 0 0; font-weight: 600; text-align: center; }

.menu { display: grid; gap: 10px; margin-top: 18px; }
.op { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--tinta); background: var(--papel);
  border: 0; border-radius: 16px; padding: 14px 16px; font: 500 16px var(--f-texto); text-align: left; cursor: pointer; width: 100%; }
.op svg { width: 24px; height: 24px; flex: none; color: var(--acento-texto); }
.op small { display: block; font-weight: 400; font-size: 12.5px; color: var(--tinta-suave); margin-top: 2px; }
.op .flecha { margin-left: auto; color: var(--tinta-suave); }

dialog { border: 0; border-radius: 20px; padding: 0; width: min(440px, calc(100vw - 24px)); background: var(--papel); color: var(--tinta); }
dialog::backdrop { background: rgba(5,5,8,.7); }
.dlg { padding: 20px; }
.dlg h2 { font: 600 26px var(--f-titulo); margin: 0 0 10px; }
.cerrar { float: right; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--tinta-suave); cursor: pointer; }
.estrellas { display: flex; gap: 6px; margin-bottom: 12px; }
.estrellas button { border: 0; background: none; font-size: 30px; color: var(--linea); cursor: pointer; padding: 0; }
.estrellas button[aria-pressed="true"] { color: #e0a526; }

/* sudoku */
.sudoku { display: grid; grid-template-columns: repeat(9, 1fr); border: 2px solid var(--tinta); margin: 10px 0; user-select: none; }
.sudoku div { aspect-ratio: 1; display: grid; place-items: center; font: 500 17px var(--f-texto); border: 1px solid var(--linea); background: #fff; cursor: pointer; }
.sudoku div.fija { background: color-mix(in srgb, var(--papel) 80%, var(--tinta) 8%); cursor: default; }
.sudoku div.sel { background: color-mix(in srgb, var(--acento) 22%, #fff); }
.sudoku div.mal { color: #b3261e; }
.sudoku div:nth-child(3n) { border-right: 2px solid var(--tinta); }
.sudoku div:nth-child(9n) { border-right: 1px solid var(--linea); }
.sudoku div:nth-child(n+19):nth-child(-n+27), .sudoku div:nth-child(n+46):nth-child(-n+54) { border-bottom: 2px solid var(--tinta); }
.teclas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.teclas button { border: 0; border-radius: 10px; background: color-mix(in srgb, var(--papel) 85%, var(--tinta) 10%); font: 500 18px var(--f-texto); padding: 10px 0; cursor: pointer; color: var(--tinta); }

/* barra */
.lector { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 1; margin-bottom: 12px; }
.lector video { width: 100%; height: 100%; object-fit: cover; }
.lector::after { content: ""; position: absolute; inset: 18%; border: 3px solid var(--realce); border-radius: 14px; }
.resultado { margin-top: 14px; }
.resultado .nombre { font: 600 24px var(--f-titulo); }
.ok { color: #2f6b45; font-weight: 500; }
.pie { text-align: center; font-size: 12px; color: var(--claro-suave); margin-top: 28px; line-height: 1.6; }
.pie a { color: var(--claro); }
.etq { font: 600 11px var(--f-texto); letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .sello--on { animation: entra .5s ease-out both; }
  @keyframes entra { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------------------------------------------------------------- club ampliado (solo si el club lo tiene encendido)
   Monedas: metal cepillado (cónico) + brillo + grano (ruido SVG) + canto estriado + campo central rebajado + relieve.
   Referencia: club-tragaldabas-demo.html (.st.coin / .st.gold). */
.sellos--monedas { gap: 10px; }
.st { position: relative; aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--realce); display: grid; place-items: center;
  text-align: center; color: var(--sobre-tarjeta); font: 600 18px var(--f-titulo); }
.st.prize { border-style: solid; font: 700 10.5px/1.15 var(--f-texto); padding: 6px; overflow-wrap: anywhere; }
.st.coin, .st.gold { border: 0; isolation: isolate; padding: 0; color: var(--eng);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.95) 0, rgba(255,255,255,0) 40%), radial-gradient(circle at 72% 85%, rgba(0,0,0,.28) 0, rgba(0,0,0,0) 45%),
    conic-gradient(from 200deg, var(--m1), var(--m3) 12%, var(--m2) 22%, var(--m4) 34%, var(--m1) 47%, var(--m3) 60%, var(--m2) 72%, var(--m4) 85%, var(--m1));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.45), 0 5px 8px rgba(0,0,0,.45), 0 1px 1px rgba(0,0,0,.6); }
.st.coin { --m1: #fbfcfd; --m2: #cdd2d8; --m3: #9ba2ab; --m4: #626973; --eng: #5a616a; }
.st.gold { --m1: #fff6cf; --m2: #efc861; --m3: #c39328; --m4: #7c5711; --eng: #6e4b0c; }
.st.coin::before, .st.gold::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: repeating-conic-gradient(var(--m2) 0 1.6deg, var(--m4) 1.6deg 3.2deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 89%, #000 91%); mask: radial-gradient(circle closest-side, transparent 89%, #000 91%); opacity: .9; }
.st.coin::after, .st.gold::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.4), rgba(0,0,0,.1) 72%);
  box-shadow: inset 0 2px 3px rgba(0,0,0,.4), inset 0 -2px 2px rgba(255,255,255,.7), 0 -1px 0 rgba(0,0,0,.25), 0 1px 1px rgba(255,255,255,.75); }
.st .cara { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 22%; }
.st.coin img, .st.gold img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; opacity: .6;
  filter: grayscale(1) contrast(1.7) brightness(.85) drop-shadow(0 1px 0 rgba(255,255,255,.9)) drop-shadow(0 -1px 0 rgba(0,0,0,.5)); }
.st .ini { font: 700 30px/1 var(--f-titulo); color: var(--eng); text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 -1px 0 rgba(0,0,0,.4); }
.ribbon { position: absolute; z-index: 4; left: 50%; bottom: -7px; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(#ffe082, #c79100); color: #3e2a05; font: 800 9px var(--f-texto); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 2px 3px rgba(0,0,0,.4); white-space: nowrap; }
.tarjeta__linea { font-size: 13.5px; opacity: .92; position: relative; z-index: 1; }
.tarjeta__primer { margin: -4px 0 12px; font-size: 14px; position: relative; z-index: 1; }
.caja-premio { border-radius: 12px; padding: 10px 12px; margin: 12px 0 0; background: rgba(246,207,92,.16); border: 1px solid #f3d77a;
  font-size: 14px; position: relative; z-index: 1; color: var(--sobre-tarjeta); }
.caja-premio strong { display: block; font-size: 15px; }
.caja-premio--guardado { background: color-mix(in srgb, var(--sobre-tarjeta) 10%, transparent); border-color: color-mix(in srgb, var(--sobre-tarjeta) 30%, transparent); }
.tarjeta .qr { margin-top: 14px; }

/* felicitación al completar la tarjeta */
.celebra { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  padding: 24px 16px; background: rgba(8,12,9,.9); text-align: center; overflow: hidden auto; color: #f2e5cd; }
.celebra .dentro { position: relative; z-index: 2; max-width: 340px; width: 100%; }
.celebra h2 { font: 600 30px/1.1 var(--f-titulo); margin: 16px 0 6px; color: #f6cf5c; }
.celebra .cel-premio { font-size: 18px; margin: 0 0 6px; }
.cel-peq { font-size: 14px; opacity: .9; margin: 6px 0; }
.medalla { width: 150px; height: 150px; margin: 0 auto; }
.medalla .st { width: 150px; height: 150px; }
.medalla .st .ini { font-size: 56px; }
.medalla .ribbon { font-size: 12px; bottom: -10px; padding: 3px 12px; }
.cel-botones { display: grid; gap: 10px; margin-top: 16px; }
.cel-botones .boton { min-height: 48px; }
.boton--borde { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.historia { display: block; width: 160px; margin: 12px auto 4px; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.confeti { position: absolute; inset: 0; pointer-events: none; }
.confeti i { position: absolute; top: -6%; width: 8px; height: 14px; border-radius: 2px; opacity: .9; }

/* avisos y baja */
.aviso-canal { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: 14.5px; }
.aviso-canal .boton { width: auto; min-height: 44px; padding: 10px 14px; font-size: 13px; }
.boton--peligro { background: transparent; color: #b3261e; box-shadow: inset 0 0 0 1.5px #b3261e; }

/* personal: ficha ampliada */
.ficha-linea { font-size: 19px; margin: 8px 0 12px; }
.alerta { border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; background: color-mix(in srgb, var(--acento) 14%, var(--papel)); color: var(--tinta); font-weight: 600; font-size: 17px; }
.alerta small { display: block; font-weight: 400; font-size: 14.5px; margin-top: 4px; }
.alerta .fila { margin-top: 10px; }
.boton--grande { min-height: 56px; font-size: 17px; }

@media (prefers-reduced-motion: no-preference) {
  .st.nuevo { animation: entra .5s ease-out both; }
  .st.won:not(.big) { animation: brillo 2.4s ease-in-out infinite; }
  @keyframes brillo { 50% { filter: brightness(1.18); } }
  .medalla .st { animation: medalla .9s cubic-bezier(.2,1.6,.4,1) both; }
  @keyframes medalla { 0% { transform: scale(.2) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
  .confeti i { animation: cae 2.6s linear infinite; }
  @keyframes cae { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(110vh) rotate(540deg); } }
}
@media (prefers-reduced-motion: reduce) { .confeti { display: none; } }
.programas { border: 0; padding: 0; margin: 4px 0 8px; }
.programas legend { font-size: 13px; letter-spacing: .04em; color: var(--tinta-suave); margin-bottom: 8px; padding: 0; }
.programas .check { border: 1px solid var(--linea); border-radius: 12px; padding: 10px 12px; margin: 0 0 8px; }
.programas .check small { color: var(--tinta-suave); font-size: 13px; }
.programas .check:has(input:checked) { border-color: var(--acento-texto); box-shadow: inset 0 0 0 1px var(--acento-texto); }
.st.coin img.inv, .st.gold img.inv { filter: grayscale(1) invert(1) contrast(1.7) brightness(.85) drop-shadow(0 1px 0 rgba(255,255,255,.9)) drop-shadow(0 -1px 0 rgba(0,0,0,.5)); }

/* temas de temporada (fase 4): el sello ganado pasa a ser el objeto de la fecha; el estilo de la tarjeta no cambia */
.st.art { border: 0; background: none; padding: 2px; }
.st.art svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.st.won { border: 0; }
.st.gilded { isolation: isolate; }
.st.gilded::before { content: ""; position: absolute; inset: -4%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255,214,90,.75) 0, rgba(255,190,40,.35) 45%, rgba(255,190,40,0) 72%); }
.st.art.gilded svg { filter: sepia(1) saturate(2.8) hue-rotate(-12deg) brightness(1.1) contrast(1.1) drop-shadow(0 0 5px rgba(255,205,70,.9)); }
.saludo { font: italic 500 18px var(--f-titulo); color: var(--realce); margin: -2px 0 14px; }
.caja-premio--regalo { background: color-mix(in srgb, var(--sobre-tarjeta) 12%, transparent); border-color: color-mix(in srgb, var(--sobre-tarjeta) 35%, transparent); }
.caja-premio--promo { background: color-mix(in srgb, var(--sobre-tarjeta) 8%, transparent); border-color: color-mix(in srgb, var(--sobre-tarjeta) 28%, transparent); }
.idiomas select { background: none; border: 1px solid color-mix(in srgb, var(--claro) 30%, transparent); color: var(--claro);
  font: 500 13px var(--f-texto); padding: 6px 8px; border-radius: 999px; max-width: 140px; }
.idiomas select option { color: #231c17; }
.avisos-push { margin-top: 14px; }
[dir="rtl"] .op .flecha { transform: scaleX(-1); }
