/* =============================================================
   DEMADURO · Landing
   Concepto: nostalgia, la cocina de la abuela, plátano maduro.
   Paleta de marca:
     naranja #EC7700 · verde #006937 · banano #F9D074 · crema #F0E9E0
   ============================================================= */

:root {
  --orange: #ec7700;
  --orange-600: #d86a00;
  --orange-700: #bd5c00;
  --orange-soft: #ffa23d;
  --green: #006937;
  --green-700: #00532b;
  --green-300: #2f8d5e;
  --yellow: #f9d074;
  --yellow-300: #fbe0a3;
  --cream: #f0e9e0;
  --cream-card: #fbf7f0;
  --paper: #fffdf9;
  --ink: #2a2118;
  --ink-soft: #5d5347;
  --wa: #25d366;
  --wa-deep: #1aa851;

  --shadow-sm: 0 2px 10px rgba(42, 33, 24, 0.08);
  --shadow-md: 0 14px 34px -14px rgba(42, 33, 24, 0.28);
  --shadow-lg: 0 30px 60px -22px rgba(189, 92, 0, 0.45);

  --r-lg: 30px;
  --r-md: 22px;
  --r-sm: 14px;
  --maxw: 1160px;

  --font-display: "Fredoka", "Poppins", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ---------- decorative retro tile pattern (masked, recolorable) ---------- */
.pattern {
  position: absolute;
  inset: 0;
  -webkit-mask: url("../assets/img/pattern.svg") repeat;
  mask: url("../assets/img/pattern.svg") repeat;
  -webkit-mask-size: 230px;
  mask-size: 230px;
  background: var(--ink);
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.pattern--orange { background: var(--orange); }
.pattern--white { background: #fff; opacity: 0.09; }
.pattern--green { background: var(--green); }

/* ============================ HEADER ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(240, 233, 224, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(42, 33, 24, 0.07);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { height: 50px; width: 50px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand .brand-word { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--orange); letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(236, 119, 0, 0.12); color: var(--orange-700); }
.nav-links .nav-cta {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}
.nav-links .nav-cta:hover { background: var(--green-700); color: #fff; }
/* iconos de redes en el header */
.nav-social { display: flex; align-items: center; gap: 4px; margin-left: 2px; }
.nav-ico {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-soft);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.nav-ico:hover { background: rgba(236,119,0,0.12); color: var(--orange-700); transform: translateY(-2px); }
.nav-ico svg { width: 21px; height: 21px; fill: currentColor; }

@media (max-width: 620px) {
  .nav-links a.hide-sm { display: none; }
  .nav-ico { width: 40px; height: 40px; }
}

/* ============================ SÍGUENOS (social) ============================ */
.social { background: var(--cream); }
.social-card {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, #3a2e20 100%);
  border-radius: var(--r-lg); padding: 52px 30px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.social-card .pattern { opacity: 0.07; }
.social-inner { position: relative; z-index: 2; }
.social-inner .eyebrow {
  font-family: var(--font-display); font-weight: 600; color: var(--yellow);
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem;
}
.social-inner h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); color: #fff; margin: 8px 0 10px; }
.social-inner p { color: rgba(240,233,224,0.82); max-width: 44ch; margin: 0 auto 28px; }
.social-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.social-btn {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff;
  transition: transform 0.2s, box-shadow 0.25s; will-change: transform;
}
.social-btn svg { width: 24px; height: 24px; fill: #fff; }
.social-btn small { display: block; font-weight: 400; font-size: 0.78rem; opacity: 0.85; margin-top: -2px; }
.social-btn.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); box-shadow: 0 14px 30px -10px rgba(220,39,67,0.6); }
.social-btn.tt { background: #111; box-shadow: 0 14px 30px -12px rgba(0,0,0,0.7); }
.social-btn.fb { background: #1877f2; box-shadow: 0 14px 30px -12px rgba(24,119,242,0.6); }
.social-btn:hover { transform: translateY(-3px); }
.social-btn .txt { text-align: left; line-height: 1.05; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.25s, background 0.2s;
  will-change: transform;
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 12px 26px -10px rgba(236,119,0,0.7); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-3px); box-shadow: 0 18px 32px -12px rgba(236,119,0,0.8); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(37,211,102,0.75); }
.btn-wa:hover { background: var(--wa-deep); transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn-lg { font-size: 1.15rem; padding: 18px 30px; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 30px;
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(249,208,116,0.55), transparent 60%),
    radial-gradient(90% 70% at 8% 110%, rgba(0,105,55,0.10), transparent 55%),
    var(--cream);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,105,55,0.10);
  color: var(--green-700);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  color: var(--ink);
  margin-bottom: 18px;
}
.hero h1 .pop { color: var(--orange); }
.hero h1 .green { color: var(--green); }
.hero-sub {
  font-size: clamp(1.02rem, 2.4vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 33ch;
  margin-bottom: 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 26px; display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.hero-meta strong { color: var(--green); font-weight: 700; }

/* Hero visual: badge medallion with floating chips */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 340px; }
.medallion {
  position: relative;
  width: min(430px, 86vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, var(--orange-soft), var(--orange) 55%, var(--orange-700));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg), inset 0 0 0 12px rgba(255,255,255,0.10);
  animation: float 6s ease-in-out infinite;
}
.medallion::after {
  content: "";
  position: absolute; inset: 0; border-radius: 50%;
  -webkit-mask: url("../assets/img/pattern.svg") repeat; mask: url("../assets/img/pattern.svg") repeat;
  -webkit-mask-size: 150px; mask-size: 150px;
  background: #fff; opacity: 0.12;
}
.medallion img { width: 82%; position: relative; z-index: 2; filter: drop-shadow(0 10px 18px rgba(120,52,0,0.4)); }
.chip {
  position: absolute;
  background: var(--paper);
  border-radius: 16px;
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.chip .emoji { font-size: 1.2rem; }
.chip-1 { top: 8%; left: -6%; animation: float 5s ease-in-out infinite; }
.chip-2 { bottom: 14%; right: -8%; color: var(--green); animation: float 5.6s ease-in-out 0.4s infinite; }
.chip-3 { bottom: -2%; left: 12%; color: var(--orange-700); animation: float 6.4s ease-in-out 0.8s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta, .hero-meta { justify-content: center; }
  .hero-visual { order: -1; min-height: 0; margin-bottom: 6px; }
  .medallion { width: min(300px, 72vw); }
  .chip { display: none; }
}

/* ---------- marquee ticker ---------- */
.ticker {
  background: var(--green);
  color: var(--yellow);
  overflow: hidden;
  border-block: 3px solid var(--green-700);
  position: relative;
  z-index: 2;
}
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: scroll 32s linear infinite;
  padding: 13px 0;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-inline: 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}
.ticker-track span::after { content: "🍌"; font-size: 1rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================ SECTIONS ============================ */
.section { position: relative; padding: 78px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 46px; position: relative; z-index: 2; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(2rem, 4.8vw, 3.1rem); color: var(--ink); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- MENU feature ---------- */
.menu-feature { position: relative; z-index: 2; }
.menu-card {
  position: relative;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 100%);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.menu-card .pattern { opacity: 0.10; }
.menu-card-body { position: relative; z-index: 2; padding: 52px 20px 52px 52px; color: #fff; }
.menu-card-body .tag {
  display: inline-block; background: var(--yellow); color: var(--green-700);
  font-family: var(--font-display); font-weight: 600; padding: 6px 16px; border-radius: 999px;
  font-size: 0.85rem; margin-bottom: 18px;
}
.menu-card-body h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 14px; color: #fff; }
.menu-card-body p { color: rgba(255,255,255,0.9); margin-bottom: 26px; max-width: 42ch; }
.menu-card-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.menu-card-actions .btn-primary { box-shadow: 0 12px 26px -10px rgba(0,0,0,0.4); }
.menu-peek {
  position: relative; z-index: 2;
  padding: 30px 40px 30px 0;
  display: flex; justify-content: center; align-items: center;
  perspective: 900px;
}
.menu-peek-stack { position: relative; width: 210px; height: 300px; }
.menu-peek-stack img {
  position: absolute; width: 100%; border-radius: 14px; box-shadow: var(--shadow-md);
  border: 4px solid #fff;
  transition: transform 0.4s ease;
}
.menu-peek-stack img:nth-child(1) { transform: rotate(-9deg) translateX(-26px) translateY(8px); z-index: 1; }
.menu-peek-stack img:nth-child(2) { transform: rotate(-2deg); z-index: 2; }
.menu-peek-stack img:nth-child(3) { transform: rotate(8deg) translateX(26px) translateY(6px); z-index: 3; }
.menu-peek-stack:hover img:nth-child(1) { transform: rotate(-13deg) translateX(-46px) translateY(8px); }
.menu-peek-stack:hover img:nth-child(3) { transform: rotate(12deg) translateX(46px) translateY(6px); }
@media (max-width: 820px) {
  .menu-card { grid-template-columns: 1fr; }
  .menu-card-body { padding: 42px 26px 8px; text-align: center; }
  .menu-card-body p { margin-inline: auto; }
  .menu-card-actions { justify-content: center; }
  .menu-peek { padding: 18px 0 42px; }
}

/* prompt line after menu */
.choose-line {
  text-align: center; margin-top: 36px; position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--ink-soft);
}
.choose-line b { color: var(--orange); }

/* ---------- SEDES ---------- */
.sedes-section { background: var(--paper); }
.sedes-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 252px), 1fr));
  gap: 18px;
}
.sede-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--cream-card);
  border: 1.5px solid rgba(42,33,24,0.07);
  border-radius: var(--r-md);
  padding: 24px 22px;
  transition: transform 0.22s, box-shadow 0.25s, border-color 0.2s;
  overflow: hidden;
}
.sede-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--orange); transform: scaleY(0); transform-origin: top; transition: transform 0.25s;
}
.sede-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(236,119,0,0.3); }
.sede-card:hover::before { transform: scaleY(1); }
.sede-card .pin {
  width: 44px; height: 44px; border-radius: 13px; background: rgba(0,105,55,0.10);
  display: grid; place-items: center; margin-bottom: 8px;
}
.sede-card .pin svg { width: 22px; height: 22px; fill: var(--green); }
.sede-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sede-card h3 { font-size: 1.45rem; color: var(--ink); }
.sede-city { font-size: 0.8rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.05em; }
.sede-addr { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.4; margin-top: 4px; }
.sede-go {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; color: var(--orange-700); font-size: 0.98rem;
}
.sede-go svg { width: 18px; height: 18px; transition: transform 0.2s; }
.sede-card:hover .sede-go svg { transform: translateX(4px); }
.badge-new {
  background: var(--yellow); color: var(--green-700);
  font-family: var(--font-display); font-weight: 600; font-size: 0.68rem;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ---------- DOMICILIOS band ---------- */
.deliver-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-600) 100%);
  color: #fff;
}
.deliver-inner {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 52px 0;
}
.deliver-inner h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); color: #fff; }
.deliver-inner p { color: rgba(255,255,255,0.92); margin-top: 8px; max-width: 46ch; }
.deliver-moto { font-size: 3rem; line-height: 1; }
@media (max-width: 720px) {
  .deliver-inner { flex-direction: column; text-align: center; }
}

/* ---------- NOSTALGIA / story ---------- */
.story { background: var(--cream); }
.story-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; position: relative; z-index: 2; }
.story-card {
  background: var(--paper); border-radius: var(--r-md); padding: 30px 26px;
  box-shadow: var(--shadow-sm); border: 1.5px solid rgba(42,33,24,0.05);
}
.story-card .emoji { font-size: 2.2rem; }
.story-card h3 { font-size: 1.3rem; margin: 12px 0 8px; color: var(--green); }
.story-card p { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 760px) { .story-cards { grid-template-columns: 1fr; } }

/* ============================ FOOTER ============================ */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--cream); padding: 56px 0 30px;
}
.footer-grid { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; align-items: flex-start; }
.footer-brand img { height: 56px; width: 56px; border-radius: 50%; margin-bottom: 14px; }
.footer-brand p { color: rgba(240,233,224,0.7); max-width: 30ch; font-size: 0.95rem; }
.footer-col h4 { font-family: var(--font-display); color: var(--yellow); margin-bottom: 14px; font-size: 1.05rem; }
.footer-col a { display: block; color: rgba(240,233,224,0.8); padding: 4px 0; font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange-soft); }
.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.08);
  display: grid; place-items: center; transition: background 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--orange); transform: translateY(-3px); }
.footer-social svg { width: 22px; height: 22px; fill: var(--cream); }
.footer-bottom {
  position: relative; z-index: 2; text-align: center; margin-top: 40px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1); color: rgba(240,233,224,0.55); font-size: 0.85rem;
}

/* ============================ POPUP MODAL ============================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(42,33,24,0.72);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center;
  padding: 20px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  position: relative;
  /* El ancho se acopla a la altura disponible: así la imagen vertical
     nunca empuja el botón fuera de la pantalla (no queda "mocho"). */
  width: min(380px, 92vw);
  width: min(380px, 92vw, calc((100vh - 180px) * 5 / 7));
  width: min(380px, 92vw, calc((100dvh - 180px) * 5 / 7));
  margin: auto 0;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(26px) scale(0.96);
  transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }
.modal img { width: 100%; display: block; }
.modal-body { padding: 22px 24px 26px; text-align: center; }
.modal-body h3 { font-size: 1.4rem; color: var(--ink); margin-bottom: 6px; line-height: 1.2; }
.modal-body p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--ink);
  display: grid; place-items: center; font-size: 1.3rem; line-height: 1;
  box-shadow: var(--shadow-sm); transition: transform 0.2s, background 0.2s;
}
.modal-close:hover { transform: rotate(90deg); background: #fff; }

/* ============================ MENU LIGHTBOX ============================ */
.lightbox {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(42,33,24,0.92);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; color: var(--cream); gap: 12px;
  background: rgba(0,0,0,0.25);
}
.lightbox-bar .lb-title { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.lightbox-bar .lb-title img { height: 30px; width: 30px; border-radius: 50%; }
.lightbox-bar .lb-actions { display: flex; gap: 10px; align-items: center; }
.lb-dl {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff; font-weight: 600; font-family: var(--font-display);
  padding: 9px 16px; border-radius: 999px; font-size: 0.9rem; transition: background 0.2s;
}
.lb-dl:hover { background: var(--orange-600); }
.lb-close {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,0.12); color: #fff;
  display: grid; place-items: center; font-size: 1.5rem; line-height: 1; transition: background 0.2s;
}
.lb-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 22px 16px 40px;
  scroll-behavior: smooth;
}
.lightbox-scroll img {
  width: min(560px, 100%);
  border-radius: 12px;
  box-shadow: 0 20px 50px -16px rgba(0,0,0,0.7);
}
body.no-scroll { overflow: hidden; }

/* ============================ SEDE PAGE ============================ */
.sede-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--orange) 0%, var(--orange-600) 60%, var(--orange-700) 100%);
  color: #fff; padding: 40px 0 56px;
}
.sede-hero .pattern { opacity: 0.12; }
.sede-back {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.9); font-weight: 500; font-size: 0.95rem; margin-bottom: 26px;
  padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255,255,255,0.14);
  transition: background 0.2s;
}
.sede-back:hover { background: rgba(255,255,255,0.26); }
.sede-back svg { width: 18px; height: 18px; }
.sede-hero-inner { position: relative; z-index: 2; }
.sede-hero .eyebrow { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.82rem; opacity: 0.9; }
.sede-hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 8px 0 16px; }
.sede-addr-line { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 500; }
.sede-addr-line svg { width: 22px; height: 22px; fill: #fff; flex-shrink: 0; }
.sede-addr-line small { display: block; font-weight: 400; opacity: 0.85; font-size: 0.92rem; }

.sede-main { padding: 46px 0 70px; }
.sede-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 840px) { .sede-layout { grid-template-columns: 1fr; } }

/* WhatsApp hero card */
.wa-card {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, #2bdd6e 0%, var(--wa) 45%, var(--wa-deep) 100%);
  border-radius: var(--r-lg); padding: 34px 30px; color: #fff;
  box-shadow: 0 24px 50px -18px rgba(37,211,102,0.6);
  text-align: center;
}
.wa-card .wa-ico {
  width: 76px; height: 76px; border-radius: 50%; background: rgba(255,255,255,0.16);
  display: grid; place-items: center; margin: 0 auto 16px;
  animation: pulse 2.2s ease-in-out infinite;
}
.wa-card .wa-ico svg { width: 42px; height: 42px; fill: #fff; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
  70% { box-shadow: 0 0 0 18px rgba(255,255,255,0); }
}
.wa-card h2 { font-size: 1.7rem; margin-bottom: 4px; color: #fff; }
.wa-card p { color: rgba(255,255,255,0.92); margin-bottom: 20px; }
.wa-number {
  font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; letter-spacing: 0.01em;
  margin-bottom: 20px; display: block;
}
.wa-card .btn-ghost { background: #fff; color: var(--wa-deep); }
.wa-soon {
  background: var(--cream-card); border: 2px dashed rgba(0,105,55,0.3); color: var(--green-700);
}
.wa-soon .wa-ico { background: rgba(0,105,55,0.1); animation: none; }
.wa-soon .wa-ico svg { fill: var(--green); }
.wa-soon h2, .wa-soon .wa-number { color: var(--green-700); }
.wa-soon p { color: var(--ink-soft); }

.sede-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.sede-actions .btn { width: 100%; }
@media (max-width: 460px) { .sede-actions { grid-template-columns: 1fr; } }

.map-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--cream-card); }
.map-card iframe { width: 100%; height: 360px; border: 0; display: block; }
.map-card .map-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; background: var(--cream-card);
}
.map-card .map-foot span { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.map-card .map-foot svg { width: 20px; height: 20px; fill: var(--orange); }

/* other sedes switcher */
.other-sedes { margin-top: 56px; }
.other-sedes h3 { text-align: center; font-size: 1.5rem; margin-bottom: 22px; color: var(--ink); }
.chips-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sede-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--cream-card); border: 1.5px solid rgba(42,33,24,0.1);
  padding: 10px 18px; border-radius: 999px; font-weight: 500; font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.sede-chip:hover { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-2px); }
.sede-chip.active { background: var(--green); color: #fff; border-color: var(--green); }
.sede-chip svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

@media (max-width: 540px) { .hide-sm-inline { display: none; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

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

/* ============================ MENU PAGE ============================ */
.menu-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--green) 0%, var(--green-700) 100%);
  color: #fff; padding: 44px 0 52px; text-align: center;
}
.menu-hero .pattern { opacity: 0.10; }
.menu-hero-inner { position: relative; z-index: 2; }
.menu-hero-logo {
  width: 128px; height: 128px; border-radius: 50%;
  margin: 0 auto 18px; display: block; background: #fff;
  box-shadow: 0 16px 34px -12px rgba(0,0,0,0.45);
  border: 5px solid rgba(255,255,255,0.35);
}
.menu-hero .eyebrow { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; color: var(--yellow); }
.menu-hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); margin: 8px 0 14px; color: #fff; }
.menu-hero p { color: rgba(255,255,255,0.9); max-width: 46ch; margin: 0 auto 24px; }
.menu-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* sticky category nav */
.cat-nav {
  position: sticky; top: 68px; z-index: 40;
  background: rgba(251,247,240,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42,33,24,0.08);
}
.cat-nav-inner { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; padding: 12px 0; }
.cat-nav a { white-space: nowrap; }
.cat-nav a {
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 9px 18px; border-radius: 999px; color: var(--ink-soft);
  border: 1.5px solid transparent; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cat-nav a:hover, .cat-nav a.active { background: var(--orange); color: #fff; }

.menu-section { padding: 56px 0 10px; position: relative; }
.menu-section:last-of-type { padding-bottom: 70px; }
.menu-group-head { text-align: center; margin-bottom: 34px; }
.menu-group-head .g-emoji { font-size: 2.4rem; }
.menu-group-head h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); color: var(--green); margin: 6px 0 6px; }
.menu-group-head p { color: var(--ink-soft); }

.menu-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.menu-item {
  position: relative; display: flex; flex-direction: column; text-align: center;
  background: var(--cream-card); border: 1.5px solid rgba(42,33,24,0.07);
  border-radius: var(--r-md); padding: 22px 22px 22px; transition: transform 0.2s, box-shadow 0.25s, border-color 0.2s;
}
.menu-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(236,119,0,0.3); }
.menu-item-photo { position: relative; width: 168px; margin: 4px auto 16px; }
.menu-item-photo img {
  width: 168px; height: 168px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 12px 26px -10px rgba(42,33,24,0.4); border: 4px solid #fff;
  background: #fff;
}
.menu-item:hover .menu-item-photo img { transform: scale(1.03); transition: transform 0.3s; }
.menu-item-photo .price {
  position: absolute; bottom: 4px; right: -6px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  color: #fff; background: var(--green); padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: var(--shadow-sm); border: 2px solid #fff;
}
.menu-item-photo .star-tag { position: absolute; top: -4px; left: -6px; z-index: 2; margin: 0; box-shadow: var(--shadow-sm); }
.menu-item-body { display: flex; flex-direction: column; flex: 1; }
.menu-item h3 { font-size: 1.26rem; color: var(--ink); line-height: 1.15; margin-bottom: 8px; }
.menu-item .desc { color: var(--ink-soft); font-size: 0.94rem; margin: 0 0 18px; flex: 1; }
.menu-item .order-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--wa); color: #fff; font-family: var(--font-display); font-weight: 600;
  padding: 12px 18px; border-radius: 999px; font-size: 0.98rem;
  transition: background 0.2s, transform 0.18s; width: 100%;
}
.menu-item .order-btn:hover { background: var(--wa-deep); transform: translateY(-2px); }
.menu-item .order-btn svg { width: 19px; height: 19px; fill: #fff; }
.star-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--yellow); color: var(--green-700);
  font-family: var(--font-display); font-weight: 600; font-size: 0.68rem;
  padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 8px; align-self: flex-start;
}

/* Arma tu madurito */
.build-card {
  background: linear-gradient(150deg, var(--yellow) 0%, var(--yellow-300) 100%);
  border-radius: var(--r-lg); padding: 38px 30px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.build-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 30px; }
.build-col h4 {
  font-family: var(--font-display); color: var(--green-700); font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px;
  border-bottom: 2px solid rgba(0,105,55,0.25); padding-bottom: 6px;
}
.build-col ul { list-style: none; }
.build-col li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: var(--green-700); font-weight: 500; font-size: 0.96rem; }
.build-col li b { font-family: var(--font-display); white-space: nowrap; }
.build-cta { text-align: center; margin-top: 28px; }

/* ============================ SEDE PICKER ============================ */
.picker-list { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow-y: auto; padding: 4px 2px; }
.picker-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cream-card); border: 1.5px solid rgba(42,33,24,0.08);
  border-radius: var(--r-sm); padding: 13px 16px; text-align: left;
  transition: background 0.18s, border-color 0.18s, transform 0.18s; width: 100%;
}
.picker-item:hover { background: #fff; border-color: var(--wa); transform: translateX(3px); }
.picker-item .pi-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.picker-item .pi-city { font-size: 0.82rem; color: var(--ink-soft); }
.picker-item .pi-wa { display: inline-flex; align-items: center; gap: 6px; color: var(--wa-deep); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.picker-item .pi-wa svg { width: 18px; height: 18px; fill: var(--wa); }
.picker-item.soon { opacity: 0.6; cursor: not-allowed; }
.picker-item.soon .pi-wa { color: var(--ink-soft); }
.modal.modal-picker { width: min(440px, 94vw); }
.modal-picker .modal-head { padding: 24px 24px 6px; text-align: center; }
.modal-picker .modal-head .item-name { color: var(--orange); font-weight: 600; }
.modal-picker .modal-head h3 { font-size: 1.35rem; color: var(--ink); }
.modal-picker .modal-head p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 4px; }
.modal-picker .picker-wrap { padding: 14px 18px 22px; }

.modal-skip {
  display: block; width: 100%; margin-top: 10px; padding: 10px;
  color: var(--ink-soft); font-weight: 500; font-size: 0.92rem;
  background: none; border-radius: 999px; transition: color 0.2s, background 0.2s;
}
.modal-skip:hover { color: var(--ink); background: rgba(42,33,24,0.05); }

/* floating sticky WhatsApp on sede (mobile) */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; font-family: var(--font-display); font-weight: 600;
  padding: 14px 20px; border-radius: 999px; box-shadow: 0 14px 30px -8px rgba(37,211,102,0.8);
  transition: transform 0.2s; animation: float 4s ease-in-out infinite;
}
.fab-wa:hover { transform: scale(1.05); }
.fab-wa svg { width: 24px; height: 24px; fill: #fff; }

/* ============================================================
   OPTIMIZACIÓN MÓVIL — ajuste fino para celular
   ============================================================ */
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  /* en celular las redes viven en la sección "Síguenos" y el footer,
     así el header queda limpio (logo + CTA) */
  /* en celular las redes viven en la sección "Síguenos" y el footer */
  .nav-social { display: none; }
  .brand .brand-word { font-size: 1.2rem; }

  .section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 26px 0 14px; }
  .hero h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .hero-sub { font-size: 1.04rem; }

  /* CTAs del hero a todo el ancho = más fáciles de tocar */
  .hero-cta { width: 100%; flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .btn-lg { font-size: 1.05rem; padding: 16px 22px; }

  /* menú */
  .menu-hero { padding: 30px 0 34px; }
  .menu-hero-logo { width: 104px; height: 104px; margin-bottom: 14px; }
  .cat-nav { top: 64px; }
  /* los 3 chips siempre visibles y centrados (sin cortarse) */
  .cat-nav-inner { flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 0; }
  .cat-nav a { padding: 8px 12px; font-size: 0.84rem; }
  .menu-section { padding: 44px 0 6px; }
  .menu-group-head { margin-bottom: 26px; }

  /* sede */
  .map-card iframe { height: 260px; }
  .wa-card { padding: 28px 20px; }
  .wa-card h2 { font-size: 1.5rem; }
  .wa-number { font-size: 1.45rem; }
  .sede-hero { padding: 28px 0 44px; }

  /* bandas / story */
  .deliver-inner { padding: 40px 0; }
  .menu-card-body { padding: 34px 22px 6px; }

  /* footer */
  .footer-grid { gap: 26px; }

  /* pop-up más compacto en celular (menos altura) */
  .modal {
    width: min(340px, 90vw);
    width: min(340px, 90vw, calc((100dvh - 180px) * 5 / 7));
  }
  .modal-body { padding: 16px 18px 20px; }
  .modal-body h3 { font-size: 1.18rem; }
  .modal-body p { font-size: 0.88rem; margin-bottom: 14px; }
  .modal-skip { margin-top: 6px; padding: 8px; }
  .picker-list { max-height: 50vh; }
  .fab-wa { right: 14px; bottom: 14px; padding: 13px 18px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .brand .brand-word { font-size: 1.1rem; }
  .nav-links .nav-cta { padding: 8px 13px; font-size: 0.9rem; }
  .menu-item-photo, .menu-item-photo img { width: 150px; height: 150px; }
  .menu-item-photo img { height: 150px; }
}

/* Pantallas con notch: respeta áreas seguras */
@supports (padding: max(0px)) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .fab-wa { bottom: max(14px, env(safe-area-inset-bottom)); }
}
