/* ============================================================
   Fuentes autoalojadas (Zero 3rd-party latency & 100% privacidad)
   ============================================================ */
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/karla-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/karla-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-700i-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/playfair-700i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Café Delfín — Carta digital
   Sistema de diseño (ui-ux-pro-max):
   · Estilo «Nature Distilled» + paleta Bakery/Cafe adaptada a la marca
     (delfín dorado + verde mar del logotipo)
   · Tipografía «Restaurant Menu»: Playfair Display + Karla
   · Reglas: contraste AA, targets ≥44px, scroll-padding sticky,
     chips envolvibles, feedback de búsqueda, reduced-motion
   ============================================================ */

:root {
  /* Color tokens */
  --bg: #faf6ee;               /* crema cálido */
  --foreground: #2b2318;       /* marrón casi negro */
  --muted: #f3ecdd;
  --muted-foreground: #6f6354; /* marrón grisáceo, AA sobre --bg */
  --card: #ffffff;
  --border: #e8dfcd;

  /* Marca */
  --green: #3f7c5b;            /* verde mar del delfín */
  --green-deep: #2e6247;       /* AA con texto blanco */
  --green-soft: #e7efe9;
  --gold: #e9a319;             /* delfín dorado (decorativo) */
  --gold-ink: #8c5e03;         /* WCAG AA (>= 5:1) sobre crema para texto */
  --gold-soft: #fdf3dd;

  --radius: 16px;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;

  --shadow-soft: 0 1px 2px rgba(43, 35, 24, .05), 0 6px 24px -8px rgba(43, 35, 24, .12);
  --shadow-lift: 0 2px 4px rgba(43, 35, 24, .06), 0 14px 34px -10px rgba(43, 35, 24, .18);

  /* Altura combinada de sticky (se ajusta en el header) */
  --sticky-h: 118px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--sticky-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 16px;      /* base 16px */
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 60;
  background: var(--green-deep); color: #fff;
  padding: 10px 16px; border-radius: 999px; font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 12px; }

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

/* ------------------------------------------------------------
   Cabecera fija con glassmorphism prémium y animación de aparición
   ------------------------------------------------------------ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 50;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  box-shadow: 0 10px 30px -4px rgba(43, 35, 24, .08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transform: translateY(0);
  opacity: 1;
  transition: transform .36s cubic-bezier(0.16, 1, 0.3, 1), opacity .26s ease, box-shadow .26s ease;
}

.topbar--hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
}

.topbar__inner {
  max-width: 1080px; margin: 0 auto;
  padding: 10px 36px;
  display: flex; align-items: center; gap: 14px;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; padding: 4px 6px; border-radius: 12px; }
.brand__mark { width: 72px; height: 54px; aspect-ratio: 72 / 54; object-fit: contain; flex: none; border-radius: 8px; }

.search {
  margin-left: auto;
  position: relative;
  display: flex; align-items: center;
  width: min(320px, 52vw);
}
.search__icon {
  position: absolute; left: 12px; width: 18px; height: 18px;
  color: var(--muted-foreground); pointer-events: none;
}
.search__input {
  width: 100%;
  font: inherit; font-size: 15px;
  color: var(--foreground);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 11px 34px 11px 38px;    /* target ≥44px */
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search__input::placeholder { color: var(--muted-foreground); }
.search__input:hover { border-color: #d8cdb6; }
.search__input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(63, 124, 91, .18);
}
.search__input::-webkit-search-cancel-button { display: none; }
.search__clear {
  position: absolute; right: 6px;
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--muted-foreground);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.search__clear:hover { background: var(--muted); color: var(--foreground); }

/* Selector de idioma (dropdown custom con banderas) */
.lang { position: relative; flex: none; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 700;
  color: var(--foreground);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  min-height: 48px;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.lang__btn:hover { border-color: #d8cdb6; }
.lang__btn:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(63, 124, 91, .18);
}
.lang__flag { font-size: 20px; line-height: 1; }
.lang__name { white-space: nowrap; }
.lang__chev { width: 16px; height: 16px; color: var(--muted-foreground); transition: transform .18s ease; }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }

.lang__menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  list-style: none; margin: 0; padding: 6px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 160px;
  z-index: 60;
}
.lang__menu li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background .14s ease;
}
.lang__menu li:hover, .lang__menu li:focus, .lang__menu li:focus-visible {
  background: var(--muted);
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.lang__menu li[aria-selected="true"] { background: var(--gold-soft); color: var(--gold-ink); }

.catnav-progress {
  max-width: 1080px; margin: 0 auto 4px;
  width: calc(100% - 32px);
  height: 4px;
  background: rgba(232, 223, 205, 0.5);
  border-radius: 999px;
  overflow: hidden;
}
.catnav-progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #3f7c5b, #e9a319);
  border-radius: 999px;
  transition: width .08s linear;
}

/* Highlight temporal al abrir sección */
.cat--flash {
  animation: catFlash .9s ease;
}
@keyframes catFlash {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); }
  30% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 30%, transparent); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.catnav-wrap {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px 10px;
}
.catnav-arrow {
  flex: none;
  width: 40px; height: 40px;
  border: 1.5px solid var(--border); border-radius: 50%;
  background: var(--card); color: var(--green-deep);
  font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  transition: opacity .18s ease, background .18s ease, transform .15s ease;
  z-index: 3;
}
.catnav-arrow:hover { background: var(--green-soft); transform: scale(1.05); }
.catnav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex; gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.catnav::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  scroll-snap-align: start;
  min-height: 42px;                 /* target táctil con padding visual */
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--foreground);
  font: inherit; font-size: 14px; font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.chip:hover { border-color: var(--green); color: var(--green-deep); }
.chip[aria-current="true"] {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}
.chip:active { transform: scale(.96); }

/* ------------------------------------------------------------
   Portada
   ------------------------------------------------------------ */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 420px at 15% -10%, rgba(233, 163, 25, .12), transparent 60%),
    radial-gradient(900px 380px at 90% -20%, rgba(63, 124, 91, .14), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero__inner {
  max-width: 1080px; margin: 0 auto;
  padding: 56px 20px 30px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: start;
}
.hero__copy {
  margin-top: 24px;
}
.hero__kicker {
  font-size: 12.5px; font-weight: 800; letter-spacing: .22em;
  color: var(--gold-ink); margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  margin: 0 0 16px;
}
.hero h1 em { font-style: italic; color: var(--green-deep); }
.hero__lede {
  font-size: 17.5px; color: var(--muted-foreground);
  max-width: 46ch; margin: 0 0 24px;
}
.hero__lede strong { color: var(--foreground); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: var(--green-deep); color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: #254f3a; box-shadow: var(--shadow-lift); }
.btn--ghost {
  color: var(--green-deep);
  border: 1.5px solid color-mix(in srgb, var(--green) 45%, var(--border));
  background: transparent;
}
.btn--ghost:hover { border-color: var(--green-deep); background: var(--green-soft); }

.hero__logo {
  margin: 0;
  justify-self: center;
  width: 200px;
  height: 452px;
}
.hero__logo img {
  width: 200px;
  height: 452px;
  aspect-ratio: 1376 / 3108;
  display: block;
  border-radius: 16px;
}

.hero__wave {
  display: block; width: 100%; height: 70px; margin-top: 6px;
}

/* ------------------------------------------------------------
   La carta
   ------------------------------------------------------------ */
.menu {
  max-width: 1080px; margin: 0 auto;
  padding: 34px 20px 60px;
}
.menu:focus { outline: none; }
.menu:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 4px; border-radius: 8px; }
.menu__head { margin-bottom: 26px; }
.menu__head h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 700; margin: 0 0 6px;
}
.menu__status {
  margin: 0; color: var(--muted-foreground); font-size: 14.5px;
}

/* Categoría (acordeón: colapsada por defecto) */
.cat { margin-bottom: 12px; scroll-margin-top: calc(var(--sticky-h) + 10px); }

.cat__titleh { margin: 0; }
.cat__head {
  display: flex; align-items: baseline; gap: 12px;
  width: 100%;
  background: transparent; border: 0;
  border-bottom: 2px solid color-mix(in srgb, var(--gold) 55%, transparent);
  color: inherit; font: inherit; text-align: left;
  padding: 8px 2px 10px;
  cursor: pointer;
  transition: background .16s ease;
}
.cat__head:hover { background: color-mix(in srgb, var(--gold-soft) 40%, transparent); }
.cat__title {
  font-family: var(--font-display);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 700; letter-spacing: -.01em;
}
.cat__head:hover .cat__title { color: var(--green-deep); }
.cat__count {
  white-space: nowrap;
  font-size: 12.5px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  background: var(--gold-soft);
  padding: 3px 10px; border-radius: 999px;
}
.cat__chev {
  margin-left: auto; align-self: center;
  width: 22px; height: 22px; flex: none;
  color: var(--gold-ink);
  transition: transform .28s cubic-bezier(.22, .8, .32, 1);
}
.cat.open .cat__chev { transform: rotate(180deg); }

/* cuerpo colapsable (animación de altura con grid) */
.cat__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.22, .8, .32, 1), visibility .4s step-end;
  overflow: hidden;
  visibility: hidden;
}
.cat.open .cat__body {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .4s cubic-bezier(.22, .8, .32, 1);
}
.cat__body-in {
  overflow: hidden;
  min-height: 0;
  padding-top: 18px;
  padding-bottom: 12px;
}
.cat:not(.open) .cat__body-in {
  padding-top: 0;
  padding-bottom: 0;
}

.cat__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

/* Tarjeta de producto */
.dish {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px 14px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.dish:hover {
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--green) 35%, var(--border));
  transform: translateY(-2px);
}
.dish--highlight {
  border-color: color-mix(in srgb, var(--gold) 60%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold-soft) 55%, #fff), #fff 28%);
}

.dish__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19.5px; font-weight: 700; line-height: 1.22;
  letter-spacing: .005em;
}
.dish__row {
  display: flex; align-items: baseline; gap: 10px;
}
.dish__leader {
  flex: 1; min-width: 14px;
  border-bottom: 2px dotted color-mix(in srgb, var(--border) 88%, #c9bda4);
  transform: translateY(-4px);
}
.dish__price {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700;
  color: var(--gold-ink);
  white-space: nowrap;
}
.dish__desc {
  margin: 0; color: var(--muted-foreground); font-size: 14.5px; line-height: 1.5;
}
.dish__prices {
  display: flex; flex-wrap: wrap; gap: 6px 8px;
}
.price-opt {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 13px; color: var(--muted-foreground);
}
.price-opt b {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--gold-ink);
}
.dish__badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.allergen {
  font-size: 10.5px; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  padding: 3px 8px; border-radius: 999px;
  cursor: default;
}
.tag {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase;
  color: #21643f;
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  padding: 3px 8px; border-radius: 999px;
}

/* Notas tipo aviso (desayunos, etc.) */
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px; line-height: 1.5;
  margin: 0 0 16px;
  color: #5f4608;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: var(--gold-ink); }

/* Búsqueda sin resultados */
.no-results {
  text-align: center;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 44px 20px;
  margin-top: 8px;
}
.no-results__title {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  margin: 0 0 8px;
}
.no-results__hint { color: var(--muted-foreground); margin: 0; }
.chip-suggest {
  font: inherit; font-weight: 700; color: var(--green-deep);
  background: var(--green-soft);
  border: 0; border-radius: 999px;
  padding: 6px 12px; margin: 0 2px;
  cursor: pointer;
}
.chip-suggest:hover { background: color-mix(in srgb, var(--green) 22%, var(--green-soft)); }

/* ------------------------------------------------------------
   Pie
   ------------------------------------------------------------ */
.foot { position: relative; margin-top: 30px; }
.foot__wave { display: block; width: 100%; height: 64px; }
.foot__inner {
  max-width: 1080px; margin: 0 auto;
  padding: 6px 20px 42px;
  text-align: center;
}
.foot__brand {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; margin: 0 0 10px;
}
.foot__brand em { font-style: italic; color: var(--green-deep); }
.foot__brand span { font-family: var(--font-body); font-size: 14px; color: var(--muted-foreground); font-weight: 500; }
.foot__contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
}
.foot__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  color: var(--green-deep);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.foot__contact-btn svg { width: 17px; height: 17px; }
.foot__contact-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 124, 91, .15);
}
.foot__contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted-foreground);
  padding: 8px 14px;
}
.foot__contact-badge svg { width: 17px; height: 17px; stroke: var(--gold-ink); }

.foot__note {
  max-width: 62ch; margin: 0 auto 12px;
  font-size: 13.5px; color: var(--muted-foreground);
}
.foot__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto 10px;
  font-size: 13px;
  color: var(--muted-foreground);
}
.foot__legal-link {
  background: none;
  border: none;
  padding: 2px 4px;
  color: var(--muted-foreground);
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.foot__legal-link:hover {
  color: var(--green-deep);
}
.foot__meta { font-size: 12.5px; color: var(--muted-foreground); margin: 0; }

/* Modal de información legal (LSSI-CE / RGPD / Cookies) */
.legal-modal {
  max-width: 640px;
  width: calc(100% - 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--foreground);
  box-shadow: 0 20px 45px rgba(35, 25, 10, .22);
  padding: 0;
  margin: auto;
  overflow: hidden;
}
.legal-modal::backdrop {
  background: rgba(30, 24, 18, 0.5);
  backdrop-filter: blur(6px);
}
.legal-modal__head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
}
.legal-modal__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin: 0;
  color: var(--green-deep);
}
.legal-modal__close {
  background: transparent;
  border: 0;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted-foreground);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background .15s ease, color .15s ease;
}
.legal-modal__close:hover {
  background: rgba(0,0,0,.06);
  color: var(--foreground);
}
.legal-modal__tabs {
  display: flex;
  gap: 8px;
  padding: 10px 22px;
  background: color-mix(in srgb, var(--card) 60%, var(--bg));
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}
.legal-tab {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.legal-tab:hover {
  color: var(--foreground);
}
.legal-tab--active {
  background: var(--green-deep);
  color: #fff !important;
}
.legal-modal__body {
  padding: 22px;
  max-height: 60vh;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.6;
}
.legal-panel h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--green-deep);
}
.legal-panel p {
  margin: 0 0 12px;
}
.legal-panel ul {
  padding-left: 22px;
  margin: 0 0 14px;
}
.legal-panel li {
  margin-bottom: 6px;
}

/* Botón volver arriba */
.totop {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: var(--green-deep); color: #fff;
  box-shadow: var(--shadow-lift);
  cursor: pointer;
  display: grid; place-items: center;
  transition: transform .15s ease, background .15s ease, opacity .2s ease;
}
.totop svg { width: 22px; height: 22px; }
.totop:hover { background: #254f3a; transform: translateY(-2px); }

/* ------------------------------------------------------------
   Animación de aparición (sutil, con respetar reduced-motion)
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .8, .32, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dish, .chip, .btn, .totop, .cat__chev, .topbar { transition: none; }
  .cat__body { transition: none; }
  .cat--flash { animation: none; }
  .catnav-progress__bar { transition: none; }
}

/* ------------------------------------------------------------
   Responsive: Tablet y Móvil
   ------------------------------------------------------------ */

/* Tablet horizontal / pantallas medianas (hasta 960px) */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1.15fr .85fr;
    gap: 30px;
    padding: 52px 24px 30px;
  }
  .hero h1 {
    font-size: clamp(34px, 4.6vw, 46px);
  }
  .hero__lede {
    font-size: 17px;
    max-width: 44ch;
  }
  .hero__logo img {
    width: clamp(160px, 20vw, 190px);
    height: auto;
  }
}

/* Tablet vertical / Móvil grande (hasta 768px) */
@media (max-width: 768px) {
  .hero {
    height: 100svh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    box-sizing: border-box;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    padding: clamp(16px, 3vh, 32px) 20px 8px;
    gap: clamp(10px, 2vh, 18px);
  }
  .hero__copy {
    margin-top: 0;
  }
  .hero__logo {
    order: -1;
    display: flex;
    justify-content: center;
    flex: 0 1 auto;
    width: auto;
    height: auto;
  }
  .hero__logo img {
    height: clamp(120px, 22svh, 190px);
    width: auto;
    max-width: min(150px, 34vw);
    object-fit: contain;
    border-radius: 14px;
  }
  .hero__kicker {
    font-size: 12px;
    letter-spacing: .2em;
    margin: 0 0 6px;
  }
  .hero h1 {
    font-size: clamp(28px, 6.8vw, 40px);
    margin: 0 0 10px;
    line-height: 1.1;
  }
  .hero__lede {
    font-size: clamp(15px, 3.8vw, 17px);
    line-height: 1.5;
    margin: 0 auto 16px;
    max-width: 40ch;
  }
  .hero__actions {
    justify-content: center;
    gap: 12px;
  }
  .btn {
    min-height: 48px;
    padding: 11px 24px;
    font-size: 15.5px;
  }
  .hero__wave {
    height: clamp(38px, 5.5svh, 54px);
    flex: none;
    margin-top: auto;
  }
}

/* Móvil (hasta 560px) */
@media (max-width: 560px) {
  .hero__inner {
    padding: clamp(12px, 2.5vh, 24px) 16px 6px;
    gap: clamp(8px, 1.8vh, 16px);
  }
  .hero__logo img {
    height: clamp(110px, 20svh, 175px);
    max-width: min(135px, 32vw);
  }
  .hero__kicker {
    font-size: 11.5px;
    letter-spacing: .2em;
    margin: 0 0 4px;
  }
  .hero h1 {
    font-size: clamp(26px, 7.8vw, 35px);
    line-height: 1.12;
    margin: 0 0 8px;
  }
  .hero__lede {
    font-size: clamp(14.5px, 3.8vw, 16px);
    line-height: 1.48;
    margin: 0 auto 14px;
    max-width: 36ch;
  }
  .hero__actions {
    gap: 10px;
    width: 100%;
    justify-content: center;
  }
  .btn {
    min-height: 46px;
    padding: 10px 20px;
    font-size: 15px;
  }
  .hero__wave {
    height: clamp(34px, 5svh, 46px);
  }
  .catnav-arrow { display: none; }
  .catnav-wrap { padding: 6px 12px 10px; gap: 6px; }
  .topbar__inner { padding: 8px 12px; gap: 8px; }
  .brand { padding: 4px; }
  .brand__mark { width: 72px; height: auto; }
  .search { width: min(190px, 40vw); }
  .search__input { padding-left: 34px; padding-right: 40px; font-size: 14px; }
  .lang__btn { font-size: 13px; padding: 8px 10px; min-height: 44px; }
  .lang__flag { font-size: 18px; }
  .lang__name { font-size: 12px; }
  .menu { padding: 22px 14px 48px; }
  .cat__grid { grid-template-columns: 1fr; }
  .dish { padding: 14px 15px 12px; }
  .dish__name { font-size: 18.5px; }
  .totop { right: 14px; bottom: 14px; }
}

@media (max-height: 500px) and (max-width: 860px) {
  .hero {
    height: auto;
    min-height: 100svh;
  }
  .hero__logo img {
    height: 80px;
  }
}
