/* =============================================================
   CARTA — Slider de Platos por Categoría
   Capricho del Mar by Z
============================================================= */

/* ── Base ────────────────────────────────────────────────────── */
body.inner-page { background: var(--c-deep-2); }

.menu-page {
  padding-top: 80px;
  background: var(--c-deep-2);
  min-height: 100vh;
}

/* ── Intro ───────────────────────────────────────────────────── */
.menu-intro {
  padding: clamp(3rem, 7vh, 5.5rem) var(--sp-side) clamp(1.5rem, 3vh, 2.5rem);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.menu-intro-eyebrow {
  font-size: var(--sz-label);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 1rem;
}

.menu-intro-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 1.1rem;
}
.menu-intro-title strong { font-weight: 700; }

.menu-intro-sub {
  font-size: var(--sz-body);
  font-weight: 300;
  color: rgba(255,255,255,0.32);
  line-height: 1.75;
  max-width: 42ch;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   SECCIÓN SLIDER
══════════════════════════════════════════════════════════════ */
.menu-section {
  position: relative;
  background: var(--c-deep-2);
}

/* ── Barra de categorías ─────────────────────────────────────── */
.cat-bar {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 10;
}

.cat-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.15rem 0.75rem;
  background: none;
  border: none;
  border-right: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}
.cat-btn:last-child { border-right: none; }

/* Barra inferior activa */
.cat-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--cc, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-luxury);
}
.cat-btn.active::after   { transform: scaleX(1); }
.cat-btn:hover:not(.active) { background: rgba(255,255,255,0.02); }

.cat-btn-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  transition: color 0.3s;
  white-space: nowrap;
}
.cat-btn.active .cat-btn-label { color: rgba(255,255,255,0.75); }
.cat-btn:hover  .cat-btn-label { color: rgba(255,255,255,0.45); }

/* Punto de selección confirmada */
.cat-btn.has-selection .cat-btn-label { color: rgba(255,255,255,0.55); }
.cat-btn.has-selection::before {
  content: '';
  position: absolute;
  top: 7px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--cc);
  opacity: 0.85;
}

/* ── Pista horizontal ────────────────────────────────────────── */
.menu-track {
  display: flex;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  padding-inline: 30vw;
  padding-top: clamp(2.5rem, 5vh, 4rem);
  padding-bottom: clamp(1rem, 2vh, 2rem);
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
}
.menu-track::-webkit-scrollbar { display: none; }
.menu-track.is-dragging         { cursor: grabbing; }
/* Sin recuadro feo al pulsar; foco discreto solo para teclado */
.menu-track:focus { outline: none; }
.menu-track:focus-visible {
  outline: 2px solid rgba(201,169,110,0.5);
  outline-offset: 6px;
  border-radius: 6px;
}

/* ── Diapositiva de plato ────────────────────────────────────── */
.menu-slide {
  flex-shrink: 0;
  width: 40vw;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  opacity: 0.28;
  transform: scale(0.8);
  transition:
    opacity   0.65s var(--ease-luxury),
    transform 0.65s var(--ease-luxury);
}
.menu-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Imagen del plato — flotante, centrada y completa (sin recortes) */
.menu-dish-img {
  width: 100%;
  height: clamp(200px, 40vh, 360px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-dish-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 22px 42px rgba(0,0,0,0.55));
  transition: filter 0.65s var(--ease-luxury);
  pointer-events: none;
  display: block;
}
.menu-slide.is-active .menu-dish-img img {
  filter:
    drop-shadow(0 28px 58px rgba(0,0,0,0.7))
    drop-shadow(0 0 46px rgba(var(--dish-glow,255,255,255),0.10));
}

/* Placeholder inicial (antes de subir los PNGs) */
.dish-placeholder {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  user-select: none;
  line-height: 1;
  letter-spacing: -0.04em;
}
.menu-slide.is-active .dish-placeholder { color: rgba(255,255,255,0.06); }

/* Nombre del plato */
.menu-dish-name {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.22);
  text-align: center;
  transition: color 0.45s var(--ease-luxury);
  max-width: 26ch;
  line-height: 1.5;
}
.menu-slide.is-active      .menu-dish-name { color: rgba(255,255,255,0.6); }
.menu-slide.is-selected    .menu-dish-name { color: var(--dish-color, var(--c-gold)); }
.menu-slide.is-selected    .menu-dish-name::after {
  content: ' ✓';
  font-size: 0.75em;
  opacity: 0.8;
}

/* ── Flechas de navegación entre platos (solo escritorio) ───── */
.menu-nav { display: none; }

@media (min-width: 769px) {
  .menu-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  }
}
.menu-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.60);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.menu-arrow svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.menu-arrow:hover:not(:disabled) {
  background: rgba(201,169,110,0.12);
  border-color: rgba(201,169,110,0.30);
  color: var(--c-gold);
}
.menu-arrow:disabled { opacity: 0.25; pointer-events: none; }

/* ── Barra de progreso ───────────────────────────────────────── */
.menu-progress {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin-inline: var(--sp-side);
  position: relative;
}
.menu-progress-fill {
  position: absolute;
  inset: 0;
  background: var(--c-gold);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-luxury);
}

/* ══════════════════════════════════════════════════════════════
   PANEL DE DETALLE
══════════════════════════════════════════════════════════════ */
.menu-detail {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(2rem, 4.5vh, 3.5rem) var(--sp-side) 1rem;
  min-height: 240px;
}

.detail-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.detail-cat {
  font-size: 0.57rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.detail-sep { color: rgba(255,255,255,0.18); }
.detail-tag {
  font-size: 0.57rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.28);
}

.detail-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0.8rem;
}

.detail-desc {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.62);
  line-height: 1.85;
  margin-bottom: 1rem;
  max-width: 54ch;
}

.detail-ing {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-bottom: 1.75rem;
}
.detail-ing li {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.detail-ing li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--c-gold);
  opacity: 0.45;
}

/* Botón seleccionar */
.detail-select-btn {
  min-width: 220px;
  padding: 0.8rem 2rem;
}
.detail-select-btn.is-selected {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* ── Navegación entre categorías ─────────────────────────────── */
.menu-cat-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 0.5rem var(--sp-side) 3rem;
}

.cat-nav-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2rem;
  color: rgba(255,255,255,0.42);
  padding: 0.4rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.cat-nav-btn:hover:not(:disabled) {
  color: var(--c-white);
  border-color: rgba(201,169,110,0.4);
}
.cat-nav-btn:disabled { opacity: 0.2; cursor: default; }

.cat-nav-btn--next {
  background: rgba(201,169,110,0.08);
  border-color: rgba(201,169,110,0.28);
  color: var(--c-gold);
}
.cat-nav-btn--next:hover:not(:disabled) {
  background: rgba(201,169,110,0.18);
  border-color: rgba(201,169,110,0.5);
}

/* Dots de progreso de selección */
.cat-sel-track {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.sel-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.16);
  background: transparent;
  transition:
    background   0.4s var(--ease-luxury),
    border-color 0.4s var(--ease-luxury),
    transform    0.4s var(--ease-luxury),
    box-shadow   0.4s var(--ease-luxury);
}
.sel-dot.filled {
  background: var(--sc, rgba(255,255,255,0.5));
  border-color: var(--sc, rgba(255,255,255,0.5));
}
.sel-dot.current {
  border-color: var(--sc, rgba(255,255,255,0.6));
  transform: scale(1.45);
  box-shadow: 0 0 6px 2px var(--sc, rgba(255,255,255,0.2));
}
.sel-dot.filled.current {
  transform: scale(1.45);
  box-shadow: 0 0 8px 3px var(--sc, rgba(255,255,255,0.28));
}

/* ══════════════════════════════════════════════════════════════
   RESUMEN FINAL
══════════════════════════════════════════════════════════════ */
.menu-summary {
  padding: clamp(4rem, 8vh, 7rem) var(--sp-side) clamp(2.5rem, 5vh, 4rem);
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 2rem;
}

.menu-summary-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: -0.035em;
  margin-bottom: 2.75rem;
  line-height: 1.1;
}
.menu-summary-title strong { font-weight: 700; }

.summary-dishes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.15rem;
  margin-bottom: 2.75rem;
  text-align: left;
}

.summary-dish {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.85rem;
  padding: 1.4rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: border-color 0.3s;
}
.summary-dish:hover       { border-color: rgba(255,255,255,0.12); }
.summary-dish--empty      { opacity: 0.4; border-style: dashed; }

.sdish-cat {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}
.sdish-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-white);
  line-height: 1.25;
}
.sdish-name--empty {
  color: rgba(255,255,255,0.22);
  font-weight: 300;
  font-style: italic;
  font-family: var(--font-body);
  font-size: 0.85rem;
}
.sdish-tag {
  font-size: 0.6rem;
  font-weight: 300;
  color: rgba(255,255,255,0.26);
  letter-spacing: 0.06em;
  margin-bottom: 0.55rem;
}
.sdish-change {
  margin-top: auto;
  align-self: flex-start;
  background: none;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 2rem;
  color: rgba(255,255,255,0.35);
  padding: 0.28rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.sdish-change:hover {
  color: var(--c-white);
  border-color: rgba(201,169,110,0.4);
}
.summary-cta { margin-top: 0.5rem; }

/* ── Nota estacional ─────────────────────────────────────────── */
.menu-footer-note {
  padding: 3.5rem var(--sp-side) 0;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.menu-seasonal-note {
  font-size: var(--sz-sm);
  font-weight: 300;
  color: rgba(255,255,255,0.22);
  line-height: 1.9;
  font-style: italic;
}

/* ── CTA Reservar ────────────────────────────────────────────── */
.menu-reserva {
  padding: clamp(5rem, 10vh, 8rem) var(--sp-side);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 3rem;
}
.menu-reserva-label {
  font-size: var(--sz-label);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 1rem;
}
.menu-reserva-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--c-white);
  letter-spacing: -0.035em;
  margin-bottom: 2.5rem;
}

/* ══════════════════════════════════════════════════════════════
   MOBILE  (≤ 768px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .menu-intro { padding-top: clamp(1.8rem, 4vh, 3rem); }

  .cat-btn       { padding: 0.95rem 0.45rem; }
  .cat-btn-label { font-size: 0.62rem; letter-spacing: 0.15em; }

  .menu-track {
    padding-inline: 18vw;
    padding-top: clamp(1rem, 2vh, 2rem);
    gap: 1.5rem;
  }
  .menu-slide    { width: 64vw; }
  .menu-dish-img { height: clamp(200px, 42vh, 320px); }

  .detail-name   { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }
  .menu-detail   { padding-top: 1.75rem; min-height: 200px; }

  .menu-cat-nav  { padding-bottom: 2rem; }
  .cat-nav-btn   { padding: 0.35rem 0.65rem; font-size: 0.57rem; }

  .summary-dishes { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
  .summary-dish   { padding: 1.1rem 1rem 1rem; }
  .sdish-name     { font-size: 0.9rem; }

  .sel-dot { width: 6px; height: 6px; }
}

/* ── Footer oscuro ───────────────────────────────────────────── */
.inner-page footer { background: rgba(13,32,53,0.98) !important; }
