/* ============================================================
   TÚ ZAVOR — Design System & Stylesheet
   Colores: Verde oscuro #1C4A3A | Dorado #F5A800 | Blanco
   Tipografía: Outfit (body) + Pacifico (headings/logo)
   ============================================================ */

/* ─── RESET & TOKENS ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep:   #1C4A3A;
  --green-dark:   #163529;
  --green-mid:    #245A47;
  --green-light:  #2D7058;
  --gold:         #F5A800;
  --gold-dark:    #D08F00;
  --gold-light:   #FFD055;
  --white:        #FFFFFF;
  --off-white:    #F7F4EE;
  --gray-100:     #F0EDEA;
  --gray-300:     #C4BDB4;
  --gray-500:     #8C857D;
  --gray-800:     #2A2520;
  --black:        #0D0F0E;

  --font-body:    'Outfit', system-ui, sans-serif;
  --font-display: 'Pacifico', cursive;

  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-full:  999px;

  --shadow-sm:    0 2px 8px rgba(0,0,0,.15);
  --shadow-md:    0 8px 32px rgba(0,0,0,.25);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.35);
  --shadow-gold:  0 8px 32px rgba(245,168,0,.25);

  --ease-out:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  --container:    1200px;
  --nav-h:        80px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ─── UTILITIES ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gold { color: var(--gold); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-label--light { color: var(--gold-light); }

.section-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.section-title--light { color: var(--off-white); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--gold {
  background: var(--gold);
  color: var(--green-dark);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  box-shadow: 0 12px 40px rgba(245,168,0,.4);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.35);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

.btn--instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: var(--white);
  box-shadow: 0 8px 32px rgba(131,58,180,.3);
}
.btn--instagram:hover {
  box-shadow: 0 12px 40px rgba(131,58,180,.5);
}

.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.4); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

[data-animate] {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-animate="fade-up"]    { transform: translateY(28px); }
[data-animate="slide-right"] { transform: translateX(-40px); }
[data-animate="slide-left"]  { transform: translateX(40px); }
[data-animate].in-view { opacity: 1; transform: none; }

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  overflow: visible;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(22, 53, 41, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}
.nav__logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-top: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
  transition: transform 0.3s var(--ease-spring);
}
.nav__logo-img:hover {
  transform: scale(1.04);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.nav__cta { padding: 10px 20px; font-size: 0.88rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: var(--green-dark);
  padding-top: var(--nav-h);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 40%, rgba(245,168,0,.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(28,74,58,.6) 0%, transparent 70%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(22,53,41,1) 35%, rgba(22,53,41,0.4) 65%, rgba(22,53,41,0.1) 100%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 80px 24px 80px calc((100vw - var(--container)) / 2 + 24px);
  max-width: calc(var(--container) / 2 + (100vw - var(--container)) / 2);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,168,0,.12);
  border: 1px solid rgba(245,168,0,.3);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-light);
  margin-bottom: 28px;
  animation: fadeUp 0.6s var(--ease-out) both;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s var(--ease-out) both;
}
.hero__title-accent {
  display: block;
  color: var(--gold);
  font-style: italic;
}
.hero__flag {
  font-style: normal;
  font-size: 0.7em;
  margin-left: 4px;
}

.hero__tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.2s var(--ease-out) both;
}

.hero__warning {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 36px;
  padding: 16px 20px;
  background: rgba(245,168,0,.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  width: fit-content;
  max-width: 420px;
  animation: fadeUp 0.6s 0.3s var(--ease-out) both;
}
.hero__warning-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero__warning em {
  font-style: italic;
  color: rgba(255,255,255,.85);
  font-size: 0.95rem;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.4s var(--ease-out) both;
}

/* ─── HERO SLIDESHOW ─── */
.hero__slideshow {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  overflow: hidden;
  /* Máscara que desvanece el slide hacia la izquierda — mantiene legibilidad del texto */
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 100%);
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  /* Ken Burns suave: cada foto hace un zoom lento mientras está visible.
     El NOMBRE de la animación de zoom se define abajo por nth-child para
     alternar acercar/alejar; aquí solo van duración y curva. */
  animation: heroSlide var(--slide-cycle) linear infinite,
             heroZoomIn var(--slide-cycle) ease-in-out infinite;
  will-change: opacity, transform;
}

/* Total del ciclo: 7 fotos × 8s = 56s */
:root { --slide-cycle: 56s; --slide-dur: 8s; }

/* Cada slide ocupa 8s de los 56s totales.
   Entra en 1s, visible 6s, sale en 1s.
   El stagger se aplica con nth-child. */
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: -48s; }   /* 56 - 1×8 */
.hero__slide:nth-child(3) { animation-delay: -40s; }   /* 56 - 2×8 */
.hero__slide:nth-child(4) { animation-delay: -32s; }   /* 56 - 3×8 */
.hero__slide:nth-child(5) { animation-delay: -24s; }   /* 56 - 4×8 */
.hero__slide:nth-child(6) { animation-delay: -16s; }   /* 56 - 5×8 */
.hero__slide:nth-child(7) { animation-delay:  -8s; }   /* 56 - 6×8 */

@keyframes heroSlide {
  /*
   * CROSSFADE continuo sin huecos (nunca se ve el fondo verde solo).
   * Cada slide ocupa 1/N del ciclo (con N=7 → 14.28%). El fade-out de un slide
   * y el fade-in del siguiente SE SOLAPAN: mientras uno baja de 1→0, el otro
   * sube de 0→1 en el mismo instante, así la suma de opacidades ≈ 1 siempre.
   *
   * Ventana visible de este slide: 0%..14.28%.
   *  - 0%→3%   : fade-in (solapa con el fade-out del anterior)
   *  - 3%→11.3%: totalmente visible
   *  - 11.3%→14.28%: fade-out (solapa con el fade-in del siguiente)
   *  - resto   : oculto
   */
  0%      { opacity: 1; }        /* ya plena: su fade-in ocurrió al final del ciclo anterior */
  11.3%   { opacity: 1; }        /* visible durante su turno */
  14.28%  { opacity: 0; }        /* fade-out: coincide con el fade-in del siguiente */
  96.9%   { opacity: 0; }        /* oculto el resto del ciclo */
  100%    { opacity: 1; }        /* fade-in final = crossfade con el saliente (loop) */
}

/* Efecto Ken Burns alternado: las fotos impares se acercan y las pares se
   alejan. Alternar evita que el carrusel se sienta repetitivo — con todas
   haciendo lo mismo el ojo detecta el patrón enseguida.
   La ventana visible del slide es 0%..14.28% del ciclo; fuera de ahí la escala
   vuelve a su sitio para que el siguiente pase empiece limpio. */
@keyframes heroZoomIn {
  0%     { transform: scale(1);    }
  14.28% { transform: scale(1.08); }
  100%   { transform: scale(1);    }
}

/* Zoom out: arranca acercada y se abre. */
@keyframes heroZoomOut {
  0%     { transform: scale(1.08); }
  14.28% { transform: scale(1);    }
  100%   { transform: scale(1.08); }
}

/* impares → acercar, pares → alejar */
.hero__slide:nth-child(odd)  { animation-name: heroSlide, heroZoomIn;  }
.hero__slide:nth-child(even) { animation-name: heroSlide, heroZoomOut; }

.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: float 2s infinite;
}

/* ─── NOSOTROS ─── */
.nosotros {
  background: var(--off-white);
  padding: 100px 0;
  color: var(--gray-800);
}
.nosotros .section-label { color: var(--green-mid); }
.nosotros .section-title { color: var(--green-dark); }
.nosotros .text-gold { color: var(--gold-dark); }

.nosotros__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.nosotros__body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.nosotros__body strong { color: var(--green-deep); font-weight: 700; }

.nosotros__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-100);
}
.nosotros__stat { text-align: center; }
.nosotros__stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-deep);
  line-height: 1;
}
.nosotros__stat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ─── 5 estrellas con animación de aparición escalonada ─── */
.nosotros__stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  line-height: 1;
}
.nosotros__stars .star {
  width: 1.55rem;
  height: 1.55rem;
  fill: var(--gold);
  filter: drop-shadow(0 1px 2px rgba(245,168,0,.35));
  /* estado inicial: invisible + pequeña/girada, listo para el pop */
  opacity: 0;
  transform: scale(0.2) rotate(-45deg);
}
/* Al entrar la sección en viewport (.nosotros__text.in-view), las estrellas
   aparecen una tras otra con un pop elástico. */
.nosotros__text.in-view .nosotros__stars .star {
  animation: starPop 0.5s var(--ease-spring) forwards;
}
.nosotros__text.in-view .nosotros__stars .star:nth-child(1) { animation-delay: 0.35s; }
.nosotros__text.in-view .nosotros__stars .star:nth-child(2) { animation-delay: 0.47s; }
.nosotros__text.in-view .nosotros__stars .star:nth-child(3) { animation-delay: 0.59s; }
.nosotros__text.in-view .nosotros__stars .star:nth-child(4) { animation-delay: 0.71s; }
.nosotros__text.in-view .nosotros__stars .star:nth-child(5) { animation-delay: 0.83s; }
@keyframes starPop {
  0%   { opacity: 0; transform: scale(0.2) rotate(-45deg); }
  70%  { opacity: 1; transform: scale(1.18) rotate(4deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .nosotros__stars .star { opacity: 1; transform: none; animation: none; }
}
.nosotros__divider {
  width: 1px; height: 48px;
  background: var(--gray-300);
  flex-shrink: 0;
}

.nosotros__visual { position: relative; }
.nosotros__img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  box-shadow: var(--shadow-lg);
}
.nosotros__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  /* Prevents broken-image alt text from being styled like body text */
  font-size: 0;
  color: transparent;
}
.nosotros__img-wrap--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.nosotros__img-wrap--fallback img {
  /* When image fails, hide broken state entirely */
  display: none;
}
.nosotros__img-wrap--fallback::after {
  content: '🍽️';
  opacity: 0.4;
}

.nosotros__badge-float {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--gold);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-gold);
  animation: float 3s ease-in-out infinite;
}
.nosotros__badge-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--green-dark);
  white-space: nowrap;
}

/* ─── MENÚ ─── */
.menu-section {
  background: var(--green-dark);
  padding-bottom: 100px;
}
.menu-section__header {
  background: linear-gradient(135deg, var(--green-deep), var(--green-dark));
  padding: 80px 0 48px;
  margin-bottom: 60px;
  border-bottom: 1px solid rgba(245,168,0,.15);
}

.menu-today {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding: 20px 24px;
  background: rgba(245,168,0,.08);
  border: 1px solid rgba(245,168,0,.25);
  border-radius: var(--radius-md);
}
.menu-today__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  text-transform: capitalize;
}
.menu-today__dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
.menu-today__price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
}
.menu-today__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gold-light);
}

.menu-category {
  margin-bottom: 48px;
}
.menu-category__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(245,168,0,.2);
}
.menu-category__price-badge {
  background: var(--gold);
  color: var(--green-dark);
  border-radius: var(--radius-full);
  padding: 2px 12px;
  font-size: 0.85rem;
  font-weight: 900;
}
.menu-category__note {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 12px;
  font-style: italic;
}

.menu-platos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.menu-platos__item {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: rgba(255,255,255,.85);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-align: center;
}
.menu-platos__item:hover {
  background: rgba(245,168,0,.1);
  border-color: rgba(245,168,0,.3);
  transform: translateY(-2px);
}

.menu-items { display: flex; flex-direction: column; gap: 4px; }
.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}
.menu-item:hover { background: rgba(255,255,255,.04); }
.menu-item__name {
  font-size: 0.95rem;
  color: rgba(255,255,255,.85);
  flex: 1;
}
.menu-item__price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.menu-item + .menu-item {
  border-top: 1px solid rgba(255,255,255,.05);
}

.menu-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.menu-cta {
  text-align: center;
  padding: 48px;
  background: rgba(245,168,0,.06);
  border: 1px solid rgba(245,168,0,.2);
  border-radius: var(--radius-lg);
}
.menu-cta__text {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 20px;
}

/* ─── RESEÑAS ─── */
.resenas {
  background: var(--black);
  padding: 100px 0;
  overflow: hidden;
}

.resenas__track-wrap { position: relative; margin-top: 48px; }
.resenas__track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s var(--ease-out);
}

.resena-card {
  flex: 0 0 calc(33.33% - 16px);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.resena-card:hover {
  border-color: rgba(245,168,0,.25);
  transform: translateY(-4px);
}
.resena-card__stars { font-size: 1.1rem; letter-spacing: 2px; }
.resena-card__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255,255,255,.75);
  flex: 1;
  font-style: normal;
}
.resena-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.resena-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}
.resena-card__name { font-weight: 700; font-size: 0.9rem; }
.resena-card__source { font-size: 0.78rem; color: var(--gray-500); }

.resenas__controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.resenas__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}
.resenas__btn:hover {
  background: var(--gold);
  color: var(--green-dark);
  transform: scale(1.1);
}

.resenas__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.resenas__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.resenas__dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ─── UBICACIÓN ─── */
.ubicacion {
  background: var(--green-dark);
  padding: 100px 0;
}
.ubicacion__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.ubicacion__details { display: flex; flex-direction: column; gap: 24px; margin: 32px 0; }
.ubicacion__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ubicacion__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(245,168,0,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ubicacion__detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.ubicacion__detail-val {
  font-size: 0.95rem;
  color: rgba(255,255,255,.8);
  line-height: 1.6;
}
.ubicacion__link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ubicacion__link:hover { color: var(--gold-light); }

.ubicacion__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
  border: 1px solid rgba(245,168,0,.15);
}
.ubicacion__map iframe {
  width: 100%; height: 100%;
  border: none;
}

/* ─── FIDELIDAD / LOYALTY ────────────────────────────────────────────── */
.fidelidad {
  background: var(--green-dark);
  padding: 100px 0;
  border-top: 1px solid rgba(245,168,0,.1);
}
.fidelidad__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.fidelidad__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
}
.fidelidad__desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  margin-bottom: 32px;
}
.fidelidad__desc strong { color: var(--gold); }

.fidelidad__steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}
.fidelidad__step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background 0.2s;
}
.fidelidad__step:hover {
  background: rgba(245,168,0,.06);
  border-color: rgba(245,168,0,.2);
}
.fidelidad__step-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.4;
  min-width: 48px;
  line-height: 1;
}
.fidelidad__step strong {
  display: block;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 2px;
}
.fidelidad__step p {
  font-size: 0.82rem;
  color: rgba(255,255,255,.5);
  margin: 0;
}
.fidelidad__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── LOYALTY CARD UI ─── */
.fidelidad__card {
  perspective: 1000px;
}
.fidelidad__card-inner {
  background: linear-gradient(135deg, var(--green-mid) 0%, var(--green-deep) 60%, #0f2a1e 100%);
  border: 1px solid rgba(245,168,0,.25);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(245,168,0,.08);
  position: relative;
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s var(--ease-out);
}
.fidelidad__card-inner:hover { transform: rotateY(0deg) rotateX(0deg) scale(1.02); }
.fidelidad__card-inner::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,168,0,.15) 0%, transparent 70%);
  pointer-events: none;
}

.fidelidad__card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.fidelidad__card-logo {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.03em;
}
.fidelidad__card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(245,168,0,.1);
  border: 1px solid rgba(245,168,0,.2);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.fidelidad__punches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.fidelidad__punch {
  font-size: 1.6rem;
  text-align: center;
  transition: transform 0.2s;
}
.fidelidad__punch--filled { animation: float 3s ease-in-out infinite; }
.fidelidad__punch--filled:nth-child(2) { animation-delay: 0.3s; }
.fidelidad__punch--filled:nth-child(3) { animation-delay: 0.6s; }
.fidelidad__punch--filled:nth-child(4) { animation-delay: 0.9s; }
.fidelidad__punch--filled:nth-child(5) { animation-delay: 1.2s; }
.fidelidad__punch--prize { font-size: 1.8rem; }

.fidelidad__card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255,255,255,.5);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 1024px) {
  .fidelidad__inner { grid-template-columns: 1fr; gap: 48px; }
  .fidelidad__card-inner { transform: none; }
}
@media (max-width: 768px) {
  .fidelidad { padding: 70px 0; }
  .fidelidad__actions { flex-direction: column; }
  .fidelidad__actions .btn { width: 100%; justify-content: center; }
}

/* ─── INSTAGRAM CTA ─── */
.instagram-cta {
  background: var(--black);
  padding: 80px 0;
}
.instagram-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 60px;
  background: linear-gradient(135deg, rgba(28,74,58,.6), rgba(22,53,41,.8));
  border: 1px solid rgba(245,168,0,.1);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.instagram-cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
}
.instagram-cta__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.65);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--green-dark);
  border-top: 1px solid rgba(245,168,0,.1);
  padding: 60px 0 40px;
}
.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__tagline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.footer__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,.5);
  line-height: 1.6;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  transition: color 0.2s, background 0.2s;
}
.footer__link:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.35);
}
.footer__credit-link {
  color: var(--gold);
  font-weight: 600;
}
.footer__credit-link:hover { color: var(--gold-light); }

/* ─── FLOATING WHATSAPP ─── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 14px 22px 14px 18px;
  box-shadow: 0 8px 32px rgba(37,211,102,.35);
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, padding 0.3s ease;
  overflow: hidden;
}
.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 16px 48px rgba(37,211,102,.5);
}
.whatsapp-float__label {
  white-space: nowrap;
  transition: max-width 0.3s ease, opacity 0.3s ease;
}

/* ─── MOBILE RESPONSIVENESS ─── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    padding-top: 0;                     /* el slideshow ya arranca bajo el nav */
    min-height: auto;
  }
  /* Imagen arriba, pegada al nav, ocupa buena parte del alto visible.
     Degradado SOLO en el borde inferior → se funde con el texto, sin franja
     verde muerta arriba. La foto llega hasta arriba (bajo el nav). */
  .hero__slideshow {
    position: relative;
    width: 100%;
    height: 46vh;
    min-height: 300px;
    max-height: 460px;
    order: -1;
    margin-top: var(--nav-h);           /* arranca justo bajo el nav, sin hueco */
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  }
  .hero__content {
    padding: 28px 24px 56px;
    max-width: 100%;
    margin-top: -36px;                  /* el texto sube sobre el degradado de la foto */
    position: relative;
    z-index: 2;
  }
  /* Sin overlay verde encima de la foto en móvil (causaba el "verde de más") */
  .hero__overlay { display: none; }
  .hero__bg { display: none; }

  .nosotros__grid,
  .ubicacion__grid { grid-template-columns: 1fr; gap: 48px; }
  .nosotros__badge-float { right: 16px; bottom: -12px; }

  .menu-two-col { grid-template-columns: 1fr; }

  .resena-card { flex: 0 0 calc(50% - 12px); }
}

@media (max-width: 768px) {
  :root { --nav-h: 74px; }

  /* Solid bar from the start on mobile — avoids the "double movement"
     where the scrolled background slid in separately from the logo. */
  .nav {
    background: rgba(22, 53, 41, 0.96);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .nav.scrolled {
    background: rgba(22, 53, 41, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,.35);
  }

  .nav__logo-img {
    height: 58px;
    margin-top: 0;
  }
  .nav__logo-img:hover { transform: scale(1.04); }

  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 110;
  }
  .nav__links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    left: auto;
    width: min(78vw, 320px);
    height: 100vh;
    height: 100dvh;
    background: rgba(22,53,41,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -12px 0 40px rgba(0,0,0,.45);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(var(--nav-h) + 12px) 20px 24px;
    gap: 4px;
    transform: translateX(100%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out);
  }
  .nav__links.open {
    transform: translateX(0);
    pointer-events: auto;
  }
  .nav__link { padding: 14px 16px; border-radius: var(--radius-sm); }
  .nav__cta { text-align: center; justify-content: center; }

  .hero__title { font-size: 3rem; }
  .hero__slideshow { height: 42vh; min-height: 260px; max-height: 400px; }

  .nosotros { padding: 70px 0; }
  .nosotros__img-wrap { aspect-ratio: 16/9; }
  .nosotros__badge-float { display: none; }
  .nosotros__stats { gap: 12px; justify-content: space-between; }
  .nosotros__stat { flex: 1; }
  .nosotros__stat-num { font-size: 1.5rem; }
  .nosotros__stars .star { width: 1.1rem; height: 1.1rem; }
  .nosotros__stars { gap: 2px; }

  .menu-section__header { padding: 60px 0 36px; }
  .menu-platos { grid-template-columns: repeat(2, 1fr); }

  .resena-card { flex: 0 0 calc(100% - 0px); }

  .ubicacion { padding: 70px 0; }
  .ubicacion__map { height: 280px; }

  .instagram-cta__inner { padding: 40px 24px; flex-direction: column; text-align: center; }
  .instagram-cta__actions { width: 100%; }
  .instagram-cta__actions .btn { width: 100%; justify-content: center; }

  .footer__top { flex-direction: column; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 8px; }

  .whatsapp-float { display: none; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .menu-platos { grid-template-columns: 1fr; }
  .nosotros__stats { gap: 8px; }
  .nosotros__stat-num { font-size: 1.25rem; }
  .nosotros__stat-label { font-size: 0.7rem; }
  .nosotros__divider { height: 40px; }
}

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  [data-animate] { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════════════
   CART — CARRITO DE PEDIDOS WHATSAPP
   ════════════════════════════════════════════════════════ */

/* ─── FAB (Floating Action Button) ─── */
.cart-fab {
  position: fixed;
  bottom: 100px; right: 28px;
  z-index: 200;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: #0a0a0a;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 28px rgba(245,168,0,.45);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.cart-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(245,168,0,.6);
}
.cart-fab__badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 22px; height: 22px;
  background: #ff4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--black);
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s, transform 0.2s var(--ease-spring);
}
.cart-fab__badge.visible {
  opacity: 1;
  transform: scale(1);
}
@keyframes fabPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}
.cart-fab--pulse { animation: fabPulse 0.5s var(--ease-spring); }

/* ─── BODY LOCK when open ─── */
body.cart-open { overflow: hidden; }

/* ─── DRAWER ─── */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}
.cart-drawer[aria-hidden="false"] { pointer-events: auto; }

.cart-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.35s ease;
}
.cart-drawer[aria-hidden="false"] .cart-drawer__overlay {
  background: rgba(0,0,0,.7);
}

.cart-drawer__panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(440px, 100vw);
  background: #111;
  border-left: 1px solid rgba(245,168,0,.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
  box-shadow: -20px 0 60px rgba(0,0,0,.5);
}
.cart-drawer[aria-hidden="false"] .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.cart-drawer__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
}
.cart-drawer__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12);
  background: transparent;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.cart-drawer__close:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* ─── MODALIDAD ─── */
.cart-drawer__modalidad {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.cart-modalidad-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: rgba(255,255,255,.5);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cart-modalidad-btn.active {
  background: rgba(245,168,0,.12);
  border-color: var(--gold);
  color: var(--gold);
}

/* ─── BODY / ITEMS ─── */
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245,168,0,.3) transparent;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  text-align: center;
}
.cart-empty span { font-size: 3rem; }
.cart-empty p { color: rgba(255,255,255,.5); font-size: 0.95rem; }
.cart-empty__sub { font-size: 0.82rem !important; color: rgba(255,255,255,.3) !important; }

.cart-items { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: background 0.2s;
}
.cart-item:hover { background: rgba(255,255,255,.07); }
.cart-item__emoji { font-size: 1.4rem; flex-shrink: 0; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  display: block;
  font-size: 0.88rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__price {
  display: block;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 2px;
}
.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cart-item__btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}
.cart-item__btn:hover { background: rgba(245,168,0,.15); border-color: var(--gold); color: var(--gold); }
.cart-item__qty { font-size: 0.95rem; font-weight: 700; color: var(--white); min-width: 20px; text-align: center; }

/* ─── FOOTER ─── */
.cart-drawer__footer {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-summary { display: grid; gap: 5px; margin-bottom: 10px; color: rgba(255,255,255,.62); font-size: .76rem; }
.cart-summary div { display: flex; justify-content: space-between; gap: 16px; }.cart-summary b { color: rgba(255,255,255,.85); font-weight: 650; }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,.5);
}
.cart-total strong {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--gold);
}
.cart-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,.35);
  text-align: center;
  line-height: 1.5;
}
.cart-wa-btn {
  width: 100%;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  padding: 16px;
}
.cart-clear-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.25);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: color 0.2s;
}
.cart-clear-btn:hover { color: rgba(255,80,80,.7); }

/* ─── MENU ITEM ADD BUTTONS ─── */
.menu-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.menu-item-add {
  margin-left: auto;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(245,168,0,.5);
  background: transparent;
  color: var(--gold);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.menu-item-add:hover {
  background: var(--gold);
  color: #0a0a0a;
  transform: scale(1.05);
}
.menu-item-add.in-cart {
  background: rgba(245,168,0,.12);
  border-color: var(--gold);
  color: var(--gold);
}

/* Plato del día — CTA button */
.plato-add-btn {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.95rem;
}

/* ─── CHECKOUT FORM (datos del cliente) ─── */
.cart-form {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cart-form__title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 4px 0 2px;
}
.cart-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.cart-field__label {
  font-size: 0.78rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}
.cart-field input {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
}
.cart-field input::placeholder { color: rgba(255,255,255,.28); }
.cart-field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(245,168,0,.06);
}
.cart-field input.invalid {
  border-color: #ff5a5a;
  background: rgba(255,90,90,.08);
}

.cart-delivery-note {
  font-size: 0.76rem;
  color: rgba(245,168,0,.75);
  line-height: 1.45;
  margin: -2px 0 2px;
}

/* Forma de pago */
.cart-pago {
  display: flex;
  gap: 8px;
}
.cart-pago-btn {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.1);
  background: transparent;
  color: rgba(255,255,255,.5);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.cart-pago-btn.active {
  background: rgba(245,168,0,.12);
  border-color: var(--gold);
  color: var(--gold);
}
.cart-pago-note {
  font-size: 0.76rem;
  color: rgba(255,255,255,.4);
  line-height: 1.45;
  margin: 2px 0 0;
}

/* Cuentas bancarias (transferencia) */
.cart-cuentas {
  margin-top: 10px;
  background: rgba(245,168,0,.06);
  border: 1px solid rgba(245,168,0,.18);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.cart-cuentas__head {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.cart-cuenta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.cart-cuenta:first-of-type { border-top: none; }
.cart-cuenta__banco { font-size: 0.82rem; color: rgba(255,255,255,.85); }
.cart-cuenta__num {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  user-select: all;
}
.cart-cuentas__foot {
  font-size: 0.72rem;
  color: rgba(255,255,255,.4);
  margin: 8px 0 0;
  line-height: 1.4;
}

/* ─── MOBILE ─── */
@media (max-width: 480px) {
  .cart-fab { bottom: 90px; right: 20px; width: 54px; height: 54px; }
  .cart-drawer__panel { width: 100vw; }
  .menu-item-add { font-size: 0.72rem; padding: 4px 10px; }
  .cart-field input { font-size: 16px; } /* evita zoom iOS al enfocar */
}

/* ════════════════════════════════════════════════════════
   CUENTA — modal login/registro (Fase 1)
   ════════════════════════════════════════════════════════ */
body.auth-open { overflow: hidden; }

.auth-modal { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.auth-modal[aria-hidden="false"] { pointer-events: auto; }
.auth-modal__overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0);
  transition: background 0.3s ease;
}
.auth-modal[aria-hidden="false"] .auth-modal__overlay { background: rgba(0,0,0,.75); }

.auth-modal__panel {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -46%) scale(0.97);
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: #12100E; border: 1px solid rgba(245,168,0,.14);
  border-radius: var(--radius-lg); padding: 28px 26px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  opacity: 0; transition: transform 0.3s var(--ease-spring), opacity 0.25s ease;
}
.auth-modal[aria-hidden="false"] .auth-modal__panel {
  transform: translate(-50%, -50%) scale(1); opacity: 1;
}
.auth-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); background: transparent;
  color: rgba(255,255,255,.65); font-size: 1rem; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.auth-modal__close:hover { background: rgba(255,255,255,.1); color: #fff; }

.auth-tabs {
  display: flex; gap: 6px; margin-bottom: 22px;
  background: rgba(255,255,255,.04); padding: 5px; border-radius: var(--radius-md);
}
.auth-tab {
  flex: 1; padding: 10px; border: none; background: transparent;
  color: rgba(255,255,255,.5); font-family: inherit; font-size: 0.9rem;
  font-weight: 700; cursor: pointer; border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.auth-tab.active { background: rgba(245,168,0,.14); color: var(--gold); }

.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field span { font-size: 0.78rem; color: rgba(255,255,255,.55); font-weight: 500; }
.auth-field input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: var(--white); font-family: inherit; font-size: 0.92rem;
  transition: border-color 0.2s, background 0.2s;
}
.auth-field input::placeholder { color: rgba(255,255,255,.28); }
.auth-field input:focus {
  outline: none; border-color: var(--gold); background: rgba(245,168,0,.06);
}
.auth-submit { width: 100%; justify-content: center; margin-top: 6px; }
.auth-hint { font-size: 0.76rem; color: rgba(255,255,255,.4); text-align: center; line-height: 1.5; margin-top: 4px; }
.auth-error {
  background: rgba(255,90,90,.1); border: 1px solid rgba(255,90,90,.3);
  color: #ff8a8a; font-size: 0.84rem; padding: 10px 14px;
  border-radius: var(--radius-sm); margin-bottom: 16px;
}


/* Botón cuenta en el nav */
.nav__account { display: flex; align-items: center; gap: 4px; }
.nav__account-btn, .nav__logout-btn {
  background: transparent; border: none; font-family: inherit; cursor: pointer;
}
/* El nombre del usuario y "Dashboard" son ahora <a>, los normalizamos */
.nav__account-btn, .nav__dashboard-link {
  text-decoration: none;
  color: inherit;
  font-size: inherit;
}
.nav__account-btn:hover, .nav__dashboard-link:hover {
  color: var(--gold-light, #f5c842);
}
/* Dashboard link — pequeño acento dorado para diferenciarlo */
.nav__dashboard-link {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--gold, #F5A800) !important;
  border: 1px solid rgba(245,168,0,.35);
  border-radius: 99px;
  padding: 3px 10px;
  transition: background .2s, border-color .2s;
}
.nav__dashboard-link:hover {
  background: rgba(245,168,0,.12);
  border-color: rgba(245,168,0,.7);
}
/* Badge de rol junto al nombre */
.nav__role-badge {
  font-size: 0.78em;
  margin-right: 3px;
  vertical-align: middle;
}
.nav__logout-btn { font-size: 0.78rem; opacity: .6; }
.nav__logout-btn:hover { opacity: 1; color: var(--gold-light, #f5c842); }


@media (max-width: 480px) {
  .auth-field input { font-size: 16px; }
}

/* ─── CALCULADORA DE DELIVERY ─── */
.cart-sector-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cart-select {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.cart-select option {
  background: var(--green-dark);
  color: var(--white);
}
.cart-select:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(245,168,0,.08);
}
.cart-gps-btn {
  background: rgba(245,168,0,.15);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.cart-gps-btn:hover {
  background: var(--gold);
  color: #0d0f0e;
  transform: translateY(-1px);
}
.cart-gps-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ─── SELECTOR DE UBICACIÓN DE DELIVERY ─── */
.cart-location { display: grid; gap: 10px; padding: 12px; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); background: rgba(255,255,255,.025); }
.cart-location__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-location__head p { margin: 3px 0 0; color: rgba(255,255,255,.45); font-size: .74rem; line-height: 1.35; }
.cart-saved-addresses { display: flex; flex-wrap: wrap; gap: 7px; align-items: stretch; }
.cart-saved-addresses > span { width: 100%; color: rgba(255,255,255,.5); font-size: .72rem; font-weight: 600; }
.cart-saved-addresses__hint { font-weight: 400 !important; }
.cart-address-chip { max-width: 100%; display: grid; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid rgba(245,168,0,.45); border-radius: 10px; background: rgba(245,168,0,.08); color: var(--white); font: inherit; cursor: pointer; }
.cart-address-chip:hover { background: rgba(245,168,0,.17); border-color: var(--gold); }
.cart-address-chip b { color: var(--gold); font-size: .78rem; }.cart-address-chip small { overflow: hidden; max-width: 220px; color: rgba(255,255,255,.62); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.cart-map-toggle, .cart-map-confirm, .cart-save-address { width: 100%; border: 1px solid rgba(245,168,0,.65); border-radius: 10px; background: transparent; color: var(--gold); padding: 11px 12px; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.cart-map-toggle:hover, .cart-map-toggle.active { background: rgba(245,168,0,.13); }.cart-map-confirm { background: var(--gold); color: #162116; border-color: var(--gold); }.cart-save-address { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.76); font-size: .78rem; padding: 9px; }
.cart-map-picker { display: grid; gap: 9px; }.cart-map-search { display: flex; gap: 7px; }.cart-map-search input { min-width: 0; flex: 1; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; background: rgba(0,0,0,.22); color: var(--white); padding: 10px; font: inherit; font-size: 16px; }.cart-map-search button { border: 0; border-radius: 9px; background: rgba(245,168,0,.2); color: var(--gold); padding: 0 12px; font: inherit; font-weight: 700; cursor: pointer; }.cart-map-help { margin: 0; color: rgba(255,255,255,.5); font-size: .73rem; }.cart-map { height: 230px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: #203a2f; }.cart-map .leaflet-control-attribution { font-size: 8px; }.cart-sector-fallback summary { color: rgba(255,255,255,.55); cursor: pointer; font-size: .78rem; }.cart-sector-fallback .cart-select { width: 100%; margin-top: 9px; }

.cart-delivery-badge {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}
.cart-delivery-badge--success {
  background: rgba(45, 112, 88, 0.25);
  border: 1px solid rgba(45, 112, 88, 0.6);
  color: #6ee7b7;
}
.cart-delivery-badge--warning {
  background: rgba(245, 168, 0, 0.15);
  border: 1px solid rgba(245, 168, 0, 0.5);
  color: #ffd055;
}
.cart-delivery-badge--loading {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  font-style: italic;
}

/* Confirmación para cantidades que parecen un pedido de grupo. */
.cart-large-warning { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 22px; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); }
.cart-large-warning[hidden] { display: none; }.cart-large-warning__card { width: min(390px, 100%); padding: 27px; border: 1px solid rgba(245,168,0,.75); border-radius: 20px; background: linear-gradient(145deg, #18362b, #0d1813); box-shadow: 0 24px 80px rgba(0,0,0,.55); text-align: center; color: var(--white); }.cart-large-warning__icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; background: rgba(245,168,0,.16); font-size: 1.6rem; }.cart-large-warning h3 { margin: 0 0 9px; font-size: 1.25rem; }.cart-large-warning p { margin: 0; line-height: 1.45; color: rgba(255,255,255,.78); }.cart-large-warning__hint { margin-top: 8px !important; color: var(--gold) !important; font-size: .8rem; }.cart-large-warning__card > div { display: flex; gap: 9px; margin-top: 21px; }.cart-large-warning button { flex: 1; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; background: transparent; color: var(--white); padding: 11px; font: inherit; font-weight: 700; cursor: pointer; }.cart-large-warning #largeWarningConfirm { border-color: var(--gold); background: var(--gold); color: #142117; }

@media (max-width: 480px) {
  .cart-location { padding: 11px; }.cart-location__head { align-items: flex-start; }.cart-gps-btn { padding: 9px; font-size: .73rem; }.cart-map { height: 210px; }.cart-address-chip { flex: 1 1 100%; }.cart-address-chip small { max-width: 100%; }
}
