/* ==========================================================================
   Vinaterra — estilos
   ========================================================================== */

/* --- Fuentes (self-hosted, recortadas a latín) --------------------------- */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/montserrat.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/newsreader-italic.woff2') format('woff2');
}

:root {
  /* Marca: negro como color principal, luz blanca como acento */
  --ink: #0a0a0a;
  --ink-2: #151515;
  --ink-3: #222222;
  --paper: #0a0a0a;
  --paper-2: #121212;
  --tile: #dedede;
  --white: #161616;

  --text: #f7f7f7;
  --text-2: #b8b8b8;
  --text-3: #949494;
  --on-dark: #ffffff;
  --on-dark-2: #b8b8b8;
  --on-dark-3: #949494;

  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.26);
  --line-dark: rgba(255, 255, 255, 0.13);

  --luz: #ffffff;
  --btn-bg: #ffffff;
  --btn-text: #0a0a0a;
  --whatsapp: #1f7a4d;

  /* Solo los usa el administrador */
  --wine: #7a2232;
  --brass: #9a9a9a;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --header-h: 60px;
  --gutter: 20px;
  --max: 1200px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --intro: 0s;

  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 68px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'lnum' 1;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--luz);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Tipografía utilitaria ------------------------------------------------ */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
  line-height: 1.04;
}

/* --- Botones -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { opacity: 0.86; }

.btn--ghost-light { border: 1px solid rgba(242, 236, 226, 0.35); color: var(--on-dark); }
.btn--ghost-light:hover { border-color: var(--on-dark); }

.btn--dark { background: var(--btn-bg); color: var(--btn-text); }
.btn--dark:hover { opacity: 0.86; }

.btn--ghost-dark { border: 1px solid var(--line-strong); color: var(--text); }
.btn--ghost-dark:hover { border-color: var(--text); }

.btn--wa { background: var(--whatsapp); color: #fff; }
.btn--wa:hover { background: #1a6942; }

.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.link-arrow svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--ink);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand img { height: 34px; width: auto; }
@media (min-width: 768px) {
  .brand img { height: 40px; }
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav a {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  padding: 8px 0;
  transition: color 0.2s;
}
.nav a:hover,
.nav a[aria-current='page'] { color: var(--on-dark); }
.nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
}
@media (max-width: 430px) {
  .brand img { height: 30px; }
  .nav { gap: 16px; }
  .nav a { letter-spacing: 0.12em; }
}
@media (max-width: 379px) {
  .brand img { height: 26px; }
  .nav { gap: 10px; }
  .nav a { font-size: 10px; letter-spacing: 0.06em; }
}
@media (min-width: 768px) {
  .nav { gap: 36px; }
  .nav a { font-size: 12px; }
}

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
  color: var(--on-dark-2);
  padding: 56px 0 calc(32px + env(safe-area-inset-bottom));
  font-size: 13px;
}
.footer-grid {
  display: grid;
  gap: 36px;
}
.footer-logo { width: 132px; opacity: 0.95; }
.footer-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  margin-bottom: 12px;
}
.footer-col li + li { margin-top: 6px; }
.footer-col a:hover { color: var(--on-dark); }
.site-footer .hours li.today span:first-child::after { color: var(--luz); }

.footer-legal {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--on-dark-3);
}
.footer-legal strong { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ==========================================================================
   Inicio
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 28%, rgba(255, 255, 255, 0.13), transparent 72%);
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow {
  from { opacity: 0.75; transform: scale(1); }
  to { opacity: 1; transform: scale(1.08); }
}
.hero::after {
  /* grano sutil */
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px var(--gutter) 72px;
}
.hero-mark {
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.55));
  width: 92px;
  margin-bottom: 36px;
  opacity: 0;
  animation: rise 1s calc(var(--intro) + 0.1s) var(--ease) forwards;
}
.hero .eyebrow {
  color: var(--on-dark-2);
  margin-bottom: 20px;
  opacity: 0;
  animation: rise 1s calc(var(--intro) + 0.25s) var(--ease) forwards;
}
.hero h1 {
  font-size: clamp(42px, 11vw, 92px);
  max-width: 11ch;
  margin: 0 auto;
  opacity: 0;
  animation: rise 1.1s calc(var(--intro) + 0.35s) var(--ease) forwards;
}
.hero h1 em { font-style: italic; color: #fff; text-shadow: 0 0 26px rgba(255, 255, 255, 0.5); }
.hero-lead {
  max-width: 34ch;
  margin: 22px auto 0;
  font-size: 15px;
  color: var(--on-dark-2);
  opacity: 0;
  animation: rise 1s calc(var(--intro) + 0.5s) var(--ease) forwards;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 36px;
  opacity: 0;
  animation: rise 1s calc(var(--intro) + 0.62s) var(--ease) forwards;
}
.hero-foot {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  display: flex;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; max-width: none; width: auto; }
  .hero-mark { width: 116px; }
  .hero-lead { font-size: 17px; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Banner de temporada */
.season {
  padding: 56px 0 0;
}
.season-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 32px 24px;
  background: var(--ink-2);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 44px -18px rgba(255, 255, 255, 0.45);
  color: var(--text);
  border-radius: var(--radius);
  overflow: hidden;
}
.season-card .eyebrow { color: var(--text-2); }
.season-card h2 {
  font-size: clamp(30px, 7vw, 46px);
  max-width: 16ch;
}
.season-card p { max-width: 46ch; color: var(--text-2); }
.season-card .link-arrow { justify-self: start; margin-top: 6px; }
.season-mark {
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 240px;
  opacity: 0.09;
  pointer-events: none;
}
@media (min-width: 768px) {
  .season { padding-top: 88px; }
  .season-card { padding: 56px; grid-template-columns: 1fr auto; align-items: end; }
  .season-card > div { display: grid; gap: 16px; }
  .season-mark { width: 360px; right: 40px; bottom: -110px; }
}

/* Índice de categorías */
.section { padding: 72px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(36px, 8vw, 60px); }
.section-head p { color: var(--text-2); max-width: 38ch; margin-top: 12px; }

.cat-index {
  border-top: 1px solid var(--line-strong);
  counter-reset: cat;
}
.cat-index a {
  display: grid;
  grid-template-columns: 34px 1fr auto 18px;
  align-items: baseline;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease), color 0.2s;
}
.cat-index .n {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.cat-index .t {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.cat-index .c {
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.cat-index svg { width: 14px; height: 14px; color: var(--text-3); align-self: center; transition: transform 0.3s var(--ease), color 0.2s; }
@media (hover: hover) {
  .cat-index a:hover { padding-left: 8px; }
  .cat-index a:hover svg { transform: translateX(3px); color: var(--text); }
}
@media (min-width: 768px) {
  .cat-index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 0; }
  .cat-index li:nth-child(-n + 2) a { border-top: 1px solid var(--line-strong); }
  .cat-index .t { font-size: 30px; }
}

/* Cómo pedir */
.steps-section { background: var(--paper-2); }
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.step .n {
  grid-row: span 2;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--luz);
}
.step h3 { font-size: 15px; font-weight: 600; }
.step p { color: var(--text-2); font-size: 14px; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; border-top: 0; }
  .step { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--line-strong); padding-top: 28px; gap: 10px; }
  .step .n { grid-row: auto; font-size: 44px; margin-bottom: 12px; }
}

/* Visítanos */
.visit {
  display: grid;
  gap: 40px;
}
.visit h2 { font-size: clamp(36px, 8vw, 60px); margin-bottom: 20px; }
.visit-list { border-top: 1px solid var(--line-strong); }
.visit-list > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.visit-list dt { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); padding-top: 3px; }
.visit-list dd { margin: 0; }
.visit-list a { border-bottom: 1px solid var(--line-strong); }
@media (max-width: 479px) {
  .visit-list > div { grid-template-columns: 1fr; gap: 6px; }
}
.visit-actions { display: grid; gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .visit-actions { grid-template-columns: auto auto; justify-content: start; } }
@media (min-width: 960px) {
  .visit { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.hours li + li { margin-top: 2px; }
.hours span { white-space: nowrap; }
.hours li.today { font-weight: 600; }
.hours li.today span:first-child::after {
  content: 'Hoy';
  margin-left: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--luz);
  vertical-align: 2px;
}

/* ==========================================================================
   Menú
   ========================================================================== */

.menu-page { background: var(--paper); }

.menu-intro {
  background: var(--ink);
  color: var(--on-dark);
  padding: 24px 0 20px;
}
.menu-intro-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.menu-intro h1 { font-size: clamp(44px, 12vw, 96px); }
@media (min-width: 768px) { .menu-intro { padding: 40px 0 32px; } }
.menu-intro .eyebrow { color: var(--on-dark-3); margin-bottom: 10px; }
.menu-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--on-dark-3);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  flex: none;
  margin-bottom: 6px;
  transition: border-color 0.2s, color 0.2s;
}
.share-btn:hover { color: var(--on-dark); border-color: rgba(242, 236, 226, 0.4); }
.share-btn svg { width: 15px; height: 15px; }

.menu-tools {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.search {
  position: relative;
}
.search svg {
  position: absolute;
  left: 16px; top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  color: var(--on-dark-3);
  pointer-events: none;
}
.search input {
  width: 100%;
  height: 50px;
  padding: 0 44px 0 46px;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--on-dark);
  font-size: 16px; /* evita zoom en iOS */
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, background-color 0.2s;
}
.search input::placeholder { color: var(--on-dark-3); }
.search input:focus { outline: none; border-color: rgba(242, 236, 226, 0.45); background: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: none;
  place-items: center;
  color: var(--on-dark-2);
}
.search-clear svg { position: static; transform: none; width: 16px; height: 16px; color: inherit; }
.search.has-value .search-clear { display: grid; }

.segmented {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--ink-2);
}
.segmented button {
  height: 40px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-3);
  transition: background-color 0.25s var(--ease), color 0.2s;
}
.segmented::before {
  content: '';
  position: absolute;
  top: 3px; bottom: 3px; left: 3px;
  width: calc(50% - 3px);
  border-radius: 2px;
  background: var(--on-dark);
  transition: transform 0.45s var(--ease);
}
.segmented[data-activa='az']::before { transform: translateX(100%); }
.segmented button { position: relative; }
.segmented button[aria-pressed='true'] { color: var(--ink); }

@media (min-width: 640px) {
  .menu-tools { grid-template-columns: 1fr 280px; }
}

/* Barra de categorías (sticky) */
.chips-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(10, 10, 10, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.chips {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  scroll-padding: 0 var(--gutter);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 28px), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chips { min-height: 59px; }
#lista { min-height: 100svh; }
.chip {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--text); }
.chip.is-active { background: var(--btn-bg); color: var(--btn-text); }
.chips--letters .chip { min-width: 34px; padding: 0 10px; font-weight: 600; }

/* Layout del menú */
.menu-body {
  padding: 8px 0 120px;
}
.menu-layout { display: block; }
.menu-aside { display: none; }

@media (min-width: 1024px) {
  .chips-bar { display: none; }
  .menu-body { padding-top: 48px; }
  .menu-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 64px;
    align-items: start;
  }
  .menu-aside {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 40px);
    max-height: calc(100vh - var(--header-h) - 80px);
    overflow-y: auto;
  }
  .aside-list a {
    display: flex;
    justify-content: space-between;
    padding: 9px 0 9px 14px;
    border-left: 1px solid var(--line);
    font-size: 14px;
    color: var(--text-2);
    transition: color 0.2s, border-color 0.2s;
  }
  .aside-list a:hover { color: var(--text); }
  .aside-list a.is-active { color: var(--text); border-left: 2px solid var(--luz); padding-left: 13px; font-weight: 500; }
  .aside-list .c { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
  .aside-list--letters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .aside-list--letters a { justify-content: center; padding: 8px 0; border: 1px solid var(--line); border-radius: 2px; font-weight: 600; }
  .aside-list--letters a.is-active { border: 1px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-text); padding: 8px 0; }
}

.menu-section {
  padding-top: 44px;
  scroll-margin-top: calc(var(--header-h) + 56px);
}
@media (min-width: 1024px) {
  .menu-section { scroll-margin-top: calc(var(--header-h) + 24px); padding-top: 0; }
  .menu-section + .menu-section { margin-top: 80px; }
}
.menu-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--text);
}
.menu-section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.menu-section-head p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-2);
}
.menu-section-head > span {
  flex: none;
  padding-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.menu-section--letter .menu-section-head h2 { font-size: 52px; }
@media (min-width: 768px) {
  .menu-section-head h2 { font-size: 52px; }
}

/* Tarjetas de producto: 2 columnas en móvil, la imagen manda */
.items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
}
@media (min-width: 640px) {
  .items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
}
@media (min-width: 1280px) {
  .items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.items > li { min-width: 0; }

.item {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
.item-open {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

/* El control del carrito flota sobre la esquina inferior de la imagen */
.item-cart {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 8px;
  pointer-events: none;
}
.item-cart > * { pointer-events: auto; }
.qty-add {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: 0 6px 16px -6px rgba(20, 17, 15, 0.55);
  transition: transform 0.25s var(--ease), background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.qty-add:active { transform: scale(0.9); }
.qty-add svg,
.qty svg { width: 18px; height: 18px; }
.qty {
  display: grid;
  grid-template-columns: 44px minmax(24px, auto) 44px;
  align-items: center;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: 0 6px 16px -6px rgba(20, 17, 15, 0.55);
  animation: qty-in 0.3s var(--ease);
}
@keyframes qty-in { from { opacity: 0; transform: scale(0.85); } }
.qty button {
  display: grid;
  place-items: center;
  height: 44px;
  -webkit-tap-highlight-color: transparent;
}
.qty button:disabled { opacity: 0.35; }
.qty output { text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Barra del pedido */
body.has-cart .menu-body { padding-bottom: 150px; }
.cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 18px 0 12px;
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: 0 0 34px -8px rgba(255, 255, 255, 0.5);
  animation: barra-in 0.45s var(--ease);
}
.cart-bar[hidden] { display: none; }
@keyframes barra-in { from { opacity: 0; transform: translateY(24px); } }
.cart-bar.is-pulse .cart-bar-n { animation: pulso 0.45s var(--ease); }
@keyframes pulso { 40% { transform: scale(1.25); } }
.cart-bar-n {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.cart-bar-t { flex: 1; text-align: left; font-size: 14px; font-weight: 600; }
.cart-bar-p { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .cart-bar { left: auto; right: 32px; bottom: 28px; width: 340px; }
}

/* Panel del pedido */
.sheet--pedido { overflow: hidden; }
.pedido-cuerpo {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pedido-head { padding: 4px var(--gutter) 14px; border-bottom: 1px solid var(--line); }
.pedido-head h2,
.pedido-listo h2 {
  margin-top: 4px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.pedido-lista { padding: 0 var(--gutter); }
.pedido-linea {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.pedido-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 80px;
  background: var(--tile);
  border-radius: 4px;
  overflow: hidden;
}
.pedido-media img { padding: 6px; }
.pedido-nombre { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.pedido-meta { margin: 2px 0 8px; font-size: 12px; color: var(--text-3); }
.pedido-sub { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pedido-linea .qty { width: max-content; box-shadow: none; }
.pedido-pie {
  position: sticky;
  bottom: 0;
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.pedido-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}
.pedido-total strong { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pedido-nota { margin-top: 10px; font-size: 12px; text-align: center; color: var(--text-2); }
.pedido-listo { padding: 12px var(--gutter) calc(28px + env(safe-area-inset-bottom)); }
.pedido-listo p:not(.eyebrow) { margin: 12px 0 22px; color: var(--text-2); }

/* Controles en la ficha */
.sheet-cart { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sheet-cart .btn--block { flex: 1; }
.sheet-cart .qty { flex: none; height: 50px; grid-template-rows: 50px; box-shadow: none; }
.sheet-cart .qty button { height: 50px; }
.sheet-ver { flex: 1; padding: 0 12px; }

/* Colores de respaldo por tipo de bebida */

.item-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: radial-gradient(75% 60% at 50% 42%, #fff, transparent 75%), var(--tile);
  box-shadow: 0 0 34px -14px rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.5s var(--ease);
}
.item-open:active .item-media { transform: scale(0.98); }

/* Producto sin foto: isotipo de la marca, sirve para botellas, botanas o hielo */
.sin-foto {
  width: 38%;
  aspect-ratio: 291 / 274;
  background: rgba(10, 10, 10, 0.16);
  -webkit-mask: url('../img/isotipo.svg') center / contain no-repeat;
  mask: url('../img/isotipo.svg') center / contain no-repeat;
}
/* Absolutas: el recuadro manda el tamaño y una foto nunca lo desborda */
.item-media img,
.sheet-media img,
.pedido-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.item-media img { padding: 9% 12% 8%; }
@media (hover: hover) {
  .item-open:hover .item-media img { transform: scale(1.04); }
}
.item-media img,
.sheet-media img { opacity: 0; transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.item-media img.is-loaded,
.sheet-media img.is-loaded { opacity: 1; }
.item-media:has(img:not(.is-loaded)),
.sheet-media:has(img:not(.is-loaded)) {
  background: linear-gradient(100deg, var(--tile) 30%, #fff 50%, var(--tile) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px 4px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.badge--out { background: var(--white); color: var(--text-2); }

.item-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding-top: 12px;
}
.item-meta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-name {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.item-desc {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}
@media (min-width: 640px) {
  .item-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .item-name { font-size: 21px; }
}
.item-price {
  margin-top: auto;
  padding-top: 8px;
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.item.is-out .item-media > :not(.badge) { opacity: 0.4; filter: grayscale(1); }
.item.is-out .item-name,
.item.is-out .item-price { color: var(--text-3); }
.item.is-out .item-price { text-decoration: line-through; }

.item mark {
  background: rgba(255, 255, 255, 0.24);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

.empty {
  padding: 72px 0;
  text-align: center;
}
.empty h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-bottom: 10px; }
.empty p { color: var(--text-2); max-width: 36ch; margin: 0 auto 24px; }

.menu-note {
  margin-top: 56px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

/* --- Ficha de producto (bottom sheet) ------------------------------------ */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 61;
  max-height: 92svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 14px 14px 0 0;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
  visibility: hidden;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.35);
}
.sheet.is-open { transform: none; visibility: visible; }
.sheet.is-dragging { transition: none; }

.sheet-grab {
  flex: none;
  display: grid;
  place-items: center;
  height: 26px;
  touch-action: none;
  cursor: grab;
}
.sheet-grab::before {
  content: '';
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
}
.sheet-close {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.88);
  color: var(--text);
}
.sheet-close svg { width: 18px; height: 18px; }

.sheet-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 var(--gutter) calc(20px + env(safe-area-inset-bottom));
}
.sheet-media {
  position: relative;
  overflow: hidden;
  height: 36svh;
  min-height: 220px;
  margin: 0 calc(var(--gutter) * -1);
  background: var(--tile);
  display: grid;
  place-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sheet-media img { padding: 20px; }
.sheet-media { background: radial-gradient(70% 60% at 50% 45%, #fff, transparent 75%), var(--tile); }
.sheet-media .badge { top: 16px; left: var(--gutter); }
.sheet-content { padding-top: 22px; }
.sheet-cat { margin-bottom: 8px; }
.sheet h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.sheet-price {
  margin-top: 12px;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sheet-price small { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; color: var(--text-3); margin-left: 4px; }
.sheet-desc { margin-top: 14px; color: var(--text-2); font-size: 15px; }
.sheet-facts {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.sheet-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.sheet-facts dt { color: var(--text-3); }
.sheet-facts dd { margin: 0; text-align: right; font-weight: 500; }
.sheet-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.sheet-actions .icon-btn {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.sheet-actions .icon-btn svg { width: 18px; height: 18px; }
.sheet-out {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
}

/* En móvil el botón de agregar siempre está a la vista, sin importar el scroll */
@media (max-width: 767px) {
  .sheet-scroll { padding-bottom: 0; }
  .sheet-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 12px;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  .sheet-facts { border-bottom: 0; }
}

@media (min-width: 768px) {
  .sheet {
    left: 50%;
    top: 50%;
    bottom: auto;
    width: min(880px, calc(100vw - 64px));
    max-height: min(640px, calc(100vh - 64px));
    border-radius: 6px;
    transform: translate(-50%, -46%);
    opacity: 0;
    transition: transform 0.4s var(--ease), opacity 0.3s;
  }
  .sheet.is-open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet--pedido { width: min(520px, calc(100vw - 64px)); max-height: min(720px, calc(100vh - 64px)); padding-top: 28px; }
  .sheet-grab { display: none; }
  .sheet-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    overflow: hidden;
  }
  .sheet-media { height: 100%; min-height: 520px; margin: 0; border: 0; border-right: 1px solid var(--line); }
    .sheet-content { padding: 48px 40px 36px; overflow-y: auto; }
  .sheet h2 { font-size: 38px; }
}

body.is-locked { overflow: hidden; }

/* Toast */
.toast {
  border: 1px solid var(--line-strong);
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  z-index: 70;
  transform: translate(-50%, 12px);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Contacto
   ========================================================================== */

.page-head {
  background: var(--ink);
  color: var(--on-dark);
  padding: 48px 0 44px;
}
.page-head .eyebrow { color: var(--on-dark-3); margin-bottom: 12px; }
.page-head h1 { font-size: clamp(48px, 14vw, 96px); }
.page-head p { margin-top: 14px; color: var(--on-dark-2); max-width: 40ch; }

.contact-grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.contact-block + .contact-block { margin-top: 40px; }
.contact-block h2 { margin-bottom: 14px; }
.contact-big {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.contact-big:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.contact-block p { color: var(--text-2); }
.contact-block .link-arrow { margin-top: 14px; }
.socials { display: flex; gap: 24px; }

.map {
  margin-top: 40px;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

.form {
  padding: 28px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 768px) { .form { padding: 40px; } }
.form h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.form > p { color: var(--text-2); margin: 10px 0 24px; font-size: 14px; }
.field + .field { margin-top: 18px; }
.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 16px;
  transition: border-color 0.2s, background-color 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8b8b8' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--text); background: var(--ink-3); }
.form .btn { margin-top: 24px; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--text-3); text-align: center; }

/* --- Mapa diferido (no carga Google Maps hasta que se pide) -------------- */

.map { position: relative; }
.map-facade {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  width: 100%;
  text-align: center;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper-2);
  color: var(--text);
  transition: background-color 0.2s;
}
.map-facade svg { width: 30px; height: 30px; color: var(--luz); transition: transform 0.4s var(--ease); }
.map-facade:hover svg { transform: translateY(-4px); }
.map-facade span { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.map iframe { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s var(--ease); }
.map iframe.is-loaded { opacity: 1; }

/* --- Loader (solo primera visita de la sesión) ---------------------------- */

.loader { display: none; }
html.intro { --intro: 0.75s; }
html.intro .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  background: var(--ink);
  pointer-events: none;
  animation: loader-out 0.45s 0.75s var(--ease) forwards;
}
.loader-mark { position: relative; width: 64px; }
.loader-mark img { width: 100%; }
.loader-mark img:first-child { opacity: 0.14; }
.loader-mark img:last-child {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  animation: loader-fill 0.7s 0.05s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
.loader-line {
  width: 72px;
  height: 1px;
  background: var(--line-dark);
  overflow: hidden;
}
.loader-line::after {
  content: '';
  display: block;
  height: 100%;
  background: var(--luz);
  transform: scaleX(0);
  transform-origin: left;
  animation: loader-bar 0.7s 0.05s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}
@keyframes loader-fill { to { clip-path: inset(0 0 0 0); } }
@keyframes loader-bar { to { transform: scaleX(1); } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }

/* --- Transiciones entre páginas (View Transitions, sin JS) ---------------- */

@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.22s cubic-bezier(0.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(16px); } }

/* Cambio de vista del menú (Categorías ↔ A–Z) */
#lista { view-transition-name: lista; }
::view-transition-old(lista) { animation: vt-out 0.18s ease-in both; }
::view-transition-new(lista) { animation: vt-in 0.45s var(--ease) both; }
html.vt-local::view-transition-old(root),
html.vt-local::view-transition-new(root) { animation: none; }

/* --- Aparición al hacer scroll (tipo AOS, sin librería) ------------------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal='fade'] { transform: none; }
html.js [data-reveal='scale'] { transform: scale(0.97); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
html.js .item[data-reveal] { transform: translateY(12px); transition-duration: 0.55s, 0.6s; }
html.js .item[data-reveal].is-in { transform: none; }

/* Líneas que se dibujan */
html.js .menu-section-head[data-reveal] { opacity: 1; transform: none; border-bottom-color: transparent; position: relative; }
html.js .menu-section-head[data-reveal]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease);
}
html.js .menu-section-head[data-reveal] > * { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
html.js .menu-section-head[data-reveal].is-in::after { transform: scaleX(1); }
html.js .menu-section-head[data-reveal].is-in > * { opacity: 1; transform: none; }

/* --- Movimiento reducido -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal],
  html.js .menu-section-head[data-reveal] > * { opacity: 1 !important; transform: none !important; }
  html.intro .loader { display: none; }
  html.intro { --intro: 0s; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Destacados (inicio) -------------------------------------------------- */
/* Cuadrícula simétrica dentro del margen del sitio: 2 / 3 / 4 columnas. */

.destacados-section { padding-bottom: 24px; }
.destacados {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 12px;
}
.destacados > li:nth-child(n + 5) { display: none; }
.dest { display: grid; gap: 4px; }
.dest .item-media { margin-bottom: 8px; }
.dest-nombre { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.dest-precio { font-weight: 600; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .dest:hover .item-media img { transform: scale(1.04); } }
@media (min-width: 640px) {
  .destacados { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; }
  .destacados > li:nth-child(n + 5) { display: block; }
  .destacados > li:nth-child(n + 7) { display: none; }
}
@media (min-width: 1024px) {
  .destacados { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .destacados > li:nth-child(n + 7) { display: block; }
}

/* --- Skeleton: marca dónde va el contenido mientras carga ------------------ */

.sk {
  display: block;
  border-radius: 4px;
  background: linear-gradient(100deg, var(--sk-a) 30%, var(--sk-b) 50%, var(--sk-a) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
:root { --sk-a: rgba(255, 255, 255, 0.06); --sk-b: rgba(255, 255, 255, 0.13); }
.sk-line { height: 12px; width: 70%; margin-top: 10px; }
.sk-line.sm { width: 30%; height: 9px; }
.sk-line.xs { width: 22%; height: 14px; }
.sk-line.lg { width: 90%; }
.sk-h2 { height: 40px; width: 46%; margin-bottom: 4px; }
.sk-media { aspect-ratio: 4 / 5; border-radius: 6px; }
.sk-chip { width: 84px; height: 40px; border-radius: 999px; flex: none; }
.sk-menu .items { margin-top: 28px; }
.sk-menu .sk-rule { height: 1px; margin-top: 18px; background: var(--line-strong); animation: none; }
.cat-index .sk-row { height: 54px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 24px; }
.cat-index .sk-row .sk:first-child { width: 18px; height: 10px; margin: 0; }
.cat-index .sk-row .sk:last-child { width: 40%; height: 22px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .sk { animation: none; } }

/* --- Último pedido (reenviar si WhatsApp no se abrió) ---------------------- */

.pedido-acciones { display: grid; gap: 10px; margin-top: 4px; }
.pedido-acciones .btn svg { width: 18px; height: 18px; }
.pedido-listo .pedido-resumen { margin: 6px 0 0; font-weight: 600; color: var(--text); }
.pedido-listo .pedido-nota { margin: 16px 0 8px; font-size: 13px; color: var(--text-3); }
.link-quitar { min-height: 44px; font-size: 13px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.cart-bar.is-ultimo .cart-bar-n { font-size: 13px; }
.cart-bar.is-ultimo .cart-bar-p { letter-spacing: 0.04em; }
.field .opcional { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text-3); }
.form-ok { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 4px; font-size: 14px; color: var(--text); }
.form-ok[hidden] { display: none; }

/* --- Portada con imagen ------------------------------------------------------ */

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.hero-bg.is-loaded { opacity: 0.5; }
.hero.has-imagen::before {
  background: linear-gradient(rgba(10, 10, 10, 0.35), rgba(10, 10, 10, 0.75)), radial-gradient(60% 50% at 50% 28%, rgba(255, 255, 255, 0.1), transparent 72%);
  animation: none;
}

/* --- Banners (carrusel) ------------------------------------------------------ */

.banners {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  /* deja ver la sombra/brillo de la tarjeta */
  padding: 24px 0 40px;
  margin: -24px 0 -40px;
}
.banners::-webkit-scrollbar { display: none; }
.banners > .season-card { scroll-snap-align: start; scroll-snap-stop: always; }
.season-texto { display: grid; gap: 14px; align-content: start; position: relative; z-index: 1; }
.season-texto .link-arrow { justify-self: start; margin-top: 6px; }
.season-card--sk { min-height: 260px; }
.season-card--sk .sk-h2 { width: 70%; }
.season-card.has-img { padding: 0; gap: 0; }
.season-card.has-img .season-texto { padding: 24px 22px 28px; }
.season-media { position: relative; aspect-ratio: 16 / 10; background: var(--ink-3); overflow: hidden; }
.season-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--ease), transform 1.2s var(--ease); }
.season-media img.is-loaded { opacity: 1; }
@media (hover: hover) { .season-card:hover .season-media img { transform: scale(1.03); } }
.banners-puntos { display: flex; justify-content: center; gap: 2px; margin-top: 14px; }
.banners-puntos:empty { display: none; }
.banners-puntos button { display: grid; place-items: center; width: 32px; height: 32px; }
.banners-puntos button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background-color 0.3s, transform 0.3s var(--ease); }
.banners-puntos button[aria-current='true']::before { background: var(--luz); transform: scale(1.25); }
@media (min-width: 768px) {
  .season-card.has-img { grid-template-columns: 1fr 1.1fr; align-items: stretch; }
  .season-card.has-img .season-texto { order: -1; padding: 48px; align-content: center; }
  .season-media { aspect-ratio: auto; min-height: 340px; }
  .season-card:not(.has-img) .season-texto { gap: 16px; }
}

/* --- Alertas (estilo Sileo) -------------------------------------------------- */

:root {
  /* Curva de resorte (de Sileo, MIT) */
  --sl-resorte: linear(0, 0.002 0.6%, 0.007 1.2%, 0.015 1.8%, 0.026 2.4%, 0.041 3.1%, 0.06 3.8%, 0.108 5.3%, 0.157 6.6%, 0.214 8%, 0.467 13.7%, 0.577 16.3%, 0.631 17.7%, 0.682 19.1%, 0.73 20.5%, 0.771 21.8%, 0.808 23.1%, 0.844 24.5%, 0.874 25.8%, 0.903 27.2%, 0.928 28.6%, 0.952 30.1%, 0.972 31.6%, 0.988 33.1%, 1.01 35.7%, 1.025 38.5%, 1.034 41.6%, 1.038 45%, 1.035 50.1%, 1.012 64.2%, 1.003 73%, 0.999 83.7%, 1);
  --sl-dur: 600ms;
  --sl-fondo: #1a1a1a;
  --sl-exito: #3fbf6f;
  --sl-error: #f0675f;
  --sl-aviso: #e8b33a;
  --sl-info: #4fa3e8;
  --sl-cargando: #9a9a9a;
}
.sl-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sl-vista {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(360px, calc(100vw - 24px));
  padding: calc(12px + env(safe-area-inset-top)) 0 12px;
  transform: translateX(-50%);
  pointer-events: none;
}
@media (min-width: 768px) {
  .sl-vista { left: auto; right: 16px; transform: none; align-items: flex-end; }
}
.sl {
  position: relative;
  width: 100%;
  height: 40px;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  transition:
    opacity calc(var(--sl-dur) * 0.66) var(--sl-resorte),
    transform calc(var(--sl-dur) * 0.66) var(--sl-resorte),
    height var(--sl-dur) var(--sl-resorte);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
.sl[data-tipo='cargando'] { cursor: default; }
.sl[data-lista='true'] { opacity: 1; transform: none; }
.sl[data-saliendo='true'] { opacity: 0; transform: translateY(-8px) scale(0.95); pointer-events: none; }
.sl-forma {
  position: absolute;
  inset: 0;
  filter: url(#sl-goo) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}
.sl-pildora, .sl-cuerpo { position: absolute; left: 0; display: block; background: var(--sl-fondo); }
.sl-pildora { top: 0; height: 40px; width: 140px; border-radius: 20px; transition: width var(--sl-dur) var(--sl-resorte); }
.sl-cuerpo { top: 40px; width: 100%; height: 0; border-radius: 0 18px 18px 18px; transition: height var(--sl-dur) var(--sl-resorte); }
.sl[data-abierta='true'] .sl-cuerpo { top: 34px; }
.sl-cab { position: absolute; top: 0; left: 0; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 8px; white-space: nowrap; }
.sl-insignia { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--sl-c); background: color-mix(in srgb, var(--sl-c) 20%, transparent); flex: none; }
.sl-insignia svg { width: 14px; height: 14px; }
.sl[data-tipo='cargando'] .sl-insignia svg { animation: sl-giro 0.9s linear infinite; }
.sl-titulo { font-size: 13px; font-weight: 600; line-height: 1; color: var(--sl-c); letter-spacing: 0; }
.sl-titulo.is-cambio { animation: sl-titulo var(--sl-dur) var(--sl-resorte) both; }
.sl-texto { position: absolute; top: 40px; left: 0; right: 0; z-index: 2; opacity: 0; transition: opacity 0.15s ease; }
.sl[data-abierta='true'] .sl-texto { opacity: 1; transition: opacity calc(var(--sl-dur) * 0.5) ease calc(var(--sl-dur) * 0.25); }
.sl-texto p { margin: 0; padding: 4px 16px 14px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.62); }
.sl[data-tipo='exito'] { --sl-c: var(--sl-exito); }
.sl[data-tipo='error'] { --sl-c: var(--sl-error); }
.sl[data-tipo='aviso'] { --sl-c: var(--sl-aviso); }
.sl[data-tipo='info'] { --sl-c: var(--sl-info); }
.sl[data-tipo='cargando'] { --sl-c: var(--sl-cargando); }
@keyframes sl-giro { to { transform: rotate(360deg); } }
@keyframes sl-titulo { from { opacity: 0; filter: blur(5px); } to { opacity: 1; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) {
  .sl, .sl * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
/* En el sitio (fondo negro) la alerta lleva un filo de luz para separarse del fondo */
.sl-vista .sl-forma { filter: url(#sl-goo) drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.55)) drop-shadow(0 12px 26px rgba(0, 0, 0, 0.7)); }
.contact-correo { overflow-wrap: anywhere; font-size: clamp(20px, 5.4vw, 30px); }

/* --- Ajustes de pantallas angostas ------------------------------------------- */
.section-head { flex-wrap: wrap; }
.section-head .link-arrow { white-space: nowrap; flex: none; }
@media (max-width: 380px) {
  .section-head { gap: 14px; }
  .section-head h2 { font-size: 34px; }
  .menu-intro .eyebrow { letter-spacing: 0.14em; }
}
