/* ==========================================================================
   Tacos Neza — style.css
   Mobile-first. Brand colors from the brief.
   ========================================================================== */

:root {
  --purple:        #3B1652;
  --purple-light:  #4A1D66;
  --purple-deep:   #2A0F3B;
  --orange:        #F7941D;
  --orange-dark:   #D97B0C;
  --yellow:        #FFD447;
  --white:         #FFFFFF;
  --cream:         #FFF6E9;
  --muted:         rgba(255, 255, 255, 0.72);
  --whatsapp:      #25D366;
  --whatsapp-dark: #1DA851;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 18px 46px rgba(0, 0, 0, 0.38);

  --header-h: 72px;
  /* header height + sticky menu-category-bar height, so a category heading
     never lands hidden underneath both bars when jumped to. JS measures the
     real heights on load and keeps this in sync; this is just the fallback
     for the instant before that runs. */
  --menu-cat-offset: 132px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--purple);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; }

p { margin: 0 0 1em; }

ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

input, textarea, select { font: inherit; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--yellow);
  color: var(--purple-deep);
  padding: .75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  text-align: center;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--orange);
  color: #23122F;
  box-shadow: 0 8px 20px rgba(247, 148, 29, .35);
}
.btn-primary:hover { background: var(--yellow); }

.btn-whatsapp { background: var(--whatsapp); color: #08331A; }
.btn-whatsapp:hover { background: #32e276; }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .28);
}
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-block { width: 100%; }
.btn-sm { padding: .6rem 1.2rem; font-size: .9rem; }

.btn-add {
  background: rgba(255, 255, 255, .1);
  color: var(--yellow);
  border: 2px solid var(--orange);
  padding: .55rem 1.1rem;
  font-size: .88rem;
  margin-top: auto;
  align-self: flex-start;
}
.btn-add:hover { background: var(--orange); color: #23122F; }

/* ================================================================= HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(42, 15, 59, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled {
  background: rgba(42, 15, 59, .98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: .5rem;
}

.brand { display: flex; align-items: center; gap: .6rem; flex: none; }
.brand-logo {
  width: 48px; height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
}
.brand-name {
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name-accent { color: var(--orange); }

/* nav */
.main-nav {
  display: none;
  gap: 1.6rem;
  margin-left: auto;
}
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: .95rem;
  padding: .35rem 0;
  color: rgba(255, 255, 255, .88);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .2s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}

.header-phone {
  display: none;
  align-items: center;
  gap: .4rem;
  font-weight: 700;
  font-size: .92rem;
  color: var(--yellow);
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 71, .3);
}
.header-phone:hover { background: rgba(255, 212, 71, .12); }

/* language toggle */
.lang-toggle {
  display: flex;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  overflow: hidden;
  flex: none;
}
.lang-btn {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .7);
  font-weight: 800;
  font-size: .78rem;
  padding: .42rem .68rem;
  letter-spacing: .04em;
  transition: background-color .15s ease, color .15s ease;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.is-active { background: var(--orange); color: #23122F; }

/* cart button */
.cart-btn {
  position: relative;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--white);
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color .15s ease;
}
.cart-btn:hover { background: var(--orange); color: #23122F; }
.cart-btn .ico { width: 20px; height: 20px; }

.cart-btn.is-bumping { animation: bump .4s ease; }
@keyframes bump {
  0%, 100% { transform: scale(1); }
  35%      { transform: scale(1.22); }
}

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--purple-deep);
  font-size: .72rem;
  font-weight: 900;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.cart-count.is-visible { display: flex; }

/* hamburger */
.nav-toggle {
  width: 42px; height: 42px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  display: grid;
  place-content: center;
  gap: 4px;
  flex: none;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile nav panel */
@media (max-width: 899px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--purple-deep);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .main-nav.is-open { max-height: 320px; }
  .main-nav .nav-link {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  .main-nav .nav-link::after { display: none; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; margin-left: 2rem; margin-right: auto; }
  .header-phone { display: inline-flex; }
  .header-actions { margin-left: 0; }
  .brand-logo { width: 56px; height: 56px; }
  .brand-name { font-size: 1.25rem; }
}

/* =================================================================== HERO */
.hero {
  position: relative;
  min-height: clamp(520px, 86vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/hero.png") center/cover no-repeat;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(42, 15, 59, .62) 0%, rgba(42, 15, 59, .55) 45%, rgba(59, 22, 82, .96) 100%),
    radial-gradient(ellipse at 30% 40%, rgba(0, 0, 0, .25), transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 5rem 4rem;
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 212, 71, .35);
  padding: .45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 7.5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .55);
  margin-bottom: .6rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: rgba(255, 255, 255, .92);
  max-width: 44ch;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

/* ================================================================ MARQUEE */
.marquee-section {
  background: var(--purple-deep);
  padding-block: 1.6rem;
  border-block: 3px solid var(--orange);
}

.marquee {
  position: relative;
  overflow: hidden;
}

/* Soft fade on both edges. Done with overlay gradients instead of
   mask-image on purpose: a mask over a continuously animating track forces
   the browser to re-composite the whole strip every frame, which makes the
   page stutter with photos this large. */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7%;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0;  background: linear-gradient(to right, var(--purple-deep), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left,  var(--purple-deep), transparent); }

.marquee-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: marquee-scroll 40s linear infinite;
  will-change: transform;          /* keep the strip on its own GPU layer */
  /* Duration is recalculated in js/main.js so the speed is the same on every
     screen size. Change PIXELS_PER_SECOND there to speed it up / slow it down. */
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }   /* -50% = exactly one image set */
}

.marquee-item {
  margin: 0;
  flex: none;
  width: 190px;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid rgba(255, 212, 71, .28);
  background: var(--purple-light);
}
.marquee-item img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 700px) {
  .marquee-item { width: 260px; height: 185px; }
  .marquee-track { gap: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* =============================================================== SECTIONS */
.section { padding-block: clamp(3.2rem, 8vw, 5.5rem); }

/* NOTE on performance: the source photos are large (1254x1254 PNGs, ~2.5 MB
   each, ~46 MB for the folder). Every <img> already uses loading="lazy" so
   off-screen photos are never decoded. Do NOT add content-visibility here —
   these sections are far taller than any usable contain-intrinsic-size
   estimate, and the wrong estimate makes the scrollbar jump. The real fix is
   compressing the images (see README-LOCAL.txt). */

.eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  letter-spacing: -.02em;
  margin-bottom: .4rem;
}

.section-sub {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 2.5rem;
  font-size: 1.02rem;
}

/* ============================================================== FEATURED */
.section-featured {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(247, 148, 29, .16), transparent 60%),
    var(--purple);
}

.featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .featured-grid { grid-template-columns: repeat(4, 1fr); } }

.featured-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--purple-light), #3A1550);
  border: 1px solid rgba(255, 212, 71, .2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.featured-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
}

.featured-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--purple-deep); }
.featured-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.featured-card:hover .featured-media img { transform: scale(1.06); }

.featured-body {
  padding: 1.15rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}
.featured-body h3 { font-size: 1.22rem; color: var(--yellow); margin: 0; }
.featured-body p { color: var(--muted); font-size: .92rem; margin: 0; }

/* =================================================================== MENU */
.section-menu { background: var(--purple-deep); }

/* Sticky category jump bar */
.menu-cats-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;                 /* below the site header (100) and cart drawer */
  background: var(--purple-deep);
  margin: 0 0 2rem;
  padding-block: .5rem;
  border-bottom: 1px solid rgba(255, 212, 71, .18);
}

.menu-cats-track {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;                  /* Firefox */
  padding: .35rem .1rem;                  /* room for the focus ring */
}
.menu-cats-track::-webkit-scrollbar { display: none; }   /* Chrome / Safari */

.menu-cat-pill {
  flex: none;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .8);
  font-weight: 700;
  font-size: .86rem;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.menu-cat-pill:hover { border-color: var(--orange); color: var(--white); }
.menu-cat-pill.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #23122F;
}

.menu-cat {
  font-size: clamp(1.35rem, 3.5vw, 1.9rem);
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 3rem 0 .35rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid rgba(247, 148, 29, .3);
  scroll-margin-top: var(--menu-cat-offset);   /* clears the sticky header + pill bar when jumped to */
}
.menu-cat:first-of-type { margin-top: 1rem; }

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 560px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }

.menu-card {
  display: flex;
  flex-direction: column;
  background: var(--purple-light);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.menu-card:hover { transform: translateY(-4px); border-color: var(--orange); }

.menu-media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--purple-deep); }
.menu-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.menu-card:hover .menu-media img { transform: scale(1.05); }

.menu-body {
  padding: 1.1rem 1.2rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.menu-body h4 { font-size: 1.1rem; color: var(--yellow); margin: 0; }
.menu-body p { color: var(--muted); font-size: .9rem; margin: 0; }

/* text-only items (no photo yet) — hug their content instead of stretching
   to the height of the photo cards next to them in the same row */
.menu-card--text {
  border-left: 4px solid var(--orange);
  background: rgba(74, 29, 102, .55);
  align-self: start;
}
.menu-card--text .btn-add { margin-top: .35rem; }

/* variant selectors (Protein / Style) — sit inside a menu card, between the
   description and the "Add to order" button. One <select> per variant. */
.menu-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  margin: .1rem 0 .2rem;
}
/* Two selects (e.g. Protein + Style) sit side by side once there's room. */
@media (min-width: 480px) {
  .menu-options:has(.menu-option:nth-child(2)) { grid-template-columns: 1fr 1fr; }
}

.menu-option { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }

.menu-option-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--yellow);
}

.menu-select {
  width: 100%;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: .55rem .65rem;
  font-size: .87rem;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.menu-select:hover { border-color: var(--orange); }
.menu-select:focus { border-color: var(--orange); background: rgba(0, 0, 0, .42); outline: none; }
/* Native <option> list ignores the dark page background on most browsers. */
.menu-select option { color: #23122F; background: var(--white); }

/* =============================================================== CATERING */
.section-catering {
  background:
    radial-gradient(ellipse at 10% 20%, rgba(255, 212, 71, .14), transparent 55%),
    var(--purple);
}

.catering-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 940px) {
  .catering-inner { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; }
}

.catering-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 212, 71, .25);
}
.catering-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

@media (min-width: 940px) {
  .catering-media { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.catering-copy { color: var(--muted); margin-bottom: 2rem; }

/* form */
.catering-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 560px) { .catering-form { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--yellow);
}

.field input,
.field textarea {
  width: 100%;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: .8rem .95rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255, 255, 255, .4); }

.field input:focus,
.field textarea:focus {
  border-color: var(--orange);
  background: rgba(0, 0, 0, .4);
  outline: none;
}

.field textarea { resize: vertical; min-height: 110px; }

/* the native date picker icon is nearly invisible on a dark field */
.field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.4);
  cursor: pointer;
}

.form-status {
  margin: .9rem 0 0;
  font-size: .92rem;
  min-height: 1.2em;
}
.form-status.is-error { color: #FF9C9C; }
.form-status.is-ok { color: var(--yellow); }

/* ================================================================= GALLERY */
.section-gallery {
  background:
    radial-gradient(ellipse at 15% 100%, rgba(255, 212, 71, .12), transparent 55%),
    var(--purple-deep);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.gallery-item {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--purple-light);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

/* =============================================================== INSTAGRAM */
.section-instagram {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(247, 148, 29, .14), transparent 55%),
    var(--purple);
}

/* Mobile default is 2 columns per the brief (never a single column);
   desktop switches to all 4 in a row at the same breakpoint the other
   grids on this page use. */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 1040px) { .instagram-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

.instagram-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  background: var(--purple-light);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Instagram's own script sets inline min-width/max-width (~326-540px) on
   both the placeholder <blockquote> and the <iframe> it replaces it with —
   override so the embed always fills its grid cell instead of overflowing
   the narrow 2-up mobile layout. embed.js keeps the "instagram-media" class
   on the rendered iframe, so one selector covers both states. */
.instagram-embed .instagram-media {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.instagram-embed a {
  color: var(--yellow);
  font-weight: 600;
  text-decoration: underline;
}

/* ================================================================ REVIEWS */
.section-reviews { background: var(--purple-deep); }

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 620px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: var(--white);
  color: #2B2B2B;
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.review-head {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.review-id { flex: 1; min-width: 0; }

.review-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  flex: none;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: var(--purple-deep);
  font-weight: 900;
  font-size: 1.25rem;
}

.review-name { margin: 0; font-weight: 800; font-size: .98rem; }
.review-stars { margin: 0; color: #FBBC05; letter-spacing: .08em; font-size: .95rem; }
.google-logo { width: 22px; height: 22px; flex: none; }
.review-text { margin: 0; font-size: .94rem; line-height: 1.65; color: #4A4A4A; }

/* ==================================================================== MAP */
.section-map { background: var(--purple); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--orange);
  box-shadow: var(--shadow-lg);
  line-height: 0;
}
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }
@media (min-width: 768px) { .map-frame iframe { height: 450px; } }

/* ================================================================= FOOTER */
.site-footer {
  background: var(--purple-deep);
  border-top: 3px solid var(--orange);
  padding-top: 3.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }

.footer-brand img { width: 110px; height: 110px; object-fit: contain; }
.footer-tagline { color: var(--muted); margin-top: 1rem; max-width: 34ch; }

.footer-col h3 {
  font-size: .9rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.footer-h3-spaced { margin-top: 1.8rem; }

.footer-list li { margin-bottom: .6rem; color: var(--muted); }
.footer-list a { font-weight: 600; color: var(--white); }
.footer-list a:hover { color: var(--yellow); }

.social-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: background-color .15s ease, transform .15s ease;
}
.social-link svg { width: 20px; height: 20px; fill: var(--white); }
.social-link:hover { background: var(--orange); transform: translateY(-3px); }
.social-link:hover svg { fill: #23122F; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.4rem;
  text-align: center;
}
.footer-bottom p { margin: 0; color: rgba(255, 255, 255, .55); font-size: .88rem; }

/* ====================================================== WHATSAPP FLOATING */
.whatsapp-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .45);
  transition: transform .18s ease, background-color .18s ease;
}
.whatsapp-float svg { width: 32px; height: 32px; fill: #08331A; }
.whatsapp-float:hover { transform: scale(1.09); background: #32e276; }

@media (min-width: 768px) {
  .whatsapp-float { right: 1.6rem; bottom: 1.6rem; width: 62px; height: 62px; }
}

/* ============================================================ CART DRAWER */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(2px);
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  z-index: 120;
  width: min(400px, 100%);
  height: 100%;
  background: var(--purple-light);
  border-left: 3px solid var(--orange);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .28s ease;
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem .9rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.cart-head h2 { margin: 0; font-size: 1.3rem; color: var(--yellow); }

.cart-close {
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  padding: 0 .3rem;
  border-radius: 8px;
}
.cart-close:hover { color: var(--orange); }

.cart-note-top {
  margin: 0;
  padding: .8rem 1.35rem;
  font-size: .84rem;
  color: var(--muted);
  background: rgba(0, 0, 0, .22);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem 1.35rem;
}

.cart-empty { color: var(--muted); font-size: .95rem; }

.cart-list { display: flex; flex-direction: column; gap: 1rem; }

.cart-item {
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  padding: .85rem .95rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.cart-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .6rem;
}
.cart-item-name { font-weight: 700; font-size: .98rem; color: var(--white); }

.cart-item-remove {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0 .25rem;
  border-radius: 6px;
  flex: none;
}
.cart-item-remove:hover { color: #FF8A8A; }

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

.qty-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
}
.qty-btn:hover { background: var(--orange); color: #23122F; border-color: var(--orange); }

.qty-value { min-width: 1.8rem; text-align: center; font-weight: 800; color: var(--yellow); }

.cart-item-note {
  width: 100%;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: var(--white);
  padding: .5rem .7rem;
  font-size: .87rem;
}
.cart-item-note::placeholder { color: rgba(255, 255, 255, .38); }
.cart-item-note:focus { border-color: var(--orange); outline: none; }

.cart-foot {
  padding: 1.1rem 1.35rem calc(1.1rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .22);
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.cart-total { margin: 0; font-size: .95rem; color: var(--muted); }
.cart-total strong { color: var(--yellow); font-size: 1.1rem; }

/* ================================================================== TOAST */
.toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  z-index: 130;
  transform: translate(-50%, 1.5rem);
  background: var(--yellow);
  color: var(--purple-deep);
  font-weight: 700;
  font-size: .92rem;
  padding: .75rem 1.3rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  max-width: calc(100% - 2.5rem);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ======================================================= REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
