/* Đ Café Hub · Balderas #39 · propuesta 2: réplica estructural de tienda */
:root {
  --bg: #efefef;
  --ink: #202121;
  --warm: #725f53;
  --cool: #696c71;
  --card: #ffffff;
  --pad: clamp(16px, 3.4vw, 48px);
  --gap: 18px;
  --hdr: 0px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --t: 160ms;
  --shadow: 0 1px 4px rgba(32, 33, 33, .16), 0 0 0 1px rgba(32, 33, 33, .05);
  /* superficies siempre oscuras (ticker, banner, pie) y botón principal */
  --surface: #202121; --on-surface: #efefef; --on-surface-mute: #a3a6ab; --surface-deep: #181919;
  --btn-bg: var(--ink); --btn-fg: var(--bg);
  /* feedback de diseño: botón de acción verde, roll-over rojo, trazo gris unificado */
  --cta: #5cbd6d; --cta-fg: #202121; --hover: #e74859; --line: #a1a1a1; --ctl: 48px; --r: 10px; --rc: 12px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #141515; --ink: #ebe8e5; --card: #1d1e1e; --warm: #a8968a; --cool: #9a9da2;
  --surface: #252626; --on-surface: #efefef; --on-surface-mute: #9a9da2; --surface-deep: #1b1c1c;
  --btn-bg: #e7e2dd; --btn-fg: #1a1b1b;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
  color-scheme: dark;
  --bg: #141515; --ink: #ebe8e5; --card: #1d1e1e; --warm: #a8968a; --cool: #9a9da2;
  --surface: #252626; --on-surface: #efefef; --on-surface-mute: #9a9da2; --surface-deep: #1b1c1c;
  --btn-bg: #e7e2dd; --btn-fg: #1a1b1b;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .07);
  }
}
:root[data-theme="dark"] .card__img img, :root[data-theme="dark"] .bslide__ph img { filter: brightness(.92); }
@media (prefers-reduced-motion: no-preference) {
  .theme-anim, .theme-anim * { transition: background-color 250ms ease, color 250ms ease, border-color 250ms ease, box-shadow 250ms ease !important; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 'Archivo', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 8px; }
.ns { padding: 24px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--ctl); padding: 0 24px; border: 1px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease); }
.btn--ink { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-fg); }
.btn--soft { background: #e2e2e2; border-color: #e2e2e2; color: #4a4d52; }
.btn--bg { background: #efefef; color: #202121; border-color: #efefef; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--hover); border-color: var(--hover); color: #fff; }
}

/* Ticker */
.ticker { display: flex; align-items: center; justify-content: space-between; min-height: 56px; background: var(--surface); color: var(--on-surface); padding: 0 clamp(8px, 2.4vw, 40px); }
.ticker__nav { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; color: var(--on-surface); }
.ticker__msgs { position: relative; flex: 1; height: 56px; }
.ticker__msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 8px; font-weight: 800; font-size: 14px; letter-spacing: .02em; text-transform: uppercase; opacity: 0; visibility: hidden; transition: opacity 250ms var(--ease), visibility 0s linear 250ms; }
.ticker__msg.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }

/* Encabezado */
.hdr { background: var(--bg); border-bottom: 1px solid var(--warm); z-index: 50; }
.hdr__main { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 20px 24px; padding: 20px var(--pad); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 48px; height: 48px; }
.brand__name { display: flex; flex-direction: column; font-weight: 900; font-stretch: 85%; font-size: 21px; line-height: 1; text-transform: uppercase; letter-spacing: -.005em; }
.brand__name small { font-weight: 700; font-stretch: 100%; font-size: 11px; letter-spacing: .1em; margin-top: 4px; }
/* Controles del encabezado: misma forma (cápsula), altura (48 px) y trazo (1 px gris) */
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ctl); padding: 0 20px; border: 1px solid var(--line); border-radius: var(--rc); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease); }
.pill .ico { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .pill:hover { background: var(--hover); border-color: var(--hover); color: #fff; } }
.search { position: relative; justify-self: center; width: 100%; max-width: 870px; }
.search input { width: 100%; height: var(--ctl); padding: 0 56px 0 22px; border: 1px solid var(--line); border-radius: var(--rc); background: var(--card); font-size: 16px; }
.search input::placeholder { color: var(--line); opacity: 1; }
.search input:focus-visible { outline-offset: 0; }
.search button { position: absolute; right: 0; top: 0; width: var(--ctl); height: var(--ctl); border: 0; background: none; color: var(--line); display: flex; align-items: center; justify-content: center; }
.search .ico { width: 22px; height: 22px; stroke-width: 2; }
.acct { display: flex; align-items: center; gap: 20px; }
.acct__who { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; line-height: 1.3; }
.acct__who .ico { width: 32px; height: 32px; stroke-width: 2; }
.acct__who span { display: flex; flex-direction: column; }
.acct__who strong { font-weight: 800; }
/* Interruptor de tema: un icono más, del mismo trazo que el resto del encabezado */
.theme { position: relative; width: var(--ctl); height: var(--ctl); flex: none; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; color: var(--ink); opacity: .72; transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
@media (hover: hover) and (pointer: fine) { .theme:hover { opacity: 1; } }
.theme:active { transform: scale(0.94); }
.theme .ico { position: absolute; width: 24px; height: 24px; transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.theme .ico--moon { opacity: 0; transform: rotate(-40deg) scale(.85); }
:root[data-theme="dark"] .theme .ico--sun { opacity: 0; transform: rotate(40deg) scale(.85); }
:root[data-theme="dark"] .theme .ico--moon { opacity: 1; transform: none; }
.acct__res { position: relative; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.acct__res .ico { width: 34px; height: 34px; stroke-width: 2; }
.acct__badge { position: absolute; top: 0; right: -2px; min-width: 22px; height: 18px; padding: 0 4px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 800; }
.cats { display: flex; justify-content: center; gap: clamp(20px, 3vw, 42px); padding: 0 var(--pad); min-height: 52px; align-items: stretch; border-top: 0; }
.cats a { display: flex; align-items: center; text-decoration: none; font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: border-color var(--t) var(--ease), color var(--t) var(--ease); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .cats a:hover { border-color: var(--hover); color: var(--hover); } }
/* Encabezado fijo: se oculta al bajar y reaparece al subir (en todos los tamaños) */
.hdr { position: sticky; top: 0; transition: transform 260ms var(--ease); }
.hdr.is-hidden { transform: translateY(-100%); }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; column-gap: clamp(4px, 1.4vw, 24px); padding: 28px var(--pad) 0; }
.hero__nav { align-self: center; width: 44px; height: 44px; border: 0; background: none; display: flex; align-items: center; justify-content: center; transition: transform var(--t) var(--ease); }
.hero__nav .ico { width: 28px; height: 28px; stroke-width: 2.4; }
.hero__nav:active { transform: scale(0.92); }
.banner { display: grid; border-radius: 8px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.bslide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.15fr 1fr; min-height: clamp(320px, 34vw, 520px); opacity: 0; visibility: hidden; transition: opacity 400ms var(--ease), visibility 0s linear 400ms; }
.bslide.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.bslide__ph { position: relative; background: var(--warm); }
.bslide__ph img, .bslide__ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* video vertical: llena el cuadro recortando arriba/abajo (encuadre en pantalla y mesa) */
.bslide__ph--vert video { object-fit: cover; object-position: 50% var(--py, 40%); }
.bslide__tx { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: clamp(20px, 4vw, 64px); color: var(--ink); }
.bslide__k { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--warm); }
.bslide__tx h2 { font-weight: 700; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.bslide__tx p:not(.bslide__k) { font-size: clamp(15px, 1.35vw, 20px); max-width: 38ch; }
.dots { grid-column: 2; display: flex; justify-content: center; align-items: center; gap: 2px; padding: 10px 0 0; }
.dots button { position: relative; width: 24px; height: 24px; border: 0; background: none; padding: 0; }
.dots button:not(.dots__pause)::before { content: ''; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--warm); opacity: .45; transition: opacity var(--t) var(--ease), background-color var(--t) var(--ease); }
.dots button[aria-current="true"]::before { opacity: 1; background: var(--ink); }
.dots__pause { margin-left: 10px; display: flex; align-items: center; justify-content: center; }
.dots__pause .ico { width: 16px; height: 16px; }
.hero > .hero__nav--prev { grid-column: 1; grid-row: 1; }
.hero > .banner { grid-column: 2; grid-row: 1; }
.hero > .hero__nav--next { grid-column: 3; grid-row: 1; }
.hero > .dots { grid-row: 2; }

/* Catálogo por carriles */
.catalog { padding: 40px 0 72px; }
.rail { padding: 28px 0 8px; }
.rail__t { padding: 0 var(--pad); margin-bottom: 18px; font-weight: 700; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.1; letter-spacing: -.005em; }
.rail__wrap { position: relative; padding: 0 var(--pad); }
.rail__track { display: flex; gap: var(--gap); justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 12px 22px; margin: 0 -12px; scroll-padding-inline: 12px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__nav { position: absolute; top: 40%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border: 0; background: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.rail__nav .ico { width: 24px; height: 24px; stroke-width: 2.4; }
.rail__nav:active { transform: scale(0.94); }
.rail__nav:disabled { opacity: .3; cursor: default; }
.rail__nav--prev { left: max(2px, calc(var(--pad) - 52px)); }
.rail__nav--next { right: max(2px, calc(var(--pad) - 52px)); }

.card { position: relative; flex: 0 0 calc((100% - 5 * var(--gap)) / 6); min-width: 0; display: flex; flex-direction: column; background: var(--card); border-radius: 4px; box-shadow: var(--shadow); scroll-snap-align: start; transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .card:not(.card--sep):hover { transform: scale(1.035); z-index: 2; box-shadow: 0 10px 28px rgba(32, 33, 33, .2), 0 0 0 1px rgba(32, 33, 33, .05); } }
@media (max-width: 1500px) { .card { flex-basis: calc((100% - 4 * var(--gap)) / 5); } }
@media (max-width: 1280px) { .card { flex-basis: calc((100% - 3 * var(--gap)) / 4); } }
@media (max-width: 1000px) { .card { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 720px) { .card { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 480px) { .card { flex-basis: 78%; } }
.card__img { position: relative; margin: 10px 10px 0; aspect-ratio: 1; overflow: hidden; background: var(--bg); }
.card__img[data-gal] { cursor: zoom-in; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__badge { position: absolute; left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 4px 9px; border-radius: 6px; background: var(--surface); color: var(--on-surface); font-size: 12px; font-weight: 700; letter-spacing: .03em; line-height: 1.2; }
.card__body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 16px 16px 18px; }
.card h3 { display: flex; flex-direction: column; gap: 2px; font-weight: 700; font-size: 20px; line-height: 1.1; letter-spacing: 0; }
.card h3 span { font-weight: 500; font-size: 16px; color: var(--warm); }
.card__brand { font-size: 10px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--warm); opacity: .7; }
/* Detalles ocultos hasta pedir "Ver más detalles": se abren SOBRE la foto, sin cambiar el tamaño de la tarjeta */
.card__det { position: absolute; z-index: 3; top: 10px; left: 10px; width: calc(100% - 20px); aspect-ratio: 1; overflow-y: auto; overscroll-behavior: contain; color: var(--on-surface); background-color: var(--surface);
  background-image: linear-gradient(var(--surface) 30%, transparent), linear-gradient(transparent, var(--surface) 70%), radial-gradient(farthest-side at 50% 0, rgba(239,239,239,.3), transparent), radial-gradient(farthest-side at 50% 100%, rgba(239,239,239,.3), transparent);
  background-position: center top, center bottom, center top, center bottom; background-repeat: no-repeat; background-size: 100% 36px, 100% 36px, 100% 12px, 100% 12px; background-attachment: local, local, scroll, scroll;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms; scrollbar-width: thin; scrollbar-color: var(--on-surface-mute) transparent; }
.card.is-open .card__det { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.card__det-in { padding: 14px 14px 18px; }
.plan { font-size: 13px; line-height: 1.35; }
.plan p { margin-bottom: 8px; }
.plan ul { display: grid; border-top: 1px solid rgba(239, 239, 239, .3); }
.plan li { padding: 5px 0; border-bottom: 1px solid rgba(239, 239, 239, .18); overflow-wrap: anywhere; }

/* Selector de duración (hora / día / mes) */
.seg { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px; margin-top: 4px; }
.seg button { min-height: 40px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; font-size: 14px; font-weight: 500; color: var(--cool); transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease); }
.seg button[aria-checked="true"] { background: #e2e2e2; border-color: #cfcfcf; color: #202121; font-weight: 600; }
:root[data-theme="dark"] .seg button[aria-checked="true"] { background: #34373a; border-color: #4a4d52; color: #efefef; }
@media (hover: hover) and (pointer: fine) { .seg button:hover { border-color: var(--hover); color: var(--hover); } }

/* Tarjeta separadora dentro del carril */
.card--sep { background: var(--surface); color: var(--on-surface); box-shadow: none; justify-content: flex-end; min-height: 260px; }
.sep__in { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; }
.sep__k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-surface-mute); }
.card--sep h3 { display: block; font-size: 26px; }
.card--sep p:not(.sep__k) { font-size: 14px; }
.card__act { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.card__act .btn { width: 100%; }
.card__act .card__link { align-self: center; }
.card__link { min-height: 36px; padding: 0 8px; border: 0; background: none; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color var(--t) var(--ease); }
@media (hover: hover) and (pointer: fine) { .card__link:hover { color: var(--hover); } }
.empty { padding: 48px var(--pad); font-size: 18px; }

/* Pie */
.foot { background: var(--surface); color: var(--on-surface); }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); padding: 48px var(--pad); }
.foot h2 { font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.foot__col li button, .foot__col li a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--on-surface); text-decoration: none; font-size: 15px; text-align: left; overflow-wrap: anywhere; transition: color var(--t) var(--ease); }
@media (hover: hover) and (pointer: fine) { .foot__col li button:hover, .foot__col li a:hover { color: var(--on-surface-mute); } }
.foot__col .btn { margin-bottom: 12px; }
.foot :focus-visible { outline-color: var(--on-surface); }
.foot__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding: 22px var(--pad); border-top: 1px solid var(--warm); font-size: 18px; }
.foot__payt { font-size: 15px; }
.foot__legal { padding: 18px 88px 22px var(--pad); background: var(--surface-deep); font-size: 13px; }
#end { height: 1px; }

/* Flotante y diálogos */
.fab { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cta); color: #fff; box-shadow: 0 2px 8px rgba(32, 33, 33, .3); text-decoration: none; transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease); }
.fab .ico { width: 30px; height: 30px; }
.fab:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .fab:hover { background: var(--hover); color: #fff; } }
.pop { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 32px 28px 28px; border: 0; border-radius: 4px; background: var(--bg); color: var(--ink); box-shadow: 0 12px 40px rgba(32, 33, 33, .35); overflow: auto; }
.pop::backdrop { background: rgba(32, 33, 33, .55); }
.pop[open] { animation: pop-in 200ms var(--ease); }
.pop[open]::backdrop { animation: fade-in 200ms var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade-in { from { opacity: 0; } }
.pop__k { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--warm); margin-bottom: 8px; }
.pop h2 { font-weight: 700; font-size: 26px; line-height: 1.1; margin-bottom: 14px; padding-right: 40px; }
.pop__act { display: grid; gap: 10px; margin-top: 22px; }
.pop .btn { width: 100%; }
.pop__x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; z-index: 2; }
.pop--info p { margin-bottom: 12px; }

/* Galería de fotos de cada espacio */
.gal { width: min(980px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 18px 18px 16px; border: 0; border-radius: 12px; background: var(--card); color: var(--ink); box-shadow: 0 12px 40px rgba(32, 33, 33, .35); overflow: auto; }
.gal::backdrop { background: rgba(20, 21, 21, .72); }
.gal[open] { animation: pop-in 200ms var(--ease); }
.gal[open]::backdrop { animation: fade-in 200ms var(--ease); }
.gal__t { font-weight: 700; font-size: 18px; padding: 0 52px 12px 4px; }
.gal__x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; background: none; z-index: 2; }
.gal__stage { position: relative; display: grid; place-items: center; background: var(--bg); border-radius: 8px; overflow: hidden; }
.gal__stage img { width: 100%; height: auto; max-height: min(66dvh, 640px); object-fit: contain; }
.gal__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border: 0; border-radius: 50%; background: var(--card); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: background-color var(--t) var(--ease), color var(--t) var(--ease), transform var(--t) var(--ease); }
.gal__nav:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .gal__nav:hover { background: var(--hover); color: #fff; } }
.gal__nav--prev { left: 10px; }
.gal__nav--next { right: 10px; }
.gal__thumbs { display: flex; gap: 8px; justify-content: center; padding-top: 12px; flex-wrap: wrap; }
.gal__thumbs button { width: 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: var(--bg); opacity: .6; transition: opacity var(--t) var(--ease), border-color var(--t) var(--ease); }
.gal__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--cta); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.js [data-fade] { opacity: 0; transition: opacity 300ms var(--ease); }
.js [data-fade].is-in { opacity: 1; }

/* Tableta */
@media (max-width: 1200px) {
  .hdr__main { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pill { display: none; }
  .acct__who span { display: none; }
}
@media (max-width: 999px) {
  .hdr__main { grid-template-columns: minmax(0, 1fr) auto; padding-block: 14px 12px; gap: 12px; }
  .search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .hdr { margin-bottom: calc((var(--ctl) + 12px) * (1 - var(--sp, 1))); }
  .hdr.is-sp .search { overflow: hidden; }
  .search { height: calc(var(--ctl) * var(--sp, 1)); opacity: var(--sp, 1); margin-top: calc(-12px * (1 - var(--sp, 1))); transform: translateY(calc(-8px * (1 - var(--sp, 1)))); }
  .hdr.is-anim { transition: transform 260ms var(--ease), margin .32s cubic-bezier(.16, 1, .3, 1); }
  .hdr.is-anim .search { transition: margin .32s cubic-bezier(.16, 1, .3, 1), height .32s cubic-bezier(.16, 1, .3, 1), opacity .24s ease-out, transform .32s cubic-bezier(.16, 1, .3, 1); }
  .cats { justify-content: flex-start; }
  .acct { gap: 12px; }
  .cats { overflow-x: auto; scrollbar-width: none; gap: 24px; }
  .cats::-webkit-scrollbar { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .hero > .banner { grid-column: 1; }
  .hero > .dots { grid-column: 1; }
  .hero__nav { position: absolute; z-index: 3; top: calc(16px + 28vw); margin-top: -22px; background: var(--bg); border-radius: 50%; width: 40px; height: 40px; }
  .hero > .hero__nav--prev { left: calc(var(--pad) + 6px); grid-column: 1; }
  .hero > .hero__nav--next { right: calc(var(--pad) + 6px); grid-column: 1; }
  .bslide { grid-template-columns: 1fr; min-height: 0; }
  .bslide__ph { aspect-ratio: 16 / 9; }  .bslide__tx { padding: 22px 20px 26px; }
  .rail__nav { display: none; }
  .foot__cols { grid-template-columns: 1fr; padding-block: 32px; }
}
@media (max-width: 480px) {
  .ticker__msg { font-size: 12px; }
  .acct__who { display: none; }
  .brand__name { font-size: 18px; }
  .pop { padding: 28px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .hdr, .hdr .search { transition: none !important; }
  .js [data-fade] { opacity: 1; }
}

/* "Ver más detalles" y la carta se abren en ventana; el texto de cada tarjeta queda como fuente, oculto */
.card__det { display: none; }
.gal__thumbs--tall button { width: 44px; height: 72px; }
.gal__thumbs--tall img { object-position: top; }
.det { width: min(1040px, calc(100vw - 24px)); }
.det__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-right: 0; }
.det__info { display: flex; flex-direction: column; gap: 10px; padding: 6px 40px 4px 0; }
.det__k { font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--warm); }
.det__info h2 { font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; }
.det__sub { font-size: 17px; color: var(--warm); margin-bottom: 6px; }
.det__plan { font-size: 15px; line-height: 1.45; margin-bottom: 10px; }
.det__plan p { margin-bottom: 12px; }
.det__plan ul { border-top: 1px solid rgba(128, 128, 128, .3); margin-bottom: 8px; }
.det__plan li { padding: 8px 0; border-bottom: 1px solid rgba(128, 128, 128, .22); }
.det__info .btn { width: 100%; }
@media (max-width: 760px) {
  .det__grid { grid-template-columns: 1fr; gap: 16px; }
  .det__info { padding-right: 0; }
}

/* Carta: las 4 secciones en un solo scroll */
.carta { width: min(620px, calc(100vw - 24px)); height: calc(100dvh - 24px); padding: 0; overflow: hidden; }
.carta[open] { display: flex; flex-direction: column; }
.carta__bar { position: relative; flex: none; padding: 12px 60px 10px 16px; border-bottom: 1px solid rgba(128, 128, 128, .22); background: var(--card); }
.carta__bar .gal__x { top: 4px; right: 4px; }
.carta__t { font-weight: 700; font-size: 18px; padding-bottom: 8px; }
.carta__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.carta__tabs::-webkit-scrollbar { display: none; }
.carta__tabs button { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid #a1a1a1; border-radius: 999px; background: none; color: var(--ink); font: inherit; font-size: 14px; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.carta__tabs button[aria-current="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .carta__tabs button:hover { background: var(--hover); color: #fff; border-color: var(--hover); } }
.carta__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); padding: 12px; }
.carta__sec + .carta__sec { margin-top: 12px; }
.carta__sec img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--card); }

/* Detalles: miniaturas debajo de la foto actual */
.det__media .gal__thumbs[hidden] { display: none; }

/* Membresías: 5 planes visibles a la vez (rejilla). Para volver al carril horizontal, borrar este bloque. */
.mem__sub { padding: 0 var(--pad); margin: -8px 0 6px; font-size: 16px; color: var(--cool); max-width: none; }
.mem .rail__track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); overflow: visible; scroll-snap-type: none; align-items: stretch; }
.mcard { flex: none; padding: 20px 18px 18px; gap: 0; }
.mcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.mcard h3 { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.005em; }
.mcard__tag { padding: 3px 9px; border-radius: 999px; background: var(--cta); color: var(--cta-fg); font-size: 12px; font-weight: 800; line-height: 1.3; white-space: nowrap; }
.mcard__lead { margin-top: 2px; font-size: 14px; color: var(--warm); min-height: 21px; }
.mcard__price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 16px; }
.mcard__price strong { font-size: clamp(32px, 2.5vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.mcard__price span { font-size: 14px; color: var(--cool); }
.mcard__list { display: grid; gap: 14px; padding-top: 16px; border-top: 2px dotted var(--line); margin-bottom: 18px; }
.mcard__list li { display: flex; align-items: center; gap: 12px; }
.mcard__list .ico { box-sizing: content-box; width: 22px; height: 22px; padding: 8px; border-radius: 50%; background: var(--bg); color: var(--warm); }
.mcard__list span { display: flex; flex-direction: column; min-width: 0; }
.mcard__list b { font-size: 19px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.mcard__list small { font-size: 13px; line-height: 1.3; color: var(--cool); }
.mcard__list .is-off { opacity: .55; }
.mcard__list .is-off b { font-weight: 500; font-size: 16px; }
.mcard--fav { box-shadow: 0 0 0 2px var(--ink), 0 8px 22px rgba(32, 33, 33, .14); }
.mcard--black { background: var(--surface); color: var(--on-surface); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.mcard--black .mcard__lead, .mcard--black .mcard__price span, .mcard--black .mcard__list small { color: var(--on-surface-mute); }
.mcard--black .mcard__list .ico { background: rgba(255, 255, 255, .1); color: var(--on-surface); }
.mcard--black .mcard__list { border-top-color: rgba(255, 255, 255, .35); }
.mcard--black .btn--ink { background: var(--cta); border-color: var(--cta); color: var(--cta-fg); }
.mcard--black .card__link { color: var(--on-surface); }
:root[data-theme="dark"] .mcard--fav { box-shadow: 0 0 0 2px var(--cta); }
@media (hover: hover) and (pointer: fine) {
  .mcard--black .btn--ink:hover { background: var(--hover); border-color: var(--hover); color: #fff; }
  .mcard--black .card__link:hover { color: var(--on-surface-mute); }
}
.mem__note { padding: 4px var(--pad) 0; font-size: 14px; color: var(--cool); max-width: none; }
.mem__hint { display: none; }
.mem__det { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .mcard[data-fade].is-in { animation: mrise 520ms var(--ease) backwards; animation-delay: calc(var(--k, 0) * 70ms); }
  @keyframes mrise { from { opacity: 0; transform: translateY(14px); } }
}
/* Detalle en ventana */
.mdet__price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.mdet__list { display: grid; gap: 10px; margin: 0 0 14px; padding-top: 14px; border-top: 2px dotted var(--line); }
.mdet__list li { position: relative; padding-left: 22px; }
.mdet__list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); }
.mdet__note { font-size: 14px; color: var(--cool); }
/* Tableta: 3 + 2 centradas */
@media (max-width: 1240px) {
  .mem .rail__track { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mcard { grid-column: span 2; }
  .mcard:nth-child(4) { grid-column: 2 / 4; }
  .mcard:nth-child(5) { grid-column: 4 / 6; }
}
/* Celular: se desliza, con la siguiente tarjeta asomando */
@media (max-width: 720px) {
  .mem .rail__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .mem .mcard, .mem .mcard:nth-child(n) { flex: 0 0 80%; max-width: 320px; grid-column: auto; }
  .mem__hint { display: block; padding: 0 var(--pad); margin: 0 0 -6px; font-size: 14px; font-weight: 500; color: var(--cool); }
}
/* Black: fondo profundo y filo dorado (claro y oscuro) */
.mcard--black { background: linear-gradient(165deg, #34312d 0%, #0b0b0b 62%); box-shadow: 0 0 0 1.5px #d9b97c, 0 10px 30px rgba(217, 185, 124, .16); }
.mcard--black h3, .mcard--black .mcard__price strong { color: #ecd3a0; }
.mcard--black .mcard__list { border-top-color: rgba(217, 185, 124, .5); }
.mcard--black .mcard__list .ico { background: rgba(217, 185, 124, .16); color: #ecd3a0; }

/* Estado abierto / cerrado en el encabezado */
.open { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0; padding: 2px var(--pad) 8px; color: var(--ink); white-space: nowrap; }
.open__dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); box-shadow: 0 0 0 2.5px rgba(92, 189, 109, .3); }
.open__t { display: flex; align-items: baseline; gap: 6px; line-height: 1.2; }
.open__t b { font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.open__t small { font-size: 12px; color: var(--cool); }
.open.is-closed .open__dot { background: var(--hover); box-shadow: 0 0 0 2.5px rgba(231, 72, 89, .3); }
@media (prefers-reduced-motion: no-preference) {
  .open:not(.is-closed) .open__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cta); animation: open-pulse 2.4s ease-out infinite; }
  @keyframes open-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3); opacity: 0; } }
}
/* Pantallas anchas: a la izquierda de la fila de categorías, sin ocupar altura */
@media (min-width: 1400px) { .hdr .open { position: absolute; right: 0; bottom: 0; height: 52px; padding: 0 var(--pad); } }
@media (max-width: 400px) { .open__t small { font-size: 11px; } .open__t b { font-size: 11px; } }

/* Pie: 5 columnas (Ubicación antes de Horarios) */
.foot__cols { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px clamp(20px, 2.6vw, 48px); }
.foot__hours { display: grid; gap: 10px; }
.foot__hours li { display: flex; flex-direction: column; font-size: 15px; }
.foot__hours span { color: var(--on-surface-mute); font-size: 14px; }
.foot__hours b { font-weight: 700; font-size: 17px; }
.foot__addr { display: flex; align-items: center; min-height: 44px; color: var(--on-surface); font-size: 15px; line-height: 1.4; text-decoration: none; }

.foot__map { position: relative; width: 100%; height: 84px; margin-top: 4px; border-radius: var(--r); overflow: hidden; background: var(--surface-deep); }
.foot__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; filter: grayscale(.25); }
.foot__maplink { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 8px; text-decoration: none; border-radius: inherit; }
.foot__maplink span { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #efefef; color: #202121; font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.foot__maplink .ico { width: 16px; height: 16px; }
.foot__maplink:focus-visible { outline-offset: -3px; }
.foot__brand { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--on-surface); }
.foot__brand img { width: 36px; height: 36px; }
.foot__brand span { display: flex; flex-direction: column; font-weight: 900; font-stretch: 85%; font-size: 16px; line-height: 1; text-transform: uppercase; }
.foot__brand small { font-weight: 700; font-stretch: 100%; font-size: 10px; letter-spacing: .1em; margin-top: 4px; color: var(--on-surface-mute); }
@media (hover: hover) and (pointer: fine) {
  .foot__maplink:hover span { background: var(--hover); color: #fff; }
  .foot__addr:hover { text-decoration: underline; text-underline-offset: 3px; }
}
@media (min-width: 1000px) and (max-width: 1279px) { .foot__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 999px) { .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .foot__cols { grid-template-columns: 1fr; } .foot__map { height: 140px; } }

/* Interruptor coctelería: <html data-cocteleria="on|off"> */
html:not([data-cocteleria="on"]) .x-cocteleria{display:none!important}
html[data-cocteleria="on"] .x-sin-cocteleria{display:none!important}
