/* Panaditas · Hero Opción 2 — tokens de marca y composición del Hero */

:root {
  --bg-deep: #073243;
  --bg-glow: #093545;
  --panel: #082f40;
  --panel-deep: #062a3a;
  --cream: #F7E8C7;
  --cream-2: #EFE0C2;
  --cream-paper: #FAF4E8;
  --cream-sand: #EFE0C2;
  --cream-card: #FFFDF8;
  --cacao: #4A2A12;
  --cacao-soft: #6E4B32;
  --terracotta: #A34718;
  --terracotta-deep: #8C3A11;
  --terracotta-light: #B5501E;
  --gold: #DDAA41;
  --gold-hover: #E5B654;
  --gold-light: #F7DFA9;
  --hairline: rgba(239, 224, 194, 0.16);
  --hairline-strong: rgba(239, 224, 194, 0.35);
  --font-display: 'Anton', 'Barlow Condensed', Impact, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --bar-h: 56px;
}

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

html, body { overflow-x: clip; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }

html.lock { overflow: hidden; }

body {
  font-family: var(--font-ui);
  background: var(--bg-deep);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: inherit; }

img { max-width: 100%; }

::selection { background: var(--gold); color: var(--bg-deep); }

[hidden] { display: none !important; }

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

.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 90;
  transform: translateY(-200%);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}

.skip-link:focus-visible { transform: none; }

/* Hero shell */

.hero {
  --pad-x: clamp(16px, 2.8vw, 40px);
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  padding: 18px var(--pad-x) 0;
  background: radial-gradient(120% 90% at 50% 42%, var(--bg-glow) 0%, var(--bg-deep) 70%);
  overflow: clip;
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url('../assets/hero/grain.png');
  background-repeat: repeat;
  opacity: 0.45;
  mix-blend-mode: overlay;
}

/* Header */

.hero-top {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  animation: fade-down 0.55s var(--ease-out) 0.05s both;
}

.top-nav { grid-column: 1; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 24px); }

.top-link-menu { display: none; }

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--cream-2);
  padding: 10px 2px;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
  transition: color 0.25s var(--ease-out), text-decoration-color 0.25s var(--ease-out);
}

.top-link:hover,
.top-link:focus-visible {
  color: var(--cream);
  text-decoration-color: var(--gold);
}

.top-rule { grid-column: 2; display: flex; align-items: center; min-width: 0; justify-content: center; }

.rule-line { flex: 1; height: 1px; background: var(--hairline-strong); }

.rule-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(239, 224, 194, 0.8);
  white-space: nowrap;
  padding: 0 10px;
}

.rule-label-end { text-align: right; }

.seal-btn {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex: none;
  transition: transform 160ms var(--ease-out);
}

.seal-btn:active { transform: scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .seal-btn:hover { transform: scale(1.03); }
}

.seal { width: 100%; height: 100%; display: block; }

.seal-text { font-family: var(--font-serif); font-weight: 700; }

.top-actions { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

.top-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline-strong);
  color: var(--cream-2);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.top-cart:hover { border-color: var(--gold); background-color: rgba(221, 170, 65, 0.08); }
.top-cart:active { transform: scale(0.97); }

.top-cart .ico { color: var(--gold); }

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg-deep);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* Franja editorial de apertura */

.hero-note {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: clamp(12px, 2vh, 20px);
  animation: fade-down 0.55s var(--ease-out) 0.1s both;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(221, 170, 65, 0.45);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream-2);
  white-space: nowrap;
  text-wrap: balance;
}

.status-short { display: none; }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(221, 170, 65, 0.16);
}

.hero-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(239, 224, 194, 0.85);
  text-align: right;
}

/* Escenario central */

.hero-stage {
  position: relative;
  z-index: 10;
  width: min(100%, 1360px);
  aspect-ratio: 1440 / 560;
  place-self: center;
  margin-block: clamp(4px, 1.2vh, 12px);
}

.wordmark {
  position: absolute;
  inset: 0;
  z-index: 1;
  animation: wordmark-in 0.7s var(--ease-out) 0.05s both;
}

.wordmark-svg { width: 100%; height: 100%; display: block; }

.wordmark-text { font-family: var(--font-display); font-size: 300px; fill: var(--cream); }

.chalk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.chalk path,
.chalk circle {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: chalk-draw 0.9s var(--ease-out) forwards;
}

.chalk-cream > :nth-child(3n + 1) { animation-delay: 0.6s; }
.chalk-cream > :nth-child(3n + 2) { animation-delay: 0.68s; }
.chalk-cream > :nth-child(3n) { animation-delay: 0.76s; }
.chalk-gold > :nth-child(3n + 1) { animation-delay: 1.05s; }
.chalk-gold > :nth-child(3n + 2) { animation-delay: 1.13s; }
.chalk-gold > :nth-child(3n) { animation-delay: 1.21s; }

/* Recortes PNG interactivos */

.food-hotspot {
  position: absolute;
  z-index: 3;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  animation: hotspot-in 0.9s var(--ease-out) forwards;
}

.spot-empanada-entera { left: 26.5%; top: -4%; width: 23.5%; z-index: 5; animation-delay: 0.28s; }
.spot-limon-top { left: 43.2%; top: -2%; width: 11.8%; z-index: 4; animation-delay: 0.52s; }
.spot-limon-bottom { left: 44.6%; bottom: -6%; width: 11%; z-index: 4; animation-delay: 0.6s; }
.spot-empanada-abierta { left: 53.5%; top: 18%; width: 25.5%; z-index: 5; animation-delay: 0.38s; }
.spot-guasacaca { left: 17.5%; bottom: 6%; width: 10.5%; z-index: 4; animation-delay: 0.46s; }

.hotspot-inner {
  display: block;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0);
}

.food-hotspot img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 8px 12px rgba(3, 18, 25, 0.45)) drop-shadow(0 24px 36px rgba(2, 14, 20, 0.55));
  transition: transform 240ms var(--ease-out);
}

.food-hotspot:focus-visible img { transform: scale(1.035); }

@media (hover: hover) and (pointer: fine) {
  .food-hotspot:hover img { transform: scale(1.035); }
}

/* Barra inferior del Hero */

.hero-bottom {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(18px, 3vw, 40px);
  padding-bottom: clamp(16px, 2.4vh, 26px);
  animation: fade-up 0.55s var(--ease-out) 0.12s both;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.45;
  color: var(--cream-2);
  max-width: 39ch;
}

.hero-tagline strong { color: var(--cream); font-weight: 600; }

.hero-actions { display: flex; align-items: center; gap: 18px; flex: none; }

.cta-pill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--bg-deep);
  background: var(--gold);
  border-radius: 9999px;
  padding: 14px 34px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.cta-pill:active { transform: translateY(0) scale(0.97); }

@media (hover: hover) and (pointer: fine) {
  .cta-pill:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  }
}

.link-order {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-serif);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--cream-2);
  padding: 10px 2px;
  text-decoration-line: underline;
  text-decoration-color: rgba(239, 224, 194, 0.4);
  text-underline-offset: 5px;
  transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}

.link-order:hover { color: var(--gold); text-decoration-color: var(--gold); }
.link-order:active { transform: scale(0.97); }

.link-wa {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 2px;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(239, 224, 194, 0.7);
  text-decoration-line: underline;
  text-decoration-color: rgba(239, 224, 194, 0.28);
  text-underline-offset: 5px;
  transition: color 200ms var(--ease-out), text-decoration-color 200ms var(--ease-out);
}

.link-wa:hover { color: var(--gold); text-decoration-color: var(--gold); }
.link-wa:active { transform: scale(0.97); }

/* Marquee editorial */

.hero-marquee {
  position: relative;
  z-index: 20;
  margin-inline: calc(var(--pad-x) * -1);
  background: var(--terracotta);
  color: var(--cream-paper);
  overflow: hidden;
  border-top: 1px solid rgba(74, 42, 18, 0.35);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.hero-marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-group {
  display: block;
  padding: 11px 0 11px 2.6rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-group b { font-weight: 400; opacity: 0.7; padding-inline: 0.4rem; }

/* Overlays: base común */

.drawer, .modal, .food-popover { position: fixed; z-index: 50; }

.drawer { inset: 0; }

.drawer-scrim, .modal-scrim, .pop-scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 25, 0.62);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.drawer.open .drawer-scrim,
.modal.open .modal-scrim,
.food-popover.open .pop-scrim { opacity: 1; }

/* Botones compartidos */

.icon-btn {
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  color: rgba(239, 224, 194, 0.8);
  border-radius: 12px;
  transition: color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}

.icon-btn:hover { color: var(--gold); background-color: rgba(221, 170, 65, 0.1); }
.icon-btn:active { transform: scale(0.97); }

.btn-gold {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  font-weight: 700;
  font-size: 15px;
  color: var(--bg-deep);
  background: var(--gold);
  border-radius: 999px;
  padding: 12px 20px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: background-color 0.25s var(--ease-out), transform 160ms var(--ease-out);
}

.btn-gold:hover { background: var(--gold-hover); }
.btn-gold:active { transform: scale(0.97); }
.btn-gold[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

.btn-outline {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  font-weight: 600;
  font-size: 14px;
  color: var(--cream-2);
  border: 1px solid rgba(239, 224, 194, 0.4);
  border-radius: 999px;
  padding: 11px 20px;
  text-decoration: none;
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 160ms var(--ease-out);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline:active { transform: scale(0.97); }

/* Modal Delivery & Sedes */

.modal { inset: 0; z-index: 55; }

.modal-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, 92vw);
  max-height: min(86vh, 86dvh);
  overflow-y: auto;
  background: var(--panel);
  border-radius: 20px;
  padding: 30px 30px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translate(-50%, -48%) scale(0.96);
  transition: transform 0.35s var(--ease-out), opacity 0.3s var(--ease-out);
}

.modal.open .modal-card { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.modal-close { position: absolute; top: 14px; right: 14px; }

.modal-badge {
  display: inline-block;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(221, 170, 65, 0.45);
  border-radius: 999px;
  padding: 7px 13px;
}

.modal-title { font-family: var(--font-serif); font-weight: 600; font-size: 26px; color: var(--cream); margin: 14px 0 4px; }

.branch { padding: 16px 0; border-bottom: 1px solid var(--hairline); }

.branch h3 { font-family: var(--font-serif); font-weight: 600; font-size: 17.5px; color: var(--cream-2); margin-bottom: 6px; }

.branch p { font-size: 14px; line-height: 1.55; color: rgba(239, 224, 194, 0.82); }

.branch-hours { margin-top: 4px; font-size: 13px; color: rgba(239, 224, 194, 0.72); }

.modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.modal-ig {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: rgba(239, 224, 194, 0.75);
  text-decoration: none;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease-out), text-decoration-color 0.2s var(--ease-out);
}

.modal-ig:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* Micro-tarjeta flotante de producto */

.food-popover { z-index: 60; }

.pop-card {
  position: relative;
  width: 284px;
  background: var(--panel);
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transform-origin: var(--pop-origin, center);
  transition: opacity 0.25s var(--ease-out), transform 0.3s var(--ease-out);
}

.food-popover.open .pop-card { opacity: 1; transform: none; }

.pop-close { position: absolute; top: 8px; right: 8px; min-width: 40px; min-height: 40px; font-size: 20px; }

.pop-title { font-family: var(--font-serif); font-weight: 600; font-size: 16.5px; line-height: 1.3; color: var(--cream); padding-right: 36px; }

.pop-desc { margin-top: 7px; font-size: 13px; line-height: 1.5; color: rgba(239, 224, 194, 0.8); }

.pop-price { margin-top: 8px; font-weight: 700; font-size: 15px; color: var(--gold); }

.pop-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

.pop-actions .btn-gold { min-height: 42px; font-size: 13.5px; padding: 9px 16px; }

.pop-actions .btn-outline { min-height: 42px; font-size: 13.5px; padding: 9px 16px; }

.pop-scrim { display: none; }

/* Utilidades */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Keyframes */

@keyframes wordmark-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes hotspot-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes chalk-draw { to { stroke-dashoffset: 0; } }

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Responsive del Hero */

@media (max-width: 1180px) {
  .rule-label { display: none; }
}

@media (max-width: 1024px) {
  .top-link { font-size: 16px; }
  .hero-tagline { max-width: 36ch; }
  .hero-motto { max-width: 34ch; }
}

@media (min-width: 769px) and (max-height: 820px) {
  .hero-stage { width: min(76vw, 1080px); }
  .seal-btn { width: 78px; height: 78px; }
}

@media (max-width: 860px) {
  .hero-top { grid-template-columns: 1fr auto 1fr; }
  .top-nav { display: flex; gap: 0; }
  .top-nav .top-link-extra { display: none; }
  .top-link-menu { display: inline-flex; font-size: 15px; }
  .top-actions { justify-content: flex-end; }
  .top-actions .top-link { display: none; }
}

@media (max-width: 768px) {
  .hero { padding: 14px 12px 0; }
  .hero-top { gap: 8px; }
  .seal-btn { width: 66px; height: 66px; }
  .top-cart { min-height: 44px; padding: 7px 11px; }
  .top-cart-text { display: none; }
  .hero-note { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 12px; }
  .status-pill { white-space: normal; font-size: 11px; line-height: 1.4; }
  .hero-motto { text-align: left; max-width: none; }
  .hero-stage { width: 100%; margin-block: 6px; }
  .hero-bottom { flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 18px; }
  .hero-actions { justify-content: space-between; flex-wrap: wrap; row-gap: 4px; }
  .cta-pill { padding: 13px 26px; }
  .hero-marquee { margin-inline: -12px; }
  .marquee-group { padding-block: 10px; font-size: 11px; }
  .food-popover { inset: 0; }
  .pop-scrim { display: block; }
  .pop-card { position: absolute; left: 12px; right: 12px; bottom: 14px; width: auto; }
}

@media (max-width: 480px) {
  .hero { padding-inline: 10px; }
  .hero-marquee { margin-inline: -10px; }
  .status-long { display: none; }
  .status-short { display: inline; }
  .hero-tagline { font-size: 14.5px; }
  .hero-actions { gap: 12px; }
  .link-order { font-size: 13.5px; }
  .modal-card { padding: 24px 20px 22px; }
}

/* Movimiento reducido */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }

  .food-hotspot, .wordmark { opacity: 1; }
  .chalk path, .chalk circle { stroke-dashoffset: 0; }
  .marquee-track { animation: none; }
}
