﻿/* =============================================================
   La Pizzería de Aznalcázar — menu.css  v3.0
   Tarjetas flotantes estilo masonry · 2026
   ============================================================= */

/* ================================================================
   HERO COMPACTO (página de pedido)
   ================================================================ */
.menu-hero {
  padding: 44px 0 32px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  background: var(--bg);
}
.menu-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; color: var(--text);
  letter-spacing: -.03em; margin: 0 0 8px;
}
.menu-hero-title em { color: var(--accent); font-style: italic; }
.menu-hero-sub { color: var(--text-muted); font-size: .95rem; margin: 0; }

/* ================================================================
   CART PILL (navbar)
   ================================================================ */
.cart-pill { padding: .65rem 1.1rem .65rem .95rem; gap: .45rem; }
.cart-pill .cart-pill-badge {
  position: static; border: none;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: .72rem;
  min-width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0 6px;
}

/* ================================================================
   LAYOUT PRINCIPAL — sidebar + catálogo + carrito
   ================================================================ */
.menu-wrap {
  display: grid;
  /* 2 columnas: sidebar + catálogo. El carrito es un drawer fijo fuera del grid */
  grid-template-columns: 210px 1fr;
  gap: 32px;
  padding-block: 40px 100px;
  align-items: start;
}
/* Cada columna debe tener min-width:0 para que no desborden el grid */
.menu-wrap > * { min-width: 0; }
.menu-sidebar { min-width: 0; }
.menu-main    { min-width: 0; }

/* ================================================================
   SIDEBAR DE CATEGORÍAS
   ================================================================ */
.menu-sidebar { position: relative; }

.sidebar-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  background: var(--bg);
  border-radius: 20px;
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
}
.sidebar-sticky .eyebrow { margin-bottom: 14px; display: block; }

.cat-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

.cat-nav button {
  width: 100%; text-align: left;
  background: transparent; border: none;
  color: var(--text-muted);
  padding: 11px 12px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: .84rem; font-weight: 600;
  letter-spacing: .02em;
  display: flex; justify-content: space-between; align-items: center;
  min-height: 44px;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-spring);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .cat-nav button:hover {
    background: var(--bg-soft); color: var(--text);
    transform: translateX(3px);
  }
}
.cat-nav button.active {
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
}
.cat-nav button.active .count { border-color: rgba(88,121,59,.3); color: var(--accent); }

.cat-nav .count {
  font-size: .68rem; color: var(--text-dim);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 8px;
  transition: border-color var(--t-fast), color var(--t-fast);
}

/* ================================================================
   BARRA DE BÚSQUEDA
   ================================================================ */
.menu-toolbar { margin-bottom: 24px; }

.menu-search input {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  color: var(--text);
  padding: 13px 18px 13px 44px;
  border-radius: 999px;
  font-family: var(--font-body); font-size: .9rem;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  box-shadow: var(--shadow-xs);
}
.menu-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.menu-search input::placeholder { color: var(--text-dim); }

.menu-search { position: relative; }
.menu-search::before {
  content: '\f002';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute; left: 16px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim); font-size: .85rem;
  pointer-events: none;
  z-index: 1;
}

/* ================================================================
   PILLS HORIZONTAL (visible en todos los anchos)
   ================================================================ */
.cats-pills-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  /* Impedir que el tamaño intrínseco del scroll hijo desborde la celda del grid */
  overflow: hidden;
  max-width: 100%;
}

.cats-pills-scroll {
  display: flex; gap: 6px;
  overflow-x: auto; padding-block: 10px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cats-pills-scroll::-webkit-scrollbar { display: none; }

.cats-pills-scroll button {
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: .76rem; font-weight: 700;
  letter-spacing: .06em; color: var(--text-muted);
  padding: 7px 16px; min-height: 36px;
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; cursor: pointer;
  flex-shrink: 0;
  transition: color var(--t-fast), border-color var(--t-fast),
              background var(--t-fast), transform var(--t-spring);
}
.cats-pills-scroll button.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .cats-pills-scroll button:not(.active):hover {
    border-color: var(--accent); color: var(--accent);
    transform: translateY(-1px);
  }
}

/* ================================================================
   CATÁLOGO — loading state
   ================================================================ */
.catalog-loading {
  text-align: center; color: var(--text-muted);
  padding: 72px 20px;
  letter-spacing: .18em; text-transform: uppercase; font-size: .78rem;
}

/* ================================================================
   OVERLAY DE CARGA INICIAL — cubre toda la pantalla mientras se
   precargan las fotos de la primera vista. JS añade .mlo--hidden.
   ================================================================ */
#menuLoadingOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Transición de salida suave */
  transition: opacity .5s ease, visibility .5s ease;
}

#menuLoadingOverlay.mlo--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ================================================================
   SKELETON — placeholders animados mientras llegan los datos
   ================================================================ */
@keyframes skel-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}

/* Shimmer compositor-safe: usa transform (0 repaint por frame, 100% GPU) */
@keyframes pc-shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}

.skel-line,
.skel-hero {
  background: var(--bg-soft);
  border-radius: 8px;
  animation: skel-pulse 1.5s ease-in-out infinite;
}

/* variantes de línea */
.skel-cat-title  { height: 26px; width: 180px; margin-bottom: 4px; }
.skel-name       { height: 18px; width: 78%; margin-bottom: 8px; }
.skel-desc       { height: 13px; width: 62%; margin-bottom: 6px; }
.skel-desc-short { width: 42%; }
.skel-price      { height: 22px; width: 80px; }

/* tarjeta skeleton: opacidad total */
.skel-card { pointer-events: none; }
/* Altura idéntica al .pc-hero real (200px) → evita CLS al sustituir skeleton */
.skel-card .pc-hero  { height: 200px; background: var(--bg-soft);
                        animation: skel-pulse 1.5s ease-in-out infinite; }
/* Skeleton no tiene imagen → ocultar el pseudo-elemento shimmer */
.skel-hero::after { display: none; }
.skel-card .pc-content { display: flex; flex-direction: column;
                          gap: 0; padding: 14px 16px 10px; }
.skel-card .price-line { padding: 0 16px 14px; display: flex; }

/* ── Skeleton del modal mientras cargan los datos de la pizza ── */
.pmw-modal-loading {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pmw-skel-block {
  height: 20px;
  width: 55%;
  background: var(--bg-soft);
  border-radius: 8px;
  animation: skel-pulse 1.5s ease-in-out infinite;
}
.pmw-skel-block--sm {
  height: 14px;
  width: 38%;
}
/* Simula una cuadrícula 2×2 de opciones de radio */
.pmw-skel-opts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.pmw-skel-opts-grid::before,
.pmw-skel-opts-grid::after {
  content: '';
  height: 52px;
  background: var(--bg-soft);
  border-radius: 10px;
  animation: skel-pulse 1.5s ease-in-out infinite;
}

/* ================================================================
   SINGLE-PAGE PRODUCT MODAL — .pm-single  (Glovo / Just Eat style)
   Diseño inmersivo: hero edge-to-edge, secciones tipo lista limpia,
   footer flotante con sombra, botón CTA full-width.
   ================================================================ */

/* ── Sheet: blanco puro, overflow hidden para clippear el hero ── */
.pm-single .pmw-sheet {
  background: #fff;
  overflow: hidden;
  /* Ensure the flex-column children respect max-height */
  display: flex;
  flex-direction: column;
  max-height: 95dvh;
}

/* ── Hero: imagen que ocupa todo el ancho, sin padding ── */
.pmw-hero {
  position: relative;
  width: 100%;
  height: 250px;
  flex-shrink: 0;
  background: #EAEAE6;
  overflow: hidden;
}
.pmw-hero--skel { background: #EAEAE6; animation: skel-pulse 1.5s ease-in-out infinite; }
.pmw-hero-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transition: opacity .4s ease;
}
.pmw-hero-img.img-loaded { opacity: 1; }
.pmw-hero-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem; background: #F0EDE8;
}

/* Botón cerrar flotante sobre la imagen */
.pm-single .pmw-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.42);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
  z-index: 3;
}
@media (hover: hover) and (pointer: fine) {
  .pm-single .pmw-close:hover { background: rgba(0,0,0,.65); }
}

/* ── Info block: nombre, descripción, precio (debajo del hero) ── */
.pmw-info-block {
  background: #fff;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.pmw-info-name {
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 800;
  color: var(--text); margin: 0; letter-spacing: -.025em; line-height: 1.2;
}
.pmw-info-desc {
  font-size: 0.84rem; color: var(--text-muted);
  margin: 6px 0 0; line-height: 1.55;
}
.pmw-info-price {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700;
  color: var(--accent); margin-top: 10px;
}

/* ── Body: área scrollable sobre fondo blanco, secciones como lista ── */
.pmw-body--single {
  overflow-y: auto;
  flex: 1; min-height: 0;
  overscroll-behavior: contain;
  background: #fff;
  padding: 0;
  display: flex; flex-direction: column; gap: 0;
}

/* ── Encabezado de sección reutilizable (usado por size-group y accordeones) ── */
/* Estilo: barra gris muy clara, texto uppercase muy pequeño */
.pm-single .pmw-sec-head {
  background: #F7F7F5;
  padding: 9px 20px 8px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

/* ── Selector de tamaño: sin card, secciones como lista ── */
.pm-single .pmw-group--size {
  background: #fff; border-radius: 0;
  border: none; box-shadow: none; padding: 0;
  border-bottom: 1px solid var(--line-soft);
  overflow: visible;
}
.pm-single .pmw-group--size .pmw-group-header {
  background: #F7F7F5;
  padding: 9px 20px 8px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--line-soft);
  gap: 8px;
}
.pm-single .pmw-group--size .pmw-group-title {
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim);
  gap: 6px;
}
.pm-single .pmw-group--size .pmw-group-title i { display: none; }
.pm-single .pmw-badge-req {
  font-size: 0.6rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; background: var(--accent); color: #fff;
  padding: 2px 9px; border-radius: 999px; flex-shrink: 0;
}

/* Radio grid → columna vertical de filas compactas
   Nota: especificidad 0,3,0 para ganar a .pm-wizard .pmw-radio-btn (0,2,0, línea ~1967) */
.pm-single .pmw-group--size .pmw-radio-grid {
  display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0;
}
.pm-single .pmw-group--size .pmw-radio-btn {
  /* Layout horizontal: ○ | texto | precio */
  display: flex; align-items: center; gap: 12px;
  /* Forma: fila limpia sin tarjeta */
  border-radius: 0; border: none;
  border-bottom: 1px solid var(--line-soft);
  background: #fff; padding: 12px 16px;
  flex: 1 1 100%; min-height: auto;
  box-shadow: none; color: var(--text); cursor: pointer;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
  /* Transición suave de selección */
  transition: background .2s ease-in-out, color .2s ease-in-out;
}
.pm-single .pmw-group--size .pmw-radio-btn:last-child { border-bottom: none; }
@media (hover: hover) and (pointer: fine) {
  .pm-single .pmw-group--size .pmw-radio-btn:not(.pmw-radio-btn--active):hover {
    background: #F7F7F5;
    transform: none; box-shadow: none;
  }
}
.pm-single .pmw-group--size .pmw-radio-btn--active {
  background: rgba(88,121,59,.06);
  box-shadow: none; color: var(--accent); font-weight: 700;
}
/* Efecto tap */
.pm-single .pmw-group--size .pmw-radio-btn:active { transform: scale(0.98); }
/* Radio circle indicator */
.pm-single .pmw-group--size .pmw-radio-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid #C8C8C4; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: #fff;
  transition: background .2s ease-in-out, border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}
.pm-single .pmw-group--size .pmw-radio-btn--active .pmw-radio-check {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88,121,59,.18);
}
/* Etiqueta: ocupa el espacio restante */
.pm-single .pmw-group--size .pmw-radio-label { flex: 1; text-align: left; font-size: 0.92rem; }
/* Precio: derecha, neutro por defecto → verde al seleccionar */
.pm-single .pmw-group--size .pmw-radio-price {
  font-size: 0.84rem; font-weight: 600; color: var(--text-dim); flex-shrink: 0;
  transition: color .2s ease-in-out;
}
.pm-single .pmw-group--size .pmw-radio-btn--active .pmw-radio-price { color: var(--accent); }

/* ── Acordeones por grupo — sin card, section-header style ── */
.pm-single .pmw-det {
  background: #fff;
  border: none; border-radius: 0; box-shadow: none;
  border-bottom: 1px solid var(--line-soft);
  overflow: visible;
}
.pm-single .pmw-det + .pmw-det { margin-top: 0; }
.pm-single .pmw-det:last-child { border-bottom: none; }

.pm-single .pmw-det-summary {
  display: flex; align-items: center;
  list-style: none; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  background: #F7F7F5;
  padding: 9px 20px 8px;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim);
  gap: 8px;
  border-bottom: none;
  transition: background .12s;
}
.pm-single .pmw-det-summary::-webkit-details-marker { display: none; }
.pm-single .pmw-det-summary::marker { display: none; }
@media (hover: hover) and (pointer: fine) {
  .pm-single .pmw-det-summary:hover { background: #EEEEEC; }
}
.pm-single .pmw-det[open] > .pmw-det-summary {
  background: #F0EDE8;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-dim);
}
/* Icono: círculo pequeño, neutro */
.pm-single .pmw-det-summary > .fas:first-child {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 6px;
  font-size: 0.65rem; color: var(--text-dim);
  background: rgba(0,0,0,.06);
  transition: background .12s, color .12s;
}
.pm-single .pmw-det[open] > .pmw-det-summary > .fas:first-child {
  background: rgba(88,121,59,.12); color: var(--accent);
}
.pm-single .pmw-det-title { font-size: 0.7rem; letter-spacing: .12em; }
.pm-single .pmw-badge-opt {
  font-size: 0.62rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--text-dim); background: transparent;
  flex-shrink: 0; line-height: 1.6; letter-spacing: .02em;
}
.pm-single .pmw-badge--custom {
  border-color: rgba(88,121,59,.3); color: var(--accent); background: transparent;
}
.pm-single .pmw-det-chevron {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.06); color: var(--text-dim); font-size: 0.62rem;
  transition: transform .2s ease, background .12s;
}
.pm-single .pmw-det[open] .pmw-det-chevron {
  transform: rotate(180deg); background: rgba(88,121,59,.12); color: var(--accent);
}
.pm-single .pmw-det-body {
  display: flex; flex-direction: column; padding: 0; background: #fff; gap: 0;
}
/* Animación de apertura de acordeón: fade + slide desde arriba */
@keyframes pmwDetOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pm-single .pmw-det[open] > .pmw-det-body {
  animation: pmwDetOpen .2s ease;
}

/* ── Chips (grupos checkbox_remove — ingredientes a quitar) ── */
.pm-single .pmw-chip-group-sub {
  font-size: 0.78rem; color: var(--text-muted);
  margin: 0; padding: 8px 20px 0;
}
.pm-single .pmw-chips {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px 16px;
}
.pmw-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--bg-soft);
  font-family: var(--font-body); font-size: 0.82rem; color: var(--text);
  cursor: pointer; line-height: 1.2; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, transform .08s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .pmw-chip:hover { border-color: var(--accent); }
}
.pmw-chip:active { transform: scale(.93); }
.pmw-chip--active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pmw-chip--removable {
  border-color: rgba(88,121,59,.3); background: rgba(88,121,59,.06);
  color: var(--accent); font-weight: 600;
}
.pmw-chip--removable i { font-size: 0.72rem; }
.pmw-chip--removed {
  background: rgba(231,76,60,.05); border-color: rgba(231,76,60,.28);
  color: #c0392b; text-decoration: line-through; opacity: 0.8;
}
.pmw-chip--removed i { color: #e74c3c; }
.pmw-chip-price { font-size: 0.78em; font-weight: 700; color: var(--accent); }
.pmw-chip--active .pmw-chip-price { color: rgba(255,255,255,.9); }

/* ── Filas de extras/opciones (checkbox, extras_globales) ── */
/* Patrón Glovo: texto izquierda, precio derecha en gris, checkbox moderno */
.pmw-row-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 0;
}
.pmw-row-item {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px;
  border-radius: 0; border: none;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
  cursor: pointer; text-align: left; box-sizing: border-box;
  transition: background .2s ease-in-out;
  -webkit-tap-highlight-color: transparent;
}
.pmw-row-list > li:last-child .pmw-row-item { border-bottom: none; }
@media (hover: hover) and (pointer: fine) {
  .pmw-row-item:hover { background: #F7F7F5; }
}
/* Efecto tap */
.pmw-row-item:active { transform: scale(0.98); background: #F0EDE8; }
.pmw-row-item--active { background: rgba(88,121,59,.04); }
/* Checkbox box */
.pmw-row-check {
  width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid #C8C8C4; background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.62rem; color: #fff;
  transition: background .2s ease-in-out, border-color .2s ease-in-out, box-shadow .2s ease-in-out;
}
.pmw-row-item--active .pmw-row-check {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88,121,59,.15);
}
.pmw-row-name { flex: 1; }
/* Precio extra: gris claro como en Glovo (no verde) */
.pmw-row-price {
  font-size: 0.84rem; font-weight: 600;
  color: var(--text-dim); flex-shrink: 0;
}
/* Una vez seleccionado, el precio sí se vuelve verde */
.pmw-row-item--active .pmw-row-price { color: var(--accent); }

/* ── Footer flotante: barra blanca sticky con sombra ascendente ── */
.pmw-foot--single {
  position: sticky; bottom: 0;
  padding: 12px 16px 20px;
  border-top: none;
  box-shadow: 0 -4px 18px rgba(0,0,0,.09), 0 -1px 0 rgba(0,0,0,.04);
  display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0; background: #fff;
}
.pmw-foot-row {
  display: flex; justify-content: space-between; align-items: center; padding: 0 4px;
}
.pmw-foot-label {
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim);
}
.pmw-foot-total {
  font-size: 1.2rem; font-weight: 800; color: var(--accent); letter-spacing: -.02em;
}

/* ── Botón CTA — ancho completo, alto impacto ── */
.pm-single .pmw-cta--full {
  width: 100%;
  justify-content: center; gap: 10px;
  padding: 16px 20px;
  font-size: 1rem; font-weight: 700;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(88,121,59,.36);
  transition: background .14s, box-shadow .14s, transform .1s;
}
.pm-single .pmw-cta--full:not(:disabled):active {
  transform: scale(.97); box-shadow: 0 2px 6px rgba(88,121,59,.18);
}

/* Contenedor nota: el padding lateral lo gestiona el wrapper, no el textarea */
.pm-single .pmw-det[data-det-id="_nota"] > .pmw-det-body {
  padding: 12px 20px;
}
/* ── Textarea de nota ── */
.pm-single .pmw-nota {
  display: block; width: 100%;
  background: #F7F7F5;
  border: 1.5px solid var(--line); border-radius: 12px;
  color: var(--text); font-family: var(--font-body); font-size: 0.9rem;
  padding: 12px 14px; resize: vertical; min-height: 75px;
  box-sizing: border-box;
  transition: border-color .14s;
}
.pm-single .pmw-nota:focus { outline: none; border-color: var(--accent); }

/* ================================================================
   PM-SINGLE — IMMERSIVE DESKTOP REDESIGN
   ≥ 680 px: panel dividido — foto fija izquierda | config derecha
   ================================================================ */
@media (min-width: 680px) {
  /* ① Wrapper centrado, padding lateral */
  .product-modal.pm-single { align-items: center; padding: 20px; }

  /* ② Sheet: grid 2 columnas de igual tamaño, altura fija */
  /* especificidad 0,3,0 → gana a .product-modal .modal-box (0,2,0) */
  .product-modal.pm-single .pmw-sheet {
    max-width: 920px;
    width: min(920px, 92vw);
    height: min(90dvh, 680px);
    max-height: 90dvh;
    display: grid;
    grid-template-columns: 38% 62%;
    grid-template-rows: auto 1fr auto;
    border-radius: 20px;
    overflow: hidden;
    /* Animación de entrada: scale-in en escritorio */
    transform: scale(.96) translateY(8px);
    transition: transform .3s cubic-bezier(.2,.7,.3,1);
  }
  .product-modal.pm-single.open .pmw-sheet {
    transform: scale(1) translateY(0);
  }

  /* ③ Hero: columna izquierda, spans las 3 filas → foto a pantalla completa */
  .pm-single .pmw-hero {
    grid-column: 1;
    grid-row: 1 / 4;
    height: 100%;
    border-radius: 0;
  }
  /* Degradado sutil en la parte inferior del hero */
  .pm-single .pmw-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,.18) 0%,
      transparent 30%,
      transparent 65%,
      rgba(0,0,0,.22) 100%
    );
    pointer-events: none;
  }

  /* ④ Botón cerrar: esquina superior derecha del hero */
  .pm-single .pmw-close { top: 16px; right: 16px; }

  /* ⑤ Info block: columna derecha fila 1 */
  .pm-single .pmw-info-block {
    grid-column: 2;
    grid-row: 1;
    padding: 28px 26px 18px;
  }
  .pm-single .pmw-info-name  { font-size: 1.55rem; }
  .pm-single .pmw-info-price { font-size: 1.1rem; margin-top: 12px; }

  /* ⑥ Body scrollable: columna derecha fila 2 */
  .pm-single .pmw-body--single {
    grid-column: 2;
    grid-row: 2;
  }

  /* ⑦ Footer: columna derecha fila 3 */
  .pm-single .pmw-foot--single {
    grid-column: 2;
    grid-row: 3;
    position: static; /* ya no necesita sticky — ocupa su fila en el grid */
    box-shadow: 0 -1px 0 rgba(0,0,0,.07);
    padding: 14px 24px 22px;
  }
  .pm-single .pmw-cta--full {
    padding: 16px 24px;
    font-size: 1.05rem;
  }
}

/* ================================================================
   MITAD Y MITAD MODAL — .pm-mymt
   (hereda todos los estilos de .pm-single; aquí solo lo propio)
   ================================================================ */

/* Secciones del selector (tamaño / mitades) */
.pm-mymt-section {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.pm-mymt-section:last-child { border-bottom: none; }

/* Cabecera de cada selector de mitad */
.mymt-half-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.mymt-half-header-label {
  flex: 1;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.mymt-half-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Botones radio en .pm-mymt — mayor especificidad que .pm-wizard */
.pm-mymt .pm-mymt-section .pmw-radio-btn,
.pm-mymt .pm-mymt-half-section .pmw-radio-btn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  transition: border-color .14s, background .14s;
  margin-bottom: 6px;
  font-size: .85rem;
  color: var(--text);
}
.pm-mymt .pm-mymt-section .pmw-radio-btn:last-child,
.pm-mymt .pm-mymt-half-section .pmw-radio-btn:last-child { margin-bottom: 0; }
.pm-mymt .pm-mymt-section .pmw-radio-btn:hover,
.pm-mymt .pm-mymt-half-section .pmw-radio-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.pm-mymt .pm-mymt-section .pmw-radio-btn.pmw-radio-btn--active,
.pm-mymt .pm-mymt-half-section .pmw-radio-btn.pmw-radio-btn--active {
  border-color: var(--accent);
  background: var(--accent-light);
}
.pm-mymt .pmw-radio-check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--line-hover);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .6rem;
  color: #fff;
  background: transparent;
  transition: background .14s, border-color .14s;
}
.pm-mymt .pmw-radio-btn--active .pmw-radio-check {
  background: var(--accent);
  border-color: var(--accent);
}
.pm-mymt .pmw-radio-label { flex: 1; }
.pm-mymt .pmw-radio-label-name { display: block; font-weight: 600; }
.pm-mymt .pmw-radio-label-desc {
  display: block;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pm-mymt .pmw-radio-price {
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

/* Bloque personalización por mitad */
.mymt-custom-wrap { padding: 0; }
.mymt-custom-block {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 4px;
}
.mymt-custom-block:last-of-type { border-bottom: none; }

.mymt-custom-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 8px;
}
.mymt-custom-label {
  display: block;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.mymt-custom-name {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
}
.mymt-no-custom {
  padding: 0 20px 14px;
  margin: 0;
  font-size: .78rem;
  color: var(--text-dim);
}

/* Acordeones dentro de la sección custom heredan .pm-single .pmw-det */

/* Ingrediente quitado — tachado + rojo tenue */
.pmw-row-item.mymt-item--removed {
  background: rgba(231, 76, 60, .06);
  border-color: rgba(231, 76, 60, .25);
  color: #c0392b;
}
.pmw-row-item.mymt-item--removed .pmw-row-check { background: rgba(231,76,60,.12); color: #c0392b; }
.pmw-row-item.mymt-item--removed .pmw-row-name { text-decoration: line-through; }

/* Divisor entre mitades */
.mymt-half-divider {
  display: flex; align-items: center; justify-content: center;
  padding: 6px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.mymt-half-divider-label {
  font-size: .7rem;
  color: var(--text-dim);
  letter-spacing: .08em;
}

/* Nota body padding */
.pm-mymt .mymt-nota-body { padding: 10px 20px 16px; }

/* ================================================================
   SECCIÓN DE CATEGORÍA
   ================================================================ */
.cat-block {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--nav-h) + 64px);
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* Centinela ligero — mismo offset que cat-block para que scrollIntoView
   funcione como fallback si algún código lo llama directamente. */
.cat-sentinel {
  scroll-margin-top: calc(var(--nav-h) + 64px);
}

.cat-header { margin-bottom: 24px; }
.cat-header h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700; color: var(--text);
  letter-spacing: -.02em;
  display: flex; align-items: center; gap: 10px;
}
.cat-header h2::after { display: none; }

/* Línea decorativa bajo el título de categoría */
.cat-header-line {
  display: block; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  border-radius: 2px; margin-top: 4px;
  opacity: .6;
}
.cat-note {
  margin: 8px 0 0; color: var(--text-dim);
  font-size: .82rem; font-style: italic;
}

/* ================================================================
   GRID DE TARJETAS — CSS Grid responsive auto-fill
   ================================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  width: 100%;
}

/* ================================================================
   PRODUCT CARD — tarjeta hero vertical
   ================================================================ */
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: none;
  border-radius: 20px;
  box-shadow:
    0 1px 3px rgba(0,0,0,.04),
    0 4px 16px rgba(0,0,0,.05),
    0 12px 36px rgba(0,0,0,.04);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  transition: box-shadow var(--t), transform var(--t);
  /*
   * Layout containment: aísla cada tarjeta del flujo de layout global.
   * Cuando una imagen carga dentro de la tarjeta, el navegador NO recalcula
   * el layout del resto de la página (elimina el coste de reflow en scroll).
   */
  contain: layout style paint;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    box-shadow:
      0 2px 6px rgba(0,0,0,.06),
      0 8px 28px rgba(88,121,59,.12),
      0 24px 64px rgba(0,0,0,.09);
    transform: translateY(-6px);
  }
}

/* ---- HERO IMAGE (parte superior, 100% ancho) ---- */
.pc-hero {
  width: 100%;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--bg-soft);
}
/*
 * Shimmer compositor-safe mediante pseudo-elemento + transform.
 * background-position (método anterior) fuerza un repaint en cada frame.
 * transform: translateX() corre 100% en el compositor (GPU), 0 main thread.
 * will-change: transform pre-promueve el layer antes de que comience la anim.
 */
.pc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent           0%,
    rgba(255,255,255,.55) 50%,
    transparent           100%
  );
  transform: translateX(-100%);
  animation: pc-shimmer 1.6s linear infinite;
  will-change: transform;
  pointer-events: none;
}
/* Desactivar shimmer: imagen cargada, placeholder o error */
.pc-hero:has(.img-loaded)::after,
.pc-hero:has(.pc-hero-placeholder)::after,
.pc-hero.hero--error::after {
  display: none;
}

.pc-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* --reveal-delay se inyecta por JS según la posición de la tarjeta */
  transition: transform .45s ease,
              opacity .5s ease var(--reveal-delay, 0ms);
  /* Skeleton: empieza invisible; .img-loaded la hace visible */
  opacity: 0;
}
/*
 * Pre-promueve el <img> a capa de compositor ANTES de que comience la
 * transición de fade-in. El selector :not(.img-loaded) hace que el browser
 * libere la capa (demote) automáticamente cuando la imagen ya está visible,
 * sin desperdiciar GPU memory en cada tarjeta del catálogo completo.
 */
.pc-hero-img:not(.img-loaded) {
  will-change: opacity;
}
.pc-hero-img.img-loaded {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .pc-hero-img {
    transform: scale(1.06);
  }
}

/* Placeholder elegante cuando no hay foto */
.pc-hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f2ed 0%, #e8ece4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pc-hero-logo {
  width: 70px;
  height: auto;
  opacity: .18;
  pointer-events: none;
  user-select: none;
}

/* ---- CONTENIDO (título + descripción + alérgenos) ---- */
.pc-content {
  padding: 16px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pc-title-wrap {
  display: flex; align-items: center; gap: 7px;
}

.product-card h3, .pc-name {
  margin: 0; font-family: var(--font-body);
  font-weight: 700; font-size: .96rem;
  color: var(--text); line-height: 1.3;
}

/* Emoji decorativo delante del nombre del producto */
.pc-name-emoji {
  display: inline-block;
  margin-right: .25em;
  font-style: normal;
  line-height: 1;
  vertical-align: middle;
  /* Hereda tamaño del h3 padre */
  font-size: inherit;
}

/* Badge personalizable */
.badge-edit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  font-size: .62rem; border: 1px solid rgba(88,121,59,.2);
  flex-shrink: 0; transition: background var(--t-fast), border-color var(--t-fast);
}

/* ---- Descripción y pie ---- */
.pc-body, .pc-content {
  padding: 0 18px 12px;
  display: flex; flex-direction: column; gap: 4px;
}

.product-card .pc-desc,
.product-card .desc {
  margin: 0; font-size: .78rem;
  color: var(--text-muted) !important;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================================
   ALÉRGENOS — solo iconos (datos locales, sin texto visible)
   ================================================================ */
.allergens-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.allergen-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0,0,0,.08);
  color: var(--text-dim, #555);
  cursor: default;
  transition: background .15s, color .15s;
}
.allergen-badge:hover {
  background: var(--text, #111);
  color: #fff;
}
.allergen-badge i {
  font-size: .65rem;
  flex-shrink: 0;
}
/* .allergen-label oculto — solo tooltip via title= */
.allergen-label { display: none; }

/* ---- Pie: precio + botón ---- */
.pc-foot, .price-line {
  display: flex;
  justify-content: space-between; align-items: center;
  padding: 10px 18px 18px;
  gap: 10px; margin-top: auto;
}

.pc-price-wrap { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.pc-sizes {
  font-size: .68rem; color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.price, .pc-price {
  font-family: var(--font-body);
  font-size: 1.15rem; color: var(--accent);
  font-weight: 800; letter-spacing: -.01em; white-space: nowrap;
}

/* Etiqueta "Desde" para productos con variantes */
.pc-price-from {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); display: block; line-height: 1;
}

/* ---- Variantes ---- */
.variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  padding: 0 18px 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
}

.variant-btn {
  background: var(--bg-soft); border: 1.5px solid var(--line);
  color: var(--text); padding: 10px 12px;
  border-radius: 12px 2px 12px 2px; /* asimétrico */
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 2px; min-height: 52px; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast),
              transform var(--t-spring), box-shadow var(--t-fast);
}
@media (hover: hover) and (pointer: fine) {
  .variant-btn:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
  }
}
.variant-btn:active { transform: scale(.96); }

.variant-btn .v-lbl {
  font-size: .66rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-muted);
}
.variant-btn .v-price {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; color: var(--accent);
}

/* ---- Botón + añadir ---- */
.add-btn {
  background: var(--accent); color: #fff; border: none;
  width: 42px; height: 42px; min-width: 42px;
  border-radius: 12px 2px 12px 2px; /* asimétrico */
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; flex-shrink: 0;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: background var(--t-fast), transform var(--t-spring), box-shadow var(--t-fast);
  box-shadow: 0 2px 8px rgba(88,121,59,.28);
}
@media (hover: hover) and (pointer: fine) {
  .add-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 18px rgba(88,121,59,.40);
    transform: scale(1.06);
  }
}
.add-btn:active { transform: scale(.90); }

/* Animación bounce al añadir */
@keyframes addBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.28); }
  60%  { transform: scale(.90); }
  80%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.add-btn--bounce { animation: addBounce .36s cubic-bezier(.175,.885,.32,1.275) both; }

/* Ripple de luz al añadir */
.add-ripple {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,.50);
  animation: rippleFade .42s ease forwards;
  pointer-events: none;
}
@keyframes rippleFade {
  from { opacity: 1; transform: scale(.8); }
  to   { opacity: 0; transform: scale(2); }
}

/* Controles de cantidad inline (dentro de la card) */
.qty-btn {
  background: transparent; border: none;
  color: var(--text); width: 36px; height: 36px;
  font-size: 1rem; display: inline-flex;
  align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%;
  transition: background var(--t-fast), color var(--t-fast);
}
@media (hover: hover) and (pointer: fine) {
  .qty-btn:hover { background: var(--bg-soft); color: var(--accent); }
}
.qty-num {
  min-width: 24px; text-align: center;
  font-size: .9rem; font-weight: 700; color: var(--text);
}

/* ================================================================
   CARRITO — Side-Drawer (siempre fijo, overlay sobre el contenido)
   ================================================================ */

/* El panel se sale del flujo de la página: slide desde la derecha */
.cart-panel {
  position: fixed;
  /* Empieza DEBAJO del nav para no taparlo nunca */
  top: var(--nav-h); right: 0; bottom: 0;
  width: min(420px, 96vw);
  height: calc(100dvh - var(--nav-h));
  /* Fondo crema/gris ultra-claro para diferenciar del catálogo */
  background: #F4F4F5;
  display: flex; flex-direction: column;
  overflow-x: hidden;
  transform: translateX(110%);
  transition: transform .32s cubic-bezier(.2,.7,.3,1);
  z-index: 200;
  box-shadow: -8px 0 48px rgba(0,0,0,.14), -2px 0 10px rgba(0,0,0,.06);
}
.cart-panel.open { transform: translateX(0); }

/* Handle de arrastre (solo visible en móvil) */
.cart-drag-handle {
  display: none;
  width: 44px; height: 4px;
  background: var(--line-hover); border-radius: 2px;
  margin: 14px auto 0;
  flex-shrink: 0;
}

/* ---- Cabecera del drawer ---- */
.cart-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
  background: #fff;
}
.cart-head-title {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--text); letter-spacing: -.02em;
}
.cart-head-subtitle {
  display: block;
  font-size: .72rem; font-weight: 600;
  color: var(--text-dim); letter-spacing: .08em;
  text-transform: uppercase;
}
.cart-close {
  display: flex;
  background: transparent;
  border: 1.5px solid var(--line); color: var(--text-muted);
  border-radius: 50%; width: 36px; height: 36px; min-width: 36px;
  align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
  flex-shrink: 0;
}
.cart-close:hover { border-color: var(--text); color: var(--text); background: var(--bg-soft); }

/* ---- Cuerpo: lista de productos ---- */
.cart-body {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 16px;
  flex: 1; min-height: 0;
  overscroll-behavior: contain;
}

.cart-empty {
  text-align: center; color: var(--text-muted);
  padding: 60px 16px;
}
.cart-empty p { margin: 0 0 6px; color: var(--text); font-weight: 600; font-size: 1rem; }
.cart-empty span { font-size: .82rem; color: var(--text-dim); }

/* Tarjeta de producto dentro del carrito */
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 4px 12px rgba(0,0,0,.04);
  align-items: start;
}
.cart-line:last-child { margin-bottom: 0; }
.cart-line .l-name {
  font-size: .9rem; font-weight: 700; color: var(--text);
  line-height: 1.3; grid-column: 1;
}
.cart-line .l-variant {
  font-size: .68rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .15em;
  grid-column: 1; margin-top: 2px;
}
.cart-line .l-sub {
  font-family: var(--font-display);
  color: var(--accent); text-align: right;
  font-size: 1rem; font-weight: 700;
  grid-column: 2; grid-row: 1 / 3;
  align-self: center;
}

.qty {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.qty-controls {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--bg-soft);
}
.qty-controls button {
  background: transparent; border: none; color: var(--text);
  width: 36px; height: 36px; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .qty-controls button:hover { background: var(--accent-light); color: var(--accent); }
}
.qty-controls .qty-val {
  min-width: 28px; text-align: center;
  font-size: .88rem; font-weight: 700; color: var(--text);
}
.l-remove {
  background: transparent; border: none;
  color: #CCC;
  font-size: .82rem;
  transition: color var(--t-fast), transform var(--t-fast);
  min-height: 32px; width: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  padding: 0; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .l-remove:hover {
    color: #E74C3C;
    background: rgba(231,76,60,.08);
    transform: scale(1.1);
  }
}

/* ---- Nota / Alergias del carrito ---- */
.cart-note-wrap {
  margin-bottom: 14px;
}
.cart-note-label {
  display: flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 6px;
}
.cart-note-label i { font-size: .65rem; color: var(--accent); }
.cart-note-input {
  width: 100%; resize: vertical;
  background: var(--bg-soft, #f7f7f5);
  border: 1px solid var(--line, rgba(0,0,0,.1));
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: .82rem; color: var(--text);
  line-height: 1.45;
  transition: border-color .18s ease, box-shadow .18s ease;
  box-sizing: border-box;
  min-height: 60px;
}
.cart-note-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88,121,59,.15);
}

/* ---- Pie del carrito: subtotal / envío / total / botones ---- */
.cart-foot {
  border-top: 1px solid rgba(0,0,0,.07);
  padding: 18px 20px 24px;
  display: flex; flex-direction: column;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,.06);
}

/* Subtotal + Envío (texto secundario) */
.cart-subtotal-row,
.cart-shipping-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: .82rem; color: var(--text-muted);
  border-bottom: 1px solid var(--line-soft);
}
.cart-shipping-val {
  font-size: .72rem; color: var(--text-dim);
  text-align: right; max-width: 160px; line-height: 1.35;
}

/* Total (tamaño grande) */
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0 18px;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
}
.cart-total {
  font-family: var(--font-display);
  font-size: 1.9rem; color: var(--accent);
  letter-spacing: -.03em; text-transform: none; font-weight: 700;
}

/* Botón "Procesar Pedido" */
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 1rem; font-weight: 700; padding: 15px 24px;
  border-radius: 14px; letter-spacing: .02em;
  box-shadow: 0 4px 16px rgba(88,121,59,.32);
}
.cart-checkout-btn i { font-size: .88rem; opacity: .85; }
[data-checkout][disabled] { opacity: .45; cursor: not-allowed; box-shadow: none !important; }

.btn-clear {
  margin-top: 10px;
  border-color: transparent; color: var(--text-dim); font-size: .72rem;
}
@media (hover: hover) and (pointer: fine) {
  .btn-clear:hover { color: var(--danger); border-color: var(--danger); }
}

/* ================================================================
   BACKDROP (oscurece el fondo cuando el drawer está abierto)
   ================================================================ */
.cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  z-index: 190; /* debajo del cart-panel (200) pero encima del resto */
  transition: opacity .25s ease;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }

/* ================================================================
   BOTTOM FAB — Píldora flotante (solo móvil con artículos)
   ================================================================ */
.cart-fab {
  display: none; /* visible solo con .visible en móvil */
  position: fixed;
  bottom: 20px;
  left: 5%;
  right: 5%;
  /* width: auto se calcula con left+right */
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 20px 14px 16px;
  border-radius: 50px;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  /* Sombra fuerte para que flote sobre el menú */
  box-shadow:
    0 8px 28px rgba(88,121,59,.50),
    0 4px 12px rgba(0,0,0,.22),
    0 2px 6px rgba(0,0,0,.14);
  cursor: pointer;
  z-index: 180;
  transition:
    box-shadow .2s ease,
    opacity .18s;
  -webkit-tap-highlight-color: transparent;
}
.cart-fab:active {
  box-shadow:
    0 4px 12px rgba(88,121,59,.35),
    0 2px 6px rgba(0,0,0,.14);
  opacity: .92;
}
.cart-fab.visible { display: flex; }

/* Icono con badge de cantidad — izquierda */
.cart-fab-icon-wrap {
  position: relative;
  flex-shrink: 0;
}
.cart-fab .cart-fab-icon { font-size: 1.25rem; display: block; }
.cart-fab .cart-fab-count {
  position: absolute; top: -10px; right: -13px;
  background: #fff; color: var(--accent);
  font-size: .6rem; font-weight: 900;
  border-radius: 999px; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--accent);
}

/* Centro: etiqueta + precio como fila horizontal */
.cart-fab-texts {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cart-fab .cart-fab-label {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .95;
}
/* Precio — derecha */
.cart-fab .cart-fab-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}

/* CTA pill: oculto (el precio ya actúa de CTA visual) */
.cart-fab-cta { display: none; }

/* En escritorio el FAB nunca aparece */
@media (min-width: 769px) { .cart-fab { display: none !important; } }

/* ================================================================
   RESPONSIVE
   ================================================================ */
/* Tablet: 2 columnas (sidebar + catálogo) */
@media (max-width: 1100px) {
  .menu-wrap { grid-template-columns: 190px 1fr; }
}

/* Móvil */
@media (max-width: 768px) {
  .menu-wrap {
    grid-template-columns: 1fr;
    padding-block: 24px 120px; /* 120px: 20px bottom del FAB + ~70px altura + 30px holgura */
  }
  .menu-sidebar { display: none; }

  /* 1 columna en móvil — tarjetas a pantalla completa */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-card { border-radius: 16px; }
  .pc-hero { height: 180px; }

    /* Cart: bottom-sheet en móvil
     Reglas en orden de prioridad (anulan el base CSS):
     • top: auto          → desancla del top, el panel crece desde abajo
     • bottom: 0          → ancla al borde inferior del viewport
     • left: 0; right: 0  → ancla ambos bordes laterales = ancho del viewport
     • width: 100%        → refuerzo explícito (inmune a herencias)
     • max-width: 100%    → anula min(420px,96vw) del base
     • height: auto       → anula 100dvh del base; el contenido decide la altura
     • max-height: 92dvh  → límite superior; el cart-body hace scroll por encima
     • translateY(110%)   → oculto debajo del viewport (no a la derecha → cero overflow-x)
  */
  .cart-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -4px 32px rgba(0,0,0,.10);
    transform: translateY(110%);
  }
  .cart-panel.open {
    transform: translateY(0);
  }

  /* Mostrar handle en móvil */
  .cart-drag-handle { display: block; }

  /* Ajustes táctiles */
  .pc-head { padding: 14px 14px 6px; gap: 10px; }
  .pc-icon { width: 36px; height: 36px; font-size: 1.1rem; }
  .pc-body { padding: 0 14px 10px; }
  .price-line, .pc-foot { padding: 8px 14px 14px; }
}

/* Tablets en landscape: el grid auto-fill ya se adapta solo */



/* ================================================================
   MODAL CONFIRMAR VACIAR CARRITO
   ================================================================ */
.confirm-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.60);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.confirm-modal-backdrop.open {
  opacity: 1; pointer-events: auto;
}

.confirm-modal {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 380px; width: 100%;
  box-shadow: 0 24px 80px rgba(0,0,0,.28);
  text-align: center;
  transform: scale(.92) translateY(12px);
  transition: transform .22s cubic-bezier(.175,.885,.32,1.275);
}
.confirm-modal-backdrop.open .confirm-modal {
  transform: scale(1) translateY(0);
}

.confirm-modal-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 14px;
}

.confirm-modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: -.02em;
}

.confirm-modal-body {
  font-size: .88rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.55;
}

.confirm-modal-actions {
  display: flex; gap: 10px;
  flex-direction: column;
}

.confirm-modal-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 700;
  border: none; cursor: pointer;
  transition: background var(--t-fast), transform var(--t-spring), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.confirm-modal-btn--cancel {
  background: #f3f4f6; color: #374151;
}
@media (hover: hover) and (pointer: fine) {
  .confirm-modal-btn--cancel:hover { background: #e5e7eb; }
}
.confirm-modal-btn--danger {
  background: #d32f2f; color: #fff;
  box-shadow: 0 4px 14px rgba(211,47,47,.35);
}
@media (hover: hover) and (pointer: fine) {
  .confirm-modal-btn--danger:hover {
    background: #b71c1c;
    box-shadow: 0 6px 20px rgba(183,28,28,.45);
    transform: translateY(-1px);
  }
}
.confirm-modal-btn--danger:active { transform: scale(.96); }

/* ================================================================
   CHECKOUT MODAL
   ================================================================ */
.checkout-box { max-width: 520px; width: 94%; }

/* Banner tiempo de espera */
.co-wait-banner {
  display: flex; align-items: center; gap: 8px;
  background: rgba(88,121,59,.10);
  border: 1px solid rgba(88,121,59,.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: .85rem; font-weight: 600; color: var(--accent);
}
.co-wait-banner i { flex-shrink: 0; }

/* Tipo de pedido */
.co-tipo-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 22px;
}
.co-tipo-btn {
  padding: 14px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: transparent; color: var(--text-muted);
  font-family: var(--font-body); font-size: .88rem;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast),
              background var(--t-fast), transform var(--t-spring);
  text-align: center;
}
.co-tipo-btn.active {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light);
}
@media (hover: hover) and (pointer: fine) {
  .co-tipo-btn:not(.active):hover {
    border-color: var(--line-hover); color: var(--text);
    transform: translateY(-1px);
  }
}

/* Formulario */
.co-form   { display: grid; gap: 14px; }
.co-field  { display: grid; gap: 6px; }
.co-field label {
  font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 600;
}
.co-field input, .co-field select, .co-field textarea {
  background: var(--bg-soft); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-body); font-size: .9rem;
  padding: 10px 14px; width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.co-field input:focus, .co-field select:focus, .co-field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* Resumen del pedido */
.co-summary {
  margin-top: 20px; padding: 14px 16px;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--bg-soft);
}
.co-summary-title {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 10px; font-weight: 700;
}
.co-line {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 4px 10px; align-items: baseline;
  padding: 5px 0; border-bottom: 1px solid var(--line-soft);
  font-size: .88rem;
}
.co-line:last-of-type { border-bottom: none; }
.co-line-qty   { color: var(--text-dim); font-size: .78rem; }
.co-line-name  { color: var(--text); }
.co-line-name em { color: var(--text-dim); font-style: normal; font-size: .78rem; }
.co-line-price {
  color: var(--accent); white-space: nowrap;
  font-family: var(--font-display); font-weight: 700;
}
.co-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 10px; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
}
.co-total-row strong {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--accent); letter-spacing: -.02em; text-transform: none;
}

/* Filas del desglose de precios (subtotal + envío) */
.co-summary-sub,
.co-summary-shipping {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--text-muted); padding: 3px 0;
  border-top: 1px dashed var(--line-soft);
}
.co-summary-shipping { color: var(--accent); font-weight: 600; }

/* Error inline */
.co-error {
  margin-top: 12px; padding: 10px 14px;
  background: rgba(192,57,43,.08);
  border: 1px solid rgba(192,57,43,.3);
  border-radius: var(--radius-sm); color: #c0392b; font-size: .85rem;
}

.checkout-foot { padding-top: 16px; }

/* Éxito */
.co-success {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 40px 24px 32px; gap: 10px;
}
.co-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(39,174,96,.12); border: 2px solid rgba(39,174,96,.45);
  color: var(--ok); font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.co-success-title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin: 0;
}
.co-success-msg  { color: var(--text-muted); max-width: 340px; margin: 0; }
.co-success-id   { font-size: .85rem; color: var(--text-dim); margin: 0; }
.co-success-id code {
  background: var(--accent-light); color: var(--accent);
  padding: 2px 8px; border-radius: 4px; font-family: monospace;
}
.co-success-tel  { font-size: .85rem; color: var(--text-dim); margin: 0; }
.co-success-tel a { color: var(--accent); }
.co-success .btn { margin-top: 16px; }

/* ================================================================
   MODAL DE PRODUCTO (creado dinámicamente por menu.js)
   ================================================================ */
.product-modal {
  position: fixed; inset: 0;
  z-index: 400; /* por encima de drawer nav (300) y cart-panel (200) */
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
@media (min-width: 540px) {
  .product-modal { align-items: center; padding: 24px; }
}
.product-modal.open { opacity: 1; pointer-events: auto; }

.product-modal .modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.product-modal .modal-box {
  position: relative;
  background: #fff;
  width: 100%; max-width: 460px;
  max-height: 95dvh; overflow-y: auto;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -4px 40px rgba(0,0,0,.14);
  display: flex; flex-direction: column;
  /* Slide-up desde abajo en móvil */
  transform: translateY(32px);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.product-modal.open .modal-box {
  transform: translateY(0);
}
@media (min-width: 540px) {
  .product-modal .modal-box {
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    /* Scale-in en lugar de slide en escritorio */
    transform: scale(.96) translateY(8px);
    transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
  }
  .product-modal.open .modal-box {
    transform: scale(1) translateY(0);
  }
}

.product-modal .modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
  position: sticky; top: 0; background: #fff; z-index: 1;
}

.product-modal .modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text); letter-spacing: -.01em; margin: 0 0 3px;
}
.product-modal .modal-variante {
  display: block; font-size: .72rem; color: var(--text-dim);
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.product-modal .modal-close {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--line); background: transparent;
  color: var(--text-muted); font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.product-modal .modal-close:hover { border-color: var(--text); color: var(--text); background: var(--bg-soft); }

.product-modal .modal-body { padding: 18px 20px; flex: 1; }

.product-modal .modal-foot {
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-shrink: 0; background: #fff;
}
.product-modal .modal-precio {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--accent); letter-spacing: -.02em;
}
.product-modal .modal-confirm { flex-shrink: 0; }

/* Checkout modal: más ancho */
.product-modal.checkout-modal .modal-box { max-width: 520px; }

/* Nota textarea */
.modal-nota {
  width: 100%;
  background: var(--bg-soft); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-body); font-size: .9rem;
  padding: 10px 14px; resize: vertical; min-height: 70px;
  transition: border-color var(--t-fast);
}
.modal-nota:focus { outline: none; border-color: var(--accent); }

/* Dos campos en fila (localidad + CP) */
.co-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .co-field-row { grid-template-columns: 1fr; } }


/* ================================================================
   WIZARD MODAL DE PRODUCTO — .pm-wizard
   (reemplaza el modal simple de "Configurar")
   ================================================================ */

/* La hoja usa las reglas base de .modal-box + estas sobreescrituras */
.pm-wizard .pmw-sheet { max-width: 520px; }

/* ── Cabecera sticky ── */
.pm-wizard .pmw-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; background: #fff; z-index: 2;
  flex-shrink: 0;
}

.pm-wizard .pmw-head-emoji {
  font-size: 2rem;
  width: 56px; height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light);
  border-radius: 14px 4px 14px 4px; line-height: 1;
}

.pm-wizard .pmw-head-img {
  width: 72px; height: 72px; flex-shrink: 0;
  object-fit: cover; border-radius: 14px;
  opacity: 0;
  transition: opacity .35s ease;
}
.pm-wizard .pmw-head-img.img-loaded {
  opacity: 1;
}

.pm-wizard .pmw-head-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px;
}

.pm-wizard .pmw-head-name {
  font-family: var(--font-display);
  font-size: 1.18rem; font-weight: 700;
  color: var(--text); margin: 0; line-height: 1.25; letter-spacing: -.02em;
}

.pm-wizard .pmw-head-desc {
  font-size: .79rem; color: var(--text-muted); margin: 0; line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.pm-wizard .pmw-head-price {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; color: var(--accent); letter-spacing: -.02em;
}

.pm-wizard .pmw-close { flex-shrink: 0; margin-left: auto; align-self: flex-start; }

/* ── Body scrollable ── */
.pm-wizard .pmw-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }

/* ── STEPPER: barra de progreso (dots + texto) ── */
.pm-wizard .pmw-progress {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px 20px 8px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0; background: #fff;
}

.pm-wizard .pmw-progress-dots {
  display: flex; gap: 6px; align-items: center;
}

.pm-wizard .pmw-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line); transition: background .2s, transform .2s, width .2s;
}
.pm-wizard .pmw-dot--active {
  background: var(--accent); transform: scale(1.25);
  width: 20px; border-radius: 4px; /* pill activo */
}

.pm-wizard .pmw-progress-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-dim);
}

/* ── STEPPER: viewport de pasos ── */
/* overflow-x: hidden recorta las animaciones de slide horizontal;
   overflow-y: auto permite scroll vertical en listas largas.
   min-height: 0 es crítico: evita que el hijo flex desborde su contenedor. */
.pm-wizard .pmw-step-viewport {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  overscroll-behavior: contain;
}

.pm-wizard .pmw-step-wrap {
  position: relative;
}

.pm-wizard .pmw-step-slide {
  /* elimina la separación de borde entre grupos cuando solo hay uno visible */
  will-change: transform, opacity;
}
.pm-wizard .pmw-step-slide .pmw-group {
  border-bottom: none; /* solo hay un grupo por paso, no necesita separador */
}

/* ── Animaciones de entrada/salida (slide horizontal) ── */
@keyframes pmwSlideOutLeft {
  from { transform: translateX(0);     opacity: 1; }
  to   { transform: translateX(-28px); opacity: 0; }
}
@keyframes pmwSlideOutRight {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(28px); opacity: 0; }
}
@keyframes pmwSlideInRight {
  from { transform: translateX(28px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes pmwSlideInLeft {
  from { transform: translateX(-28px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

.pm-wizard .pmw-slide-out-left  { animation: pmwSlideOutLeft  .18s ease forwards; }
.pm-wizard .pmw-slide-out-right { animation: pmwSlideOutRight .18s ease forwards; }
.pm-wizard .pmw-slide-in-right  { animation: pmwSlideInRight  .22s ease forwards; }
.pm-wizard .pmw-slide-in-left   { animation: pmwSlideInLeft   .22s ease forwards; }

/* ── Pie adaptado al stepper ── */
.pm-wizard .pmw-foot--step {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid var(--line-soft);
  flex-shrink: 0; background: #fff;
}

/* Botón "Volver" — discreto, cuadrado, borde */
.pm-wizard .pmw-back-btn {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 2px solid var(--line);
  border-radius: 14px; color: var(--text-dim); cursor: pointer;
  font-size: .88rem; transition: background .14s, border-color .14s, color .14s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .pm-wizard .pmw-back-btn:hover {
    border-color: var(--accent); color: var(--accent); background: var(--accent-light);
  }
}
.pm-wizard .pmw-back-btn:active { transform: scale(.93); }

/* Botón "Siguiente" — ancho completo, estilo primario */
.pm-wizard .pmw-next-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 14px; padding: 0 22px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 700;
  cursor: pointer; min-height: 52px;
  box-shadow: 0 4px 18px rgba(88,121,59,.34);
  transition: background .15s, box-shadow .15s, transform .1s, opacity .18s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .pm-wizard .pmw-next-btn:not(:disabled):hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 24px rgba(88,121,59,.44);
    transform: translateY(-1px);
  }
}
.pm-wizard .pmw-next-btn:active:not(:disabled) { transform: scale(.97); box-shadow: none; }
.pm-wizard .pmw-next-btn:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }

/* Contenedor del último paso: solo el CTA ocupa el espacio restante */
.pm-wizard .pmw-foot--step .pmw-cta { flex: 1; }

/* ── Bloque de opciones ── */
.pm-wizard .pmw-group {
  padding: 20px; border-bottom: 1px solid var(--line-soft);
}
.pm-wizard .pmw-group:last-child { border-bottom: none; }

.pm-wizard .pmw-group-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px; flex-wrap: wrap;
}

.pm-wizard .pmw-group-title {
  font-size: .77rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text);
  display: flex; align-items: center; gap: 6px;
}
.pm-wizard .pmw-group-title i { color: var(--accent); font-size: .75rem; }

.pm-wizard .pmw-badge-req {
  font-size: .62rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; background: var(--accent); color: #fff;
  padding: 3px 10px; border-radius: 999px; margin-left: auto; flex-shrink: 0;
}
.pm-wizard .pmw-group-hint {
  font-size: .72rem; color: var(--text-dim); letter-spacing: .06em; margin-left: auto;
}
.pm-wizard .pmw-group-sub {
  font-size: .78rem; color: var(--text-muted);
  margin: -8px 0 10px; font-style: italic; line-height: 1.45;
}

/* ── Tier hint de precios de extras (visible en el paso Tamaño) ── */
.pm-wizard .pmw-extras-tier {
  display: flex; align-items: center; flex-wrap: wrap; gap: 3px 5px;
  margin-top: 14px; padding: 8px 12px;
  background: rgba(88,121,59,.07); border-radius: 10px;
  font-size: .78rem; color: var(--text-muted); line-height: 1.5;
}
.pm-wizard .pmw-extras-tier i { color: var(--accent); opacity: .75; margin-right: 3px; }
.pm-wizard .pmw-extras-tier [data-tier-std],
.pm-wizard .pmw-extras-tier [data-tier-prem] {
  font-weight: 700; color: var(--accent); transition: color .2s;
}

/* ── Botones tipo pastilla (radio) ── */
.pm-wizard .pmw-radio-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.pm-wizard .pmw-radio-btn {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--bg-soft);
  color: var(--text); cursor: pointer;
  font-family: var(--font-body); font-size: .9rem;
  transition: border-color .14s, background .14s, transform .1s, box-shadow .14s;
  flex: 1 1 130px; min-height: 52px;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .pm-wizard .pmw-radio-btn:not(.pmw-radio-btn--active):hover {
    border-color: var(--accent); background: var(--accent-light);
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(88,121,59,.14);
  }
}
.pm-wizard .pmw-radio-btn--active {
  border-color: var(--accent); background: var(--accent-light);
  color: var(--accent); font-weight: 700;
  box-shadow: 0 0 0 3px rgba(88,121,59,.12);
}
.pm-wizard .pmw-radio-btn:active { transform: scale(.95); }

/* Internals del radio-btn */
.pm-wizard .pmw-radio-check {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; color: #fff;
  transition: background .14s, border-color .14s;
}
.pm-wizard .pmw-radio-btn--active .pmw-radio-check {
  background: var(--accent); border-color: var(--accent);
}
.pm-wizard .pmw-radio-label {
  flex: 1; text-align: left; display: flex; flex-direction: column; gap: 2px;
}
.pm-wizard .pmw-radio-label-name { font-size: .9rem; font-weight: 700; }
.pm-wizard .pmw-radio-label-desc {
  font-size: .72rem; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}
.pm-wizard .pmw-radio-price {
  font-size: .85rem; font-weight: 700; color: var(--accent); flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
   WIZARD MITAD Y MITAD (v6) — .pm-mymt-wizard + .pmwiz-*
   ══════════════════════════════════════════════════════════════════ */

/* ── Overlay + Sheet ── */
.pm-mymt-wizard .pmwiz-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 0;
  opacity: 0; transition: opacity var(--t-fast);
}
.pm-mymt-wizard.open .pmwiz-backdrop { opacity: 1; }

.pm-mymt-wizard .pmwiz-sheet {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  max-width: 600px; width: 100%;
  max-height: 92dvh; overflow: hidden;
  border-radius: 24px 24px 20px 20px;
  background: #fff; box-shadow: var(--shadow-lg);
  font-family: var(--font-body);
}

/* ── Cabecera fija ── */
.pmwiz-head {
  flex-shrink: 0;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff; z-index: 2;
}
.pmwiz-head-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.pmwiz-title {
  margin: 0; font-size: 1.1rem; font-weight: 800;
  color: var(--text); display: flex; align-items: center; gap: 8px;
}
.pmwiz-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-soft); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 1rem;
  transition: background var(--t-fast), color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.pmwiz-close:hover { background: var(--line); color: var(--text); }

/* ── Stepper ── */
.pmwiz-stepper {
  display: flex; align-items: flex-start; gap: 0;
}
.pmwiz-stepper-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.pmwiz-stepper-line {
  flex: 1; height: 2px; margin-top: 9px;
  background: var(--line); border-radius: 2px;
  transition: background .25s;
}
.pmwiz-stepper-line--done { background: var(--accent); }

.pmwiz-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--line); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; color: #fff;
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.pmwiz-dot--done {
  background: var(--accent); border-color: var(--accent);
}
.pmwiz-dot--active {
  background: var(--accent); border-color: var(--accent);
  transform: scale(1.45);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent);
}
.pmwiz-step-lbl {
  font-size: .62rem; color: var(--text-dim); font-weight: 500;
  transition: color .2s;
}
.pmwiz-step-lbl--active { color: var(--accent); font-weight: 800; font-size: .68rem; }
.pmwiz-step-lbl--done   { color: var(--text-muted); }

/* ── Cuerpo dinámico ── */
.pmwiz-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 0; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* ── Animaciones de panel ── */
@keyframes pmwiz-in  { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pmwiz-in-back { from { transform: translateX(-32px); opacity: 0; } to { transform: none; opacity: 1; } }

.pmwiz-panel      { animation: pmwiz-in      .22s ease both; padding: 16px 20px 4px; }
.pmwiz-panel--back { animation: pmwiz-in-back .22s ease both; padding: 16px 20px 4px; }

/* ── Pie fijo ── */
.pmwiz-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--line-soft);
  padding: 12px 20px 16px;
  background: #fff;
}
.pmwiz-foot-nota { margin-bottom: 10px; }
.pmwiz-nota-lbl {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 4px;
}
.pmwiz-nota-ta {
  width: 100%; box-sizing: border-box; resize: none;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 7px 10px; font-size: .82rem; font-family: var(--font-body);
  background: var(--bg-soft); color: var(--text);
  transition: border-color var(--t-fast);
  outline: none;
}
.pmwiz-nota-ta:focus { border-color: var(--accent); }

.pmwiz-foot-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.pmwiz-total-wrap {
  display: flex; flex-direction: column; line-height: 1.2;
}
.pmwiz-total-lbl { font-size: .72rem; color: var(--text-muted); font-weight: 500; }
.pmwiz-total-val { font-size: 1.25rem; font-weight: 800; color: var(--accent); }

.pmwiz-foot-btns { display: flex; gap: 8px; align-items: center; }

.pmwiz-btn-back {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 2px solid var(--line);
  border-radius: 12px; color: var(--text-dim); cursor: pointer;
  font-size: .9rem; transition: background var(--t-fast), border-color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.pmwiz-btn-back:hover { background: var(--bg-soft); border-color: var(--text-muted); }

.pmwiz-btn-next {
  height: 44px; padding: 0 22px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 12px; font-size: .9rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  transition: background var(--t-fast), opacity var(--t-fast), transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.pmwiz-btn-next:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.pmwiz-btn-next:disabled { opacity: .45; cursor: not-allowed; }
.pmwiz-btn-next.pmwiz-btn--add {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  padding: 0 18px;
}

/* ── Paso 1: Mitades ── */
.pmwiz-circle-wrap {
  display: flex; justify-content: center; margin-bottom: 16px;
}
.pmwiz-circle {
  width: 180px; height: 180px; border-radius: 50%;
  display: flex; overflow: hidden; position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.14);
  border: 3px solid var(--line);
}
.pmwiz-circle-l,
.pmwiz-circle-r {
  flex: 1; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.pmwiz-circle-l   { background: #F3F4F6; }
.pmwiz-circle-r   { background: #F9FAFB; }
.pmwiz-circle-l--sel { background: color-mix(in srgb, var(--accent) 18%, #fff); }
.pmwiz-circle-r--sel { background: #FFF3E0; }
.pmwiz-circle-divider {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--line); transform: translateX(-50%);
}
.pmwiz-circle-txt {
  font-size: .72rem; font-weight: 700; color: var(--text);
  text-align: center; padding: 8px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.pmwiz-circle-l--sel .pmwiz-circle-txt,
.pmwiz-circle-r--sel .pmwiz-circle-txt { color: var(--text); }

/* Cuadrícula de mitades */
.pmwiz-halves-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 360px) {
  .pmwiz-halves-grid { grid-template-columns: 1fr; }
}

.pmwiz-half-col {}
.pmwiz-half-col-hd {
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}
.pmwiz-half-num {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.pmwiz-half-num--1 { background: var(--accent); }
.pmwiz-half-num--2 { background: #D97706; }
.pmwiz-half-col-lbl { font-size: .78rem; font-weight: 700; color: var(--text); }

/* Lista de pizzas scrolleable */
.pmwiz-pizza-list {
  display: flex; flex-direction: column; gap: 5px;
  max-height: 260px; overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}

.pmwiz-pizza-btn {
  display: flex; align-items: center;
  gap: 6px; padding: 7px 10px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.pmwiz-pizza-btn:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.pmwiz-pizza-btn--sel  {
  border-width: 2px;
  font-weight: 700;
}
.pmwiz-pizza-btn--sel[data-half="0"] { border-color: var(--accent);  background: color-mix(in srgb, var(--accent) 10%, #fff); }
.pmwiz-pizza-btn--sel[data-half="1"] { border-color: #D97706; background: #FFF3E0; }
.pmwiz-pizza-check {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; color: #fff;
}
.pmwiz-pizza-btn--sel[data-half="0"] .pmwiz-pizza-check { background: var(--accent); }
.pmwiz-pizza-btn--sel[data-half="1"] .pmwiz-pizza-check { background: #D97706; }

.pmwiz-pizza-btn-name  { font-size: .82rem; font-weight: 600; color: var(--text); flex: 1; min-width: 0; }
.pmwiz-pizza-btn-price { font-size: .75rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }

/* Mitad fija (cuando openWizard recibe firstPizza) */
.pmwiz-half-fixed {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  border: 2px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, #fff);
}
.pmwiz-half-fixed-icon { font-size: 1.4rem; flex-shrink: 0; }
.pmwiz-half-fixed-name { font-size: .88rem; font-weight: 700; color: var(--text); display: block; }
.pmwiz-half-fixed-badge {
  display: inline-block; margin-top: 2px;
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  padding: 1px 6px; border-radius: 6px;
  background: var(--accent); color: #fff;
}

/* ── Paso 2: Tamaño ── */
.pmwiz-step-hint {
  font-size: .82rem; color: var(--text-muted); margin: 0 0 12px;
}
.pmwiz-size-list {
  display: flex; flex-direction: column; gap: 8px;
}
.pmwiz-size-btn {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 12px 16px;
  border: 2px solid var(--line); border-radius: 14px;
  background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.pmwiz-size-btn:hover   { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); transform: translateY(-1px); }
.pmwiz-size-btn--sel    { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); }
.pmwiz-size-name        { font-size: .92rem; font-weight: 700; color: var(--text); }
.pmwiz-size-tag {
  font-size: .8rem; font-weight: 700; color: var(--accent);
  flex-shrink: 0;
}

/* ── Pasos 3 & 4: Personalización ── */
.pmwiz-cust-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--bg-soft), #fff);
  border: 1.5px solid var(--line-soft);
}
.pmwiz-cust-badge {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 800; color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.pmwiz-cust-banner-lbl  { font-size: .72rem; color: var(--text-muted); font-weight: 500; display: block; }
.pmwiz-cust-banner-name { font-size: .95rem; font-weight: 800; color: var(--text); }

.pmwiz-cust-section {
  margin-bottom: 18px;
}
.pmwiz-cust-section-title {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .04em;
  margin: 0 0 10px;
}
.pmwiz-cust-badge-opt {
  margin-left: auto; font-size: .68rem; font-weight: 600;
  padding: 2px 7px; border-radius: 6px;
  background: var(--bg-soft); color: var(--text-muted);
  text-transform: none; letter-spacing: 0;
}

/* Ingredientes a quitar */
.pmwiz-ings-wrap {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.pmwiz-ing-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 20px;
  border: 1.5px solid var(--line);
  background: #fff; font-size: .8rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.pmwiz-ing-pill:hover { border-color: #ef4444; }
.pmwiz-ing-pill--off  { background: #fef2f2; border-color: #ef4444; color: #ef4444; }
.pmwiz-pill-x { font-size: .7rem; opacity: .7; }
.pmwiz-ing-pill--off .pmwiz-pill-x { opacity: 1; }

/* Buscador de extras */
.pmwiz-extras-search {
  position: relative; margin-bottom: 12px;
  display: flex; align-items: center;
}
.pmwiz-search-icon {
  position: absolute; left: 12px; color: var(--text-muted);
  font-size: .82rem; pointer-events: none;
}
.pmwiz-extras-search-input {
  width: 100%; box-sizing: border-box;
  padding: 9px 36px 9px 34px;
  border: 1.5px solid var(--line); border-radius: 22px;
  background: var(--bg-soft); color: var(--text);
  font-size: .85rem; font-family: var(--font-body);
  outline: none; transition: border-color var(--t-fast), background var(--t-fast);
  -webkit-appearance: none;
}
.pmwiz-extras-search-input::-webkit-search-cancel-button { display: none; }
.pmwiz-extras-search-input:focus { border-color: var(--accent); background: #fff; }
.pmwiz-search-clear {
  position: absolute; right: 8px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--line); color: var(--text); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem;
  transition: background var(--t-fast);
}
.pmwiz-search-clear:hover { background: var(--text-muted); color: #fff; }

.pmwiz-search-empty {
  text-align: center; padding: 12px 0;
  color: var(--text-muted); font-size: .82rem; font-style: italic;
}

/* Extras por categoría */
.pmwiz-extra-cat { margin-bottom: 14px; }
.pmwiz-extra-cat-lbl {
  display: flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700;
  color: var(--text-muted); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .05em;
}
.pmwiz-extra-cat-count {
  display: inline-block;
  background: var(--bg-soft); color: var(--text-muted);
  padding: 1px 7px; border-radius: 10px;
  font-size: .65rem; font-weight: 600;
  text-transform: none; letter-spacing: 0;
}

/* ================================================================
   BANNER RESTAURANTE CERRADO
   ================================================================ */
#restaurante-cerrado-banner {
  display: flex;
  justify-content: center;
  padding: 0 16px 32px;
  animation: cerrado-fade-in 0.4s ease-out;
}

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

.cerrado-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a00 100%);
  border: 2px solid rgba(255,200,80,.3);
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  position: relative;
  overflow: hidden;
}

/* Variante: cerrado online pero tienda abierta para pedidos por teléfono */
.cerrado-inner--en-horario {
  background: linear-gradient(135deg, #1c1400 0%, #2a1f00 100%);
  border-color: rgba(255,183,77,.45);
}

.cerrado-inner--en-horario::before {
  background: linear-gradient(90deg,
    #FFB74D 0%,
    #FF9800 50%,
    #FFB74D 100%);
}

.cerrado-inner--en-horario .cerrado-icon-wrap {
  background: rgba(255,183,77,.15);
  border-color: rgba(255,183,77,.35);
}

.cerrado-inner--en-horario .cerrado-title {
  color: #FFD082;
}

.cerrado-inner--en-horario .cerrado-text strong {
  color: #FFD082;
}

.cerrado-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #58793B 0%, 
    #FFB74D 50%, 
    #58793B 100%);
}

.cerrado-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: rgba(255,200,80,.12);
  border: 2px solid rgba(255,200,80,.25);
  border-radius: 50%;
  margin-bottom: 8px;
}

.cerrado-icon {
  font-size: 3.5rem;
  filter: grayscale(0.3) opacity(0.9);
  animation: cerrado-icon-pulse 2s ease-in-out infinite;
}

@keyframes cerrado-icon-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.cerrado-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.cerrado-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  margin: 0;
}

.cerrado-text {
  font-size: 1rem;
  color: rgba(255,255,255,.7);
  margin: 0;
  line-height: 1.5;
}

.cerrado-horario {
  font-size: 0.95rem;
  color: rgba(255,200,80,.85);
  margin: 4px 0 8px;
  padding: 12px 20px;
  background: rgba(255,200,80,.08);
  border-radius: 12px;
  border: 1px solid rgba(255,200,80,.15);
}

.cerrado-horario strong {
  color: rgba(255,200,80,1);
  font-weight: 600;
}

.cerrado-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-cerrado {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-cerrado i {
  font-size: 1rem;
}

.btn-cerrado-primary {
  background: linear-gradient(135deg, #58793B 0%, #6a8f49 100%);
  color: #fff;
  border-color: #58793B;
  box-shadow: 0 2px 8px rgba(88,121,59,.3);
}

.btn-cerrado-primary:hover {
  background: linear-gradient(135deg, #6a8f49 0%, #7aa05a 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88,121,59,.4);
}

.btn-cerrado-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.3);
}

.btn-cerrado-outline:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
}

/* Responsive móvil */
@media (max-width: 640px) {
  .cerrado-inner {
    padding: 32px 24px;
    gap: 20px;
  }
  
  .cerrado-icon-wrap {
    width: 80px;
    height: 80px;
  }
  
  .cerrado-icon {
    font-size: 2.8rem;
  }
  
  .cerrado-title {
    font-size: 1.5rem;
  }
  
  .cerrado-text {
    font-size: 0.92rem;
  }
  
  .cerrado-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-cerrado {
    width: 100%;
    padding: 14px 20px;
  }
}

/* Tarjetas en estado cerrado: visibles pero no interactivas */
body:has(#restaurante-cerrado-banner) .product-card {
  opacity: .55;
  pointer-events: none;
  user-select: none;
}
.pmwiz-chips-wrap {
  display: flex; flex-wrap: wrap; gap: 7px;
}
.pmwiz-extra-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 20px;
  border: 1.5px solid var(--line);
  background: #fff; font-size: .8rem; font-weight: 600;
  color: var(--text); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.pmwiz-extra-chip:hover     { border-color: var(--accent); }
.pmwiz-extra-chip--sel      { background: color-mix(in srgb, var(--accent) 12%, #fff); border-color: var(--accent); color: var(--accent); }
.pmwiz-chip-price           { font-size: .7rem; font-weight: 500; color: var(--text-muted); }
.pmwiz-extra-chip--sel .pmwiz-chip-price { color: var(--accent); font-weight: 700; }
/* Hint “Suma al precio” debajo del título de extras */
.pmwiz-section-hint {
  margin: -6px 0 10px;
  font-size: .7rem; color: var(--text-muted); font-style: italic;
}

.pmwiz-no-custom {
  text-align: center; color: var(--text-muted); font-size: .85rem;
  padding: 24px 0;
}

/* ── Mobile bottom-sheet overrides ── */
@media (max-width: 540px) {
  .pm-mymt-wizard .pmwiz-sheet {
    border-radius: 20px 20px 0 0;
    max-height: 96dvh;
  }
}
/* ── /WIZARD MITAD Y MITAD ── */

/* Radio grid columna única (lista de pizzas) */
.pm-wizard .pmw-radio-grid--col .pmw-radio-btn { flex: 1 1 100%; }

/* Lista de checks (ingredientes / extras) */
.pm-wizard .pmw-check-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.pm-wizard .pmw-check-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg-soft);
  cursor: pointer; font-family: var(--font-body);
  text-align: left; transition: background .14s, border-color .14s, opacity .14s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .pm-wizard .pmw-check-item:hover { border-color: var(--accent); background: var(--accent-light); }
}
.pm-wizard .pmw-check-item--active {
  border-color: var(--accent); background: var(--accent-light);
}
.pm-wizard .pmw-check-item--removed {
  border-color: #e74c3c; background: #fdecea; opacity: .85;
}
.pm-wizard .pmw-check-box {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
  background: var(--bg); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; color: #fff;
  transition: background .14s, border-color .14s;
}
.pm-wizard .pmw-check-item--active  .pmw-check-box { background: var(--accent); border-color: var(--accent); }

/* ================================================================
   MODAL RESTAURANTE CERRADO — v2 (card blanca)
   ================================================================ */
#cerrado-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: modal-bg-in 0.25s ease-out;
}
@keyframes modal-bg-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cmv2-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 40px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.5);
  animation: modal-card-in 0.3s cubic-bezier(.22,.68,0,1.2);
}
@keyframes modal-card-in {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

.cmv2-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #58793B 0%, #8ab55a 50%, #58793B 100%);
}

.cmv2-emoji {
  display: block;
  font-size: 3rem;
  margin: 0 0 16px;
  line-height: 1;
}

.cmv2-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111;
  margin: 0 0 10px;
  letter-spacing: -.02em;
}

.cmv2-sub {
  font-size: 0.95rem;
  color: #666;
  margin: 0 0 22px;
  line-height: 1.5;
}
.cmv2-sub strong { color: #333; }

.cmv2-schedule {
  display: inline-block;
  background: #f5f5f2;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 28px;
}
.cmv2-schedule strong { color: #111; }

.cmv2-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmv2-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cmv2-btn i { font-size: 0.9rem; }

.cmv2-btn--primary {
  background: #58793B;
  color: #fff;
  box-shadow: 0 4px 14px rgba(88,121,59,.3);
}
.cmv2-btn--primary:hover {
  background: #465f2e;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(88,121,59,.4);
}

.cmv2-btn--ghost {
  background: #f5f5f2;
  color: #444;
}
.cmv2-btn--ghost:hover {
  background: #e8e8e4;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .cmv2-card  { padding: 40px 24px 32px; }
  .cmv2-title { font-size: 1.4rem; }
}
.pm-wizard .pmw-check-item--removed .pmw-check-box { background: #e74c3c; border-color: #e74c3c; }
.pm-wizard .pmw-check-label { flex: 1; font-size: .88rem; color: var(--text); }
.pm-wizard .pmw-check-price { font-size: .8rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }

/* Botón CTA "Añadir al carrito" */
.pm-wizard .pmw-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none;
  border-radius: 14px; padding: 0 22px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 700;
  cursor: pointer; min-height: 52px;
  box-shadow: 0 4px 18px rgba(88,121,59,.34);
  transition: background .15s, box-shadow .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
  .pm-wizard .pmw-cta:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 24px rgba(88,121,59,.44);
    transform: translateY(-1px);
  }
}
.pm-wizard .pmw-cta:active { transform: scale(.97); box-shadow: none; }
.pm-wizard .pmw-cta-sep   { opacity: .6; }
.pm-wizard .pmw-cta-price { font-size: 1rem; font-weight: 800; }

/* Textarea de nota */
.pm-wizard .pmw-nota {
  width: 100%; background: var(--bg-soft); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm, 10px); color: var(--text);
  font-family: var(--font-body); font-size: .9rem;
  padding: 10px 14px; resize: vertical; min-height: 70px;
  transition: border-color var(--t-fast, .15s); box-sizing: border-box;
}
.pm-wizard .pmw-nota:focus { outline: none; border-color: var(--accent); }

/* ================================================================
   CARRITO — línea especial Mitad y Mitad
   ================================================================ */
.cart-line--mymt { align-items: flex-start; }
.l-mymt-info { flex: 1; min-width: 0; }
.l-mymt-size { font-weight: 400; color: var(--text-muted); font-size: .82em; }
.l-mymt-halves { margin-top: 4px; display: grid; gap: 2px; }
.l-mymt-half {
  font-size: .78rem; color: var(--text-muted);
  display: flex; align-items: baseline; gap: 4px;
}
.l-mymt-tree { color: var(--accent); font-size: .85em; }
.l-mymt-det  { color: var(--text-dim); font-size: .9em; }

/* ================================================================
   TARJETA ENTRADA "Mitad y Mitad" en el catálogo
   ================================================================ */
.mymt-entry-card {
  border: 2px dashed var(--accent);
  background: var(--accent-light);
  position: relative; overflow: hidden;
}
.mymt-entry-hero {
  background: transparent !important;
  padding: 0;
}
.mymt-entry-split {
  display: flex; align-items: stretch;
  width: 100%; height: 100%;
  min-height: 90px;
  border-radius: 12px; overflow: hidden;
}
.mymt-entry-half {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  background: rgba(88,121,59,.08);
}
.mymt-entry-half--l { border-radius: 12px 0 0 12px; }
.mymt-entry-half--r { border-radius: 0 12px 12px 0; }
.mymt-entry-divider {
  width: 3px; background: var(--accent); opacity: .4;
  flex-shrink: 0;
}
.mymt-entry-btn {
  background: var(--accent) !important;
  color: #fff !important;
}


/* ================================================================
   MITAD Y MITAD — el wizard usa product-modal / pm-wizard (v4)
   Solo se necesita CSS para el paso de Resumen (mymt-res-*)
   ================================================================ */

/* ── Paso 5: Resumen ───────────────────────────────────────────── */
.mymt-res-card {
  background: #fafafa; border: 1px solid #ececec;
  border-radius: 14px; overflow: hidden;
  margin-bottom: 1rem;
}
.mymt-res-header {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1rem; background: #fff;
  border-bottom: 1px solid #f0f0f0;
}
.mymt-res-header-emoji { font-size: 1.8rem; }
.mymt-res-header-title { display: block; font-size: .9rem; font-weight: 700; color: #222; }
.mymt-res-header-size  {
  display: block; font-size: .75rem;
  background: var(--accent); color: #fff;
  padding: .1rem .5rem; border-radius: 20px;
  font-weight: 600; margin-top: .2rem; width: fit-content;
}
.mymt-res-hr { border: none; border-top: 1px solid #ececec; margin: 0; }
.mymt-res-half { padding: .8rem 1rem; }
.mymt-res-half-hdr {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem;
}
.mymt-res-badge {
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  color: #fff; font-weight: 900; font-size: .8rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mymt-res-half-info { flex: 1; min-width: 0; }
.mymt-res-num  { display: block; font-size: .68rem; color: #888; font-weight: 600; text-transform: uppercase; }
.mymt-res-name { display: block; font-size: .88rem; font-weight: 700; color: #222; }
.mymt-res-base { font-size: .85rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.mymt-res-nomods { margin: 0; font-size: .75rem; color: #aaa; padding-left: 2.2rem; }
.mymt-res-mod {
  margin: .15rem 0 0; font-size: .76rem;
  display: flex; align-items: baseline; gap: .3rem; padding-left: 2.2rem;
}
.mymt-res-mod--sin { color: #e74c3c; }
.mymt-res-mod--add { color: var(--accent); }
.mymt-res-sep {
  text-align: center; font-size: .72rem; color: #bbb;
  padding: .3rem 0; background: #f5f5f5;
}
.mymt-res-pricing { padding: .8rem 1rem; }
.mymt-res-price-row {
  display: flex; justify-content: space-between;
  font-size: .8rem; color: #666; margin-bottom: .3rem;
}
.mymt-res-extras-val { color: var(--accent); font-weight: 600; }
.mymt-res-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: .5rem; padding-top: .5rem;
  border-top: 1px solid #e8e8e8;
}
.mymt-res-total-row > span { font-size: .88rem; font-weight: 700; color: #333; }
.mymt-res-total-price {
  font-size: 1.25rem; font-weight: 800; color: var(--accent);
}


/* ══════════════════════════════════════════════════════════════
   PWA INSTALL BANNER
   ══════════════════════════════════════════════════════════════ */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #58793B 0%, #6a8f49 100%);
  color: white;
  padding: 1.5rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-banner-visible {
  transform: translateY(0);
}

.pwa-banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pwa-banner-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.pwa-banner-text {
  flex: 1;
}

.pwa-banner-text h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.pwa-banner-text p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}

.pwa-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.pwa-btn {
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.pwa-btn-install {
  background: white;
  color: #58793B;
}

.pwa-btn-install:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.pwa-btn-dismiss {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

.pwa-btn-dismiss:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .pwa-banner-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .pwa-banner-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .pwa-btn {
    width: 100%;
  }
}
