.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(14, 12, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.brand span { color: var(--ember); }

.topnav {
  display: none;
  gap: 1rem;
  margin-left: 1rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.topnav a.is-active { color: var(--cream); }

.pill-link {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--ember);
}

@media (min-width: 760px) {
  .topnav { display: flex; }
  .topbar { padding-inline: 2rem; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(68vh, 620px);
  display: grid;
  align-items: center;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(14,12,11,0.55), rgba(14,12,11,0.15)),
    url("https://images.unsplash.com/photo-1555939594-58edc70ea68b?auto=format&fit=crop&w=1800&q=80")
      center / cover no-repeat;
  animation: hero-in 1.1s var(--ease) both;
  overflow: hidden;
}

.hero-media.has-slides {
  background: var(--ink);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  display: block;
  text-decoration: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 0;
}

.hero-media.has-slides .hero-slide.is-active {
  opacity: 1;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(14, 12, 11, 0.78) 0%, rgba(14, 12, 11, 0.35) 48%, transparent 75%),
    linear-gradient(to top, var(--ink) 0%, transparent 42%);
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(243, 235, 227, 0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--ember);
  width: 1.25rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 4.25rem 1.25rem 1.5rem;
  max-width: 40rem;
  animation: rise 0.9s var(--ease) 0.15s both;
}

@media (min-width: 760px) {
  .hero-copy { padding: 3.5rem 2.5rem 1.75rem; }
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 0.95;
}

.lede {
  margin: 1rem 0 0;
  max-width: 28rem;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--ember);
  color: #1a1008;
  font-weight: 600;
}

.btn-primary:hover { background: #f0b56a; }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--line);
}

/* Carta */
.section-carta {
  padding: 1.15rem 1.25rem 1.5rem;
}

@media (min-width: 760px) {
  .section-carta {
    padding: 1.35rem 2.5rem 1.75rem;
  }
}

.section-carta:last-of-type {
  padding-bottom: 3.5rem;
}

@media (min-width: 760px) {
  .section-carta:last-of-type {
    padding-bottom: 4rem;
  }
}

.section-featured .section-head,
.section-offers .section-head {
  margin-bottom: 1.15rem;
}

.featured-marquee {
  overflow: hidden;
  margin-inline: -1.25rem;
  padding-inline: 1.25rem;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 760px) {
  .featured-marquee {
    margin-inline: -2.5rem;
    padding-inline: 2.5rem;
  }
}

.featured-marquee.is-dragging {
  cursor: grabbing;
}

.featured-marquee-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  will-change: transform;
}

.dish--marquee {
  flex: 0 0 min(16.5rem, 72vw);
  width: min(16.5rem, 72vw);
}

.dish--marquee .dish-meta h3 {
  font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
  .featured-marquee {
    overflow-x: auto;
    cursor: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .featured-marquee-track {
    transform: none !important;
  }
  .dish--marquee {
    scroll-snap-align: start;
  }
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--cream-dim);
}

.cats {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin: 1rem 0 1.15rem;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.cats::-webkit-scrollbar { display: none; }

.cat {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream-dim);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}

.cat-img {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.cat.is-active {
  background: var(--surface-2);
  color: var(--cream);
  border-color: transparent;
}

.dish-rail {
  display: grid;
  gap: 1.25rem;
}

.dish-rail.is-loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

@media (min-width: 720px) {
  .dish-rail { grid-template-columns: repeat(3, 1fr); }
}

.dish {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.35s var(--ease);
}

.dish:hover { transform: translateY(-4px); }

.dish-img-wrap {
  position: relative;
}

.dish-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  z-index: 1;
}

.dish-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 4px;
  line-height: 1;
  color: #1a120c;
  background: var(--ember);
}

.dish-badge--feat {
  background: var(--cream);
  color: #1a120c;
}

.price-was {
  color: var(--cream-dim);
  font-weight: 500;
  margin-right: 0.35rem;
  font-size: 0.85em;
}

.section-offers .dish-badge--offer {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.dish-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}

.dish-img--1 {
  background-image: url("https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=900&q=80");
}

.dish-img--2 {
  background-image: url("https://images.unsplash.com/photo-1559339352-11d035aa65de?auto=format&fit=crop&w=900&q=80");
}

.dish-img--3 {
  background-image: url("https://images.unsplash.com/photo-1568901346375-23c9450c58cd?auto=format&fit=crop&w=900&q=80");
}

.dish-meta {
  padding: 1rem 1.1rem 1.2rem;
}

.dish-meta h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.dish-meta p {
  margin: 0.25rem 0 0.7rem;
  color: var(--cream-dim);
  font-size: 0.9rem;
}

.price {
  color: var(--ember);
  font-weight: 600;
  font-size: 0.95rem;
}

.preview-foot {
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: 0.82rem;
}

/* Plato / configurador */
.page-plato { background: var(--ink); }

.plato-layout {
  display: grid;
  min-height: calc(100vh - 58px);
}

@media (min-width: 960px) {
  .plato-layout { grid-template-columns: 1.15fr 1fr; }
}

.plato-stage {
  position: relative;
  min-height: 42vh;
}

.plato-photo {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(14,12,11,0.75), transparent 45%),
    url("https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=1400&q=80")
      center / cover no-repeat;
  animation: hero-in 1s var(--ease) both;
}

.plato-stage-copy {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 1;
  animation: rise 0.8s var(--ease) 0.1s both;
}

@media (min-width: 960px) {
  .plato-stage { min-height: auto; }
  .plato-stage-copy { left: 2rem; bottom: 2rem; }
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
}

.plato-stage-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1;
}

.plato-panel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 1.4rem 1.25rem 6.5rem;
}

@media (min-width: 960px) {
  .plato-panel {
    border-top: 0;
    border-left: 1px solid var(--line);
    padding: 2rem 2rem 7rem;
  }
}

.panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
}

.panel-head p {
  margin: 0.35rem 0 0;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.config-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.4rem;
}

.opt-group {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.55rem;
}

.opt-group legend {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.opt-group legend span { color: var(--ember); letter-spacing: 0; text-transform: none; }

.opt {
  display: block;
  cursor: pointer;
  position: relative;
}

.opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.opt-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: var(--surface-2);
  border: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.opt:hover .opt-body {
  border-color: rgba(255, 255, 255, 0.12);
}

.opt input:checked + .opt-body {
  border-color: var(--ember);
  background: #2a221c;
}

.opt-body strong { font-weight: 500; }
.opt-body em {
  font-style: normal;
  color: var(--cream-dim);
  font-size: 0.88rem;
}

.plato-reviews {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.plato-reviews-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.plato-reviews-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
}

.plato-reviews-head p {
  margin: 0.25rem 0 0;
  color: var(--cream-dim);
  font-size: 0.88rem;
}

.plato-reviews-list {
  display: grid;
  gap: 1rem;
}

.plato-review {
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.plato-review-stars {
  margin: 0;
  color: var(--ember);
  font-size: 0.9rem;
}

.plato-review p {
  margin: 0.35rem 0 0;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

.plato-review-title {
  color: var(--cream-dim);
  font-weight: 400;
}

.plato-review time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--cream-dim);
  opacity: 0.8;
}

.review-dialog {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--cream);
  padding: 0;
  max-width: 26rem;
  width: calc(100% - 2rem);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.review-dialog::backdrop {
  background: rgba(10, 8, 6, 0.72);
}

.review-dialog-form {
  padding: 1.25rem 1.35rem 1.4rem;
}

.review-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.review-dialog-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
}

.review-dialog .field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.review-dialog .field input,
.review-dialog .field select,
.review-dialog .field textarea {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 0.85rem;
  font: inherit;
}

.review-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.note-field {
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.note-field textarea {
  resize: vertical;
  min-height: 4rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 1rem;
}

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 1.25rem calc(0.9rem + env(safe-area-inset-bottom));
  background: rgba(14, 12, 11, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

@media (min-width: 960px) {
  .sticky-bar {
    position: absolute;
    left: 0;
    right: 0;
  }

  .plato-panel { position: relative; }
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 0.35rem;
}

.qty button {
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
}

.qty span {
  min-width: 1.2rem;
  text-align: center;
  font-weight: 600;
}

.btn-add {
  flex: 1;
  border-radius: 999px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%);
  z-index: 50;
  background: var(--ok);
  color: #0e1a12;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  animation: rise 0.35s var(--ease);
}

.flash {
  display: block;
  margin-bottom: 1rem;
  padding: 0.85rem 1.1rem;
  border-radius: 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid transparent;
}

.flash--ok {
  background: var(--ok-bg);
  border-color: rgba(110, 207, 142, 0.45);
  color: #c8f0d4;
}

.flash--err {
  background: var(--danger-bg);
  border-color: rgba(240, 160, 160, 0.45);
  color: #ffd4d4;
}

.flash--err .mini-list {
  margin: 0;
  padding-left: 1.1rem;
}

/* Doc estructura */
.doc {
  max-width: 42rem;
  padding: 2rem 1.25rem 4rem;
}

@media (min-width: 760px) {
  .doc { padding-inline: 2.5rem; }
}

.doc h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
}

.doc h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ember);
}

.token-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.token-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.swatch {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
}

.codeblock {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--cream-dim);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

@keyframes hero-in {
  from { transform: scale(1.06); opacity: 0.4; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes flash-in {
  0% { box-shadow: 0 0 0 0 rgba(232, 160, 84, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(232, 160, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 160, 84, 0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* Flow: carrito / checkout */
.flow-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

@media (min-width: 760px) {
  .flow-page { padding-inline: 2.5rem; }
}

.flow-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

.cart-grid,
.checkout-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .cart-grid,
  .checkout-grid {
    grid-template-columns: 1.4fr 0.85fr;
    align-items: start;
  }
}

.cart-list { display: grid; gap: 1rem; }

.cart-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  animation: rise 0.55s var(--ease) both;
}

.cart-thumb {
  border-radius: 0.85rem;
  background-size: cover;
  background-position: center;
  min-height: 96px;
}

.cart-thumb--1 {
  background-image: url("https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=400&q=80");
}

.cart-thumb--2 {
  background-image: url("https://images.unsplash.com/photo-1568901346375-23c9450c58cd?auto=format&fit=crop&w=400&q=80");
}

.cart-body h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.mods {
  margin: 0.45rem 0 0.85rem;
  padding: 0;
  list-style: none;
  color: var(--cream-dim);
  font-size: 0.88rem;
}

.mods li + li { margin-top: 0.15rem; }
.mods .note { color: var(--ember); }

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.qty-sm button {
  width: 1.85rem;
  height: 1.85rem;
}

.cart-summary {
  position: sticky;
  top: 4.5rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.cart-summary h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
}

.sum-lines {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.55rem;
}

.sum-lines > div {
  display: flex;
  justify-content: space-between;
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.sum-lines .total {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--cream);
  font-size: 1.15rem;
  font-weight: 600;
}

.sum-lines dt, .sum-lines dd { margin: 0; }

.btn-block {
  width: 100%;
  margin-top: 0.55rem;
}

.coupon-box {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.coupon-row {
  display: flex;
  gap: 0.5rem;
}

.coupon-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.7rem 0.85rem;
  text-transform: uppercase;
}

.coupon-row .btn {
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  white-space: nowrap;
}

.coupon-ok { color: var(--ok); }
.coupon-err { color: var(--danger); }

#discount-line dd { color: var(--ok); }

.hint {
  margin: 0 0 0.75rem;
  color: var(--cream-dim);
  font-size: 0.88rem;
}

.field-grid {
  display: grid;
  gap: 0.85rem;
  margin: 0.25rem 0 1.25rem;
}

@media (min-width: 640px) {
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
}

.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 1rem;
}

.checkout-form .field select,
.checkout-form .field textarea,
.checkout-form .field input {
  background: var(--ink);
}

.note-field textarea {
  width: 100%;
}

.checkout-form {
  display: grid;
  gap: 1.35rem;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
}

.checkout-panel {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--radius);
  background: var(--ink);
  border: 1px solid var(--line);
}

.checkout-panel[hidden] {
  display: none !important;
}

.checkout-panel-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
}

.checkout-panel-head p {
  margin: 0.35rem 0 0;
  color: var(--cream-dim);
  font-size: 0.92rem;
}

/* KDS cocina */
.kds-body {
  background: #090807;
  min-height: 100vh;
}

.kds-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 12, 11, 0.95);
}

.kds-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--cream-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kds-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--cream-dim);
  font-variant-numeric: tabular-nums;
}

.pulse-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--ok);
  animation: pulse 1.4s ease infinite;
}

.kds-board {
  display: grid;
  gap: 1rem;
  padding: 1rem 1rem 4.5rem;
}

@media (min-width: 900px) {
  .kds-board {
    grid-template-columns: repeat(3, 1fr);
    padding: 1.25rem 1.5rem 2rem;
    min-height: calc(100vh - 70px);
  }
}

.kds-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 12rem;
}

.kds-col > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.15rem;
}

.kds-col h2 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.kds-col .count {
  min-width: 1.5rem;
  text-align: center;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 0.8rem;
  padding: 0.15rem 0.45rem;
}

.ticket {
  border-radius: 1rem;
  padding: 1rem;
  background: var(--surface);
  border-left: 4px solid var(--ember);
  animation: rise 0.45s var(--ease) both;
}

.ticket--new { border-left-color: var(--ember); }
.ticket--prep { border-left-color: #5b8fd9; }
.ticket--ready { border-left-color: var(--ok); }

.ticket.is-flash { animation: rise 0.45s var(--ease) both, flash-in 1.6s ease 2; }

.ticket header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.ticket header strong {
  color: var(--cream);
  font-size: 1.15rem;
}

.ticket ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.ticket li {
  display: grid;
  gap: 0.15rem;
}

.ticket li strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.ticket li span {
  color: var(--cream-dim);
  font-size: 0.9rem;
}

.ticket-btn { margin-top: 0.25rem; }

.kds-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(9, 8, 7, 0.92);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--cream-dim);
}

@media (min-width: 900px) {
  .kds-foot { display: none; }
}

/* Contacto + floats tienda */
.store-float-stack {
  position: fixed;
  left: 1.15rem;
  bottom: 1.5rem;
  z-index: 80;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.65rem;
}

.store-float {
  width: 3.55rem;
  height: 3.55rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.store-float:hover {
  transform: scale(1.06);
  color: #fff;
}

.store-float svg {
  width: 1.7rem;
  height: 1.7rem;
  display: block;
}

.store-float--wa {
  background: #25d366;
}

.store-float--wa:hover {
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
}

.store-float--maps {
  background: #4285f4;
}

.store-float--maps:hover {
  box-shadow: 0 14px 32px rgba(66, 133, 244, 0.45);
}

/* Sobre la barra de cantidad / agregar del plato */
.page-plato .store-float-stack {
  bottom: calc(5.85rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 720px) {
  .store-float-stack { left: 0.85rem; bottom: 1.15rem; }
  .store-float { width: 3.25rem; height: 3.25rem; }
  .page-plato .store-float-stack {
    bottom: calc(6.15rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 960px) {
  .page-plato .store-float-stack {
    bottom: 1.5rem;
  }
}

.store-foot-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .store-foot-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.store-foot-name {
  margin: 0 0 0.35rem;
  color: var(--cream);
  font-weight: 600;
}

.store-foot p {
  margin: 0.2rem 0;
}

.store-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.88rem;
}

.store-foot-links a {
  color: var(--ember);
}

.contact-page .flow-head {
  margin-bottom: 1.25rem;
}

.contact-grid {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
  }
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.55rem;
}

.contact-dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-dl dt {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.contact-dl dd {
  margin: 0.2rem 0 0;
  color: var(--cream);
}

.contact-dl a {
  color: var(--ember);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.contact-social-title {
  margin: 1.5rem 0 0.65rem;
  font-size: 0.95rem;
}

.contact-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}

.contact-social a {
  color: var(--ember);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  background: var(--ink);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
