/* =============================================================================
   Glow-up (Victor, 2026-09-29): "dale un glowup a todo… animaciones chulísimas".
   Va encima de consumer-dark.css y usa sus mismos colores. Todo lo que se mueve
   respeta "reducir movimiento", y nada depende del movimiento para verse: lo
   que anima parte de su estado final escrito en el HTML.
   ============================================================================= */

/* Lo escondido con el atributo hidden se queda escondido aunque su clase le dé un display. */
[hidden] { display: none !important; }

/* ── Paso suave entre pantallas (Safari 18.2+, Chrome 126+; en los demás, nada) ── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: gl-vt-sale .18s ease-in both; }
::view-transition-new(root) { animation: gl-vt-entra .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes gl-vt-sale { to { opacity: 0; transform: scale(.985); } }
@keyframes gl-vt-entra { from { opacity: 0; transform: translateY(8px); } }
.gl-nav { view-transition-name: gl-nav; }

/* ── Botones: se hunden al tocar y el dorado lleva un brillo que lo cruza ── */
.btn-gold, .btn-ghost { transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
.btn-gold:active, .btn-ghost:active { transform: scale(.96); }
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: ''; position: absolute; inset: -40% auto -40% -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); pointer-events: none; opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-gold::after { animation: gl-brillo 4.5s ease-in-out 1.2s infinite; }
}
@keyframes gl-brillo { 0% { left: -60%; opacity: 0; } 8% { opacity: 1; } 22%, 100% { left: 130%; opacity: 0; } }

/* ── Burbujas de espumoso: el fondo de las cabeceras ── */
.gl-burbujas { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.gl-burbujas span {
  position: absolute; bottom: -12px; left: calc(var(--x) * 1%);
  width: calc(var(--t) * 1px); height: calc(var(--t) * 1px); border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,240,200,.55), rgba(232,182,76,.12) 60%, transparent 70%);
  border: 1px solid rgba(232,182,76,.25); opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .gl-burbujas span { animation: gl-sube calc(var(--d) * 1s) linear calc(var(--r) * 1s) infinite; }
}
@keyframes gl-sube {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: .9; }
  50% { transform: translate(calc(var(--w) * 1px), -120px); }
  100% { transform: translate(0, -260px); opacity: 0; }
}

/* ── La tarjeta de la persona en la portada ── */
.gl-yo {
  position: relative; overflow: hidden; border-radius: 22px; padding: 18px;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in oklab, var(--nivel, var(--gold)) 22%, transparent), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, rgba(155,77,255,.16), transparent 60%),
    linear-gradient(160deg, #1b1520, #0f0d13);
  border: 1px solid color-mix(in oklab, var(--nivel, var(--gold)) 35%, var(--line-hair));
  box-shadow: 0 20px 60px -30px color-mix(in oklab, var(--nivel, var(--gold)) 60%, transparent);
}
.gl-yo > * { position: relative; z-index: 1; }
.gl-yo-fila { display: flex; gap: 16px; align-items: center; }
.gl-yo-hola { color: var(--fg-3); font-size: 13px; letter-spacing: .02em; }
.gl-yo-nombre { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.05; margin: 2px 0 4px;
                overflow-wrap: anywhere; }
.gl-yo-nivel { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--nivel, var(--gold-bright)); }

/* El anillo de nivel: se llena al entrar hasta lo que lleva. */
.gl-anillo { position: relative; width: 92px; height: 92px; flex: 0 0 92px; }
.gl-anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.gl-anillo .fondo { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 7; }
.gl-anillo .lleno {
  fill: none; stroke: url(#gl-anillo-grad); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 264; stroke-dashoffset: calc(264 - 264 * var(--p) / 100);
  filter: drop-shadow(0 0 6px color-mix(in oklab, var(--nivel, var(--gold)) 70%, transparent));
}
@media (prefers-reduced-motion: no-preference) {
  .gl-anillo .lleno { animation: gl-anillo 1.4s cubic-bezier(.2,.8,.2,1) .25s both; }
  .gl-anillo-in { animation: gl-late 3s ease-in-out 1.6s infinite; }
}
@keyframes gl-anillo { from { stroke-dashoffset: 264; } }
@keyframes gl-late { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.gl-anillo-in { position: absolute; inset: 14px; border-radius: 50%; display: flex; flex-direction: column;
                align-items: center; justify-content: center;
                background: radial-gradient(circle at 35% 30%, #2a2230, #120f16);
                box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.gl-anillo-in i { font-size: 18px; color: var(--nivel, var(--gold-bright)); filter: drop-shadow(0 0 8px currentColor); }
.gl-anillo-in b { font-family: var(--cinzel); font-size: 15px; margin-top: 2px; }

/* Las fichas: Glooopies y experiencia. */
.gl-fichas { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.gl-ficha { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px;
            background: rgba(255,255,255,.04); border: 1px solid var(--line-hair); text-decoration: none; color: var(--fg); }
.gl-ficha:active { transform: scale(.97); }
.gl-ficha b { font-family: var(--mono); font-size: 15px; }
.gl-ficha small { color: var(--fg-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.gl-moneda-g { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
               font-size: 13px; color: #1b0e2e; position: relative; overflow: hidden;
               background: radial-gradient(circle at 30% 25%, #e9d7ff, #b794f6 45%, #7c4ddb); box-shadow: 0 0 14px rgba(183,148,246,.45); }
.gl-moneda-x { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #1a1206;
               background: radial-gradient(circle at 30% 25%, #fff1c7, var(--gold-bright) 45%, var(--gold-deep)); box-shadow: 0 0 14px rgba(232,182,76,.4); }
@media (prefers-reduced-motion: no-preference) {
  .gl-moneda-g::after, .gl-moneda-x::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%);
    transform: translateX(-120%); animation: gl-destella 3.8s ease-in-out 1s infinite;
  }
}
@keyframes gl-destella { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* La barra de experiencia, con su reflejo. */
.gl-barra { margin-top: 14px; }
.gl-barra-riel { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; position: relative; }
.gl-barra-riel i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 1%); border-radius: inherit;
                   background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), #fff1c7);
                   box-shadow: 0 0 12px rgba(232,182,76,.6); }
@media (prefers-reduced-motion: no-preference) {
  .gl-barra-riel i { animation: gl-crece 1.3s cubic-bezier(.2,.8,.2,1) .35s both; }
  .gl-barra-riel i::after { content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); background-size: 60px 100%;
    background-repeat: no-repeat; animation: gl-recorre 2.6s ease-in-out 1.8s infinite; }
}
@keyframes gl-crece { from { width: 0; } }
@keyframes gl-recorre { from { background-position: -60px 0; } to { background-position: calc(100% + 60px) 0; } }
.gl-barra-pie { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--fg-3); }
.gl-barra-pie b { color: var(--gold-bright); font-family: var(--mono); font-weight: 500; }

/* ── Retos: lo que tiene a mano, con su progreso ── */
.gl-retos { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none;
            scroll-snap-type: x mandatory; }
.gl-retos::-webkit-scrollbar { display: none; }
.gl-reto { flex: 0 0 min(72%, 240px); scroll-snap-align: start; display: flex; gap: 12px; align-items: center; padding: 14px;
           border-radius: var(--radius-card); background: var(--bg-surface); border: 1px solid var(--line-hair);
           text-decoration: none; color: var(--fg); position: relative; overflow: hidden; }
.gl-reto.hecho { border-color: rgba(74,222,128,.45); }
.gl-reto-anillo { width: 46px; height: 46px; flex: 0 0 46px; position: relative; }
.gl-reto-anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gl-reto-anillo circle { fill: none; stroke-width: 5; }
.gl-reto-anillo .fondo { stroke: rgba(255,255,255,.07); }
.gl-reto-anillo .lleno { stroke: var(--c, var(--gold-bright)); stroke-linecap: round; stroke-dasharray: 113;
                         stroke-dashoffset: calc(113 - 113 * var(--p) / 100); }
@media (prefers-reduced-motion: no-preference) { .gl-reto-anillo .lleno { animation: gl-reto 1.2s cubic-bezier(.2,.8,.2,1) .5s both; } }
@keyframes gl-reto { from { stroke-dashoffset: 113; } }
.gl-reto-anillo i { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c, var(--gold-bright)); font-size: 15px; }
.gl-reto-t { font-size: 14px; font-weight: 600; line-height: 1.2; }
.gl-reto-m { font-size: 12px; color: var(--fg-3); margin-top: 3px; }
.gl-reto-m b { font-family: var(--mono); color: var(--fg-2); font-weight: 500; }

/* ── Portada sin sesión: la bienvenida ── */
.gl-bienvenida { position: relative; overflow: hidden; border-radius: 24px; padding: 30px 22px 24px; text-align: center;
                 background: radial-gradient(100% 90% at 50% 0%, rgba(114,47,55,.45), transparent 70%),
                             linear-gradient(180deg, #17111a, #0c0a0f);
                 border: 1px solid var(--line-gold); }
.gl-bienvenida > * { position: relative; z-index: 1; }
.gl-bienvenida h1 { font-family: var(--serif); font-size: clamp(32px, 9vw, 46px); line-height: 1; margin: 10px 0 8px; font-weight: 600; }
.gl-bienvenida h1 em { color: var(--gold-bright); font-style: italic; }
.gl-bienvenida p { color: var(--fg-2); margin: 0 auto 18px; max-width: 32ch; }
.gl-copa-latido { font-size: 34px; color: var(--gold-bright); filter: drop-shadow(0 0 16px rgba(232,182,76,.6)); display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .gl-copa-latido { animation: gl-brinda 2.8s ease-in-out infinite; } }
@keyframes gl-brinda { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg); } 40% { transform: rotate(8deg); } 55% { transform: rotate(0); } }

/* ── Tarjetas que se inclinan al tocarlas ── */
.gl-inclina { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease; will-change: transform; }
.gl-inclina.moviendo { transition: transform .05s linear; }
.gl-inclina::before { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 0%), rgba(255,255,255,.14), transparent 45%); opacity: 0; transition: opacity .3s; }
.gl-inclina.moviendo::before { opacity: 1; }

/* ── Puntuar un vino de 0 a 100 ── */
.gl-puntua { --p: .5; text-align: center; }
.gl-puntua-num { font-family: var(--mono); font-size: 64px; font-weight: 500; line-height: 1; letter-spacing: -.03em;
                 color: color-mix(in oklab, #b04555, var(--gold-bright) calc(var(--p) * 100%));
                 text-shadow: 0 0 30px color-mix(in oklab, #b04555, var(--gold-bright) calc(var(--p) * 100%)); transition: color .15s; }
.gl-puntua-num small { font-size: 18px; color: var(--fg-4); text-shadow: none; margin-left: 4px; }
.gl-puntua-num.vacio { color: var(--fg-4); text-shadow: none; }
.gl-puntua-eti { font-family: var(--serif); font-style: italic; font-size: 20px; min-height: 28px; margin: 6px 0 16px; color: var(--fg-2); }
.gl-puntua-barra { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; touch-action: pan-y; }
.gl-puntua-barra::-webkit-slider-runnable-track {
  height: 10px; border-radius: 99px;
  background: linear-gradient(90deg, #5a1d27 0%, #8a3240 40%, #c98a3b 75%, var(--gold-bright) 90%, #fff1c7 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.gl-puntua-barra::-moz-range-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, #5a1d27, #8a3240 40%, #c98a3b 75%, var(--gold-bright) 90%, #fff1c7); }
.gl-puntua-barra::-webkit-slider-thumb {
  -webkit-appearance: none; width: 34px; height: 34px; margin-top: -12px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6dc, var(--gold-bright) 50%, var(--gold-deep));
  border: 3px solid #0c0a0f; box-shadow: 0 0 0 2px var(--gold-bright), 0 6px 20px rgba(232,182,76,.55);
  transition: transform .12s ease;
}
.gl-puntua-barra:active::-webkit-slider-thumb { transform: scale(1.18); }
.gl-puntua-barra::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #0c0a0f;
  background: radial-gradient(circle at 35% 30%, #fff6dc, var(--gold-bright) 50%, var(--gold-deep)); box-shadow: 0 0 0 2px var(--gold-bright); }
.gl-puntua-barra:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; border-radius: 12px; }
.gl-puntua .btn-gold { width: 100%; margin-top: 14px; }

/* La media de la comunidad: un aro con la puntuación. */
.gl-media100 { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 8px 16px 8px 8px; border-radius: 999px;
               background: rgba(255,255,255,.04); border: 1px solid var(--line-hair); }
.gl-media100-aro { width: 48px; height: 48px; position: relative; }
.gl-media100-aro svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gl-media100-aro circle { fill: none; stroke-width: 5; }
.gl-media100-aro .fondo { stroke: rgba(255,255,255,.08); }
.gl-media100-aro .lleno { stroke: var(--gold-bright); stroke-linecap: round; stroke-dasharray: 126; stroke-dashoffset: calc(126 - 126 * var(--p) / 100); }
@media (prefers-reduced-motion: no-preference) { .gl-media100-aro .lleno { animation: gl-media 1.3s cubic-bezier(.2,.8,.2,1) .3s both; } }
@keyframes gl-media { from { stroke-dashoffset: 126; } }
.gl-media100-aro b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 14px; }
.gl-media100 span { color: var(--fg-3); font-size: 13px; }

/* ── Estrellas de 1 a 5 ── */
.gl-estrellas { display: inline-flex; gap: 6px; }
.gl-estrellas button { background: none; border: 0; padding: 4px; cursor: pointer; font-size: 30px; line-height: 1;
                       color: #3a3640; transition: color .15s, transform .15s; -webkit-tap-highlight-color: transparent; }
.gl-estrellas button.on { color: var(--gold-bright); text-shadow: 0 0 16px rgba(232,182,76,.55); }
.gl-estrellas button:focus-visible { outline: 2px solid var(--gold-bright); border-radius: 8px; }
@media (hover: hover) { .gl-estrellas:hover button { color: #3a3640; text-shadow: none; }
  .gl-estrellas button:hover, .gl-estrellas button:has(~ button:hover) { color: var(--gold); } }
@media (prefers-reduced-motion: no-preference) { .gl-estrellas button.pop { animation: gl-pop .45s cubic-bezier(.3,1.6,.5,1) calc(var(--i) * 60ms) both; } }
@keyframes gl-pop { 0% { transform: scale(.6) rotate(-20deg); } 60% { transform: scale(1.3) rotate(8deg); } 100% { transform: scale(1); } }
.gl-estrellas-media { color: var(--fg-3); font-size: 13px; margin-top: 4px; }
.gl-estrellas-media b { color: var(--gold-bright); font-family: var(--mono); font-weight: 500; }
.gl-valora-caja { text-align: center; padding: 18px; }

/* ── La fiesta: partículas y lo ganado subiendo ── */
.gl-fiesta { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 90; pointer-events: none; }
.gl-fiesta i { position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--c);
               animation: gl-chispa .9s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes gl-chispa {
  0% { transform: translate(-50%, -50%) rotate(0) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(.4); opacity: 0; }
}
.gl-gana { position: fixed; z-index: 91; pointer-events: none; transform: translate(-50%, -50%); display: flex; gap: 6px;
           animation: gl-gana 1.8s cubic-bezier(.2,.8,.2,1) forwards; }
.gl-gana span { padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-weight: 600; font-size: 15px; white-space: nowrap;
                box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.gl-gana .g { background: #b794f6; color: #1b0e2e; }
.gl-gana .x { background: var(--gold-bright); color: #1a1206; }
@keyframes gl-gana {
  0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); }
  18% { opacity: 1; transform: translate(-50%, -60%) scale(1.08); }
  30% { transform: translate(-50%, -65%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -140%); }
}
.gl-aviso-flota { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translateX(-50%);
                  z-index: 92; padding: 10px 16px; border-radius: 12px; background: #231c29; border: 1px solid var(--line-gold);
                  color: var(--fg); font-size: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.5); max-width: 90vw;
                  animation: gl-flota 2.8s ease forwards; }
@keyframes gl-flota { 0% { opacity: 0; transform: translate(-50%, 10px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* ── Números que cuentan ── */
[data-cuenta] { font-variant-numeric: tabular-nums; }

/* Una puntuación de 0 a 100 en las listas: el número con el color de su nota. */
.gl-nota100 { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 10px; border-radius: 999px;
              background: color-mix(in oklab, color-mix(in oklab, #b04555, var(--gold-bright) calc(var(--p) * 1%)) 16%, transparent);
              border: 1px solid color-mix(in oklab, color-mix(in oklab, #b04555, var(--gold-bright) calc(var(--p) * 1%)) 45%, transparent); }
.gl-nota100 b { font-family: var(--mono); font-size: 14px; color: color-mix(in oklab, #b04555, var(--gold-bright) calc(var(--p) * 1%)); }
.gl-nota100 small { font-size: 11px; color: var(--fg-3); }

/* ── Interruptor ── */
.gl-interruptor { position: relative; width: 50px; height: 30px; flex: 0 0 50px; border-radius: 99px; border: 0; padding: 0; cursor: pointer;
                  background: #2c2833; transition: background .25s; -webkit-tap-highlight-color: transparent; }
.gl-interruptor span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #d9d3c6;
                       box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .28s cubic-bezier(.3,1.4,.5,1), background .25s; }
.gl-interruptor[aria-checked="true"] { background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); box-shadow: 0 0 14px rgba(232,182,76,.4); }
.gl-interruptor[aria-checked="true"] span { transform: translateX(20px); background: #fff8e6; }
.gl-interruptor:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.gl-interruptor:disabled { opacity: .6; }

/* ── El pasaporte ── */
.gl-pas-tapa { position: relative; overflow: hidden; border-radius: 18px 26px 26px 18px; padding: 26px 20px 22px; text-align: center;
               background:
                 repeating-linear-gradient(45deg, rgba(255,255,255,.012) 0 2px, transparent 2px 5px),
                 radial-gradient(120% 90% at 30% 0%, #6b2531, #3a141b 60%, #241015);
               border: 1px solid #5a2029; box-shadow: inset 6px 0 0 rgba(0,0,0,.25), 0 24px 50px -24px rgba(114,47,55,.8); }
.gl-pas-tapa > * { position: relative; z-index: 1; }
.gl-pas-escudo { width: 58px; height: 58px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
                 color: #e9c77a; border: 2px solid rgba(233,199,122,.6); box-shadow: inset 0 0 0 4px rgba(0,0,0,.18), 0 0 20px rgba(233,199,122,.25);
                 text-shadow: 0 1px 0 rgba(0,0,0,.4); }
.gl-pas-marca { font-family: var(--cinzel); letter-spacing: .5em; font-size: 12px; color: #e9c77a; margin-top: 12px; padding-left: .5em; }
.gl-pas-titulo { font-family: var(--serif); font-size: 28px; color: #f3dfaa; margin-top: 2px;
                 text-shadow: 0 1px 0 rgba(0,0,0,.5), 0 0 18px rgba(233,199,122,.25); }
.gl-pas-nombre { color: rgba(243,223,170,.7); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.gl-pas-cuenta { margin-top: 14px; font-family: var(--mono); color: #f3dfaa; font-size: 15px; }
.gl-pas-cuenta b { font-size: 26px; font-weight: 500; }
.gl-pas-cuenta span { font-family: var(--ui); font-size: 12px; color: rgba(243,223,170,.6); margin-left: 4px; }

.gl-sellos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; margin-top: 22px; padding: 18px 12px;
             border-radius: 18px; background:
               repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 28px),
               linear-gradient(180deg, #15131a, #0f0d13);
             border: 1px solid var(--line-hair); }
@media (min-width: 560px) { .gl-sellos { grid-template-columns: repeat(4, 1fr); } }
.gl-sello { background: none; border: 0; padding: 0; color: var(--fg); cursor: pointer; display: flex; flex-direction: column; align-items: center;
            gap: 6px; text-align: center; -webkit-tap-highlight-color: transparent; }
.gl-sello:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; border-radius: 12px; }
.gl-sello-disco { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.gl-sello-disco > i { font-size: 24px; color: var(--fg-4); position: relative; }
.gl-sello-disco svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.gl-sello-disco .fondo { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 3; stroke-dasharray: 4 5; }
.gl-sello-disco .lleno { fill: none; stroke: var(--c); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 239; stroke-dashoffset: calc(239 - 239 * var(--p) / 100);
                         opacity: .85; }
/* Ganado: tinta del color del sello, con doble aro y un poco torcido. */
.gl-sello-tinta { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; transform: rotate(var(--giro));
                  color: var(--c); font-size: 28px;
                  border: 3px solid color-mix(in oklab, var(--c) 85%, transparent);
                  box-shadow: inset 0 0 0 5px color-mix(in oklab, var(--c) 10%, transparent), inset 0 0 0 7px color-mix(in oklab, var(--c) 55%, transparent),
                              0 0 22px color-mix(in oklab, var(--c) 30%, transparent);
                  background: radial-gradient(circle, color-mix(in oklab, var(--c) 16%, transparent), transparent 70%);
                  filter: drop-shadow(0 0 1px color-mix(in oklab, var(--c) 60%, transparent)); }
.gl-sello-tinta i { filter: drop-shadow(0 0 8px color-mix(in oklab, var(--c) 60%, transparent)); }
.gl-sello-veces { position: absolute; right: -2px; top: -2px; background: var(--c); color: #120f16; font-family: var(--mono); font-size: 11px;
                  font-weight: 700; padding: 2px 6px; border-radius: 99px; }
.gl-sello-t { font-size: 13px; font-weight: 600; line-height: 1.2; }
.gl-sello-m { font-size: 11px; color: var(--fg-3); font-family: var(--mono); }
.gl-sello.ganado .gl-sello-m { color: var(--c); }
/* Un sello nuevo no se ve hasta que se estampa. */
@media (prefers-reduced-motion: no-preference) {
  .gl-sello.nuevo .gl-sello-tinta { opacity: 0; }
  .gl-sello.nuevo.estampa .gl-sello-tinta { animation: gl-estampa .55s cubic-bezier(.2,.9,.3,1.2) forwards; }
  .gl-sello.nuevo.estampa .gl-sello-disco { animation: gl-golpe .4s ease .38s; }
}
@keyframes gl-estampa {
  0% { opacity: 0; transform: rotate(calc(var(--giro) - 25deg)) scale(2.4); filter: blur(6px); }
  60% { opacity: 1; transform: rotate(calc(var(--giro) + 3deg)) scale(.92); filter: blur(0); }
  100% { opacity: 1; transform: rotate(var(--giro)) scale(1); }
}
@keyframes gl-golpe { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-2px, 1px); } 50% { transform: translate(2px, -1px); } 75% { transform: translate(-1px, 1px); } }
.gl-sello-grande { width: 96px; height: 96px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; font-size: 34px;
                   color: var(--c); border: 3px solid var(--c); box-shadow: 0 0 30px color-mix(in oklab, var(--c) 35%, transparent); }

/* El aviso de sello nuevo en la portada: late hasta que se abre. */
.gl-sello-aviso { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-card);
                  text-decoration: none; color: var(--fg); position: relative; overflow: hidden;
                  background: linear-gradient(100deg, color-mix(in oklab, var(--c) 22%, #16141b), #16141b 70%);
                  border: 1px solid color-mix(in oklab, var(--c) 55%, transparent); }
.gl-sello-aviso > i { color: var(--c); }
.gl-sello-aviso-i { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; color: var(--c);
                    border: 2px solid var(--c); box-shadow: 0 0 16px color-mix(in oklab, var(--c) 45%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .gl-sello-aviso-i { animation: gl-late-sello 1.6s ease-in-out infinite; }
  .gl-sello-aviso::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%);
                           transform: translateX(-100%); animation: gl-barre 3s ease-in-out 1s infinite; }
}
@keyframes gl-late-sello { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.1) rotate(-6deg); } }
@keyframes gl-barre { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ── Comunidad ── */
.gl-avatar { width: var(--t); height: var(--t); flex: 0 0 var(--t); border-radius: 50%; display: grid; place-items: center; position: relative;
             background: radial-gradient(circle at 35% 30%, #2a2230, #120f16); color: var(--c); font-family: var(--serif);
             font-size: calc(var(--t) * .44); font-weight: 600; box-shadow: 0 0 0 2px var(--c), 0 0 14px color-mix(in oklab, var(--c) 35%, transparent); }
.gl-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.gl-amigos-fila { display: flex; gap: 14px; overflow-x: auto; padding: 16px 2px 6px; scrollbar-width: none; }
.gl-amigos-fila::-webkit-scrollbar { display: none; }
.gl-amigo, .gl-amigo-mas { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--fg-2); flex: 0 0 auto; position: relative; }
.gl-amigo small, .gl-amigo-mas small { font-size: 11px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-amigo-mas span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; color: var(--gold-bright);
                     border: 2px dashed color-mix(in oklab, var(--gold-bright) 60%, transparent); }
.gl-amigo-mas em { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--danger); color: #fff;
                   font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.gl-feed { display: flex; flex-direction: column; gap: 8px; }
.gl-feed-e { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-card); background: var(--bg-surface);
             border: 1px solid var(--line-hair); text-decoration: none; color: var(--fg); transition: border-color .2s, transform .15s; }
.gl-feed-e:active { transform: scale(.985); }
.gl-feed-e:hover { border-color: var(--line-gold); }
.gl-feed-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gl-feed-f { font-size: 14px; line-height: 1.35; color: var(--fg-2); }
.gl-feed-f b { color: var(--fg); font-weight: 600; }
.gl-feed-tienda { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; display: grid; place-items: center; color: var(--gold-bright);
                  background: rgba(232,182,76,.1); border: 1px solid var(--line-gold); }
.gl-feed-foto { width: 52px; height: 52px; flex: 0 0 52px; border-radius: 10px; background-size: cover; background-position: center; }
.gl-feed-sello { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; display: grid; place-items: center; color: var(--c);
                 border: 2px solid var(--c); transform: rotate(-8deg); box-shadow: 0 0 14px color-mix(in oklab, var(--c) 35%, transparent); }

/* ── El cartel de la semana ── */
.gl-cartel-mandos { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.gl-cartel-mandos .gl-pestanas button { border: 0; cursor: pointer; font: inherit; }
.gl-cartel-temas { display: flex; gap: 10px; }
.gl-cartel-temas button { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; border: 2px solid transparent;
                          background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: 0 0 0 1px var(--line-hair); }
.gl-cartel-temas button.on { border-color: var(--gold-bright); box-shadow: 0 0 12px rgba(232,182,76,.5); }
.gl-cartel-marco { margin-top: 14px; display: flex; justify-content: center; }
.gl-cartel-marco canvas { width: 100%; max-width: 440px; height: auto; border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.8);
                          transition: opacity .2s; background: #0b0a0d; }
.gl-cartel-marco canvas.pintando { opacity: .6; }

/* ── Avisos rápidos de la tienda ─────────────────────────────────────────── */
.gl-rapido { padding: 18px 16px 16px; border-radius: var(--radius-card); background:
    radial-gradient(120% 80% at 100% 0%, rgba(212,163,71,.14), transparent 55%), var(--bg-surface);
  border: 1px solid var(--line-hair); }
.gl-rapido-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gl-rapido-t { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0; color: var(--fg); }
.gl-rapido-pips { display: flex; gap: 6px; }
.gl-rapido-pips i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-gold, rgba(212,163,71,.4)); }
.gl-rapido-pips i.on { background: var(--gold-bright); border-color: var(--gold-bright); box-shadow: 0 0 10px rgba(232,182,76,.7); }

.gl-noti-escena { margin: 16px -4px 14px; padding: 22px 12px; border-radius: 18px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, #2a1c30 0%, #3b2319 55%, #16121c 100%); }
.gl-noti-escena::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(60% 50% at 20% 20%, rgba(232,182,76,.35), transparent 70%), radial-gradient(50% 60% at 90% 90%, rgba(181,69,43,.4), transparent 70%); }
.gl-noti { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border-radius: 16px;
  background: rgba(245,240,235,.72); color: #16110d; backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
.gl-noti-app { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.gl-noti-cuerpo { flex: 1; min-width: 0; }
.gl-noti-cab { display: flex; justify-content: space-between; font-size: 12px; color: rgba(22,17,13,.55); text-transform: uppercase; letter-spacing: .04em; }
.gl-noti-titulo { font-weight: 650; font-size: 15px; line-height: 1.25; margin-top: 1px; overflow-wrap: anywhere; }
.gl-noti-texto { font-size: 14px; line-height: 1.3; color: rgba(22,17,13,.82); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.gl-noti-img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .gl-noti.entra { animation: gl-noti-entra .55s cubic-bezier(.2,1.4,.4,1); }
  .gl-noti.vuela { animation: gl-noti-vuela .5s cubic-bezier(.5,0,.8,.3) forwards; }
}
@keyframes gl-noti-entra { from { transform: translateY(-46px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes gl-noti-vuela { 20% { transform: translateY(6px); } to { transform: translateY(-140px) scale(.9); opacity: 0; } }

.gl-rapido-tipos { display: flex; flex-wrap: wrap; gap: 8px; }
.gl-rapido-tipo, .gl-rapido-vino { position: relative; }
.gl-rapido-tipo input, .gl-rapido-vino input { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; }
.gl-rapido-tipo span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-hair); background: rgba(255,255,255,.03); color: var(--fg-2); font-size: 14px; transition: all .18s; }
.gl-rapido-tipo span i { color: var(--fg-4); transition: color .18s; }
.gl-rapido-tipo input:checked + span { border-color: var(--gold-bright); color: var(--fg); background: rgba(212,163,71,.14);
  box-shadow: 0 0 0 3px rgba(212,163,71,.12); }
.gl-rapido-tipo input:checked + span i { color: var(--gold-bright); }
.gl-rapido-tipo input:focus-visible + span, .gl-rapido-vino input:focus-visible + .gl-rapido-botella { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.gl-rapido-panel { margin-top: 12px; }
.gl-rapido-vinos { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x mandatory; }
.gl-rapido-vino { flex: none; width: 78px; cursor: pointer; scroll-snap-align: start; text-align: center; }
.gl-rapido-botella { display: flex; align-items: center; justify-content: center; height: 96px; border-radius: 14px;
  background: #f5efe6; border: 2px solid transparent; transition: transform .2s, border-color .2s; }
.gl-rapido-botella img { max-height: 86px; max-width: 70px; mix-blend-mode: multiply; }
.gl-rapido-botella i { font-size: 28px; color: #a88a5b; }
.gl-rapido-vino input:checked + .gl-rapido-botella { border-color: var(--gold-bright); transform: translateY(-3px); box-shadow: 0 8px 18px -8px rgba(232,182,76,.6); }
.gl-rapido-vino-n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 11px; line-height: 1.25; color: var(--fg-3); margin-top: 5px; }

.gl-rapido-campo { position: relative; margin-bottom: 8px; }
.gl-rapido-campo .gl-input, .gl-rapido-campo .gl-ta { width: 100%; padding-right: 58px; }
.gl-rapido-cuenta { position: absolute; right: 10px; bottom: 9px; font-family: var(--mono); font-size: 11px; color: var(--fg-4); pointer-events: none; }
.gl-rapido-cuenta.casi { color: var(--gold-bright); }
.gl-rapido-envia { width: 100%; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.gl-rapido-envia:disabled { opacity: .45; cursor: default; }

.gl-rapido-hist { margin-top: 14px; border-top: 1px solid var(--line-hair); padding-top: 10px; display: grid; gap: 8px; }
.gl-rapido-hist-f { display: grid; gap: 2px; }
.gl-rapido-hist-t { font-size: 14px; color: var(--fg-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Escáner de botellas ─────────────────────────────────────────────────── */
.gl-esc-cam { margin-top: 14px; border-radius: 22px; aspect-ratio: 4 / 5; max-height: 58vh;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.06); }
.gl-esc-cam::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 70% 38% at 50% 50%, transparent 60%, rgba(6,5,9,.55) 100%); }
.gl-esc-visor { position: absolute; left: 9%; right: 9%; top: 31%; bottom: 31%; z-index: 2; pointer-events: none;
  transition: transform .35s cubic-bezier(.2,1.4,.4,1); }
.gl-esc-visor .e { position: absolute; width: 30px; height: 30px; border: 3px solid var(--gold-bright);
  filter: drop-shadow(0 0 8px rgba(232,182,76,.7)); transition: border-color .2s, filter .2s; }
.gl-esc-visor .tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.gl-esc-visor .tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.gl-esc-visor .bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.gl-esc-visor .br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.gl-esc-laser { position: absolute; left: 4%; right: 4%; top: 50%; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ff5a4f 20%, #ff8a6a 50%, #ff5a4f 80%, transparent);
  box-shadow: 0 0 14px 2px rgba(255,90,79,.65); }
.gl-esc-barras { position: absolute; inset: 22% 16%; display: flex; gap: 5%; align-items: stretch; opacity: .16; }
.gl-esc-barras i { flex: 1; background: #fff; border-radius: 1px; }
.gl-esc-barras i:nth-child(3n) { flex: .4; } .gl-esc-barras i:nth-child(4n+1) { flex: 1.8; } .gl-esc-barras i:nth-child(5n) { flex: .7; }
.gl-scan:has(video) .gl-esc-barras { opacity: 0; transition: opacity .6s; }
@media (prefers-reduced-motion: no-preference) {
  .gl-esc-laser { animation: gl-esc-laser 2.2s ease-in-out infinite; }
  .gl-esc-barras { animation: gl-esc-barras 2.2s ease-in-out infinite; }
}
@keyframes gl-esc-laser { 0%, 100% { top: 12%; opacity: .55; } 50% { top: 86%; opacity: 1; } }
@keyframes gl-esc-barras { 50% { opacity: .26; } }
.gl-esc-cam.leido .gl-esc-visor { transform: scale(.94); }
.gl-esc-cam.leido .gl-esc-visor .e { border-color: #6ee7a8; filter: drop-shadow(0 0 12px rgba(110,231,168,.9)); }
.gl-esc-cam.leido .gl-esc-laser { opacity: 0; animation: none; }
.gl-esc-cam.leido::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: #fff;
  animation: gl-esc-flash .45s ease-out forwards; }
@keyframes gl-esc-flash { from { opacity: .55; } to { opacity: 0; } }

.gl-esc-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.gl-esc-boton { display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; font-size: 14px; padding: 12px 10px; }
.gl-esc-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-4); margin: 22px 0 10px; }
.gl-esc-tira { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.gl-esc-mini { flex: none; width: 76px; text-decoration: none; color: var(--fg-2); scroll-snap-align: start; position: relative; text-align: center; }
.gl-esc-mini-b { display: flex; align-items: center; justify-content: center; width: 76px; height: 96px; border-radius: 14px; background: #f5efe6; }
.gl-esc-mini-b img { max-width: 64px; max-height: 86px; mix-blend-mode: multiply; }
.gl-esc-mini b { position: absolute; top: 6px; right: 6px; background: var(--gold-bright); color: #1b1307; font-size: 11px; padding: 1px 6px; border-radius: 999px; }
.gl-esc-mini-n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; line-height: 1.25; margin-top: 5px; }

/* La hoja que sube desde abajo. */
.gl-hoja { position: fixed; inset: 0; z-index: 80; }
.gl-hoja-fondo { position: absolute; inset: 0; background: rgba(6,5,9,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .28s; }
.gl-hoja-caja { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #1d1a22, var(--bg-canvas, #0e0c12) 60%); border-top: 1px solid rgba(232,182,76,.25);
  box-shadow: 0 -30px 60px -20px rgba(0,0,0,.8); transform: translateY(100%); transition: transform .38s cubic-bezier(.2,.9,.25,1); }
@media (min-width: 640px) { .gl-hoja-caja { left: 50%; right: auto; width: 560px; margin-left: -280px; } }
.gl-hoja.abierta .gl-hoja-fondo { opacity: 1; }
.gl-hoja.abierta .gl-hoja-caja { transform: none; }
.gl-hoja-asa { display: block; width: 42px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.18); margin: 0 auto 14px; cursor: pointer; }
body.con-hoja { overflow: hidden; }

.gl-esc-f-cab { display: flex; gap: 16px; align-items: center; }
.gl-esc-f-botella { flex: none; width: 104px; height: 150px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, #fffaf0, #efe4d2); overflow: hidden; }
.gl-esc-f-botella img { max-width: 92px; max-height: 140px; mix-blend-mode: multiply; }
.gl-esc-f-botella.generica { background: radial-gradient(circle at 50% 30%, rgba(232,182,76,.22), rgba(255,255,255,.03)); }
.gl-esc-f-botella.generica img { mix-blend-mode: normal; }
@media (prefers-reduced-motion: no-preference) {
  .gl-hoja.abierta .gl-esc-f-botella img { animation: gl-esc-sube .6s cubic-bezier(.2,1.3,.4,1) .1s both; }
  .gl-hoja.abierta .gl-esc-vino { animation: gl-esc-entra .3s ease-out both; animation-delay: calc(var(--i) * 35ms); }
}
@keyframes gl-esc-sube { from { transform: translateY(60px) rotate(-6deg); opacity: 0; } }
@keyframes gl-esc-entra { from { transform: translateY(8px); opacity: 0; } }
.gl-esc-f-datos { flex: 1; min-width: 0; }
.gl-esc-f-nombre { font-family: var(--serif); font-size: 26px; line-height: 1.1; margin: 0; color: var(--fg); text-wrap: balance; overflow-wrap: anywhere; }
.gl-esc-f-bodega { color: var(--fg-3); font-size: 14px; margin-top: 4px; }
.gl-esc-f-notas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gl-esc-f-notas .gl-media100 { margin-top: 10px; }
.gl-esc-f-notas .chip { margin-top: 10px; }
.gl-esc-f-sin { color: var(--fg-4); font-size: 13px; margin-top: 10px; }
.gl-esc-f-catas .gl-esc-sub { margin-top: 18px; }
.gl-esc-f-botones { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 18px; }
.gl-esc-f-botones a, .gl-esc-f-botones button { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.gl-esc-codigo { color: var(--gold-bright); font-size: 13px; letter-spacing: .14em; margin-top: 6px; }
.gl-esc-q { width: 100%; margin-top: 14px; }
.gl-esc-res { display: grid; gap: 8px; margin-top: 12px; }
.gl-esc-vino { display: flex; gap: 12px; align-items: center; width: 100%; padding: 8px 12px 8px 8px; border-radius: 16px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-hair); color: var(--fg); font: inherit; transition: border-color .18s, background .18s; }
.gl-esc-vino .gl-esc-mini-b { width: 48px; height: 60px; border-radius: 10px; }
.gl-esc-vino .gl-esc-mini-b img { max-width: 40px; max-height: 54px; }
.gl-esc-check { color: var(--gold-bright); opacity: 0; transform: scale(.5); transition: all .2s cubic-bezier(.2,1.4,.4,1); }
.gl-esc-vino.elegido { border-color: var(--gold-bright); background: rgba(212,163,71,.12); }
.gl-esc-vino.elegido .gl-esc-check { opacity: 1; transform: none; }
.gl-esc-vacio { color: var(--fg-4); text-align: center; padding: 18px 0; font-size: 14px; }

/* La entrada al escáner en la portada: un código de barras que se lee solo. */
.gl-escanea { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-card);
  text-decoration: none; color: var(--fg); border: 1px solid rgba(232,182,76,.28);
  background: linear-gradient(120deg, rgba(232,182,76,.14), rgba(255,255,255,.02) 55%), var(--bg-surface); }
.gl-escanea-codigo { position: relative; flex: none; width: 54px; height: 42px; padding: 6px 7px; border-radius: 10px; background: #f5efe6;
  display: flex; gap: 2px; align-items: stretch; overflow: hidden; }
.gl-escanea-codigo i { flex: 1; background: #1b1307; }
.gl-escanea-codigo i:nth-child(2n) { flex: .45; } .gl-escanea-codigo i:nth-child(3n) { flex: 1.6; }
.gl-escanea-codigo b { position: absolute; left: 3px; right: 3px; top: 50%; height: 2px; background: #ff5a4f; box-shadow: 0 0 8px 1px rgba(255,90,79,.8); }
@media (prefers-reduced-motion: no-preference) { .gl-escanea-codigo b { animation: gl-escanea 2s ease-in-out infinite; } }
@keyframes gl-escanea { 0%, 100% { top: 14%; } 50% { top: 82%; } }
.gl-escanea-t { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.1; }
.gl-escanea-m { display: block; color: var(--fg-3); font-size: 13px; margin-top: 2px; }

/* ── Zona del comercial ──────────────────────────────────────────────────── */
.gl-rapido-foto { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; cursor: pointer; }
.gl-rapido-foto.con i { width: 26px; height: 26px; border-radius: 6px; background: var(--foto) center / cover; }
.gl-rapido-foto.con i::before { content: none; }
.gl-rep-pend { color: var(--gold-bright); }
.gl-rep-pend b { color: var(--gold-bright); }
.gl-cal-d.pasado { opacity: .55; }

.gl-rep-tiendas { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 720px) { .gl-rep-tiendas { grid-template-columns: 1fr 1fr; } }
.gl-rep-tienda { display: grid; gap: 14px; padding: 16px; border-radius: var(--radius-card); border: 1px solid var(--line-hair); overflow: hidden; position: relative; }
.gl-rep-tienda-cab { display: flex; gap: 10px; align-items: flex-start; }
.gl-rep-tienda-n { font-family: var(--serif); font-size: 22px; line-height: 1.1; margin: 0 0 4px; color: var(--fg); overflow-wrap: anywhere; }
.gl-rep-tienda-datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gl-rep-tienda-datos div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.28); }
.gl-rep-tienda-datos b { font-size: 17px; color: var(--gold-bright); font-weight: 600; }
.gl-rep-tienda-datos span { font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .06em; }
.gl-rep-tienda-acc { display: flex; gap: 8px; flex-wrap: wrap; }
.gl-rep-tienda-acc a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; font-size: 13px; padding: 10px; }

.gl-rep-qr { margin: 16px auto 0; max-width: 320px; padding: 22px 20px 18px; border-radius: 26px; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(232,182,76,.22), transparent 60%), var(--bg-surface);
  border: 1px solid rgba(232,182,76,.35); box-shadow: 0 30px 60px -30px rgba(232,182,76,.35); }
.gl-rep-qr-marco { display: inline-block; max-width: 100%; border-radius: 18px; overflow: hidden; line-height: 0; background: #fff; }
.gl-rep-qr-marco canvas, .gl-rep-qr-marco img { display: block; max-width: 100%; height: auto; }
.gl-rep-qr-n { font-family: var(--serif); font-size: 24px; margin-top: 14px; color: var(--fg); }
.gl-rep-qr-t { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); margin-top: 2px; }

.gl-rep-pedidos { display: grid; gap: 10px; }
.gl-rep-pedido { display: grid; gap: 8px; padding: 14px; border-radius: var(--radius-card); background: var(--bg-surface); border: 1px solid var(--line-hair); }
.gl-rep-pedido.esperando { border-color: rgba(232,182,76,.45); box-shadow: 0 0 0 3px rgba(232,182,76,.08); }
.gl-rep-pedido.recogido { opacity: .65; }
.gl-rep-pedido-cab { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.gl-rep-pedido-l { display: grid; gap: 3px; font-size: 14px; color: var(--fg-2); }
.gl-rep-pedido-l b { color: var(--gold-bright); margin-right: 4px; }
.gl-rep-pedido-acc { display: flex; gap: 8px; margin: 2px 0 0; }
.gl-rep-pedido-acc .btn-ghost, .gl-rep-pedido-acc .btn-gold { flex: 1; padding: 9px 10px; }

.gl-invita { text-align: center; padding: 34px 20px 10px; }
.gl-invita-sello { width: 92px; height: 92px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 36px; color: #1b1307;
  background: radial-gradient(circle at 30% 25%, #fff1c7, var(--gold-bright) 50%, var(--gold-deep)); box-shadow: 0 0 40px rgba(232,182,76,.45); }
@media (prefers-reduced-motion: no-preference) { .gl-invita-sello { animation: gl-invita 3s ease-in-out infinite; } }
@keyframes gl-invita { 50% { transform: translateY(-6px) rotate(-4deg); box-shadow: 0 0 60px rgba(232,182,76,.6); } }
.gl-invita h1 { font-family: var(--serif); font-size: 34px; line-height: 1.05; margin: 20px 0 8px; text-wrap: balance; }
.gl-invita p { color: var(--fg-3); max-width: 34ch; margin: 0 auto; }
.gl-invita-cata { display: flex; gap: 12px; align-items: center; margin: 22px auto 0; max-width: 380px; text-align: left; }

/* ── Panel del distribuidor ──────────────────────────────────────────────── */
.gl-dis-sols { display: grid; gap: 10px; }
.gl-dis-sol { display: flex; gap: 14px; padding: 14px; border-radius: var(--radius-card); background: var(--bg-surface); border: 1px solid var(--line-hair); }
.gl-dis-sol.toca { border-color: rgba(232,182,76,.5); background: linear-gradient(120deg, rgba(232,182,76,.1), transparent 60%), var(--bg-surface);
  box-shadow: 0 16px 40px -24px rgba(232,182,76,.5); }
.gl-dis-sol-fecha { flex: none; width: 54px; height: 60px; border-radius: 14px; display: grid; place-content: center; text-align: center;
  background: rgba(0,0,0,.3); border: 1px solid var(--line-hair); }
.gl-dis-sol-fecha b { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--gold-bright); }
.gl-dis-sol-fecha span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.gl-dis-sol-msj { font-family: var(--serif); font-style: italic; color: var(--fg-2); font-size: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .gl-dis-sol.toca .gl-dis-sol-fecha { animation: gl-dis-late 2.4s ease-in-out infinite; }
}
@keyframes gl-dis-late { 50% { box-shadow: 0 0 0 4px rgba(232,182,76,.18); } }
.gl-dis-filtro { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; }
.gl-dis-filtro .gl-filtro { white-space: nowrap; text-decoration: none; }
.gl-dis-reps { display: grid; gap: 10px; margin-top: 16px; }
@media (min-width: 720px) { .gl-dis-reps { grid-template-columns: 1fr 1fr; } }
.gl-dis-rep { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius-card); background: var(--bg-surface); border: 1px solid var(--line-hair);
  text-decoration: none; color: inherit; transition: border-color .18s, transform .18s; }
.gl-dis-rep:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.gl-dis-rep-cab { display: flex; gap: 12px; align-items: center; }
.gl-dis-contacto { border-radius: 12px; background: rgba(0,0,0,.28); }
.gl-dis-contacto summary { display: flex; gap: 10px; align-items: center; padding: 10px 12px; cursor: pointer; list-style: none; color: var(--fg-2); font-size: 14px; }
.gl-dis-contacto summary::-webkit-details-marker { display: none; }
.gl-dis-contacto summary i { color: var(--gold-bright); }
.gl-dis-contacto-f { display: grid; gap: 8px; padding: 0 12px 12px; margin: 0; }
.gl-rep-tienda-datos { min-width: 0; }
.gl-rep-tienda-datos div { min-width: 0; }
.gl-rep-tienda-datos span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-dis-cifras { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gl-dis-cifras div { padding: 8px 7px; }
.gl-dis-cifras span { font-size: 9.5px; letter-spacing: .03em; }

/* ── Analítica de la tienda ──────────────────────────────────────────────── */
.gl-an-periodo { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line-hair); margin: 6px 0 16px; }
.gl-an-periodo a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--fg-3); font-size: 13px; }
.gl-an-periodo a.activo { background: var(--gold-bright); color: #1b1307; font-weight: 600; }
.gl-an-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .gl-an-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gl-an-kpi { position: relative; padding: 14px 14px 12px; border-radius: var(--radius-card); background: var(--bg-surface); border: 1px solid var(--line-hair); }
.gl-an-kpi b { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--fg); font-variant-numeric: tabular-nums; }
.gl-an-kpi span { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.gl-an-kpi em { position: absolute; top: 12px; right: 12px; font-style: normal; font-family: var(--mono); font-size: 12px; color: #6ee7a8; }
.gl-an-caja { margin-top: 14px; padding: 16px; border-radius: var(--radius-card); background: var(--bg-surface); border: 1px solid var(--line-hair); min-width: 0; }
.gl-an-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.gl-an-cab h2 { font-family: var(--serif); font-size: 21px; margin: 0; color: var(--fg); }
.gl-an-vacio { color: var(--fg-4); font-size: 14px; padding: 12px 0; }
.gl-an-dos { display: grid; gap: 0 14px; }
@media (min-width: 760px) { .gl-an-dos { grid-template-columns: 1fr 1fr; } }

.gl-an-grafico { position: relative; }
.gl-an-grafico svg { display: block; width: 100%; height: 160px; overflow: visible; }
.gl-an-max { position: absolute; top: -4px; left: 0; font-size: 11px; color: var(--fg-4); }
.gl-an-x { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--fg-4); }
.gl-an-grafico .eje { stroke: var(--line-hair); stroke-width: 1; }
.gl-an-grafico .guia { stroke: var(--line-hair); stroke-width: 1; stroke-dasharray: 3 5; }
.gl-an-grafico .etq { fill: var(--fg-4); font-family: var(--mono); font-size: 11px; }
.gl-an-grafico .barra path { fill: color-mix(in oklab, var(--gold-bright) 72%, transparent); transition: fill .15s; }
.gl-an-grafico .barra.mejor path { fill: var(--gold-bright); }
.gl-an-grafico .barra .zona { fill: transparent; }
.gl-an-grafico .barra:hover path { fill: #fff1c7; }
@media (prefers-reduced-motion: no-preference) {
  .gl-an-grafico .barra path { transform-origin: 50% 100%; transform-box: fill-box; animation: gl-an-sube .7s cubic-bezier(.2,.9,.3,1.2) both; animation-delay: calc(var(--i) * 18ms); }
}
@keyframes gl-an-sube { from { transform: scaleY(0); } }

.gl-an-reparto { height: 12px; border-radius: 6px; background: color-mix(in oklab, #8fb3ff 70%, transparent); overflow: hidden; }
.gl-an-reparto i { display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--gold-bright); border-right: 2px solid var(--bg-surface); }
.gl-an-leyenda { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--fg-2); }
.gl-an-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }
.gl-an-leyenda i.nuevo { background: var(--gold-bright); }
.gl-an-leyenda i.repite { background: color-mix(in oklab, #8fb3ff 70%, transparent); }
.gl-an-leyenda b { color: var(--fg); font-family: var(--mono); margin-left: 2px; }
.gl-an-filas { display: grid; margin-top: 14px; border-top: 1px solid var(--line-hair); }
.gl-an-filas div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-hair); font-size: 14px; color: var(--fg-2); }
.gl-an-filas b { font-family: var(--mono); color: var(--fg); font-variant-numeric: tabular-nums; }

.gl-an-vinos { display: grid; gap: 12px; }
.gl-an-vino-n { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--fg); }
.gl-an-vino-n span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-an-vino-n b { color: var(--gold-bright); }
.gl-an-vino-b { height: 6px; margin-top: 5px; border-radius: 3px; background: rgba(255,255,255,.05); overflow: hidden; }
.gl-an-vino-b i { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }
@media (prefers-reduced-motion: no-preference) { .gl-an-vino-b i, .gl-an-conv i { animation: gl-an-ancho 1s cubic-bezier(.2,.8,.2,1) .2s both; } }
@keyframes gl-an-ancho { from { width: 0; } }

.gl-an-envios { display: grid; gap: 8px; }
.gl-an-envio { display: grid; grid-template-columns: auto minmax(0, 1fr) 92px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-hair); }
.gl-an-envio:last-child { border-bottom: 0; }
.gl-an-envio-t { display: grid; gap: 2px; min-width: 0; }
.gl-an-envio-t .gl-pass-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-an-conv { display: grid; gap: 3px; text-align: right; }
.gl-an-conv b { font-size: 17px; color: var(--fg); }
.gl-an-conv span { font-size: 11px; color: var(--fg-3); }
.gl-an-conv i { display: block; height: 4px; border-radius: 2px; background: #6ee7a8; width: calc(var(--p) * 1%); justify-self: end; max-width: 100%; }
@media (max-width: 420px) { .gl-an-envio { grid-template-columns: minmax(0, 1fr) 80px; } .gl-an-envio > .chip { display: none; } }

/* Las cifras de la tienda en su cabecera. */
.gl-tienda-cifras { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gl-tienda-cifra { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: var(--fg);
  background: rgba(10,8,12,.55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 13px; }
.gl-tienda-cifra b { font-family: var(--mono); font-weight: 600; }
.gl-tienda-cifra small { color: var(--fg-3); font-size: 12px; }

/* Las filas que entran desde un lado (gl-motion, .gl-desde-der) esperan desplazadas 48 px: mientras no se ven,
   ensanchaban la página y en el móvil todo se veía alejado y con la barra de abajo cortada. clip y no hidden:
   hidden crea un contenedor con scroll y rompe lo que va pegado (sticky). */
.gl-screen { overflow-x: clip; }
