/* ==========================================================================
   Casa Ámbar — Hoja de estilos
   Colores y tipografías en :root para personalizar rápidamente.
   ========================================================================== */

:root {
  --c-bg: #faf6ef;
  --c-soft: #f2ebdf;
  --c-surface: #ffffff;
  --c-dark: #14110f;
  --c-dark-2: #1f1a16;
  --c-text: #2a241f;
  --c-muted: #776b5f;
  --c-line: #e6dccd;
  --c-accent: #c47f35;
  --c-accent-2: #e0a256;
  --c-accent-ink: #8f5518;
  --c-wa: #1faa53;
  --c-wa-dark: #178a43;
  --c-danger: #b9442f;

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(20, 17, 15, .06);
  --shadow: 0 14px 40px -12px rgba(20, 17, 15, .22);
  --shadow-lg: 0 30px 80px -20px rgba(20, 17, 15, .45);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --container: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; display: inline-block; vertical-align: middle; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

.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;
}

.skip-link {
  position: fixed; top: -60px; left: 1rem; z-index: 200;
  background: var(--c-dark); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; letter-spacing: .01em; line-height: 1;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--c-accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(196, 127, 53, .8); }
.btn--primary:hover { background: var(--c-accent-ink); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .06); }
.btn--ghost:hover { background: #fff; color: var(--c-dark); border-color: #fff; }
.btn--outline { border-color: var(--c-text); color: var(--c-text); }
.btn--outline:hover { background: var(--c-text); color: #fff; }
.btn--light { background: #fff; color: var(--c-dark); }
.btn--light:hover { background: var(--c-dark); color: #fff; }
.btn--wa { background: var(--c-wa); color: #fff; }
.btn--wa:hover { background: var(--c-wa-dark); }
.btn--sm { padding: .65rem 1.1rem; font-size: .88rem; }
.btn--block { width: 100%; padding-block: 1.05rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s;
}
.icon-btn:hover { background: rgba(0, 0, 0, .06); }

.link-btn { display: block; margin: .75rem auto 0; font-size: .85rem; color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--c-danger); }

/* ---------- Encabezado ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .35s, box-shadow .35s, color .35s;
  color: #fff;
}
.header.is-scrolled {
  background: rgba(250, 246, 239, .92);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--c-line);
  color: var(--c-text);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .7rem; }
.logo__mark {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 700; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--c-accent-2), var(--c-accent-ink));
  color: #fff;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text strong { font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.logo__text small { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }

.nav__list { display: flex; gap: 1.8rem; }
.nav__link { font-size: .93rem; position: relative; padding: .4rem 0; opacity: .9; }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: var(--c-accent); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: .6rem; }

.status-pill {
  display: none; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 500;
  padding: .4rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
}
.header.is-scrolled .status-pill { background: var(--c-surface); border-color: var(--c-line); }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-danger); }
.status-pill.is-open::before { background: #2ecc71; box-shadow: 0 0 0 0 rgba(46, 204, 113, .6); animation: pulse 2s infinite; }

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.cart-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25);
  transition: background .2s, transform .2s;
}
.header.is-scrolled .cart-btn { background: var(--c-dark); color: #fff; border-color: var(--c-dark); }
.cart-btn:hover { transform: scale(1.06); }
.cart-btn .icon { width: 22px; height: 22px; }
.cart-btn__count {
  position: absolute; top: -4px; right: -4px;
  min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px;
  background: var(--c-accent); color: #fff;
  font-size: .72rem; font-weight: 600; display: grid; place-items: center;
  transform: scale(0); transition: transform .3s var(--ease);
}
.cart-btn__count.has-items { transform: scale(1); }
.cart-btn.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.2); } }

.burger { width: 46px; height: 46px; display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 3rem) 0 2.5rem;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: heroZoom 18s ease-out forwards; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 17, 15, .55) 0%, rgba(20, 17, 15, .35) 40%, rgba(20, 17, 15, .9) 100%),
    linear-gradient(90deg, rgba(20, 17, 15, .7) 0%, rgba(20, 17, 15, 0) 70%);
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero__content { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: var(--container); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--c-accent); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.hero .eyebrow { color: var(--c-accent-2); }

.hero__title {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02;
  max-width: 13ch; margin-bottom: 1.4rem; letter-spacing: -.01em;
}
.hero__title em { font-style: italic; color: var(--c-accent-2); }
.hero__text { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 52ch; opacity: .88; font-weight: 300; margin-bottom: 2.2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; }

.quick-info {
  margin-top: 3rem;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}
.quick-info li { display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.4rem; }
.quick-info li + li { border-left: 1px solid rgba(255, 255, 255, .14); }
.quick-info .icon { width: 26px; height: 26px; color: var(--c-accent-2); }
.quick-info small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.quick-info strong { font-weight: 500; font-size: .95rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4.5rem, 10vw, 7.5rem) 0; }
.section--soft { background: var(--c-soft); }
.section--dark { background: var(--c-dark); color: #f3ece2; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.section__head .eyebrow { justify-content: center; }
.section__head .eyebrow::after { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -.01em; margin-bottom: 1rem; }
.section__lead { color: var(--c-muted); font-size: 1.05rem; margin: 0; }
.section--dark .section__lead { color: #b9ad9f; }

/* ---------- Menú ---------- */
.menu-tools {
  position: sticky; top: calc(var(--header-h) - 1px); z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 1rem 0; margin-bottom: 2rem;
  background: var(--c-bg);
}
.search {
  display: flex; align-items: center; gap: .6rem;
  width: min(100%, 460px); padding: .2rem 1.1rem;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 999px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(196, 127, 53, .14); }
.search .icon { color: var(--c-muted); }
.search input { flex: 1; border: 0; outline: 0; background: none; padding: .75rem 0; min-width: 0; }

.tabs {
  display: flex; gap: .5rem; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; padding: .2rem;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; padding: .6rem 1.2rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-muted);
  transition: all .25s var(--ease);
}
.tab:hover { color: var(--c-text); border-color: var(--c-text); }
.tab[aria-selected="true"] { background: var(--c-dark); border-color: var(--c-dark); color: #fff; }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.6rem; }

.dish {
  display: flex; flex-direction: column;
  background: var(--c-surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(230, 220, 205, .6);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: fadeUp .5s var(--ease) both;
}
.dish:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.dish__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-soft); }
.dish__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.dish:hover .dish__media img { transform: scale(1.07); }
.dish__tags { position: absolute; top: .8rem; left: .8rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.tag {
  font-size: .7rem; font-weight: 600; letter-spacing: .04em;
  padding: .3rem .6rem; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--c-text);
  backdrop-filter: blur(4px);
}
.tag--favorito { background: var(--c-accent); color: #fff; }
.tag--nuevo { background: var(--c-dark); color: #fff; }
.tag--picante { color: #b5361f; }
.tag--vegetariano { color: #2d7a3e; }
.dish__body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.3rem 1.3rem; }
.dish__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .45rem; }
.dish__name { font-family: var(--f-display); font-size: 1.45rem; font-weight: 600; }
.dish__price { font-weight: 600; color: var(--c-accent-ink); white-space: nowrap; }
.dish__desc { font-size: .9rem; color: var(--c-muted); line-height: 1.55; flex: 1; margin-bottom: 1.1rem; }
.dish__actions { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }

.add-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .65rem 1.1rem; border-radius: 999px;
  background: var(--c-soft); color: var(--c-text); font-size: .88rem; font-weight: 500;
  transition: background .2s, color .2s, transform .2s;
}
.add-btn:hover { background: var(--c-dark); color: #fff; }
.add-btn .icon { width: 1.05em; height: 1.05em; }

.qty {
  display: inline-flex; align-items: center; gap: .2rem;
  background: var(--c-dark); color: #fff; border-radius: 999px; padding: .2rem;
}
.qty button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; transition: background .2s; }
.qty button:hover { background: rgba(255, 255, 255, .15); }
.qty .icon { width: 15px; height: 15px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: .9rem; }

.dish.is-soldout .dish__media img { filter: grayscale(1); opacity: .6; }
.soldout { font-size: .85rem; color: var(--c-muted); font-style: italic; }

.menu-empty { text-align: center; color: var(--c-muted); padding: 2rem 0; }
.menu-note { text-align: center; color: var(--c-muted); font-size: .85rem; margin: 2.5rem 0 0; }

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

/* ---------- Promociones ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.6rem; }
.promo {
  position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.8rem; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .08);
  transition: transform .4s var(--ease);
}
.promo:hover { transform: translateY(-6px); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.promo:hover img { transform: scale(1.06); }
.promo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 17, 15, .1) 20%, rgba(20, 17, 15, .92) 100%); }
.promo__badge {
  position: absolute; top: 1.4rem; right: 1.4rem;
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--c-accent); color: #fff;
  font-family: var(--f-display); font-size: 1.45rem; font-weight: 700; line-height: 1;
  transform: rotate(-8deg); box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .5);
}
.promo__today {
  position: absolute; top: 1.4rem; left: 1.4rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .8rem; border-radius: 999px; background: #2ecc71; color: #0e3a1f;
}
.promo.is-today { outline: 2px solid var(--c-accent-2); outline-offset: 4px; }
.promo__days { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent-2); margin-bottom: .5rem; }
.promo h3 { font-family: var(--f-display); font-size: 2rem; font-weight: 600; margin-bottom: .6rem; color: #fff; }
.promo p { font-size: .93rem; color: #d8cec2; margin-bottom: 1.2rem; }
.promo .btn { align-self: flex-start; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__media::before {
  content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; z-index: -1;
  border: 1.5px solid var(--c-accent); border-radius: var(--radius);
}
.about__badge {
  position: absolute; left: -1.5rem; bottom: 2.5rem;
  display: flex; align-items: center; gap: .8rem;
  background: var(--c-dark); color: #fff; padding: 1.1rem 1.4rem; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.about__badge strong { font-family: var(--f-display); font-size: 2.8rem; line-height: 1; color: var(--c-accent-2); }
.about__badge span { font-size: .8rem; line-height: 1.3; letter-spacing: .04em; opacity: .85; }
.about__text p { color: var(--c-muted); font-size: 1.04rem; }
.about__text p strong { color: var(--c-text); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--c-line); }
.stats strong { display: block; font-family: var(--f-display); font-size: 2.6rem; font-weight: 600; color: var(--c-accent-ink); line-height: 1; }
.stats span { font-size: .85rem; color: var(--c-muted); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 1rem; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius-sm); cursor: zoom-in; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.gallery__item:hover img { transform: scale(1.08); filter: brightness(.85); }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: rgba(10, 8, 7, .94); padding: 4rem 1rem;
  animation: fadeIn .25s;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 85vh; max-width: min(1100px, 100%); border-radius: var(--radius-sm); object-fit: contain; box-shadow: var(--shadow-lg); }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgba(255, 255, 255, .1); width: 50px; height: 50px; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Opiniones ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.review {
  margin: 0; padding: 2rem; border-radius: var(--radius);
  background: var(--c-surface); border: 1px solid var(--c-line);
  display: flex; flex-direction: column;
}
.review__stars { display: flex; gap: .15rem; color: var(--c-accent); margin-bottom: 1rem; }
.review__stars .icon { width: 18px; height: 18px; }
.review blockquote { margin: 0 0 1.5rem; flex: 1; font-family: var(--f-display); font-size: 1.35rem; line-height: 1.4; font-style: italic; }
.review figcaption strong { display: block; font-weight: 600; }
.review figcaption span { font-size: .85rem; color: var(--c-muted); }

/* ---------- Horarios y ubicación ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.visit__status { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; padding: .45rem .95rem; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-line); font-size: .9rem; }
.visit__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-danger); }
.visit__status.is-open::before { background: #2ecc71; }

.hours { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; }
.hours td { padding: .75rem 0; border-bottom: 1px dashed var(--c-line); }
.hours td:last-child { text-align: right; color: var(--c-muted); }
.hours tr.is-today td { font-weight: 600; color: var(--c-accent-ink); }
.hours tr.is-today td:first-child::after { content: "Hoy"; margin-left: .55rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; background: var(--c-accent); color: #fff; vertical-align: middle; }
.hours .closed { color: var(--c-danger) !important; }

.contact-list { display: grid; gap: .5rem; margin-bottom: 1.8rem; }
.contact-item { display: flex; align-items: flex-start; gap: .8rem; padding: .5rem 0; transition: color .2s; }
.contact-item:hover { color: var(--c-accent-ink); }
.contact-item .icon { color: var(--c-accent); margin-top: .15rem; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: .8rem; }

.visit__map { min-height: 420px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--c-line); }
.visit__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }

/* ---------- CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--c-accent-ink), var(--c-accent) 60%, var(--c-accent-2)); color: #fff; padding: 3.5rem 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--f-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; margin-bottom: .4rem; }
.cta-band p { margin: 0; opacity: .9; }

/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: #b9ad9f; padding: 4.5rem 0 calc(1.5rem + env(safe-area-inset-bottom)); font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.logo--light { color: #fff; margin-bottom: 1.2rem; }
.footer h3 { font-family: var(--f-body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; font-weight: 500; margin-bottom: 1.2rem; }
.footer ul { display: grid; gap: .55rem; }
.footer a:hover { color: var(--c-accent-2); }
.footer__about { max-width: 34ch; }
.footer__hours li { display: flex; justify-content: space-between; gap: 1rem; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .15); transition: all .25s; }
.socials a:hover { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; font-size: .85rem; }
.footer__bottom p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-wa); color: #fff;
  box-shadow: 0 12px 30px -8px rgba(31, 170, 83, .7);
  transition: transform .3s var(--ease), bottom .3s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-wa); animation: ring 2.4s infinite; }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- Barra de pedido móvil ---------- */
.cart-bar {
  position: fixed; left: 1rem; right: calc(1rem + 70px); bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 89;
  display: none; align-items: center; gap: .8rem;
  padding: .55rem .6rem .55rem .6rem; padding-right: 1.2rem;
  height: 60px; border-radius: 999px;
  background: var(--c-dark); color: #fff;
  box-shadow: var(--shadow-lg);
  animation: slideUp .4s var(--ease);
}
.cart-bar span:nth-child(2) { flex: 1; text-align: left; font-weight: 500; }
.cart-bar__count { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); font-weight: 600; }
@keyframes slideUp { from { transform: translateY(120%); } }

/* ---------- Carrito (drawer) ---------- */
.overlay { position: fixed; inset: 0; z-index: 150; background: rgba(20, 17, 15, .55); backdrop-filter: blur(3px); animation: fadeIn .3s; }
.overlay[hidden] { display: none; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: min(440px, 100%);
  display: flex; flex-direction: column;
  background: var(--c-bg);
  transform: translateX(100%); transition: transform .45s var(--ease);
  box-shadow: var(--shadow-lg);
  outline: none;
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--c-line); }
.drawer__head h2 { font-family: var(--f-display); font-size: 1.9rem; font-weight: 600; }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem; overscroll-behavior: contain; }
.drawer__foot { padding: 1.2rem 1.4rem calc(1.2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); background: var(--c-surface); }

.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--c-muted); }
.cart-empty .icon { width: 56px; height: 56px; opacity: .35; margin-bottom: 1rem; }

.cart-list { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; animation: fadeUp .3s var(--ease); }
.cart-item img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.cart-item h4 { font-size: .95rem; font-weight: 500; margin-bottom: .2rem; font-family: var(--f-body); }
.cart-item__price { font-size: .85rem; color: var(--c-muted); }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.cart-item__total { font-weight: 600; font-size: .95rem; }
.cart-item .qty { padding: .1rem; }
.cart-item .qty button { width: 28px; height: 28px; }

.order-form { display: grid; gap: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--c-line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem; margin: 0; border: 0; background: var(--c-soft); border-radius: 999px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: .65rem .5rem; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--c-muted); transition: all .25s; }
.seg input:checked + span { background: var(--c-dark); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--c-accent); outline-offset: 2px; }

.field { display: grid; gap: .35rem; }
.field label { font-size: .82rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--c-line); background: var(--c-surface);
  font-size: 16px; /* evita el zoom automático en iPhone */
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(196, 127, 53, .14); }
.field.has-error input, .field.has-error textarea { border-color: var(--c-danger); }
.field[hidden] { display: none; }

.totals { margin: 0 0 .8rem; display: grid; gap: .35rem; }
.totals div { display: flex; justify-content: space-between; font-size: .92rem; color: var(--c-muted); }
.totals dt, .totals dd { margin: 0; }
.totals__total { padding-top: .5rem; margin-top: .3rem; border-top: 1px dashed var(--c-line); color: var(--c-text) !important; font-size: 1.15rem !important; font-weight: 600; }
.drawer__hint { font-size: .82rem; color: var(--c-accent-ink); margin: 0 0 .8rem; min-height: 1em; }
.drawer__hint:empty { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(6rem + env(safe-area-inset-bottom)); z-index: 400;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--c-dark); color: #fff; padding: .8rem 1.3rem; border-radius: 999px;
  font-size: .9rem; box-shadow: var(--shadow-lg);
  transition: opacity .3s, transform .3s var(--ease);
  max-width: calc(100% - 2rem); text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animaciones al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (min-width: 1100px) {
  .status-pill { display: inline-flex; }
}

@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .reviews .review:last-child { grid-column: span 2; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
    background: var(--c-dark); color: #fff;
    clip-path: circle(0 at calc(100% - 2.5rem) 2rem);
    transition: clip-path .6s var(--ease);
    visibility: hidden;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 2.5rem) 2rem); visibility: visible; }
  .nav__list { flex-direction: column; align-items: center; gap: 1.3rem; }
  .nav__link { font-family: var(--f-display); font-size: 2rem; font-weight: 600; opacity: 1; }
  .nav__cta { display: inline-flex; }
  .header.menu-open { color: #fff; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header.menu-open .cart-btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }

  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; margin: 0 auto 1rem; width: calc(100% - 1.5rem); }
  .about__badge { left: -.75rem; }
  .about__media::before { inset: 1rem -1rem -1rem 1rem; }

  .visit { grid-template-columns: 1fr; }
  .visit__map, .visit__map iframe { min-height: 340px; }

  .cart-bar:not([hidden]) { display: flex; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .logo__text small { display: none; }
  .logo__text strong { font-size: 1.3rem; }
  .logo__mark { width: 38px; height: 38px; font-size: 1.3rem; }

  .hero { padding-bottom: 1.5rem; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .quick-info { grid-template-columns: 1fr; margin-top: 2.2rem; }
  .quick-info li { padding: .85rem 1.1rem; }
  .quick-info li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }

  .menu-tools { align-items: stretch; margin-inline: -1rem; padding-inline: 1rem; }
  .search { width: 100%; }
  .tabs { justify-content: flex-start; }
  .menu-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .dish { flex-direction: row; }
  .dish__media { aspect-ratio: auto; width: 38%; min-height: 100%; flex-shrink: 0; }
  .dish__tags { top: .5rem; left: .5rem; flex-direction: column; align-items: flex-start; }
  .dish__tags .tag:nth-child(n+2) { display: none; }
  .dish__body { padding: .95rem 1rem; }
  .dish__top { flex-direction: column; gap: .15rem; margin-bottom: .35rem; }
  .dish__name { font-size: 1.25rem; }
  .dish__desc { font-size: .83rem; margin-bottom: .8rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .dish:hover { transform: none; }
  .add-btn { padding: .55rem .95rem; }

  .promo { min-height: 360px; padding: 1.5rem; }

  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: .6rem; }
  .gallery__item--wide { grid-column: span 2; }

  .reviews { grid-template-columns: 1fr; }
  .reviews .review:last-child { grid-column: auto; }
  .review { padding: 1.6rem; }

  .stats strong { font-size: 2.1rem; }
  .stats span { font-size: .78rem; }

  .visit__ctas .btn { flex: 1 1 100%; }

  .cta-band__inner { flex-direction: column; align-items: flex-start; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }

  .wa-float { width: 56px; height: 56px; right: 1rem; }
  .cart-bar { left: .75rem; right: calc(.75rem + 66px); height: 56px; }
  .cart-bar__count { width: 40px; height: 40px; }

  .lightbox__nav { top: auto !important; bottom: 1.2rem; transform: none !important; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }
}

@media (hover: none) {
  .dish:hover, .promo:hover, .btn:hover { transform: none; }
}

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