/* Cafetería / Restaurante: demo de Trazo Web Studio (negocio de ejemplo).
   Esta hoja es la de la CAFETERÍA: espresso, leche y un verde pistacho de
   barra de especialidad; estrellas en caramelo. El restaurante cambia solo el
   :root en restaurante/tema.css (bordó, lino y bronce, títulos en serif).
   Por eso los colores van con tokens y los derivados del acento con
   color-mix: un #hex suelto sale igual en las dos versiones.
   Tipografías: Bricolage Grotesque para títulos y etiquetas, Figtree para el
   texto (Young Serif la usa el restaurante).
   Estilos compartidos: header, footer, botones, etiquetas, tarjetas,
   formularios. Lo de cada página vive en su propio .css. */

:root {
  --oscuro: #2B1D16;
  --oscuro-2: #36261D;
  --oscuro-3: #4A3429;
  --acento: #B9CF94;
  --acento-2: #CADCAB;
  --acento-ink: #2B1D16;
  --acento-50: #EEF4E2;
  --estrella: #D6952E;
  --fondo: #F7F2EA;
  --fondo-2: #ECE4D7;
  --ink: #1F1611;
  --ink-2: #4A3C33;
  --muted: #6F6157;
  --muted-dark: #B3A79C;
  --line: #E2D8C9;
  --line-dark: #4A3A30;
  --surface: #FFFFFF;
  --rojo: #B8402A;
  --verde: #3F7A4E;
  --header-bg: color-mix(in srgb, var(--oscuro) 94%, transparent);
  --on-dark-2: #EDE6DC;          /* texto sobre oscuro */
  --on-dark-3: #C9BEB2;          /* texto secundario sobre oscuro */
  --on-dark-4: #9A8D82;          /* lo más tenue sobre oscuro */
  --estrella-off: #D9CFC1;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-label: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --h-weight: 800;
  --label-stretch: 82%;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 26px;
  --pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06), 0 2px 10px rgba(0, 0, 0, .05);
  --shadow: 0 14px 34px rgba(0, 0, 0, .14);
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, .35);
  --max: 1180px;
  --header-h: 70px;
  --t: 200ms cubic-bezier(.4, 0, .2, 1);
  /* El restaurante tiene una sola variante de peso en los títulos: sin
     esto el navegador inventa una negrita falsa. */
  font-synthesis-weight: none;
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip y no hidden: el cajón del menú mobile vive fuera de
   pantalla (translateX 100%) y sumaba ancho; clip no crea contenedor de
   scroll, así el header sticky sigue funcionando. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.02; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 78px); font-weight: var(--h-weight); }
h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: var(--h-weight); }
h3 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
h4 { font-size: 17px; font-weight: 700; letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }

:focus-visible { outline: 3px solid var(--oscuro); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--acento); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Utilidades ---------- */
.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.on-dark { background: var(--oscuro); color: var(--on-dark-2); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--acento); }
.on-dark .eyebrow { color: var(--acento); }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--ink-2); max-width: 60ch; }
.on-dark .lede { color: var(--on-dark-3); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head h2 { margin-top: 12px; }
.section-head .lede { margin-top: 12px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--acento); color: var(--oscuro); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--pill);
  font-weight: 700; font-size: 15.5px; text-decoration: none; border: 2px solid transparent;
  transition: transform var(--t), background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--acento); color: var(--oscuro); }
.btn-primary:hover { background: var(--acento-2); box-shadow: 0 10px 26px color-mix(in srgb, var(--acento) 45%, transparent); }
.btn-dark { background: var(--oscuro); color: #fff; }
.btn-dark:hover { background: var(--oscuro-3); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: rgba(0, 0, 0, .05); }
.on-dark .btn-ghost { color: #fff; }
.on-dark .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
/* 44 px: lo mínimo cómodo para el pulgar. */
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Aviso de demo ---------- */
.demo-ribbon {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--acento); color: var(--oscuro); font-size: 13.5px; line-height: 1.4;
  padding: 8px 48px 8px 16px; position: relative; text-align: center;
}
.demo-ribbon button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; font-size: 20px; line-height: 1;
}
.demo-ribbon button:hover { background: rgba(0, 0, 0, .1); }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  color: #fff; border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t);
}
header.site.scrolled { border-bottom-color: var(--line-dark); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; flex: none; }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acento); color: var(--acento-ink); flex: none; }
.logo-mark svg { width: 24px; height: 24px; }
.logo > span:last-child { font-family: var(--font-display); font-weight: var(--h-weight); font-size: 19px; line-height: 1; letter-spacing: -.01em; }
.logo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--acento); margin-top: 4px; font-stretch: 100%; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav > a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: var(--pill); color: var(--on-dark-2); transition: background var(--t), color var(--t); }
.site-nav > a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.site-nav > a.active { color: var(--acento); }
.nav-mobile-ctas { display: none; }
.header-ctas { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--t), opacity var(--t); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* 1100 y no 900: con "Contanos tu experiencia" (26/09) el menú de
   escritorio ya no entra en una línea por debajo de ~1100px. */
@media (max-width: 1100px) {
  /* backdrop-filter convierte al header en el bloque contenedor de sus hijos
     fixed: el menú desplegable quedaba del alto del header (52px) y se veía
     roto. En celular el header va opaco y sin filtro. */
  header.site { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--oscuro); }
  .nav-toggle { display: flex; }
  .header-ctas { margin-left: auto; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--oscuro); flex-direction: column;
    padding: 20px 24px 32px; gap: 2px; transform: translateX(100%); transition: transform 260ms ease; overflow-y: auto;
  }
  /* El scroll se traba en <html>, no en <body>: como <html> tiene
     overflow-x: clip, un overflow: hidden en body ya no pasa a la ventana y
     convierte al body en contenedor de scroll. El header sticky queda pegado
     a ese body (que no se movió) y salta para arriba, fuera de pantalla: el
     menú se veía con un hueco arriba, sin header, mostrando la página. */
  html.nav-open { overflow: hidden; }
  body.nav-open .site-nav { transform: none; }
  .site-nav > a { font-size: 20px; padding: 14px 8px; border-radius: 10px; border-bottom: 1px solid var(--line-dark); }
  .nav-mobile-ctas { display: grid; gap: 10px; margin-top: 20px; }
}

/* ---------- Etiquetas de tipo de evento ----------
   Las claves son las de CR_TIPOS (eventos-data.js). Cafetería: musica,
   taller, cata, especial, aviso. Restaurante: musica, vinos, menu, especial,
   aviso. Una clave nueva sin regla sale oscura, que también se lee. */
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-label); font-stretch: var(--label-stretch);
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1;
  padding: 6px 10px 5px; border-radius: 6px; background: var(--oscuro); color: #fff; white-space: nowrap;
}
.tag[data-tipo="musica"] { background: var(--acento); color: var(--acento-ink); }
.tag[data-tipo="taller"], .tag[data-tipo="menu"] { background: var(--verde); color: #fff; }
.tag[data-tipo="cata"], .tag[data-tipo="vinos"] { background: var(--rojo); color: #fff; }
.tag[data-tipo="especial"] { background: var(--oscuro-3); color: var(--acento); }
.tag[data-tipo="aviso"] { background: var(--fondo-2); color: var(--ink-2); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pill);
  font-size: 13px; font-weight: 600; background: var(--fondo-2); color: var(--ink-2);
}
.on-dark .chip { background: var(--oscuro-3); color: var(--on-dark-3); }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: 14.5px; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; font: inherit; color: var(--ink); transition: border-color var(--t), box-shadow var(--t);
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--oscuro); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 55%, transparent); }
.field.invalid .input, .field.invalid .select { border-color: var(--rojo); }
.field .error { color: var(--rojo); font-size: 13px; font-weight: 600; display: none; }
.field.invalid .error { display: block; }

/* ---------- Footer ---------- */
footer.site { background: var(--oscuro); color: var(--on-dark-3); padding: 64px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
footer.site h4 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; font-family: var(--font-body); }
footer.site a { text-decoration: none; color: var(--on-dark-2); }
footer.site a:hover { color: var(--acento); }
footer.site li + li { margin-top: 8px; }
.footer-brand p { margin-top: 14px; max-width: 34ch; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--on-dark-4); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Aparición al scrollear ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 300;
  background: var(--oscuro); color: #fff; padding: 12px 20px; border-radius: var(--pill); font-weight: 600; font-size: 14.5px;
  box-shadow: var(--shadow-lg); transition: opacity var(--t), transform var(--t); pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  .header-inner { padding: 0 16px; gap: 12px; }
  .section { padding-block: 64px; }
}

/* ---------- Estrellas (opiniones) ---------- */
.estrellas { display: inline-flex; gap: 1px; line-height: 1; font-size: 15px; vertical-align: middle; }
.estrellas i { font-style: normal; color: var(--estrella-off); }
.estrellas i.on { color: var(--estrella); }
.estrellas i.half { background: linear-gradient(90deg, var(--estrella) 50%, var(--estrella-off) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-dark .estrellas i { color: var(--line-dark); }
.on-dark .estrellas i.on { color: var(--estrella); }
.badge-ej { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: #FFE27A; color: #4A3A00; border-radius: 5px; padding: 2px 7px; vertical-align: middle; }


/* ---------- Carrusel horizontal (mobile-first) ----------
   Se desliza con el dedo; en compu, con la rueda/trackpad o las flechas.
   Uso: <div class="slider"><div class="slide">…</div>…</div>
   El ancho de cada slide lo pone la página (--slide). */
.slider { --slide: 78%; --gap: 12px; --pad: 16px; display: grid; grid-auto-flow: column; grid-auto-columns: var(--slide); gap: var(--gap);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 4px var(--pad) 14px; margin-inline: calc(var(--pad) * -1); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.slider::-webkit-scrollbar { display: none; }
.slider > * { scroll-snap-align: start; min-width: 0; }
@media (min-width: 641px) { .slider { --slide: 300px; --pad: 24px; } }
.slider-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.slider-head h2 { font-size: clamp(24px, 3vw, 34px); }
.slider-head a { font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none; }
.slider-head a:hover { text-decoration: underline; }
.slider-nav { display: none; gap: 6px; }
@media (hover: hover) and (min-width: 900px) { .slider-nav { display: inline-flex; } }
.slider-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--oscuro); font-size: 18px; line-height: 1; }
.slider-nav button:hover { border-color: var(--oscuro); }

/* ---------- Barra de navegación inferior (celular) ----------
   La inyecta demo.js en todas las páginas salvo las que tienen
   <body data-sin-tabbar>. Es lo que se toca con el pulgar. */
.tabbar { display: none; }
@media (max-width: 760px) {
  body.con-tabbar { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--oscuro); border-top: 1px solid var(--line-dark); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 4px 0; color: var(--on-dark-3); text-decoration: none; font-size: 11px; font-weight: 600; }
  .tabbar a svg { width: 22px; height: 22px; }
  /* "Contanos tu experiencia" no entra en una línea: baja a dos, centrado. */
  .tabbar a { align-content: start; }
  .tabbar .tab-txt { text-align: center; line-height: 1.15; }
  /* Que el final del menú desplegable no quede tapado por la barra. */
  body.con-tabbar .site-nav { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .tabbar a[aria-current="page"] { color: var(--acento); }
  .tabbar a.tab-reservar { color: var(--oscuro); }
  .tabbar a.tab-reservar span.tab-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-top: -22px; border-radius: 50%; background: var(--acento); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); border: 3px solid var(--oscuro); }
  .tabbar a.tab-reservar span.tab-txt { color: #fff; }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* Con la barra abajo, el botón del header sobra. */
  .header-ctas .btn-hide-mobile { display: none; }
}

/* ---------- Pie compacto en celular ----------
   Con la barra de abajo, los links de "La casa" repiten lo que ya está a
   un toque: en el celular el pie queda en contacto + panel. */
@media (max-width: 760px) {
  footer.site { padding: 28px 0 18px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:first-child p { display: none; }
  .footer-grid > div:nth-child(2) { display: none; }
  footer.site h4 { margin-bottom: 8px; font-size: 12px; }
  footer.site li + li { margin-top: 4px; }
  .footer-bottom { margin-top: 18px; padding-top: 12px; font-size: 12.5px; }
}
/* El aviso de demo, en una línea en el celular. */
@media (max-width: 640px) {
  .demo-ribbon { font-size: 12px; padding: 6px 40px 6px 12px; }
  .demo-ribbon > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- Cinta de demo: link a la otra versión ---------- */
.demo-ribbon .ribbon-link { font-weight: 800; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .demo-ribbon { justify-content: space-between; text-align: left; }
  .demo-ribbon .ribbon-link { flex: none; }
}

/* ---------- Pie: el bloque de Trazo ---------- */
.footer-trazo { margin-top: 40px; padding: 18px 20px; border-radius: var(--r); background: var(--oscuro-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; color: var(--on-dark-2); }
.footer-trazo strong { color: #fff; }
.footer-trazo ul { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site .footer-trazo li + li { margin-top: 0; }
@media (max-width: 760px) { .footer-trazo { margin-top: 18px; padding: 14px 16px; font-size: 13.5px; } }

/* El menú del celular es oscuro pero no es .on-dark: el botón fantasma
   (Panel del dueño) necesita su color acá. */
.nav-mobile-ctas .btn-ghost { color: #fff; border-color: color-mix(in srgb, #fff 55%, transparent); }
.nav-mobile-ctas .btn-ghost:hover { background: rgba(255, 255, 255, .08); }

/* Las flechas del carrusel van al lado de "Ver…", no flotando en el medio. */
.slider-head .slider-nav { margin-left: auto; }

/* ---------- Cinta de demo: botón del recorrido guiado ---------- */
.demo-ribbon .ribbon-tour {
  position: static; transform: none; width: auto; height: auto; border-radius: var(--pill);
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  background: var(--oscuro); color: #fff; font-size: 12.5px; font-weight: 700; padding: 4px 12px 4px 9px; line-height: 1.3;
  transition: background var(--t), transform var(--t);
}
.demo-ribbon .ribbon-tour:hover { background: var(--oscuro-3); }
.demo-ribbon .ribbon-tour:active { transform: scale(.97); }
.demo-ribbon .ribbon-tour svg { width: 12px; height: 12px; }
@media (max-width: 640px) {
  .demo-ribbon { flex-wrap: wrap; row-gap: 4px; column-gap: 10px; }
  .demo-ribbon > span { flex: 1 1 100%; -webkit-line-clamp: 1; }
  .demo-ribbon .ribbon-tour { font-size: 12px; padding: 3px 10px 3px 8px; }
}

/* ---------- Recorrido guiado ----------
   Tarjeta fija abajo a la derecha (en el celular, arriba de la barra de
   abajo). Se achica a una pastilla para no tapar lo que se está probando. */
.tour {
  position: fixed; z-index: 90; right: 20px; bottom: 20px; width: min(380px, calc(100vw - 24px));
  background: var(--oscuro); color: var(--on-dark-2); border-radius: var(--r-lg); padding: 14px 16px 12px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line-dark);
  animation: tour-in 260ms cubic-bezier(.2, .8, .2, 1);
}
.tour.min { width: auto; padding: 0; background: transparent; border: 0; box-shadow: none; }
@keyframes tour-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tour-top { display: flex; align-items: center; gap: 4px; }
.tour-paso { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--acento); margin-right: auto; }
.tour-ico { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--on-dark-3); display: grid; place-items: center; transition: background var(--t), color var(--t); }
.tour-ico:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.tour-ico svg { width: 18px; height: 18px; }
.tour-bar { height: 4px; border-radius: 4px; background: var(--oscuro-3); margin: 6px 0 12px; overflow: hidden; }
.tour-bar span { display: block; height: 100%; background: var(--acento); border-radius: 4px; transition: width 400ms ease; }
.tour-t { font-family: var(--font-display); font-weight: var(--h-weight); font-size: 19px; line-height: 1.15; color: #fff; letter-spacing: -.01em; }
.tour-p { font-size: 14.5px; line-height: 1.5; margin-top: 6px; color: var(--on-dark-2); }
.tour-acc { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
/* .btn-link vive en panel.css: acá se define entero para que se vea igual en todas las páginas. */
.tour-acc .btn-link { background: transparent; border-color: transparent; color: var(--on-dark-3); padding-inline: 12px; }
.tour-acc .btn-link:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.tour-acc .btn-primary { margin-left: auto; }
.tour :focus-visible { outline-color: var(--acento); }
.tour-pill {
  display: inline-flex; align-items: center; gap: 8px; border: 0; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: var(--pill);
  background: var(--oscuro); color: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); transition: transform var(--t);
}
.tour-pill:hover { transform: translateY(-2px); }
.tour-pill-n { background: var(--acento); color: var(--acento-ink); border-radius: var(--pill); padding: 5px 10px; font-size: 13px; }
/* Invitación del inicio: una pastilla abajo a la izquierda. */
.tour-invita {
  position: fixed; z-index: 85; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 2px;
  background: var(--surface); color: var(--ink); border-radius: var(--pill); padding: 5px 5px 5px 5px; box-shadow: var(--shadow);
  border: 1px solid var(--line); max-width: calc(100vw - 24px);
  animation: tour-in 320ms 600ms cubic-bezier(.2, .8, .2, 1) both;
}
.tour-invita-btn { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; text-align: left; font-size: 14.5px; line-height: 1.3; padding: 2px 6px 2px 0; border-radius: var(--pill); min-height: 44px; }
.tour-invita-btn:hover strong { text-decoration: underline; }
.tour-invita-ico { width: 38px; height: 38px; border-radius: 50%; background: var(--acento); color: var(--acento-ink); display: grid; place-items: center; flex: none; }
.tour-invita-ico svg { width: 16px; height: 16px; margin-left: 2px; }
.tour-invita-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 20px; flex: none; }
.tour-invita-x:hover { background: var(--fondo-2); color: var(--ink); }
@media (max-width: 760px) {
  body.con-tabbar .tour, body.con-tabbar .tour-invita { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .tour { right: 12px; }
  .tour-invita { left: 12px; right: 12px; }
  .tour-invita-btn { flex: 1; }
  .tour-t { font-size: 18px; }
  .tour-p { font-size: 14px; }
}
@media print { .tour, .tour-invita, .tabbar, .demo-ribbon { display: none !important; } }
