:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f5f7f6;background:#19232a;font-synthesis:none;color-scheme:dark}
*,*::before,*::after{box-sizing:border-box}
html{min-width:320px;min-height:100%;scroll-behavior:smooth}
body{min-width:320px;min-height:100vh;margin:0;background:#19232a;color:#f5f7f6}
button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid #c7ebd5;outline-offset:4px}
[hidden]{display:none!important}
/* Imagen integrada: ocupa toda la pantalla, sin bordes ni tarjeta contenedora */
.ambient-background{position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(25,35,42,.48) 0%,rgba(25,35,42,.58) 22%,rgba(25,35,42,.85) 48%,#19232a 78%),url("https://images.unsplash.com/photo-1442512595331-e89e73853f31?w=1400&q=85") center top/cover no-repeat;opacity:.92}
.shell{position:relative;width:100%;max-width:480px;margin-inline:auto;padding:30px 22px calc(30px + env(safe-area-inset-bottom));min-height:100vh}
.eyebrow{display:block;color:#d2dad8;font-size:10px;font-weight:720;letter-spacing:.18em}
.business-header{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;transition:gap .5s ease,padding .5s ease,transform .5s ease}
.business-brand{width:78px;height:78px;border-radius:24px;display:grid;place-items:center;overflow:hidden;background:linear-gradient(145deg,#43544f,#263532);border:1px solid #ffffff40;color:#e4f7e8;font-size:43px;box-shadow:0 12px 35px #0007,inset 0 1px 1px #ffffff47;transition:width .5s ease,height .5s ease,border-radius .5s ease,font-size .5s ease}
.business-brand img{display:block;width:100%;height:100%;object-fit:contain}
.business-header__copy h1{font-size:29px;letter-spacing:-.05em;font-weight:720;margin:5px 0 4px}
.business-header__copy p{font-size:12px;line-height:1.5;color:#e0e6e3;margin:0;max-width:285px}
.info-button{position:absolute;right:0;top:4px;width:33px;height:33px;border-radius:50%;border:1px solid #ffffff55;background:#18252b66;color:#f2f6f4;font-size:17px;font-family:Georgia,serif;font-style:italic}
.card-stage{height:290px;position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:4px 0 3px;perspective:1100px}
.card-halo{position:absolute;z-index:0;width:80%;height:120px;top:30%;left:10%;border-radius:50%;background:#e6c6a41b;filter:blur(42px)}
.membership-card{position:relative;z-index:1;display:flex;flex-direction:column;justify-content:space-between;text-align:left;width:min(100%,338px);aspect-ratio:1.60;border:1px solid #ffffff55;border-radius:22px;padding:23px;background:radial-gradient(circle at 88% 9%,#739d8660,transparent 44%),linear-gradient(135deg,#284e43 0%,#19352f 50%,#13272b 100%);color:#f7f9f7;box-shadow:0 28px 48px #000a,0 8px 18px #0007,inset 0 1px 1px #ffffff4a;transition:transform .65s cubic-bezier(.2,.8,.2,1),box-shadow .65s ease;transform:translateZ(0)}
.membership-card:hover{transform:translateY(-5px) scale(1.012);box-shadow:0 32px 55px #000b,0 10px 24px #0006}
.membership-card:active{transform:scale(.985)}
.membership-card__top,.membership-card__bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.membership-card__top{letter-spacing:.16em;font-size:11px}.membership-card__top b{color:#c7f1d3;font-weight:800}.membership-card__mark{font-size:29px;color:#e1f8e7;filter:drop-shadow(0 5px 8px #0005)}.membership-card__bottom{font-size:16px;letter-spacing:-.025em;font-weight:600}.card-chevron{font-size:24px;font-weight:300}
.card-hint{color:#e3e8e5;font-size:11px;letter-spacing:.025em;margin:19px 0 0;text-shadow:0 2px 6px #0008}.card-hint span{color:#d3eadb;margin-right:5px}
.section-heading{margin:3px 0 14px}.section-heading h2{font-size:23px;letter-spacing:-.04em;margin:5px 0 0;font-weight:670}
.service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.service-tile{height:168px;min-width:0;border:1px solid #ffffff38;border-radius:19px;position:relative;overflow:hidden;background:#324249;color:white;display:flex;flex-direction:column;justify-content:flex-end;text-align:left;padding:15px;box-shadow:0 8px 18px #0003;transition:transform .2s ease}.service-tile:hover{transform:translateY(-3px)}.tile-image{position:absolute;inset:0;background-size:cover;background-position:center;z-index:0;filter:saturate(.8)}.tile-image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0002 10%,#111921e8 100%)}
.tile-image--menu{background-image:url("https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?w=650&q=80")}.tile-image--wifi{background-image:url("https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=650&q=80")}.tile-image--instagram{background-image:url("https://images.unsplash.com/photo-1442512595331-e89e73853f31?w=650&q=80")}.tile-image--reviews{background-image:url("https://images.unsplash.com/photo-1554118811-1e0d58224f24?w=650&q=80")}
.tile-content{z-index:1;display:flex;flex-direction:column;gap:3px}.tile-content strong{font-size:15px;letter-spacing:-.025em}.tile-content small{font-size:11px;color:#d7e0de}.tile-arrow{z-index:1;position:absolute;right:15px;top:12px;font-size:19px}
/* Vista de recompensas: reemplaza completamente la pantalla de inicio */
.rewards-view{animation:viewIn .65s cubic-bezier(.22,1,.36,1) both;min-height:calc(100vh - 210px)}
@keyframes viewIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
body.rewards-open .business-header{gap:6px;transform:translateY(-9px)}body.rewards-open .business-brand{width:57px;height:57px;border-radius:18px;font-size:30px}body.rewards-open .business-header__copy h1{font-size:23px;margin:3px 0 2px}body.rewards-open .business-header__copy p{font-size:11px}body.rewards-open .ambient-background{opacity:.42}
.rewards-toolbar{display:flex;align-items:center;justify-content:space-between;margin:16px 0 25px}.back-button{border:1px solid #ffffff2d;background:#ffffff10;border-radius:999px;padding:9px 14px;color:#e7efec;font-size:12px}.back-button span{font-size:23px;line-height:0;vertical-align:-2px;margin-right:4px}.rewards-toolbar__label{letter-spacing:.14em;font-size:10px;color:#b9cebf}
.rewards-intro{text-align:left}.rewards-intro h2{font-size:clamp(29px,7vw,36px);letter-spacing:-.06em;font-weight:650;margin:7px 0 7px}.rewards-intro p{font-size:13px;color:#c5d1cf;margin:0 0 18px}.rewards-intro p strong{color:#f6faf7}.visits-summary{display:flex;align-items:center;justify-content:space-around;background:#ffffff0e;border:1px solid #ffffff20;border-radius:20px;padding:18px 12px;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.visits-summary>span:not(.summary-divider){display:flex;align-items:center;flex-direction:column;gap:6px;min-width:0}.visits-summary strong{font-size:32px;letter-spacing:-.07em;font-weight:620}.visits-summary strong em{font-size:18px;color:#9fb5ac;font-style:normal;font-weight:450}.visits-summary small{font-size:11px;color:#afc0bb}.summary-divider{height:40px;width:1px;background:#ffffff24}
.journey-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:28px 0 10px}.journey-heading h3{font-size:19px;letter-spacing:-.035em;font-weight:670;margin:0}.journey-heading>span{font-size:12px;color:#b6d4c2}
/* Un recorrido vertical serpenteante, con distancia amplia entre seis sellos */
.reward-path{position:relative;width:100%;height:565px;max-width:420px;margin:0 auto;overflow:visible}.reward-path svg{display:block;position:absolute;inset:0;width:100%;height:100%;overflow:visible}.reward-route-base{fill:none;stroke:#ffffff23;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.reward-route-progress{fill:none;stroke:#a7e4c0;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:0 100;transition:stroke-dasharray 1.2s cubic-bezier(.22,1,.36,1)}.reward-path.animated .reward-route-progress{stroke-dasharray:var(--progress) 100}
.reward-stop{position:absolute;transform:translate(-50%,-50%);width:82px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;z-index:1}.reward-stop__circle{width:54px;height:54px;border-radius:50%;border:1px solid #ffffff43;background:#2d3c41;display:grid;place-items:center;color:#bacac5;font-size:18px;font-weight:630;box-shadow:0 8px 20px #0005;transition:background .5s ease,box-shadow .5s ease}.reward-stop.complete .reward-stop__circle{background:linear-gradient(145deg,#d1f1dc,#8ac9a7);color:#1c4c36;border-color:#e0f5e7;box-shadow:0 5px 18px #91d9af45}.reward-stop.final .reward-stop__circle{border-color:#d9b783;color:#f5d4a1;background:#463c30}.reward-stop.final.complete .reward-stop__circle{background:#e4c28c;color:#463019}.reward-stop small{font-size:11px;white-space:nowrap;color:#c4d1ce}.reward-stop.final small{color:#f2d09b}
.reward-message{border-radius:18px;background:#ffffff0e;border:1px solid #ffffff1c;padding:15px 17px;font-size:13px;line-height:1.5;color:#e4efe7;text-align:center}.nfc-notice{display:flex;align-items:center;gap:12px;margin:17px 0 6px;color:#c7d3ce;font-size:12px;line-height:1.4}.nfc-notice small{display:block;font-size:10px;color:#91a5a0;margin-top:3px}.nfc-symbol{display:grid;place-items:center;width:41px;height:41px;border-radius:12px;background:#ffffff0b;border:1px solid #ffffff1a;color:#c8ead5;font-size:17px;flex:none}
.demo-controls{margin-top:30px;border:1px dashed #ffffff30;border-radius:16px;background:#19252aaa;padding:15px}.demo-controls__heading{display:flex;justify-content:space-between;align-items:center;color:#aec1bb;font-weight:730;letter-spacing:.14em;font-size:10px}.demo-dot{width:7px;height:7px;border-radius:50%;background:#9fdfb6}.demo-controls label{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;margin:12px 0 6px}.demo-controls input{width:19px;height:19px;accent-color:#a6dfbd}.demo-controls p{font-size:11px;color:#a7b9b2;line-height:1.5;margin:0}.demo-controls.demo-collapsed{margin-top:16px}
footer{text-align:center;margin:28px auto 0;color:#afbbb5;font-size:10px;letter-spacing:.07em}footer strong{color:#eff7f1}
/* Modales */
dialog{width:min(430px,calc(100% - 32px));border:1px solid #ffffff2a;border-radius:22px;padding:22px;background:#26333a;color:#f6f8f7;box-shadow:0 28px 90px #000a}dialog::backdrop{background:#080d11b8;backdrop-filter:blur(5px)}.modal-header{display:flex;align-items:center;justify-content:space-between}.modal-header h2{font-size:21px;letter-spacing:-.04em;margin:0}.close-modal{border:none;background:#ffffff17;color:#f6f8f7;border-radius:50%;width:35px;height:35px;font-size:25px}.modal-content{font-size:14px;line-height:1.7;color:#d5e0da;margin-top:15px}.modal-content ul{padding-left:20px}.modal-content .wifi-password{padding:14px;border-radius:12px;border:1px solid #ffffff20;background:#ffffff10;font-size:20px;font-weight:700;color:#e3f6e8}.modal-content .action{border:none;border-radius:12px;padding:12px 16px;background:#b3e6c7;color:#173b2b;font-weight:700}.menu-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #ffffff15;padding:10px 0}.menu-row strong{color:white}.modal-note{font-size:11px;color:#a2b6ae}.toast{position:fixed;bottom:24px;left:50%;z-index:20;transform:translate(-50%,18px);background:#244536;color:white;padding:11px 15px;border-radius:12px;opacity:0;pointer-events:none;font-size:12px;transition:opacity .2s,transform .2s;max-width:calc(100vw - 30px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:370px){.shell{padding-inline:16px}.reward-path{height:530px}.reward-stop__circle{width:49px;height:49px}.reward-stop{width:73px}.membership-card{padding:19px}.business-header__copy h1{font-size:27px}}
@media(min-width:700px){.shell{padding-top:45px}.ambient-background{background-position:center 35%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}


/* ==========================================
   NEXO LOYALTY V5 - TARJETA COMPARTIDA 3D
   La tarjeta no desaparece al abrir recompensas.
   ========================================== */
.card-stage {
  height: 290px;
  margin: 4px 0 3px;
  transition: height .7s cubic-bezier(.22,1,.36,1), margin .7s ease;
}
.membership-card {
  display: block;
  position: relative;
  width: min(100%,338px);
  aspect-ratio: 1.60;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 24px 50px #0007;
  transform: none;
  transition: box-shadow .6s ease;
  -webkit-tap-highlight-color: transparent;
  perspective: 1300px;
}
.membership-card:hover,
.membership-card:active {
  transform: none;
  box-shadow: 0 30px 55px #0009;
}
.membership-card__inner {
  display: block;
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(.22,1,.36,1);
}
.membership-card__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px;
  border: 1px solid #ffffff55;
  border-radius: 22px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: radial-gradient(circle at 88% 9%,#739d8660,transparent 44%),linear-gradient(135deg,#284e43 0%,#19352f 50%,#13272b 100%);
  box-shadow: inset 0 1px 1px #ffffff4a;
  color: #f7f9f7;
  text-align: left;
}
.membership-card__face--front {transform: rotateY(0deg)}
.membership-card__face--back {
  transform: rotateY(180deg);
  background: radial-gradient(circle at 80% 8%,#7caa9460,transparent 46%),linear-gradient(145deg,#23463d,#142b2c 70%,#11242b);
}
body.rewards-open .membership-card__inner {transform: rotateY(180deg)}
.membership-card__top,.membership-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.membership-card__bottom {font-size:16px;font-weight:600;letter-spacing:-.025em}
.member-greeting {display:block;font-size:15px;color:#e6f1ea;letter-spacing:-.02em}
.member-greeting strong {color:white;font-weight:750}
.member-visits {display:flex;align-items:baseline;gap:12px}
.member-visits strong {font-size:51px;font-weight:650;line-height:1;letter-spacing:-.07em;color:white}
.member-visits>span {font-size:13px;color:#d4e3dc}
.member-back-footer {display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:.14em;color:#bcd4c8}
.member-back-footer>span {font-size:19px;letter-spacing:0}
body.rewards-open .card-stage {height:254px;margin-top:0;margin-bottom:0}
body.rewards-open .card-hint {opacity:0;visibility:hidden}
.card-hint {transition: opacity .25s ease,visibility .25s ease}
/* Acomoda la navegación inmediatamente después de la tarjeta en la vista de recompensas. */
.rewards-toolbar {margin:0 0 26px}
.rewards-view {min-height:0}
.journey-heading {margin-top:18px}
@media(max-width:370px) {
  .membership-card__face {padding:19px}
  .member-visits strong {font-size:46px}
  .member-visits>span {font-size:12px}
  body.rewards-open .card-stage {height:235px}
}
@media(prefers-reduced-motion:reduce) {
  .membership-card__inner,.card-stage {transition:none!important}
}

/* ===========================================
   NEXO LOYALTY V6 — CAFÉ QUE SE LLENA
   Sustituye solo el camino, el resto intacto
   =========================================== */
.reward-path.coffee-scene {
  height: auto;
  max-width: 420px;
  min-height: 0;
  margin: 5px auto 14px;
  overflow: visible;
  text-align: center;
}
.coffee-scene .coffee-illustration {
  position: static;
  display: block;
  width: min(100%, 365px);
  height: auto;
  margin: 0 auto;
  overflow: visible;
  filter: drop-shadow(0 16px 20px rgba(0,0,0,.18));
}
.coffee-pitcher {
  transform-origin: 275px 76px;
  transform: rotate(-9deg);
}
.coffee-scene.animated .coffee-pitcher {
  animation: pitcherServe 2.5s cubic-bezier(.2,.75,.22,1) both;
}
.coffee-stream {
  opacity: 0;
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
}
.coffee-scene.animated .coffee-stream {
  animation: coffeePour 2.5s ease-in-out .25s both;
}
.coffee-scene.animated .coffee-stream-highlight {
  animation-delay: .33s;
}
.coffee-fill { transform: translateY(120px); }
.coffee-scene.animated .coffee-fill {
  animation: coffeeRise 2.5s cubic-bezier(.23,.72,.24,1) .3s both;
}
.coffee-sheen {opacity:0}
.coffee-scene.animated .coffee-sheen {animation: sheenIn .7s ease 2.4s forwards}
.cup-monogram {
  font-size: 29px;
  fill: #766E5F;
  opacity: .65;
}
.coffee-progress {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: -7px;
}
.coffee-progress__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(237,245,236,.14);
  border: 1px solid rgba(237,245,236,.33);
}
.coffee-progress__dot.complete {
  background: #ABDDBB;
  border-color: #D7F5DF;
  box-shadow: 0 0 10px rgba(171,221,187,.36);
}
.coffee-progress__label {
  font-size: 12px;
  line-height: 1.55;
  color: #C8D8D0;
  margin: 14px 0 21px;
}
@keyframes pitcherServe {
  0%,100% {transform: rotate(-9deg)}
  20%,78% {transform: rotate(-24deg)}
}
@keyframes coffeePour {
  0%,12% {opacity:0;stroke-dashoffset:140}
  27% {opacity:1;stroke-dashoffset:0}
  77% {opacity:1;stroke-dashoffset:0}
  95%,100% {opacity:0;stroke-dashoffset:140}
}
@keyframes coffeeRise {
  from {transform: translateY(120px)}
  to {transform: translateY(calc(120px - var(--fill-px)))}
}
@keyframes sheenIn {to {opacity:.45}}
@media (prefers-reduced-motion:reduce) {
  .coffee-fill {transform:translateY(calc(120px - var(--fill-px)))}
  .coffee-stream {display:none}
  .coffee-pitcher {transform:rotate(-9deg)}
}

/* V7 — Fotografía de producto: vidrio refractado, espuma y vertido */
.coffee-scene .realistic-coffee {width:min(100%,390px); filter:drop-shadow(0 18px 24px rgba(0,0,0,.25));}
.coffee-pitcher {transform-origin:272px 86px; transform:rotate(-8deg)}
.coffee-scene.animated .coffee-pitcher {animation:pitcherServe 3s cubic-bezier(.24,.8,.25,1) both}
.coffee-scene.animated .coffee-stream {animation:coffeePour 3s ease-in-out .2s both}
.coffee-scene.animated .coffee-stream-highlight {animation-delay:.26s}
.coffee-fill {transform:translateY(124px)}
.coffee-scene.animated .coffee-fill {animation:realCoffeeRise 3s cubic-bezier(.2,.75,.25,1) .3s both}
.coffee-foam {transform:translateY(124px); opacity:0}
.coffee-scene.animated .coffee-foam {animation:realCoffeeFoam 3s cubic-bezier(.2,.75,.25,1) .3s both}
@keyframes realCoffeeRise {from{transform:translateY(124px)} to{transform:translateY(calc(124px - var(--fill-px)))}}
@keyframes realCoffeeFoam {0%,12%{opacity:0;transform:translateY(124px)} 32%{opacity:1} 100%{opacity:1;transform:translateY(calc(124px - var(--fill-px)))}}
@media(prefers-reduced-motion:reduce){
 .coffee-fill,.coffee-foam {animation:none!important;transform:translateY(calc(124px - var(--fill-px)));opacity:1}
 .coffee-stream {display:none}
}

/* V7 FIX: el nivel ahora se anima por atributos SVG, no con CSS. */
.coffee-scene #coffeeLiquid, .coffee-scene #coffeeSurface {
  transform: none !important;
  animation: none !important;
}
/* V8 — Taza ampliada y centrada; jarra eliminada del SVG.
   El nivel animado mantiene sus IDs y su lógica original. */
.reward-path.coffee-scene {
  width: 100%;
  max-width: 440px;
  margin: 8px auto 16px;
}
.coffee-scene .coffee-illustration.realistic-coffee {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 19px 23px rgba(0,0,0,.27));
}

/* NEXO LOYALTY — COLORES POR NEGOCIO */

:root {
  --business-primary: #284e43;
  --business-secondary: #c7f1d3;
}

/* Tarjeta de membresía: frente y reverso */
.membership-card__face,
.membership-card__face--back {
  background:
    radial-gradient(
      circle at 85% 10%,
      color-mix(
        in srgb,
        var(--business-secondary) 22%,
        transparent
      ),
      transparent 48%
    ),
    linear-gradient(
      135deg,
      var(--business-primary),
      color-mix(
        in srgb,
        var(--business-primary) 55%,
        #101820
      )
    );
  border-color: color-mix(
    in srgb,
    var(--business-secondary) 38%,
    transparent
  );
}

/* Logo superior */
.business-brand {
  background: linear-gradient(
    145deg,
    var(--business-primary),
    #19232a
  );
}

/* Detalles de la tarjeta */
.membership-card__top b,
.membership-card__mark,
.member-back-footer {
  color: var(--business-secondary);
}

/* Indicadores de recompensa */
.coffee-progress__dot.complete {
  background: var(--business-secondary);
  border-color: var(--business-secondary);
  box-shadow: 0 0 12px
    color-mix(
      in srgb,
      var(--business-secondary) 35%,
      transparent
    );
}

/* Etiquetas */
.rewards-toolbar__label,
.journey-heading > span {
  color: var(--business-secondary);
}

/* Registro de clientes: se añaden estilos sin modificar el diseño V7 */
.account-dialog{width:min(430px,calc(100% - 32px))}
.account-copy{font-size:13px;line-height:1.6;color:#d5e0da}
.account-form{display:grid;gap:14px;margin-top:16px}
.account-form[hidden]{display:none}
.account-form label{display:grid;gap:7px;color:#d5e0da;font-size:12px;font-weight:650}
.account-form input{width:100%;padding:13px 12px;border-radius:10px;border:1px solid #ffffff44;background:#15242b;color:white;font:inherit}
.account-submit{background:#c7f1d3;border:0;border-radius:11px;color:#183b2b;font-weight:800;padding:13px;cursor:pointer}
.account-submit:disabled{opacity:.5;cursor:wait}
.account-back{background:transparent;border:0;color:#c7f1d3;padding:8px;cursor:pointer}
.account-feedback{min-height:20px;color:#c7f1d3;font-size:12px}
.guest-rewards{padding:35px 14px;text-align:center;color:#d5e0da}

.qr-entry{margin:18px 0;text-align:center}.qr-entry__link{display:inline-block;padding:13px 18px;background:var(--business-primary,#284e43);color:#fff;border-radius:12px;font-weight:700;text-decoration:none}

/* Check-in GPS opcional: se muestra solamente al entrar mediante el enlace del establecimiento. */
.gps-entry{margin:20px 0;text-align:center}
.gps-entry__button{border:0;border-radius:13px;padding:14px 19px;background:var(--business-primary,#284e43);color:#fff;font:inherit;font-weight:750;cursor:pointer}
.gps-entry__button:disabled{opacity:.58;cursor:wait}
.gps-entry__message{font-size:12px;color:#c8d9d1;line-height:1.6;margin:12px auto;max-width:350px}

/* Canjes NEXO: conserva el tema propio de cada negocio */
.claim-panel{margin:20px auto;max-width:520px;background:#ffffff0d;border:1px solid #ffffff25;border-radius:16px;padding:18px;text-align:center}
.claim-panel h3{font-size:18px;margin:0 0 8px}.claim-panel p{font-size:13px;color:#d5e0da;line-height:1.5}
.claim-button{border:0;border-radius:12px;background:var(--business-secondary,#c7ff63);color:#18252b;padding:13px 18px;font:inherit;font-weight:800;cursor:pointer}
.claim-button:disabled{opacity:.55;cursor:wait}.claim-code{overflow-wrap:anywhere;font-family:ui-monospace,monospace;font-size:12px!important;user-select:all}

/* Cierre de sesión discreto sobre el mismo fondo, sin contenedores adicionales. */
.account-logout{display:block;margin:11px auto 0;padding:6px 9px;background:transparent;border:0;border-radius:7px;color:#aebdb8;font:inherit;font-size:11px;letter-spacing:.02em;text-transform:none;cursor:pointer;transition:color .2s ease,opacity .2s ease}
.account-logout[hidden]{display:none}
.account-logout:hover,.account-logout:focus-visible{color:#f0f6f2;text-decoration:underline;text-underline-offset:3px}
.account-logout:disabled{cursor:wait;opacity:.55}

/* ==============================================================
   MUNCHER HOUSE — ENTREGA VISUAL V1
   Scope estricto: solo html[data-business-slug="muncherhouse"]
   No afecta a Cafe Aurora, Nikkori ni el panel de administracion.
   =============================================================== */
html[data-business-slug="muncherhouse"] {
  --mh-cream: #F7F1E5;
  --mh-ink: #171717;
  --mh-gold: #FFC512;
  --mh-muted: #D8C9AA;
  --business-primary: #F7F1E5;
  --business-secondary: #171717;
  color-scheme: dark;
  background: #171310;
}
html[data-business-slug="muncherhouse"] body {
  color: var(--mh-cream);
  background: #171310;
}
html[data-business-slug="muncherhouse"] .ambient-background {
  background:
    linear-gradient(180deg, rgba(13,12,11,.70) 0%, rgba(14,12,10,.83) 26%, rgba(19,15,12,.95) 60%, #171310 89%),
    radial-gradient(circle at 11% 16%, rgba(255,197,18,.16), transparent 54%),
    url("assets/muncherhouse/burger-atmosphere.webp") center 5% / cover no-repeat;
  opacity: 1;
}
html[data-business-slug="muncherhouse"] .eyebrow {
  color: #F8D579;
  letter-spacing: .20em;
}
html[data-business-slug="muncherhouse"] .business-header__copy h1 {
  color: #F7F1E5;
  font-weight: 850;
  letter-spacing: -.045em;
}
html[data-business-slug="muncherhouse"] .business-header__copy p {
  color: #E8D9BF;
}
html[data-business-slug="muncherhouse"] .business-brand {
  border-radius: 23px;
  border: 1px solid rgba(255,197,18,.45);
  background: #101010 url("assets/muncherhouse/logo-muncherhouse.png") center / 74% no-repeat;
  box-shadow: 0 14px 35px #0009, 0 0 0 5px rgba(255,197,18,.045);
  color: transparent;
  font-size: 0;
}
/* El logo aportado por el usuario se usa aunque D1 tenga otro icono temporal. */
html[data-business-slug="muncherhouse"] .business-brand > * { visibility: hidden; }
html[data-business-slug="muncherhouse"] .info-button {
  background: rgba(30,24,18,.68);
  border-color: #F7F1E566;
  color: var(--mh-cream);
}
html[data-business-slug="muncherhouse"] .card-halo {
  background: rgba(255,197,18,.20);
  filter: blur(42px);
}
html[data-business-slug="muncherhouse"] .membership-card__face,
html[data-business-slug="muncherhouse"] .membership-card__face--back {
  background:
    radial-gradient(circle at 87% 0%, rgba(255,197,18,.14), transparent 43%),
    linear-gradient(147deg, #FFF8ED 0%, #F7F1E5 49%, #E6D8C4 100%);
  color: #171717;
  border: 1px solid #FCEFE0;
  box-shadow: inset 0 1px 1px #FFFFFF, inset 0 -1px 3px #BCA98D33;
}
html[data-business-slug="muncherhouse"] .membership-card__top,
html[data-business-slug="muncherhouse"] .membership-card__bottom,
html[data-business-slug="muncherhouse"] .membership-card__top b,
html[data-business-slug="muncherhouse"] .membership-card__mark,
html[data-business-slug="muncherhouse"] .member-greeting,
html[data-business-slug="muncherhouse"] .member-greeting strong,
html[data-business-slug="muncherhouse"] .member-visits strong,
html[data-business-slug="muncherhouse"] .member-visits>span,
html[data-business-slug="muncherhouse"] .member-back-footer {
  color: #171717;
}
html[data-business-slug="muncherhouse"] .membership-card__mark {
  font-weight: 900;
  filter: none;
}
html[data-business-slug="muncherhouse"] .membership-card__top {
  font-weight: 900;
  letter-spacing: .12em;
}
html[data-business-slug="muncherhouse"] .card-hint,
html[data-business-slug="muncherhouse"] .card-hint span {
  color: #E8DDC8;
}
html[data-business-slug="muncherhouse"] .section-heading h2,
html[data-business-slug="muncherhouse"] .rewards-intro h2,
html[data-business-slug="muncherhouse"] .journey-heading h3 {
  color: #F7F1E5;
}
html[data-business-slug="muncherhouse"] .service-tile {
  background: #29231F;
  border: 1px solid rgba(255,217,151,.17);
  box-shadow: 0 12px 24px #0006;
}
html[data-business-slug="muncherhouse"] .tile-image { filter: saturate(.85); }
html[data-business-slug="muncherhouse"] .tile-image--menu {
  background-image: url("assets/muncherhouse/burger-atmosphere.webp");
  background-position: 64% 20%;
}
html[data-business-slug="muncherhouse"] .tile-image--wifi {
  background-image: radial-gradient(circle at 30% 20%, #695338, #201B18 75%);
}
html[data-business-slug="muncherhouse"] .tile-image--instagram {
  background-image: radial-gradient(circle at 70% 10%, #665039, #251C18 70%);
}
html[data-business-slug="muncherhouse"] .tile-image--reviews {
  background-image: radial-gradient(circle at 60% 20%, #796040, #211B18 75%);
}
html[data-business-slug="muncherhouse"] .tile-image::after {
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(16,12,9,.86) 100%);
}
html[data-business-slug="muncherhouse"] .tile-content small,
html[data-business-slug="muncherhouse"] .rewards-intro p,
html[data-business-slug="muncherhouse"] .visits-summary small {
  color: #E0D1B9;
}
html[data-business-slug="muncherhouse"] .visits-summary,
html[data-business-slug="muncherhouse"] .claim-panel {
  background: rgba(247,241,229,.075);
  border-color: rgba(247,241,229,.18);
}
html[data-business-slug="muncherhouse"] .rewards-toolbar__label,
html[data-business-slug="muncherhouse"] .journey-heading > span,
html[data-business-slug="muncherhouse"] .coffee-progress__label {
  color: #F4D180;
}
html[data-business-slug="muncherhouse"] .back-button {
  background: #F7F1E518;
  border-color: #F7F1E541;
  color: #F7F1E5;
}
html[data-business-slug="muncherhouse"] .gps-entry__button,
html[data-business-slug="muncherhouse"] .qr-entry__link {
  background: #FFC512;
  color: #171717;
  border: 1px solid #FFDE74;
  box-shadow: 0 8px 28px #0007;
}
html[data-business-slug="muncherhouse"] .claim-button,
html[data-business-slug="muncherhouse"] .account-submit {
  background: #F7F1E5;
  color: #171717;
}
html[data-business-slug="muncherhouse"] .gps-entry__message,
html[data-business-slug="muncherhouse"] .claim-panel p,
html[data-business-slug="muncherhouse"] .reward-message {
  color: #E8D9BF;
}
html[data-business-slug="muncherhouse"] .reward-message,
html[data-business-slug="muncherhouse"] .nfc-symbol {
  background: rgba(247,241,229,.07);
  border-color: rgba(247,241,229,.18);
}
/* Progreso visual propio: sellos que se encienden con las visitas reales. */
html[data-business-slug="muncherhouse"] .reward-path.coffee-scene {
  max-width: 420px;
  margin: 0 auto 16px;
}
html[data-business-slug="muncherhouse"] .muncher-reward-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  isolation: isolate;
}
html[data-business-slug="muncherhouse"] .muncher-reward-art__halo {
  position: absolute;
  z-index: -1;
  width: 185px;
  height: 185px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,197,18,.16), transparent 70%);
  filter: blur(12px);
}
html[data-business-slug="muncherhouse"] .muncher-reward-art__emblem {
  width: 141px;
  height: 141px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px solid #FFC512;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 20%, #393025, #181411 75%);
  color: #FFC512;
  box-shadow: 0 14px 42px #0009, inset 0 0 0 7px #171310, inset 0 0 0 8px #FFC51244;
  transform: rotate(-9deg);
}
html[data-business-slug="muncherhouse"] .muncher-reward-art__emblem span {
  font-size: 53px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.12em;
  margin-right: .15em;
}
html[data-business-slug="muncherhouse"] .muncher-reward-art__emblem small {
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .32em;
  margin-top: 6px;
}
html[data-business-slug="muncherhouse"] .muncher-reward-art__caption {
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .21em;
  margin-top: 18px;
  color: #F7F1E5;
}
html[data-business-slug="muncherhouse"] .muncher-stamps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  padding: 8px 4px;
  max-width: 100%;
}
html[data-business-slug="muncherhouse"] .muncher-stamp {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  border-radius: 50%;
  border: 1px dashed #F7F1E588;
  background: #F7F1E512;
  color: #E8D9BF;
  font-size: 13px;
  font-weight: 750;
}
html[data-business-slug="muncherhouse"] .muncher-stamp.is-complete {
  background: #FFC512;
  border: 1px solid #FFE284;
  color: #171717;
  box-shadow: 0 0 18px #FFC51244;
}
@media(min-width:700px){
  html[data-business-slug="muncherhouse"] .ambient-background {background-position:center 18%;}
}


/* MUNCHER HOUSE v1.1 — ajustes de tarjeta y espacio de recompensas.
   Exclusivos de /muncherhouse; no cambian GPS, canjes ni otros negocios. */
html[data-business-slug="muncherhouse"] .membership-card__face--front::after {
  content: "🍔";
  position: absolute;
  right: 22px;
  top: 66px;
  font-size: clamp(43px, 12vw, 57px);
  line-height: 1;
  transform: rotate(-13deg);
  opacity: .76;
  filter: drop-shadow(0 6px 7px rgba(23,23,23,.16));
  pointer-events: none;
  z-index: 0;
}
html[data-business-slug="muncherhouse"] .membership-card__face--front > * {
  position: relative;
  z-index: 1;
}
/* El indicador de sellos NO usa la altura fija de la antigua taza. */
html[data-business-slug="muncherhouse"] #rewardPath.reward-path {
  height: auto;
  min-height: 0;
  margin: 2px auto 14px;
  padding-bottom: 0;
}
html[data-business-slug="muncherhouse"] #rewardPath .muncher-reward-art {
  min-height: 184px;
}
html[data-business-slug="muncherhouse"] #rewardPath .muncher-reward-art__emblem {
  width: 122px;
  height: 122px;
}
html[data-business-slug="muncherhouse"] #rewardPath .muncher-reward-art__emblem span {
  font-size: 45px;
}
html[data-business-slug="muncherhouse"] #rewardPath .muncher-reward-art__caption {
  margin-top: 11px;
}
html[data-business-slug="muncherhouse"] #rewardPath .coffee-progress__label {
  margin: 10px 0 8px;
}


/* NEXO LOYALTY — vista de recompensas depurada (todos los negocios).
   El HTML pone el check-in antes del mensaje y quita el aviso QR/NFC.
   Cuando hay un premio disponible, conservar el botón de solicitar canje sin tarjeta extra. */
#rewardsView .gps-entry { margin: 9px auto 12px; }
#rewardsView .reward-message { margin: 9px auto 10px; }
#rewardsView .claim-panel {
  margin: 10px auto 4px;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
#rewardsView .claim-panel p { margin: 7px auto; }
#rewardsView .claim-button { margin: 8px auto; }


/* NEXO Loyalty — progreso sin duplicados (TODOS los negocios). */
#rewardsView .journey-heading {
  margin: 10px 0 16px;
  gap: 12px;
}
#rewardsView .progress-score {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#rewardsView .progress-score__count {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #F7F1E5;
}
#rewardsView .progress-score__percentage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(247,241,229,.2);
  background: rgba(247,241,229,.1);
  color: #E3D8C6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
}
/* Pastilla con el color de acento de cada negocio sin cambiar su esquema. */
html:not([data-business-slug="muncherhouse"]) #rewardsView .progress-score__percentage {
  background: color-mix(in srgb, var(--business-secondary) 13%, transparent);
  border-color: color-mix(in srgb, var(--business-secondary) 27%, transparent);
  color: var(--business-secondary);
}
html[data-business-slug="muncherhouse"] #rewardsView .progress-score__percentage {
  background: rgba(255,197,18,.12);
  border-color: rgba(255,197,18,.38);
  color: #FFC512;
}
#rewardsView .coffee-progress__label {display: none;}
#rewardsView .reward-message {display: none;}
@media (max-width: 370px) {
  #rewardsView .journey-heading h3 {font-size: 17px;}
  #rewardsView .progress-score {gap: 5px;}
  #rewardsView .progress-score__count {font-size: 12px;}
  #rewardsView .progress-score__percentage {padding: 4px 7px;min-width: 43px;font-size: 11px;}
}


/* MUNCHER HOUSE v2 — Tarjeta beige apagado, queso derretido y mosaicos gastronómicos.
   Solo aplica a muncherhouse; no altera el resto de negocios. */
html[data-business-slug="muncherhouse"] .membership-card__face,
html[data-business-slug="muncherhouse"] .membership-card__face--back {
  background: linear-gradient(145deg, #F0E5D3 0%, #E9DDC7 56%, #D9C6A9 100%);
  border: 1px solid rgba(255,236,205,.72);
  box-shadow: inset 0 1px 0 #fff9, inset 0 -2px 4px #8a704326;
  overflow: visible;
}
/* El queso es decorativo: no altera el botón, su rotación ni la lógica de recompensas. */
html[data-business-slug="muncherhouse"] .membership-card__face::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; bottom: -21px;
  height: 39px;
  background: url("assets/muncherhouse/cheese-drip.svg") center top / 100% 100% no-repeat;
  filter: drop-shadow(0 6px 5px rgba(0,0,0,.25));
  pointer-events: none;
}
html[data-business-slug="muncherhouse"] .card-stage {
  /* Compensa el queso bajo la tarjeta sin crear un gran hueco. */
  margin-bottom: 14px;
}
/* Fotografías del concepto Muncher: imagen local, estable y sin hotlinking.
   Important anula imágenes inline de negocios preconfigurados en D1, solo aquí. */
html[data-business-slug="muncherhouse"] .tile-image--menu {
  background-image: url("assets/muncherhouse/menu-burger.webp") !important;
  background-position: 49% 54%;
}
html[data-business-slug="muncherhouse"] .tile-image--wifi {
  background-image: url("assets/muncherhouse/wifi-combo.webp") !important;
  background-position: 62% 48%;
}
html[data-business-slug="muncherhouse"] .tile-image--instagram {
  background-image: url("assets/muncherhouse/instagram-cocina.webp") !important;
  background-position: 53% 51%;
}
html[data-business-slug="muncherhouse"] .tile-image--reviews {
  background-image: url("assets/muncherhouse/reviews-burger.webp") !important;
  background-position: 48% 56%;
}
html[data-business-slug="muncherhouse"] .tile-image {
  filter: saturate(.90) contrast(1.06);
}
html[data-business-slug="muncherhouse"] .tile-image::after {
  background: linear-gradient(180deg, rgba(13,10,8,.06) 0%, rgba(15,11,8,.24) 45%, rgba(12,9,7,.91) 100%);
}


/* MUNCHER HOUSE V2.1 — CORRECCIÓN DEL DERRETIDO
   Una sola orilla de queso beige para AMBAS caras de la tarjeta.
   Elimina la franja diagonal dentro del frente y la franja amarilla en el reverso.
   Todo queda limitado al slug muncherhouse. */
html[data-business-slug="muncherhouse"] .membership-card__face,
html[data-business-slug="muncherhouse"] .membership-card__face--back {
  background: linear-gradient(155deg, #F0E6D7 0%, #E9DDC7 73%, #E9DDC7 100%);
  overflow: hidden;
}
/* Desactivar los pseudoelementos antiguos que causaron el efecto diagonal. */
html[data-business-slug="muncherhouse"] .membership-card__face::after,
html[data-business-slug="muncherhouse"] .membership-card__face--front::after,
html[data-business-slug="muncherhouse"] .membership-card__face--back::after {
  content: none !important;
  display: none !important;
}
/* Dibujar el borde derretido fuera de la tarjeta giratoria:
   permanece ABAJO tanto en el frente como en el reverso. */
html[data-business-slug="muncherhouse"] .membership-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: -24px;
  height: 34px;
  background: url("assets/muncherhouse/cheese-drip.svg") center top / 100% 100% no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 4px 2px rgba(0,0,0,.08));
}
html[data-business-slug="muncherhouse"] body.rewards-open .card-stage {
  margin-bottom: 14px;
}


/* MUNCHER HOUSE V2.2 — el borde derretido pertenece a cada cara 3D.
   Bajamos el SVG 3 px para que se funda con el borde inferior.
   Cuando gira la tarjeta, gira con ella (nunca queda fijo por delante). */
html[data-business-slug="muncherhouse"] .membership-card::after {
  content: none !important;
  display: none !important;
}
html[data-business-slug="muncherhouse"] .membership-card__face {
  overflow: visible;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
html[data-business-slug="muncherhouse"] .membership-card__face::after,
html[data-business-slug="muncherhouse"] .membership-card__face--front::after,
html[data-business-slug="muncherhouse"] .membership-card__face--back::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -27px;
  height: 34px;
  z-index: 0;
  top: auto;
  opacity: 1;
  transform: none;
  background: url("assets/muncherhouse/cheese-drip.svg") center top / 100% 100% no-repeat;
  filter: drop-shadow(0 4px 2px rgba(0,0,0,.08));
  pointer-events: none;
}


/* MUNCHER HOUSE V2.3 — unión sin costura entre tarjeta y derretido.
   El queso permanece ligado a cada cara y conserva el giro horizontal 3D. */
html[data-business-slug="muncherhouse"] .membership-card__face,
html[data-business-slug="muncherhouse"] .membership-card__face--back {
  /* Mantener el mismo beige sólido en el último tramo de la tarjeta. */
  background: linear-gradient(155deg, #F0E6D7 0%, #E9DDC7 65%, #E9DDC7 100%);
  border-bottom-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44);
}
html[data-business-slug="muncherhouse"] .membership-card__face::after,
html[data-business-slug="muncherhouse"] .membership-card__face--front::after,
html[data-business-slug="muncherhouse"] .membership-card__face--back::after {
  /* 14px de solape: tapa la línea de borde y evita una rendija por antialiasing. */
  bottom: -26px;
  height: 34px;
  filter: drop-shadow(0 5px 3px rgba(0,0,0,.09));
}

/* Premio dinámico de Muncher House */
html[data-business-slug="muncherhouse"] .muncher-prize{color:#FFD052;text-align:center;font-size:18px;font-weight:800;margin:8px auto 16px;max-width:95%;overflow-wrap:anywhere;}
