/* ============================================================
   Capricciosas · Design System Skin (gourmet)
   Capa de overrides cargada DESPUÉS de style.css.
   Unifica tipografía, color y componentes con el sitio www.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   TOKENS — paleta (fuente) + roles (usar en componentes).
   ┌─────────────┬──────────┬────────────────────────────────┐
   │ rol         │ = paleta │ uso                            │
   ├─────────────┼──────────┼────────────────────────────────┤
   │ --bg        │ cream    │ fondo de PÁGINA (main/container)│
   │ --surface   │ cream-50 │ cards, paneles, modal           │
   │ --brand     │ rojo     │ navbar, barra de pedido         │
   │ --ink       │ charcoal │ texto principal                 │
   │ --ink-soft  │ stone    │ texto secundario                │
   │ --accent    │ gd-700   │ botones, precios, links activos │
   │ --accent-dk │ gd-900   │ títulos display, hovers         │
   │ --gold      │ gold     │ detalles (pin, "ver mapa")      │
   │ --line      │ line     │ bordes y divisores              │
   └─────────────┴──────────┴────────────────────────────────┘
   REGLA: fondo de página = --bg, toda card/panel = --surface.
   ============================================================ */
:root {
  /* Paleta */
  --rojo: #d11f2a;
  --gd-900: #5e1022;
  --gd-700: #8a2740;
  --cream: #fbf2e4;
  --cream-50: #fffaf3;
  --charcoal: #241c1a;
  --stone: #6e625c;
  --line: #e8dccd;
  --gold: #bc8a43;
  /* Roles semánticos */
  --bg: var(--cream);
  --surface: var(--cream-50);
  --brand: var(--rojo);
  --ink: var(--charcoal);
  --ink-soft: var(--stone);
  --accent: var(--gd-700);
  --accent-dk: var(--gd-900);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* === Estandarización de superficies (UN bg de página, UN surface de card) ===
   Bug raíz: legacy `main` y `.container` = #fafafa (gris) → menú/producto se
   veían grises mientras sucursales (que sí overrideaba) se veía cream. Por eso
   "el bg de un color en menú y de otro en sucursales". Unificamos todo aquí. */
html,
body,
.container,
main,
.main-menu,
.pizzas,
.main-product,
.main-cart,
.main-orders,
.main-shipping,
.main-payments {
  background: var(--bg) !important;
}
.a-familia-producto,
.sucursal,
.producto,
.login,
.login-register {
  background: var(--surface) !important;
}

/* --- Base --- */
html,
body {
  font-family: var(--font-body) !important;
  color: var(--charcoal);
}
.container {
  background: var(--cream) !important;
  color: var(--charcoal) !important;
}

/* --- Header + barra de pedido: rojo de marca, no #FF0000 neón --- */
header {
  background-color: var(--rojo) !important;
}
header a {
  font-family: var(--font-body) !important;
  color: #fff !important;
}
header a span {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  font-size: 0.78rem;
}
header a i {
  font-size: 1.05rem;
}
header a:hover span,
header a:hover i {
  opacity: 0.8;
}
/* Barra inferior "PEDIDO" eliminada (redundante con "PEDIDO" del navbar) */
.footer-pedido {
  display: none !important;
}
.footer-pedido > #social a {
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
}

/* --- Tabs de secciones --- */
nav,
.nav-menu {
  background: #fff !important;
  border-bottom: 1px solid var(--line) !important;
}
nav > a,
.main-menu-nav ul li a {
  font-family: var(--font-body) !important;
  color: var(--stone) !important;
  font-weight: 600 !important;
}
nav > a:hover,
.main-menu-nav ul li a:hover {
  color: var(--gd-700) !important;
}

/* --- Títulos de sección: Fraunces editorial --- */
h4[id^="seccion-"] {
  font-family: var(--font-display) !important;
  color: var(--gd-900) !important;
  font-weight: 600 !important;
  font-size: 1.7rem !important;
  letter-spacing: -0.01em;
}

/* --- Menú: cards "image-forward" (la pizza es la protagonista) --- */
/* La card legacy era horizontal (info izq + pizza 100px der). La volvemos
   vertical: pizza grande arriba, nombre/descripción/precio centrados abajo.
   Precio anclado al fondo con margin-top:auto → cards parejos por fila. */
/* .pizzas debe llenar el área (es flex item sin grow → si no, el grid 1fr
   no tiene ancho definido y colapsa a 2 columnas pegadas a la derecha) */
.pizzas {
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
}
.familia {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  align-items: stretch;
}
.a-familia-producto {
  display: flex !important;
  flex-direction: column;
  width: auto !important;
  margin: 0 !important;
  background: var(--cream-50) !important;
  border: 1px solid var(--line) !important;
  border-radius: 18px !important;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.a-familia-producto:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(36, 28, 26, 0.12) !important;
  border-color: var(--gold) !important;
}
/* column-reverse: la imagen es el 2º hijo → sube; la info baja */
.familia-producto-container {
  flex: 1 1 auto !important;
  flex-direction: column-reverse !important;
  justify-content: flex-start !important;
}
.familia-producto-img {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 0.85rem 0.85rem 0 !important;
}
.familia-producto-img img {
  width: 100% !important;
  max-width: 200px !important;
  height: auto !important;
  padding: 6px !important;
  /* mix-blend-mode: multiply (regla de abajo) → el blanco de la foto
     funde con el cream-50 de la card y la pizza "flota" */
}
.familia-producto {
  flex: 1 1 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0.4rem 1.1rem 1.2rem !important;
  align-items: center !important;
  text-align: center;
}
.familia-producto h5 {
  font-family: var(--font-display) !important;
  color: var(--gd-900) !important;
  font-weight: 600 !important;
  font-size: 1.28rem !important;
  letter-spacing: -0.01em;
  padding-bottom: 6px !important;
}
.familia-producto .descripcion,
.familia-producto p.descripcion {
  font-family: var(--font-body) !important;
  color: var(--stone) !important;
  text-align: center !important;
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: auto !important;
  padding-bottom: 0 !important;
}
.familia-producto .precio,
.familia-producto p.precio {
  font-family: var(--font-body) !important;
  color: var(--gd-700) !important;
  font-weight: 700 !important;
  font-size: 1.1rem !important;
  text-align: center !important;
  margin-top: auto !important;
  padding-top: 0.8rem !important;
}
@media (max-width: 600px) {
  .a-familia-producto {
    width: 100% !important;
  }
}

/* --- Producto (detalle) --- */
.product-name-zoom,
.producto-header .title,
.product-main-text .title {
  font-family: var(--font-display) !important;
  color: var(--gd-900) !important;
  font-weight: 600 !important;
}
.producto-descripcion {
  font-family: var(--font-body) !important;
  color: var(--stone) !important;
  line-height: 1.55;
}
/* Quitar el recuadro blanco detrás de las fotos de producto */
.familia-producto-img img,
.producto-main-picture img,
.product-main-picture img {
  mix-blend-mode: multiply;
}
.product-submit {
  background-color: var(--gd-700) !important;
  color: var(--cream) !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}
.custom,
.zoom {
  background: transparent !important;
  color: var(--gd-700) !important;
  border: 1.5px solid var(--gd-700) !important;
  border-radius: 999px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}
#product-qty-add,
#product-qty-remove {
  color: var(--gd-700) !important;
  font-family: var(--font-body) !important;
}

/* Nombre visible del producto = .producto-header span (no .product-name-zoom) */
.producto-header {
  height: auto !important;
  min-height: 40px;
  align-items: center;
}
.producto-header span {
  font-family: var(--font-display) !important;
  font-size: 1.7rem !important;
  font-weight: 600 !important;
  color: var(--charcoal) !important;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.producto-descripcion p {
  font-family: var(--font-body) !important;
  color: var(--stone) !important;
  font-size: 0.95rem !important;
}
.producto-main-picture img {
  width: 100% !important;
}

/* Desktop: card más grande (era 420px fijo) + imagen prominente (era 100px) */
@media (min-width: 600px) {
  .main-product {
    width: 860px !important;
    max-width: 92vw !important;
  }
  .producto-main-picture {
    width: 320px !important;
    padding: 16px !important;
  }
  .product-main {
    align-items: center !important;
  }
  .producto-header span {
    font-size: 2.1rem !important;
  }
  .producto-descripcion p {
    font-size: 1.02rem !important;
  }
}

/* --- Listado de sucursales (/stores) — una sola hoja con scroll --- */
html {
  scroll-behavior: smooth;
}
.main-sucursales,
.sucursales {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Tabs sticky que scrollean a cada estado */
.sucursal-tabs {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 0.6rem !important;
  list-style: none;
  margin: 0 0 1.5rem !important;
  padding: 0.75rem 0 !important;
  position: sticky;
  top: 44px;
  background: var(--cream) !important;
  z-index: 50;
}
.sucursal-tabs li a {
  display: inline-flex;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.02em;
  color: var(--gd-700) !important;
  background: var(--cream-50) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  padding: 0.45rem 1.15rem !important;
  text-decoration: none !important;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.sucursal-tabs li a:hover {
  background: var(--gd-700) !important;
  color: var(--cream) !important;
  border-color: var(--gd-700) !important;
}

/* Sección por estado */
.sucursales {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 1.5rem 1.5rem 3rem !important;
}
.sucursal-estado {
  scroll-margin-top: 120px;
  margin-bottom: 2rem;
}
.sucursal-estado-titulo {
  font-family: var(--font-display) !important;
  color: var(--gd-900) !important;
  font-weight: 600 !important;
  font-size: 1.9rem !important;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  display: flex !important;
  align-items: center;
  gap: 0.9rem;
}
/* Línea inline a la derecha del título (como www) en vez de subrayado pegado */
.sucursal-estado-titulo::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

/* Grid 2 columnas */
.sucursal-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (max-width: 600px) {
  .sucursal-grid {
    grid-template-columns: 1fr;
  }
}

/* Card de tienda */
.sucursal {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem;
  background: var(--cream-50) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 22px rgba(36, 28, 26, 0.06) !important;
  padding: 1.4rem 1.4rem 1.25rem !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sucursal:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(94, 16, 34, 0.18) !important;
}
/* Matar márgenes legacy nth-child que causaban el desfase escalonado */
.sucursal:nth-child(1),
.sucursal:last-child {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
/* La info crece → el contacto queda abajo → alturas iguales por fila */
.sucursal-info {
  flex: 1 1 auto !important;
}
.sucursal-info h4 {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display) !important;
  color: var(--gd-900) !important;
  font-weight: 600 !important;
  font-size: 1.4rem !important;
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem !important;
}
.sucursal-info h4::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23BC8A43'%3E%3Cpath d='M12 2C8.1 2 5 5.1 5 9c0 5.2 7 13 7 13s7-7.8 7-13c0-3.9-3.1-7-7-7zm0 9.5a2.5 2.5 0 110-5 2.5 2.5 0 010 5z'/%3E%3C/svg%3E")
    no-repeat center / contain;
}
.sucursal-info p {
  margin: 0 !important;
}
.sucursal-info p {
  font-family: var(--font-body) !important;
  color: var(--stone) !important;
  font-size: 0.94rem !important;
  line-height: 1.55 !important;
}
.sucursal-phone {
  display: flex !important;
  width: 100% !important;
  align-self: stretch !important;
  align-items: center;
  justify-content: space-between !important;
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
  margin-top: 0.2rem;
}
.sucursal-phone a {
  font-family: var(--font-body) !important;
  color: var(--gd-700) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.sucursal-phone .sucursal-map {
  color: var(--gold) !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
}
.sucursal-phone .sucursal-map::after {
  content: "  →";
}

/* --- Carrito + checkout --- */
.total-cart {
  font-family: var(--font-display) !important;
  color: var(--gd-900) !important;
  font-weight: 600 !important;
}
.price,
.amount,
.dollar {
  color: var(--gd-700) !important;
  font-weight: 700 !important;
}
.submit-cart {
  background-color: var(--gd-700) !important;
  color: var(--cream) !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}
.submit-shop {
  background: transparent !important;
  color: var(--gd-700) !important;
  border: 1.5px solid var(--gd-700) !important;
  border-radius: 999px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}
.btn,
.add-address {
  background-color: var(--gd-700) !important;
  color: var(--cream) !important;
  border-radius: 999px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
}

/* --- Login / Registro (flujo de pedido) --- */
.main-login {
  width: auto !important;
  max-width: 820px;
  margin: 2.5rem auto !important;
  justify-content: center !important;
  gap: 1.5rem;
  padding: 0 1.25rem;
}
.login,
.login-register {
  background: var(--cream-50) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 22px rgba(36, 28, 26, 0.06);
  padding: 2rem !important;
}
.login-register {
  justify-content: center !important;
}
.login h1,
.login-register h2 {
  font-family: var(--font-display) !important;
  color: var(--gd-900) !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}
.login h1 {
  font-size: 1.55rem !important;
  margin-bottom: 0.4rem !important;
}
.login-register h2 {
  font-size: 1.3rem !important;
  margin-top: 0 !important;
}
/* Inputs */
form.form-gral .input-group label {
  font-family: var(--font-body) !important;
  color: var(--stone) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding-bottom: 6px !important;
}
form.form-gral .input-group input,
form.form-gral .input-group textarea {
  height: 44px !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  padding: 0 0.85rem !important;
  color: var(--charcoal) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form.form-gral .input-group textarea {
  height: auto !important;
  padding: 0.7rem 0.85rem !important;
}
form.form-gral .input-group input:focus,
form.form-gral .input-group textarea:focus {
  outline: 0 !important;
  border-color: var(--gd-700) !important;
  box-shadow: 0 0 0 3px rgba(138, 39, 64, 0.12) !important;
}
form.form-gral .input-group label.terms {
  font-family: var(--font-body) !important;
  color: var(--stone) !important;
}
form.form-gral .input-group label.terms a {
  color: var(--gd-700) !important;
  font-weight: 600;
}
/* Botón submit → pill guinda */
form.form-gral button {
  width: 100% !important;
  margin-top: 1rem !important;
  padding: 0.85rem !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.02em;
  color: var(--cream) !important;
  border: none !important;
  border-radius: 999px !important;
  background-color: var(--gd-700) !important;
  transition: background 0.15s ease;
}
form.form-gral button:hover {
  background-color: var(--gd-900) !important;
}
/* Botón crear cuenta → pill outline guinda */
.login-register a.btn-signup {
  margin-top: 0.5rem !important;
  padding: 0.85rem !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  text-align: center;
  color: var(--gd-700) !important;
  border: 1.5px solid var(--gd-700) !important;
  border-radius: 999px !important;
  background: transparent !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.login-register a.btn-signup:hover {
  background: var(--gd-700) !important;
  color: var(--cream) !important;
}
/* Links olvidé contraseña */
.lost-pass a {
  font-family: var(--font-body) !important;
  color: var(--stone) !important;
}
.lost-pass a:hover {
  color: var(--gd-700) !important;
}
/* Registro: card centrada, no full-width */
.login-w100 {
  max-width: 460px !important;
  width: 100% !important;
  margin: 0 auto !important;
}
@media (max-width: 600px) {
  .main-login {
    flex-direction: column !important;
    margin: 1.25rem auto !important;
  }
}

/* --- Producto (detalle): rediseño gourmet --- */
/* Card cálida */
.producto {
  background: var(--cream-50) !important;
  border: 1px solid var(--line) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 44px rgba(36, 28, 26, 0.08) !important;
  overflow: hidden;
}
/* Sección superior: texto + pizza. Divisor limpio (era dashed). */
.product-main {
  border-bottom: 1px solid var(--line) !important;
  padding: 1.9rem 1.9rem 1.6rem !important;
  margin-bottom: 1.5rem !important;
  align-items: center !important;
  gap: 1.5rem;
}
/* Nombre protagonista */
.producto-header span {
  font-size: 2.05rem !important;
  line-height: 1.05 !important;
}
/* Pizza hero con glow dorado sutil detrás (background del contenedor → no
   toca la <img>, así el mix-blend multiply sigue intacto y la pizza "flota").
   El blanco de la foto funde con el glow → halo tipo "plato". */
.producto-main-picture {
  position: relative !important;
  align-items: center !important;
  justify-content: flex-start !important;
  background: transparent !important;
}
/* Pizza grande (la <img> trae width/height=100px inline → forzar tamaño
   real + height auto para que no quede aplastada) */
.producto-main-picture img {
  width: 300px !important;
  max-width: 100% !important;
  height: auto !important;
  /* base: multiply (regla general) → flota limpio sobre cream para CUALQUIER
     forma (botellas, latas, aderezos). Foto _x alta-res. */
}
/* La pizza flota LIMPIA sobre el card (multiply), SIN disco. El "disco" cream
   se veía como ÓVALO BLANCO en mobile (chico, no fundía). El .pizza-disc queda
   solo como wrapper centrador; el <img> usa la regla base (300px + multiply),
   igual que las cards del menú. */
.producto-main-picture .pizza-disc {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: transparent;
}
/* Botón volver al menú (arriba de la card de producto) */
.back-to-menu {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  margin: 1.3rem 0 0 1.9rem;
  font-family: var(--font-body) !important;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent) !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.back-to-menu:hover {
  color: var(--accent-dk) !important;
}
/* Orden */
.producto-orden {
  padding: 0 1.9rem 1.9rem !important;
}
/* Stepper cantidad → pill cream */
.counter {
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  background: var(--cream-50) !important;
  overflow: hidden;
}
#product-qty-add,
#product-qty-remove {
  background: transparent !important;
  border: none !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  padding: 0.4rem 0.95rem !important;
}
#product-qty-add:hover,
#product-qty-remove:hover {
  background: rgba(138, 39, 64, 0.08) !important;
}
#product-quantity {
  background: transparent !important;
  border: none !important;
  text-align: center !important;
  width: 2.5rem !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  color: var(--charcoal) !important;
}
.input-group.quantity label,
.form-producto > .input-group > label {
  font-family: var(--font-body) !important;
  color: var(--stone) !important;
  font-weight: 500 !important;
}
/* "Agregar al pedido" más prominente */
.product-submit {
  font-size: 1rem !important;
  padding: 0.95rem 1.6rem !important;
  letter-spacing: 0.01em;
}
@media (min-width: 600px) {
  .producto-main-picture {
    width: 340px !important;
  }
}

/* --- Menú: nav horizontal centrado ARRIBA (igual que los tabs de estados en
   sucursales). El sidebar vertical pasa a barra de tabs sticky. --- */
.main-menu {
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  padding: 0 1.75rem 70px !important;
}
.main-menu-nav {
  position: sticky !important;
  top: 60px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  display: block !important;
  background: var(--bg) !important;
  z-index: 40;
  margin: 0 !important;
  padding: 0.85rem 0 0.5rem !important;
}
.main-menu-nav ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  height: auto !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 0 !important;
}
.main-menu-nav ul li a {
  display: inline-flex !important;
  align-items: center;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.01em;
  color: var(--accent) !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  padding: 0.5rem 1.15rem !important;
  margin: 0 !important;
  text-align: center !important;
  transition: background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease !important;
}
.main-menu-nav ul li a:hover {
  background: var(--accent) !important;
  color: var(--cream) !important;
  border-color: var(--accent) !important;
}

/* --- Modal "Ampliar": backdrop oscuro difuminado + panel cream (sin card
   blanco noventero). El multiply de la img funde su blanco con el panel. --- */
.modal {
  background-color: rgba(36, 28, 26, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
.content-modal-zoom {
  position: relative !important;
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 28px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4) !important;
  width: auto !important;
  max-width: 440px !important;
  margin: 6vh auto !important;
  padding: 1.25rem 1.25rem 1rem !important;
}
.content-modal-zoom img {
  mix-blend-mode: multiply;
  border-radius: 16px;
  display: block;
}
.content-modal-zoom .product-name-zoom {
  font-family: var(--font-display) !important;
  color: var(--accent-dk) !important;
  font-weight: 600 !important;
  font-size: 1.45rem !important;
  text-align: center !important;
  margin: 0.6rem 0 0.2rem !important;
}
.close-modal {
  position: absolute !important;
  top: 0.6rem;
  right: 0.6rem;
  width: 2rem;
  height: 2rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  background: var(--cream) !important;
  color: var(--accent) !important;
  border-radius: 999px !important;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* === Carrito / Pedido — card cream cohesiva === */
.main-cart {
  display: block !important;
  width: auto !important;
  max-width: 640px !important;
  margin: 2rem auto !important;
  padding: 0 1.25rem 3rem !important;
}
/* Back del carrito alineado con el header PEDIDO (el global usa margen de producto) */
.main-cart .back-to-menu {
  margin: 0 0 0.9rem 0.25rem !important;
}
/* Header "PEDIDO" limpio (no pill guinda, título legible en Fraunces) */
.main-cart .add-address {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 0.25rem 0.9rem !important;
  margin: 0 !important;
}
.main-cart .add-address > .title {
  font-family: var(--font-display) !important;
  color: var(--accent-dk) !important;
  font-weight: 600 !important;
  font-size: 1.6rem !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
}
.main-cart .add-address .cart-orders {
  background: transparent !important;
  color: var(--accent) !important;
  border: 1.5px solid var(--accent) !important;
  border-radius: 999px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  font-size: 0.76rem !important;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.9rem !important;
  text-transform: none !important;
  width: auto !important;
  cursor: pointer;
}
/* Caja items + totales → UNA card cream (era blanca + borde rojo arriba) */
.main-cart .add-address + div {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-top: 1px solid var(--line) !important;
  border-radius: 18px !important;
  box-shadow: 0 10px 30px rgba(36, 28, 26, 0.07) !important;
  overflow: hidden;
}
/* Área de items con respiro */
.main-cart .add-address + div > div:first-child {
  padding: 0.5rem 1.4rem !important;
}
/* Caja de totales (gris → transparente con divisor superior) */
.main-cart .add-address + div > div:last-child {
  background: transparent !important;
  border-top: 1px solid var(--line) !important;
  padding: 1rem 1.4rem !important;
}
/* Filas de totales: labels suaves (los montos ya son guinda via .price/.amount) */
.main-cart .add-address + div .title {
  font-family: var(--font-body) !important;
  color: var(--ink-soft) !important;
  font-weight: 500 !important;
  text-transform: none !important;
}
/* Total a pagar (derecha, grande) */
.total-cart {
  font-size: 1.4rem !important;
  text-align: right !important;
  margin: 1.1rem 0.25rem 1.4rem !important;
}
/* "Recoger en sucursal" → guinda (era rojo neón legacy) */
.total-cart + div,
.envio-cart {
  background: transparent !important;
  border: none !important;
  outline: none !important;
}
.envio-cart {
  display: flex !important;
  justify-content: center;
  padding: 0 !important;
}
.envio-cart .active {
  background: var(--accent) !important;
  color: var(--cream) !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: var(--font-body) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  width: 100% !important;
}
.envio-cart .active span {
  color: var(--cream) !important;
}
/* CTAs separados */
.cart-cta {
  display: flex !important;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem !important;
}

/* ============================================================
   FIXES MOBILE (reportados 2026-06-04, mobile vertical)
   ============================================================ */
/* #3 Nav de categorías DUPLICADO: ocultar la barra legacy (.nav-menu + su
   wrapper de scroll). Las pills .main-menu-nav son el único nav en todo ancho. */
.nav-menu,
.scrolling-wrapper-flexbox {
  display: none !important;
}
@media (max-width: 600px) {
  /* Navbar a texto se desbordaba (INGRESAR cortado) → achicar tipografía */
  header a span {
    font-size: 0.6rem !important;
    letter-spacing: 0.03em !important;
  }
  /* #4 Producto: apilar (texto arriba, pizza abajo) — en fila se exprimía y el
     hueco de la pizza salía chiquito */
  .product-main {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 1rem;
    padding: 1.4rem 1.4rem 1.2rem !important;
  }
  .producto-main-picture {
    width: 100% !important;
  }
  .producto-orden {
    padding: 0 1.4rem 1.6rem !important;
  }
  /* #2 Sucursales se desbordaba (~5px): legacy .sucursales{width:90%} (mq ≤430)
     + mi padding 1.5rem en content-box = 90%+48px > viewport. Forzar border-box
     + 100% para que el padding quede DENTRO del ancho. */
  .sucursales {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
