/* ==========================================================================
   PLANTILLA 6 — Parrilla Premium (Cabu Menu)
   Diseño inmersivo de una sola página: intro, barra fija, producto del mes,
   ingredientes en capas, recomendada, carta por categorías, hoja de pedido.
   Dark-first parrilla + modo claro. Mobile-first, respeta reduced-motion.
   ========================================================================== */

:root {
  /* Brand (inyectado por partials/brand-colors + x-tenant-theme) */
  --t6-brand: var(--color-primary, #E8590C);
  --t6-brand-rgb: var(--color-primary-rgb, 232, 89, 12);
  --t6-accent: var(--color-accent, #F4A52E);
  --t6-secondary: var(--color-secondary, #3B2415);

  /* Dark theme (default parrilla) */
  --t6-bg: #120D09;
  --t6-bg-2: #1B140D;
  --t6-card: #211913;
  --t6-card-2: #2A2018;
  --t6-ink: #F7EEE1;
  --t6-ink-2: #B9A894;
  --t6-ink-3: #8A7A66;
  --t6-line: rgba(247, 238, 225, .1);
  --t6-sheet: #1B140D;
  --t6-sheet-line: rgba(247, 238, 225, .12);
  --t6-field: rgba(247, 238, 225, .06);
  --t6-ember-glow: rgba(var(--t6-brand-rgb), .35);
  --t6-good: #4CC38A;
  --t6-bad: #E25555;
  --t6-gold: #F4C15D;

  --t6-font-display: var(--font-heading, 'Bebas Neue'), 'Arial Narrow', sans-serif;
  --t6-font-body: var(--font-body, 'Inter'), system-ui, -apple-system, sans-serif;

  --t6-r-lg: 22px;
  --t6-r-md: 16px;
  --t6-r-sm: 12px;
  --t6-barra-h: 60px;
  --t6-cats-h: 52px;
  --t6-shadow: 0 18px 50px rgba(0, 0, 0, .5);
  --t6-ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="light"], body.t6-light {
  --t6-bg: #FAF3EA;
  --t6-bg-2: #F3E9DA;
  --t6-card: #FFFFFF;
  --t6-card-2: #F6EDE0;
  --t6-ink: #241A10;
  --t6-ink-2: #6E5F4C;
  --t6-ink-3: #9A8970;
  --t6-line: rgba(36, 26, 16, .1);
  --t6-sheet: #FFF9F1;
  --t6-sheet-line: rgba(36, 26, 16, .12);
  --t6-field: rgba(36, 26, 16, .05);
  --t6-ember-glow: rgba(var(--t6-brand-rgb), .22);
  --t6-shadow: 0 18px 50px rgba(80, 50, 20, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { height: 100%; }
body.tpl-t6 {
  font-family: var(--t6-font-body);
  background: var(--t6-bg);
  color: var(--t6-ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.tpl-t6::before { /* grano sutil */
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 5px 5px;
}
.tpl-t6 img { max-width: 100%; display: block; }
.tpl-t6 button { font-family: inherit; cursor: pointer; }
.tpl-t6 a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ============================ INTRO ============================ */
.t6-intro {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(120% 90% at 50% 10%, var(--t6-bg-2), var(--t6-bg));
  transition: opacity .5s var(--t6-ease), visibility .5s;
}
.t6-intro.fuera { opacity: 0; visibility: hidden; pointer-events: none; }
.t6-intro-logo {
  width: 108px; height: 108px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--t6-card-2); border: 2px solid rgba(var(--t6-brand-rgb), .5);
  box-shadow: 0 0 0 10px rgba(var(--t6-brand-rgb), .08), 0 0 60px var(--t6-ember-glow);
  animation: t6IntroPop .8s var(--t6-ease) both;
}
.t6-intro-logo img { width: 100%; height: 100%; object-fit: cover; }
.t6-intro-logo i { font-size: 44px; color: var(--t6-brand); }
.t6-intro-nombre {
  font-family: var(--t6-font-display); font-size: clamp(34px, 10vw, 56px);
  letter-spacing: .04em; text-transform: uppercase; color: var(--t6-ink);
  animation: t6IntroUp .7s .15s var(--t6-ease) both; text-align: center; padding: 0 20px;
}
.t6-intro-lema {
  color: var(--t6-ink-2); font-size: 14px; text-align: center; padding: 0 32px;
  animation: t6IntroUp .7s .3s var(--t6-ease) both;
}
@keyframes t6IntroPop { from { transform: scale(.6); opacity: 0 } to { transform: scale(1); opacity: 1 } }
@keyframes t6IntroUp { from { transform: translateY(18px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ============================ BARRA ============================ */
.t6-barra {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: calc(var(--t6-barra-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) 14px 0;
  display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--t6-bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--t6-line);
}
.t6-barra-logo {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--t6-card-2); border: 1px solid rgba(var(--t6-brand-rgb), .4);
}
.t6-barra-logo img { width: 100%; height: 100%; object-fit: cover; }
.t6-barra-logo i { color: var(--t6-brand); font-size: 16px; }
.t6-barra-nombre {
  font-family: var(--t6-font-display); font-size: 20px; letter-spacing: .05em;
  text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.t6-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: rgba(76, 195, 138, .12); color: var(--t6-good);
  border: 1px solid rgba(76, 195, 138, .3); white-space: nowrap;
}
.t6-pill.cerrado { background: rgba(226, 85, 85, .1); color: var(--t6-bad); border-color: rgba(226, 85, 85, .3); }
.t6-pill i { font-size: 7px; }
.t6-barra-esp { flex: 1; }
.t6-icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--t6-line);
  background: var(--t6-card); color: var(--t6-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; position: relative; transition: transform .15s, background .2s;
  text-decoration: none;
}
.t6-icon-btn:active { transform: scale(.9); }
.t6-bolsa { border-color: rgba(var(--t6-brand-rgb), .5); color: var(--t6-brand); }
.t6-bolsa-n {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  border-radius: 999px; background: var(--t6-brand); color: #fff;
  font-size: 10px; font-weight: 800; display: none;
  align-items: center; justify-content: center; padding: 0 5px;
}
.t6-bolsa-n.on { display: inline-flex; }

/* ============================ NAV CATEGORÍAS ============================ */
.t6-cats {
  position: sticky; top: calc(var(--t6-barra-h) + env(safe-area-inset-top, 0px)); z-index: 800;
  background: color-mix(in srgb, var(--t6-bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--t6-line);
}
.t6-cats-fila {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.t6-cats-fila::-webkit-scrollbar { display: none; }
.t6-cat-pill {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--t6-line); background: var(--t6-card); color: var(--t6-ink-2);
  font-family: var(--t6-font-display); font-size: 14px; letter-spacing: .07em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.t6-cat-pill i { font-size: 12px; }
.t6-cat-pill.activa, .t6-cat-pill:active {
  background: var(--t6-brand); border-color: var(--t6-brand); color: #fff;
}

/* ============================ SECCIONES BASE ============================ */
.t6-main { position: relative; z-index: 1; padding-bottom: 110px; }
.t6-sec { padding: 34px 18px 10px; }
.t6-sec-cabeza { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.t6-titulo {
  font-family: var(--t6-font-display); font-size: clamp(30px, 8vw, 44px);
  letter-spacing: .05em; text-transform: uppercase; color: var(--t6-ink); line-height: .95;
}
.t6-titulo::after {
  content: ''; display: block; width: 46px; height: 4px; margin-top: 6px;
  background: linear-gradient(90deg, var(--t6-brand), var(--t6-accent)); border-radius: 4px;
}
.t6-sec-nota { font-size: 13px; color: var(--t6-ink-3); }

/* ============================ HERO / LA DEL MES ============================ */
.t6-mes {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  justify-content: flex-end; overflow: hidden;
  padding: calc(var(--t6-barra-h) + env(safe-area-inset-top, 0px) + 20px) 18px 30px;
}
.t6-mes-fondo {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
}
.t6-mes-fondo video { width: 100%; height: 100%; object-fit: cover; }
.t6-mes-fondo::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,13,9,.55) 0%, rgba(18,13,9,.15) 35%, var(--t6-bg) 96%);
}
.t6-mes-fondo.sin-img {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(var(--t6-brand-rgb), .28), transparent 70%),
    linear-gradient(180deg, var(--t6-bg-2), var(--t6-bg));
}
.t6-mes-foto {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  width: min(74vw, 330px); aspect-ratio: 1; z-index: -1;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.55));
}
.t6-mes-foto img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  animation: t6Flotar 6s ease-in-out infinite;
}
@keyframes t6Flotar { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
.t6-mes-texto { position: relative; text-align: center; }
.t6-mes-gancho {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--t6-accent); margin-bottom: 8px;
}
.t6-mes-nombre {
  font-family: var(--t6-font-display);
  font-size: clamp(52px, 15vw, 110px); line-height: .92; letter-spacing: .02em;
  text-transform: uppercase; color: var(--t6-ink);
  text-shadow: 0 4px 30px rgba(0,0,0,.4); margin-bottom: 10px;
}
.t6-mes-desc {
  max-width: 480px; margin: 0 auto 16px; color: var(--t6-ink-2);
  font-size: 14.5px; line-height: 1.55;
}
.t6-mes-acciones { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.t6-mes-precio {
  font-family: var(--t6-font-display); font-size: 44px; line-height: 1; color: var(--t6-ink);
  display: flex; align-items: baseline; gap: 6px;
}
.t6-mes-precio small { font-size: 20px; color: var(--t6-accent); }
.t6-mes-incluye { font-family: var(--t6-font-body); font-size: 12px; color: var(--t6-ink-2); font-style: normal; letter-spacing: .02em; }
.t6-mes-pie { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.t6-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px; border: none;
  font-family: var(--t6-font-display); font-size: 19px; letter-spacing: .07em; text-transform: uppercase;
  background: linear-gradient(135deg, var(--t6-brand), var(--t6-accent)); color: #fff;
  box-shadow: 0 10px 28px var(--t6-ember-glow);
  transition: transform .15s var(--t6-ease), box-shadow .2s; text-decoration: none;
}
.t6-btn:active { transform: scale(.95); }
.t6-btn.seca {
  background: var(--t6-card); color: var(--t6-ink); border: 1px solid var(--t6-line);
  box-shadow: none; font-size: 16px; padding: 13px 22px;
}
.t6-mes-bajar {
  margin-top: 14px; display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--t6-ink-3); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
}
.t6-mes-bajar i { animation: t6Baja 1.6s ease-in-out infinite; }
@keyframes t6Baja { 0%,100% { transform: translateY(0) } 50% { transform: translateY(6px) } }

/* Reveal genérico */
.t6-rv { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--t6-ease), transform .6s var(--t6-ease); transition-delay: var(--d, 0s); }
.t6-rv.visto { opacity: 1; transform: none; }

/* ============================ POR DENTRO (capas) ============================ */
.t6-dentro { padding: 50px 18px 20px; position: relative; }
.t6-dentro-cabeza { text-align: center; margin-bottom: 8px; }
.t6-dentro-sub { color: var(--t6-ink-3); font-size: 13px; margin-top: 6px; }
.t6-pila { position: relative; max-width: 460px; margin: 26px auto 0; }
.t6-pila-foto {
  position: sticky; top: calc(var(--t6-barra-h) + var(--t6-cats-h) + 14px);
  width: min(58vw, 240px); aspect-ratio: 1; margin: 0 auto; z-index: 2;
  filter: drop-shadow(0 20px 34px rgba(0,0,0,.45));
}
.t6-pila-foto img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid rgba(var(--t6-brand-rgb), .35); }
.t6-capas { display: flex; flex-direction: column; gap: 14px; padding: 24px 0 10px; position: relative; }
.t6-capas::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, rgba(var(--t6-brand-rgb), .35) 12%, rgba(var(--t6-brand-rgb), .35) 88%, transparent);
  transform: translateX(-50%);
}
.t6-capa {
  position: relative; display: flex; align-items: center; gap: 12px; width: 78%;
  opacity: 0; transform: translateY(34px) scale(.94);
  transition: opacity .55s var(--t6-ease), transform .55s var(--t6-ease);
}
.t6-capa.visto { opacity: 1; transform: none; }
.t6-capa:nth-child(odd) { align-self: flex-start; }
.t6-capa:nth-child(even) { align-self: flex-end; flex-direction: row-reverse; text-align: right; }
.t6-capa-punto {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  background: var(--t6-bg); border: 3px solid var(--t6-brand);
  box-shadow: 0 0 0 5px rgba(var(--t6-brand-rgb), .18);
  position: absolute; top: 50%; transform: translateY(-50%);
}
.t6-capa:nth-child(odd) .t6-capa-punto { right: -28px; }
.t6-capa:nth-child(even) .t6-capa-punto { left: -28px; }
.t6-capa-card {
  flex: 1; background: var(--t6-card); border: 1px solid var(--t6-line);
  border-radius: var(--t6-r-md); padding: 12px 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.t6-capa-num {
  font-family: var(--t6-font-display); font-size: 13px; color: var(--t6-accent);
  letter-spacing: .1em; display: block;
}
.t6-capa-t { font-weight: 700; font-size: 15px; color: var(--t6-ink); }
.t6-capa-d { font-size: 12.5px; color: var(--t6-ink-2); }
.t6-capa.star .t6-capa-t { color: var(--t6-gold); }
.t6-capa.star .t6-capa-punto { border-color: var(--t6-gold); box-shadow: 0 0 0 5px rgba(244,193,93,.18); }

/* ============================ RECOMENDADA ============================ */
.t6-reco { padding: 40px 18px 20px; }
.t6-reco-caja {
  position: relative; border-radius: var(--t6-r-lg); overflow: hidden;
  background: var(--t6-card); border: 1px solid var(--t6-line);
  max-width: 560px; margin: 0 auto; box-shadow: var(--t6-shadow);
}
.t6-reco-media { position: relative; aspect-ratio: 4/3.4; overflow: hidden; }
.t6-reco-media img, .t6-reco-media video { width: 100%; height: 100%; object-fit: cover; }
.t6-reco-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, var(--t6-card) 100%);
}
.t6-reco-sello {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(18,13,9,.75); backdrop-filter: blur(6px);
  color: var(--t6-gold); font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px;
}
.t6-reco-cuerpo { padding: 4px 20px 22px; text-align: center; position: relative; }
.t6-reco-gancho { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--t6-accent); margin-bottom: 6px; }
.t6-reco-nombre { font-family: var(--t6-font-display); font-size: clamp(34px, 9vw, 52px); letter-spacing: .03em; text-transform: uppercase; line-height: .95; margin-bottom: 8px; }
.t6-reco-desc { color: var(--t6-ink-2); font-size: 14px; line-height: 1.55; max-width: 420px; margin: 0 auto 16px; }
.t6-reco-acciones { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.t6-reco-precio { font-family: var(--t6-font-display); font-size: 34px; color: var(--t6-ink); }
.t6-reco-precio small { font-size: 16px; color: var(--t6-accent); }

/* ============================ BANNERS / PROMO ============================ */
.t6-banners { padding: 26px 18px 6px; }
.t6-banner {
  position: relative; border-radius: var(--t6-r-lg); overflow: hidden;
  min-height: 130px; display: flex; align-items: flex-end;
  background: linear-gradient(140deg, var(--t6-card-2), var(--t6-secondary));
  border: 1px solid var(--t6-line); margin-bottom: 14px;
}
.t6-banner img.fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.t6-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(10,7,4,.82)); }
.t6-banner-cuerpo { position: relative; z-index: 2; padding: 18px; color: #fff; width: 100%; }
.t6-banner-tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--t6-brand); padding: 5px 11px; border-radius: 999px; margin-bottom: 8px; }
.t6-banner-t { font-family: var(--t6-font-display); font-size: 26px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.t6-banner-d { font-size: 13px; opacity: .85; margin-top: 4px; }
.t6-banner-cta { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 13px; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.t6-banner-puntos { display: flex; gap: 6px; justify-content: center; margin-top: -4px; margin-bottom: 14px; }
.t6-banner-punto { width: 7px; height: 7px; border-radius: 50%; background: var(--t6-ink-3); opacity: .4; border: none; }
.t6-banner-punto.on { opacity: 1; background: var(--t6-brand); }

/* ============================ CARTA ============================ */
.t6-carta { padding-top: 20px; }
.t6-grupo { padding: 26px 18px 6px; scroll-margin-top: calc(var(--t6-barra-h) + var(--t6-cats-h) + env(safe-area-inset-top, 0px) + 8px); }
.t6-grupo-nota { font-size: 12.5px; color: var(--t6-ink-3); margin-top: -12px; margin-bottom: 16px; }
.t6-lista { display: grid; grid-template-columns: 1fr; gap: 14px; }

.t6-plato {
  position: relative; display: flex; gap: 14px; align-items: center;
  background: var(--t6-card); border: 1px solid var(--t6-line);
  border-radius: var(--t6-r-lg); padding: 12px;
  cursor: pointer; transition: transform .18s var(--t6-ease), border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent; text-align: left; width: 100%; color: inherit;
}
.t6-plato:active { transform: scale(.985); }
.t6-plato:hover { border-color: rgba(var(--t6-brand-rgb), .4); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.t6-plato-foto {
  width: 96px; height: 96px; border-radius: var(--t6-r-md); overflow: hidden; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, var(--t6-card-2), var(--t6-bg-2));
  display: flex; align-items: center; justify-content: center; position: relative;
}
.t6-plato-foto img { width: 100%; height: 100%; object-fit: cover; }
.t6-plato-foto i { color: var(--t6-ink-3); font-size: 26px; }
.t6-plato-foto .sello {
  position: absolute; left: 6px; bottom: 6px; font-size: 9px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; background: rgba(18,13,9,.8);
  color: var(--t6-gold); padding: 3px 8px; border-radius: 999px;
}
.t6-plato-info { flex: 1; min-width: 0; }
.t6-plato-nombre {
  font-family: var(--t6-font-display); font-size: 21px; letter-spacing: .03em;
  text-transform: uppercase; color: var(--t6-ink); line-height: 1;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.t6-plato-desc {
  font-size: 12.5px; color: var(--t6-ink-2); line-height: 1.45; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.t6-plato-pie { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.t6-plato-precio { font-family: var(--t6-font-display); font-size: 20px; color: var(--t6-ink); }
.t6-plato-precio s { font-family: var(--t6-font-body); font-size: 12px; color: var(--t6-ink-3); margin-right: 6px; font-weight: 400; }
.t6-plato-add {
  width: 34px; height: 34px; border-radius: 50%; border: none; flex-shrink: 0;
  background: var(--t6-brand); color: #fff; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px var(--t6-ember-glow); transition: transform .15s;
}
.t6-plato-add:active { transform: scale(.85); }
.t6-plato.agotado { opacity: .62; }
.t6-plato-agotado {
  position: absolute; top: 10px; right: 10px; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--t6-bad);
  background: rgba(226,85,85,.12); border: 1px solid rgba(226,85,85,.3);
  padding: 4px 9px; border-radius: 999px;
}
.t6-plato .fav {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: rgba(0,0,0,.28); color: #fff; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
.t6-plato .fav.on { color: #ff5f7a; }
.t6-plato.agotado .fav { right: auto; left: 10px; top: 10px; }

@media (min-width: 640px) {
  .t6-lista { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .t6-lista { grid-template-columns: 1fr 1fr 1fr; }
  .t6-sec, .t6-grupo, .t6-reco, .t6-dentro, .t6-banners { padding-left: 0; padding-right: 0; max-width: 1100px; margin-left: auto; margin-right: auto; }
  .t6-mes { padding-left: 0; padding-right: 0; }
}

/* ============================ PIE ============================ */
.t6-pie {
  margin-top: 46px; padding: 34px 22px 40px;
  background: var(--t6-bg-2); border-top: 1px solid var(--t6-line);
  text-align: center; position: relative; z-index: 1;
}
.t6-pie-logo { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; background: var(--t6-card-2); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(var(--t6-brand-rgb), .4); }
.t6-pie-logo img { width: 100%; height: 100%; object-fit: cover; }
.t6-pie-logo i { color: var(--t6-brand); font-size: 24px; }
.t6-pie-nombre { font-family: var(--t6-font-display); font-size: 30px; letter-spacing: .05em; text-transform: uppercase; }
.t6-pie-lema { color: var(--t6-ink-2); font-size: 13px; margin-top: 4px; }
.t6-pie-info { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; color: var(--t6-ink-2); font-size: 13.5px; }
.t6-pie-info i { color: var(--t6-brand); width: 18px; }
.t6-pie-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.t6-pie-links a, .t6-pie-links button {
  font-size: 12.5px; font-weight: 600; color: var(--t6-ink-2); text-decoration: none;
  border: 1px solid var(--t6-line); background: var(--t6-card); padding: 9px 15px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px;
}
.t6-pie-social { margin-top: 18px; display: flex; gap: 12px; justify-content: center; }
.t6-pie-social a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--t6-card); border: 1px solid var(--t6-line); color: var(--t6-ink-2); font-size: 16px; text-decoration: none;
}
.t6-pie-copy { margin-top: 22px; font-size: 11.5px; color: var(--t6-ink-3); }

/* ============================ BARRA PEDIDO ============================ */
.t6-barra-pedido {
  position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 850; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--t6-brand), color-mix(in srgb, var(--t6-brand) 72%, #000));
  color: #fff; border: none; border-radius: 999px; padding: 8px 8px 8px 20px;
  box-shadow: 0 14px 40px var(--t6-ember-glow);
  transform: translateY(140%); transition: transform .35s var(--t6-ease);
}
.t6-barra-pedido.on { transform: none; }
.t6-barra-pedido-info { flex: 1; min-width: 0; text-align: left; }
.t6-barra-pedido-n { font-size: 11.5px; opacity: .85; font-weight: 600; }
.t6-barra-pedido-total { font-family: var(--t6-font-display); font-size: 21px; letter-spacing: .04em; }
.t6-barra-pedido-btn {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--t6-brand);
  border: none; border-radius: 999px; padding: 12px 20px;
  font-family: var(--t6-font-display); font-size: 17px; letter-spacing: .06em; text-transform: uppercase;
}

/* ============================ VELO + HOJAS ============================ */
.t6-velo {
  position: fixed; inset: 0; z-index: 9000; background: rgba(8, 5, 3, .6);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.t6-velo.on { opacity: 1; visibility: visible; }
.t6-hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9001;
  max-height: 92svh; background: var(--t6-sheet); color: var(--t6-ink);
  border-radius: 26px 26px 0 0; border-top: 1px solid var(--t6-sheet-line);
  transform: translateY(105%); transition: transform .38s var(--t6-ease);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
.t6-hoja.on { transform: none; }
.t6-hoja-asa { width: 44px; height: 5px; border-radius: 5px; background: var(--t6-sheet-line); margin: 10px auto 4px; flex-shrink: 0; }
.t6-hoja-cabeza { display: flex; align-items: center; gap: 12px; padding: 8px 18px 12px; flex-shrink: 0; }
.t6-hoja-titulo { font-family: var(--t6-font-display); font-size: 26px; letter-spacing: .05em; text-transform: uppercase; flex: 1; }
.t6-hoja-cerrar {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--t6-sheet-line);
  background: var(--t6-field); color: var(--t6-ink-2); font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.t6-hoja-cuerpo { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 18px calc(20px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 768px) {
  .t6-hoja { left: 50%; right: auto; width: min(560px, 94vw); transform: translate(-50%, 105%); border-radius: 26px; bottom: 4vh; max-height: 88vh; }
  .t6-hoja.on { transform: translate(-50%, 0); }
}

/* ---- Hoja pedido (carrito) ---- */
.t6-ped-vacio { text-align: center; padding: 36px 10px; color: var(--t6-ink-2); }
.t6-ped-vacio i { font-size: 34px; display: block; margin-bottom: 10px; opacity: .4; }
.t6-ped-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--t6-sheet-line); }
.t6-ped-item img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.t6-ped-item-img-ph { width: 52px; height: 52px; border-radius: 12px; background: var(--t6-field); display: flex; align-items: center; justify-content: center; color: var(--t6-ink-3); flex-shrink: 0; }
.t6-ped-item-info { flex: 1; min-width: 0; }
.t6-ped-item-n { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t6-ped-item-m { font-size: 12px; color: var(--t6-ink-2); }
.t6-ped-item-extras { font-size: 11.5px; color: var(--t6-ink-3); margin-top: 2px; }
.t6-ped-item-blocked { font-size: 11px; color: var(--t6-bad); font-weight: 700; }
.t6-ped-qty { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.t6-ped-qty button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--t6-sheet-line);
  background: var(--t6-field); color: var(--t6-ink); font-size: 11px;
}
.t6-ped-qty span { font-weight: 800; font-size: 14px; min-width: 18px; text-align: center; }
.t6-ped-item-p { font-weight: 800; font-size: 14px; color: var(--t6-brand); min-width: 62px; text-align: right; flex-shrink: 0; }
.t6-ped-item-x { border: none; background: none; color: var(--t6-bad); font-size: 13px; width: 28px; height: 28px; flex-shrink: 0; }
.t6-ped-vaciar { border: none; background: none; color: var(--t6-ink-3); font-size: 12.5px; font-weight: 600; padding: 8px 0; display: inline-flex; gap: 6px; align-items: center; }
.t6-ped-resumen { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.t6-ped-fila { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--t6-ink-2); }
.t6-ped-fila.total { font-family: var(--t6-font-display); font-size: 24px; color: var(--t6-ink); letter-spacing: .04em; border-top: 1px dashed var(--t6-sheet-line); padding-top: 10px; margin-top: 4px; }
.t6-hoja-pie { padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--t6-sheet-line); flex-shrink: 0; }
.t6-hoja-pie .t6-btn { width: 100%; justify-content: center; }
.t6-upsell-t { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--t6-ink-3); margin: 16px 0 8px; }
.t6-upsell-lista { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.t6-upsell-lista::-webkit-scrollbar { display: none; }
.t6-upsell-item { flex-shrink: 0; width: 128px; background: var(--t6-card); border: 1px solid var(--t6-line); border-radius: 14px; padding: 8px; text-align: left; color: inherit; }
.t6-upsell-item img { width: 100%; height: 74px; object-fit: cover; border-radius: 9px; }
.t6-upsell-item-n { font-size: 12px; font-weight: 700; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t6-upsell-item-p { font-size: 12px; color: var(--t6-brand); font-weight: 800; }

/* ---- Vitrina (detalle producto) ---- */
.t6-vitrina-foto { position: relative; margin: -4px -18px 0; aspect-ratio: 1/0.82; overflow: hidden; background: radial-gradient(circle at 50% 38%, var(--t6-card-2), var(--t6-bg-2)); }
.t6-vitrina-foto img { width: 100%; height: 100%; object-fit: cover; }
.t6-vitrina-foto .vacio { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--t6-ink-3); font-size: 46px; }
.t6-vitrina-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--t6-sheet)); }
.t6-vitrina-sello { position: absolute; top: 12px; left: 14px; z-index: 2; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: rgba(18,13,9,.78); color: var(--t6-gold); padding: 6px 11px; border-radius: 999px; }
.t6-vit-nombre { font-family: var(--t6-font-display); font-size: 34px; letter-spacing: .03em; text-transform: uppercase; line-height: .95; margin-top: 12px; }
.t6-vit-meta { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 12.5px; color: var(--t6-ink-2); flex-wrap: wrap; }
.t6-vit-meta .est { color: var(--t6-gold); }
.t6-vit-desc { font-size: 14px; color: var(--t6-ink-2); line-height: 1.55; margin-top: 10px; }
.t6-vit-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.t6-chip {
  font-size: 12px; font-weight: 600; color: var(--t6-ink-2);
  background: var(--t6-field); border: 1px solid var(--t6-sheet-line);
  padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.t6-chip i { font-size: 10px; color: var(--t6-brand); }
.t6-vit-sec { margin-top: 20px; }
.t6-vit-label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--t6-ink-3); margin-bottom: 10px; }
.t6-sizes { display: flex; gap: 9px; }
.t6-size {
  flex: 1; border: 1.5px solid var(--t6-sheet-line); background: var(--t6-field); color: var(--t6-ink);
  border-radius: 14px; padding: 10px 6px; text-align: center;
}
.t6-size b { display: block; font-family: var(--t6-font-display); font-size: 19px; letter-spacing: .05em; }
.t6-size span { font-size: 11.5px; color: var(--t6-ink-2); }
.t6-size.on { border-color: var(--t6-brand); background: rgba(var(--t6-brand-rgb), .12); }
.t6-opc { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid var(--t6-sheet-line); border-radius: 14px; margin-bottom: 8px; background: var(--t6-field); cursor: pointer; }
.t6-opc input { accent-color: var(--t6-brand); width: 17px; height: 17px; flex-shrink: 0; }
.t6-opc-t { flex: 1; font-size: 13.5px; font-weight: 600; }
.t6-opc-p { font-size: 12.5px; font-weight: 800; color: var(--t6-brand); }
.t6-opc .mini-qty { display: flex; align-items: center; gap: 7px; }
.t6-opc .mini-qty button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--t6-sheet-line); background: var(--t6-card); color: var(--t6-ink); font-size: 10px; }
.t6-obs { width: 100%; border: 1px solid var(--t6-sheet-line); background: var(--t6-field); color: var(--t6-ink); border-radius: 14px; padding: 12px 14px; font-family: inherit; font-size: 14px; resize: vertical; min-height: 64px; }
.t6-obs-opts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.t6-obs-opt { font-size: 12px; border: 1px solid var(--t6-sheet-line); background: var(--t6-field); color: var(--t6-ink-2); border-radius: 999px; padding: 6px 12px; }
.t6-vit-pie { display: flex; align-items: center; gap: 12px; padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--t6-sheet-line); flex-shrink: 0; }
.t6-vit-qty { display: flex; align-items: center; gap: 12px; border: 1px solid var(--t6-sheet-line); border-radius: 999px; padding: 6px 12px; }
.t6-vit-qty button { width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--t6-field); color: var(--t6-ink); font-size: 13px; }
.t6-vit-qty b { min-width: 20px; text-align: center; font-size: 16px; }
.t6-vit-add { flex: 1; justify-content: center; }
.t6-vit-add s { opacity: .7; font-size: 13px; font-family: var(--t6-font-body); letter-spacing: 0; text-transform: none; }
.t6-vit-nav { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 3; }
.t6-vit-nav button { width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(18,13,9,.6); color: #fff; backdrop-filter: blur(6px); font-size: 13px; }
.t6-agotado-aviso { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(226,85,85,.1); border: 1px solid rgba(226,85,85,.3); color: var(--t6-bad); font-size: 13.5px; font-weight: 600; display: flex; gap: 9px; align-items: center; }
.t6-recs-h { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.t6-recs-h::-webkit-scrollbar { display: none; }
.t6-rec-card { flex-shrink: 0; width: 140px; border: 1px solid var(--t6-sheet-line); border-radius: 14px; overflow: hidden; background: var(--t6-card); text-align: left; color: inherit; }
.t6-rec-card img { width: 100%; height: 84px; object-fit: cover; }
.t6-rec-card .ph { width: 100%; height: 84px; display: flex; align-items: center; justify-content: center; background: var(--t6-field); color: var(--t6-ink-3); }
.t6-rec-card-b { padding: 8px 10px; }
.t6-rec-card-n { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t6-rec-card-p { font-size: 12px; font-weight: 800; color: var(--t6-brand); margin-top: 2px; }

/* ============================ TOAST ============================ */
.t6-toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 9500; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.t6-toast { background: var(--t6-ink); color: var(--t6-bg); font-size: 13.5px; font-weight: 600; padding: 11px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: t6Toast .3s var(--t6-ease); display: flex; gap: 8px; align-items: center; }
@keyframes t6Toast { from { transform: translateY(14px); opacity: 0 } to { transform: none; opacity: 1 } }

/* ============================ PÁGINAS SECUNDARIAS ============================ */
.t6-pag { min-height: 100svh; background: var(--t6-bg); color: var(--t6-ink); padding-bottom: 60px; }
.t6-pag-cabeza {
  position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 16px 12px;
  background: color-mix(in srgb, var(--t6-bg) 85%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--t6-line);
}
.t6-pag-titulo { font-family: var(--t6-font-display); font-size: 22px; letter-spacing: .05em; text-transform: uppercase; flex: 1; }
.t6-pag-cuerpo { max-width: 640px; margin: 0 auto; padding: 22px 18px; }
.t6-pag-h { font-family: var(--t6-font-display); font-size: 32px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.t6-pag-sub { color: var(--t6-ink-2); font-size: 14px; margin-bottom: 22px; }
.t6-card {
  background: var(--t6-card); border: 1px solid var(--t6-line); border-radius: var(--t6-r-lg);
  padding: 18px; margin-bottom: 14px;
}
.t6-field { display: block; margin-bottom: 14px; }
.t6-field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--t6-ink); }
.t6-field > span em { color: var(--t6-brand); font-style: normal; }
.t6-field input, .t6-field select, .t6-field textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px; font-family: inherit; font-size: 15px;
  border: 1px solid var(--t6-sheet-line); background: var(--t6-field); color: var(--t6-ink);
}
.t6-field textarea { resize: vertical; min-height: 74px; }
.t6-field-error { font-size: 12px; color: var(--t6-bad); margin-top: 5px; font-weight: 600; }
.t6-tipos { display: flex; gap: 9px; }
.t6-tipo { flex: 1; }
.t6-tipo input { position: absolute; opacity: 0; }
.t6-tipo div {
  border: 1.5px solid var(--t6-sheet-line); border-radius: 14px; padding: 12px 6px;
  text-align: center; font-size: 12.5px; font-weight: 700; color: var(--t6-ink-2);
  display: flex; flex-direction: column; gap: 5px; align-items: center; cursor: pointer;
}
.t6-tipo div i { font-size: 17px; }
.t6-tipo input:checked + div { border-color: var(--t6-brand); background: rgba(var(--t6-brand-rgb), .1); color: var(--t6-ink); }
.t6-alert { padding: 13px 16px; border-radius: 14px; font-size: 14px; margin-bottom: 16px; display: flex; gap: 10px; align-items: flex-start; }
.t6-alert.ok { background: rgba(76,195,138,.1); border: 1px solid rgba(76,195,138,.3); color: var(--t6-good); }
.t6-alert.err { background: rgba(226,85,85,.1); border: 1px solid rgba(226,85,85,.3); color: var(--t6-bad); }
.t6-recibo { border: 1px dashed var(--t6-sheet-line); border-radius: var(--t6-r-md); padding: 16px; margin-bottom: 14px; }
.t6-recibo-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.t6-recibo-code { font-family: var(--t6-font-display); font-size: 20px; letter-spacing: .05em; }
.t6-recibo-estado { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: rgba(var(--t6-brand-rgb), .14); color: var(--t6-brand); }
.t6-recibo-lineas { font-size: 13px; color: var(--t6-ink-2); display: flex; flex-direction: column; gap: 4px; }
.t6-recibo-total { margin-top: 10px; font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; }
.t6-grid-fav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 560px) { .t6-grid-fav { grid-template-columns: 1fr 1fr 1fr; } }
.t6-fav-card { background: var(--t6-card); border: 1px solid var(--t6-line); border-radius: var(--t6-r-md); overflow: hidden; position: relative; }
.t6-fav-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.t6-fav-card .ph { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; background: var(--t6-field); color: var(--t6-ink-3); font-size: 26px; }
.t6-fav-card-b { padding: 10px 12px; }
.t6-fav-card-n { font-size: 13px; font-weight: 700; }
.t6-fav-card-p { font-size: 13px; font-weight: 800; color: var(--t6-brand); margin-top: 3px; }
.t6-fav-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: none; background: rgba(0,0,0,.5); color: #ff5f7a; backdrop-filter: blur(4px); }
.t6-dispo { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.t6-dispo-mesa { font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--t6-sheet-line); background: var(--t6-field); color: var(--t6-ink-2); }
.t6-dispo-mesa.libre { border-color: rgba(76,195,138,.45); color: var(--t6-good); background: rgba(76,195,138,.08); }
.t6-dispo-mesa.ocupada { opacity: .5; }

/* ============================ AJUSTES ============================ */
@media (prefers-reduced-motion: reduce) {
  .tpl-t6 *, .tpl-t6 *::before, .tpl-t6 *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .t6-rv, .t6-capa { opacity: 1; transform: none; }
  .t6-intro { display: none; }
}


/* ==========================================================================
   CONFIGURACIÓN VISUAL — Plantilla 6 (todo editable desde el administrador)
   Las variables --t6c-* se inyectan en <head> desde websites.config.template6
   ========================================================================== */

/* ---------- Fuentes locales (OFL) ---------- */
@font-face { font-family: 'T6 Display'; src: url('/templates/template6/fonts/anton-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'T6 Clean'; src: url('/templates/template6/fonts/montserrat.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'T6 Grunge'; src: url('/templates/template6/fonts/rye-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* ---------- Mapa de fuentes configurables ---------- */
body.tpl-t6 { font-family: var(--t6c-font-body, var(--t6-font-body)); }
.t6-font-title, .t6-titulo, .t6-mes-nombre, .t6-reco-nombre, .t6-btn, .t6-mes-precio,
.t6-reco-precio, .t6-capa-num, .t6-banner-t, .t6-plato-precio, .t6-pie-nombre,
.t6-intro-nombre, .t6-hoja-titulo, .t6-vit-nombre {
  font-family: var(--t6c-font-title, var(--t6-font-display));
}
/* título "limpio" desactiva mayúsculas/espaciado estilo cartel */
body.t6-title-clean .t6-titulo, body.t6-title-clean .t6-mes-nombre,
body.t6-title-clean .t6-reco-nombre, body.t6-title-clean .t6-btn,
body.t6-title-clean .t6-banner-t, body.t6-title-clean .t6-pie-nombre,
body.t6-title-clean .t6-intro-nombre, body.t6-title-clean .t6-vit-nombre {
  text-transform: none; letter-spacing: .01em;
}

/* ---------- Colores desde la configuración ---------- */
body.tpl-t6 {
  --t6-bg: var(--t6c-bg, #120D09);
  --t6-bg-2: var(--t6c-surface, #1B140D);
  --t6-card: var(--t6c-surface, #211913);
  --t6-card-2: var(--t6c-surface, #2A2018);
  --t6-ink: var(--t6c-text, #F7EEE1);
  --t6-ink-2: var(--t6c-muted, #B9A894);
  --t6-brand: var(--t6c-primary, #E8590C);
  --t6-accent: var(--t6c-accent, #F4A52E);
}
.t6-barra { background: var(--t6c-header, rgba(18,13,9,.82)); }
.t6-btn { background: linear-gradient(135deg, var(--t6c-btn, var(--t6-brand)), var(--t6c-accent, var(--t6-accent))); color: var(--t6c-btn-text, #fff); }
.t6-mes-precio, .t6-plato-precio, .t6-reco-precio { color: var(--t6c-price, var(--t6-ink)); }

/* ---------- Flags de animación ---------- */
body.t6-no-scroll-anim .t6-rv { opacity: 1 !important; transform: none !important; transition: none !important; }
body.t6-no-hover .t6-plato:hover { transform: none !important; box-shadow: none !important; }

/* ---------- Columnas configurables de la carta ---------- */
.t6-carta .t6-lista { grid-template-columns: repeat(var(--t6-cols-m, 1), 1fr); }
@media (min-width: 761px) {
  .t6-carta .t6-lista { grid-template-columns: repeat(var(--t6-cols-d, 2), 1fr); }
}
/* tarjetas estilo "clásica" (fila horizontal chica) */
.t6-carta.t6-cards-classic .t6-plato-foto { width: 86px; min-width: 86px; height: 86px; }
body.t6-hide-desc .t6-plato-desc { display: none; }
body.t6-hide-price .t6-plato-precio, body.t6-hide-price .t6-mes-precio,
body.t6-hide-price .t6-reco-precio, body.t6-hide-price .t6-vit-add span { display: none !important; }
.t6-plato.oculto-agotado { display: none; }

/* ---------- Fondos por sección (inyectados, clases t6bg-*) ---------- */
.t6-bg-slot { position: relative; }
.t6-bg-slot::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: var(--t6bg-img, none) var(--t6bg-pos, center) / var(--t6bg-fit, cover) no-repeat;
}
.t6-bg-slot::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--t6bg-overlay, transparent);
  backdrop-filter: var(--t6bg-blur, none);
}
.t6-bg-slot > * { position: relative; z-index: 1; }

/* ---------- Decoraciones de portada ---------- */
.t6-mes-deco { position: absolute; width: clamp(80px, 16vw, 190px); pointer-events: none; z-index: 1; opacity: .95; filter: drop-shadow(0 14px 26px rgba(0,0,0,.4)); }
.t6-mes-deco.izq { left: 2%; top: 18%; }
.t6-mes-deco.der { right: 2%; bottom: 12%; }
.t6-brasas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.t6-mes.altura-compact { min-height: 60svh; }
.t6-mes.altura-tall { min-height: 85svh; }
.t6-mes.altura-full { min-height: 100svh; }
.t6-mes.izquierda .t6-mes-texto { text-align: left; align-items: flex-start; }
.t6-mes.izquierda .t6-mes-acciones { align-items: flex-start; }
.t6-mes.izquierda .t6-mes-pie { justify-content: flex-start; }

/* ==========================================================================
   PILA POR CAPAS — animación scroll-driven (imágenes configurables)
   ========================================================================== */
.t6-stack { position: relative; height: var(--t6-stack-run, 250vh); }
.t6-stack-fijo {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--t6-barra-h) + 8px);
}
.t6-stack-luz {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 62% 55%, rgba(var(--t6-brand-rgb), .32), rgba(var(--t6-brand-rgb), .06) 45%, transparent 72%);
}
.t6-stack-cabeza { position: relative; text-align: center; padding: 6px 18px 0; z-index: 3; }
.t6-stack-sub { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--t6-ink-2); transition: opacity .3s; }
.t6-stack-escena { position: relative; z-index: 2; }
.t6-stack-pila { position: absolute; left: 0; top: 0; will-change: transform; }
.t6-layer { position: absolute; will-change: transform; filter: drop-shadow(0 calc(var(--hueco, 0) * 1px) calc(var(--hueco, 0) * 1.4px) rgba(0,0,0,.38)); }
.t6-layer img { display: block; width: 100%; height: auto; }
.t6-etq {
  position: absolute; display: flex; align-items: center; gap: 8px;
  opacity: 0; transform: translateX(var(--etq-dx, 0)); transition: opacity .35s, transform .45s var(--t6-ease);
  pointer-events: none; max-width: 42%;
}
.t6-etq.ver { opacity: 1; transform: none; }
.t6-etq .t { font-weight: 800; font-size: 13px; color: var(--t6-ink); line-height: 1.15; display: block; }
.t6-etq .d { font-size: 11.5px; color: var(--t6-ink-2); display: block; }
.t6-etq.estrella .t { color: var(--t6-gold); }
.t6-etq .etq-linea { width: var(--etq-lin, 42px); height: 2px; background: linear-gradient(90deg, var(--t6-brand), transparent); flex-shrink: 0; }
.t6-etq .etq-punto { width: 8px; height: 8px; border-radius: 50%; background: var(--t6-brand); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(var(--t6-brand-rgb), .2); }
.t6-etq.estrella .etq-punto { background: var(--t6-gold); box-shadow: 0 0 0 4px rgba(244,193,93,.22); }
.t6-etq.i { flex-direction: row-reverse; text-align: right; }
.t6-etq.i .etq-linea { background: linear-gradient(270deg, var(--t6-brand), transparent); }
.t6-stack-final {
  position: relative; z-index: 4; display: flex; justify-content: center;
  padding: 0 20px calc(26px + env(safe-area-inset-bottom, 0px));
  opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--t6-ease); pointer-events: none;
}
.t6-stack-final.ver { opacity: 1; transform: none; pointer-events: auto; }
.t6-stack-progreso {
  position: absolute; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: 80px; height: 3px; margin-left: -40px; border-radius: 3px;
  background: rgba(255,243,227,.15); overflow: hidden; z-index: 4;
}
.t6-stack-progreso i { position: absolute; inset: 0; background: var(--t6-brand); transform-origin: left; transform: scaleX(0); }
/* modo imagen (sin animación por capas) */
.t6-stack-img { display: flex; justify-content: center; align-items: center; padding: 20px; }
.t6-stack-img img { max-width: min(88vw, 560px); max-height: 62vh; object-fit: contain; border-radius: var(--t6-r-lg); }
@media (prefers-reduced-motion: reduce) {
  .t6-stack { height: auto !important; }
  .t6-stack-fijo { position: relative; height: auto; min-height: 0; }
  .t6-stack-escena { min-height: 60vh; }
}

/* ==========================================================================
   CONFIG-VARS — estilos consumidos desde la configuración visual (t6)
   ========================================================================== */

/* Orden de secciones: <main> en columna, cada sección con order: N */
.t6-main { display: flex; flex-direction: column; }
.t6-main > * { min-width: 0; }

/* ---- Portada: palabra gigante detrás del producto + sello ---- */
.t6-mes { position: relative; min-height: min(var(--t6-mes-h, 78vh), 120vh); }
.t6-mes-palabra {
  position: absolute; z-index: 1; left: 50%; top: 12%;
  transform: translateX(-50%);
  font-family: var(--t6-font-titulo, 'Anton'), Impact, sans-serif;
  font-size: clamp(56px, 17vw, 140px); line-height: 1; white-space: nowrap;
  color: var(--t6-crema, var(--t6-ink)); opacity: .14; pointer-events: none;
  text-transform: uppercase;
}
.t6-mes-sello {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  color: var(--t6-carbon, #120b08); background: var(--t6-oro, var(--t6-gold, #fec007));
  box-shadow: 0 8px 24px -8px rgba(254, 192, 7, .65);
}
.t6-mes-sello i { font-size: 14px; }
.t6-brasas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.t6-mes .t6-mes-texto, .t6-mes .t6-mes-foto { position: relative; z-index: 3; }
.t6-mes-palabra ~ .t6-mes-foto { z-index: 2; }

/* ---- Capas por imágenes (modo imagenes) ---- */
.t6-pila-img { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 16px; }
.t6-capa-img-wrap { position: relative; margin-top: calc(var(--capa-gap, 14px) * -0.35); }
.t6-capa-img-wrap:first-child { margin-top: 0; }
.t6-capa-img { width: min(78vw, 480px); height: auto; display: block; filter: drop-shadow(0 10px 14px rgba(0,0,0,.4)); }
.t6-capa-etq {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 2px; max-width: 34vw;
}
.t6-capa-etq.der { left: calc(100% + 12px); text-align: left; }
.t6-capa-etq.izq { right: calc(100% + 12px); text-align: right; align-items: flex-end; }
.t6-capa-etq b { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; color: var(--t6-ink); }
.t6-capa-etq small { font-size: 11.5px; font-weight: 600; color: var(--t6-ink-2); }
.t6-capa-etq.star b { color: var(--t6-oro, var(--t6-gold)); }
.t6-capa-etq::before {
  content: ''; position: absolute; top: 50%; width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--t6-brand), transparent);
}
.t6-capa-etq.der::before { right: 100%; margin-right: 4px; }
.t6-capa-etq.izq::before { left: 100%; margin-left: 4px; transform: scaleX(-1); }
@media (max-width: 560px) {
  .t6-capa-etq { position: static; transform: none; max-width: none; margin-top: 6px; }
  .t6-capa-etq.izq { align-items: center; text-align: center; }
  .t6-capa-etq.der { text-align: center; }
  .t6-capa-etq::before { display: none; }
}

/* ---- Capa imagen única ---- */
.t6-dentro-una { display: block; margin: 0 auto; max-width: min(88vw, 620px); max-height: 68vh; object-fit: contain; border-radius: var(--t6-r-lg); }

/* ---- imágenes móvil/escritorio ---- */
.t6-only-m { display: none; }
.t6-only-d { display: block; }
@media (max-width: 640px) {
  .t6-only-m { display: block; }
  .t6-only-d { display: none; }
}

/* ---- Info del restaurante ---- */
.t6-info {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px;
  padding: 34px 20px; order: 90;
  font-size: 14px; font-weight: 600; color: var(--t6-ink-2);
  border-top: 1px solid var(--t6-line);
}
.t6-info span, .t6-info a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.t6-info i { color: var(--t6-brand); }
.t6-info a { color: var(--t6-ink); }

/* ---- Sección promos ---- */
.t6-promos { order: 60; }
.t6-reco { order: 40; }
.t6-reco-ver {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-size: 13px; font-weight: 700; color: var(--t6-ink-2); min-height: 40px;
}
.t6-reco-ver i { font-size: 11px; }
.t6-reco-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Carta: estilos configurables ---- */
.t6-carta.estilo-lista .t6-lista { grid-template-columns: 1fr !important; }
.t6-carta.estilo-lista .t6-plato { flex-direction: row; }
.t6-carta.estilo-lista .t6-plato-foto { width: 96px; min-width: 96px; height: 96px; border-radius: var(--t6-r-md); }
.t6-carta.estilo-mixto .t6-plato:not(:has(img)) { display: flex; flex-direction: row; align-items: center; }
@media (min-width: 760px) {
  .t6-lista[style] { grid-template-columns: repeat(var(--t6-carta-cols), 1fr); }
}
@supports (grid-template-columns: 1fr) {
  @media (min-width: 760px) {
    .t6-carta[style*="--cols"] .t6-lista,
    .tpl-t6 .t6-carta .t6-lista { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
    .tpl-t6 .t6-carta.t6-cols .t6-lista { grid-template-columns: repeat(var(--t6-carta-cols), 1fr); }
  }
}

/* ---- Animaciones desactivadas ---- */
.t6-no-anim .t6-rv, .t6-no-anim .t6-capa { opacity: 1 !important; transform: none !important; filter: none !important; }
.t6-no-anim .t6-intro { display: none; }

/* ---- Botón sonido ---- */
#t6-sonido.on { color: var(--t6-exito, #4cc38a); }
