@font-face {
  font-family: Jost;
  src: url(assets/jost.woff2) format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Paleta Oficial Predominante Celeste, Blanco y Degradado Naranjo */
  --bg-page: #f2f8fc;
  --bg-white: #ffffff;
  --bg-celeste-soft: #e2f0fa;
  --bg-celeste-tint: #eef6fc;

  --celeste: #4c8ec4;
  --celeste-deep: #2e6da4;
  --celeste-hero: linear-gradient(135deg, #d7ecf8 0%, #bfe0f4 55%, #add5ee 100%);
  --celeste-border: #bfd9ec;

  --navy: #173a5e;
  --navy-deep: #102a45;

  --orange: #df6826;
  --orange-gradient: linear-gradient(135deg, #f79028 0%, #d65a1c 100%);
  --orange-gradient-hover: linear-gradient(135deg, #ffa03b 0%, #e26424 100%);
  --orange-pill: #fdebd6;
  --orange-text: #944012;

  --ink: #153250;
  --ink-muted: #4b6884;
  --ink-light: #6e8aa6;

  --error: #c62828;
  --success: #1b7a43;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --header-h: 64px;
  --mobile-nav-h: 66px;
  --shadow-card: 0 4px 18px rgba(23, 58, 94, 0.05);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg-page);
  color: var(--ink);
  font-family: Jost, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--ink);
  line-height: 1.45;
  padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 16px) + 16px);
}

@media (min-width: 860px) {
  body {
    padding-bottom: 0;
  }
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  background: var(--celeste-deep);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 999;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 600px) {
  .container {
    padding: 0 24px;
  }
}

/* Barra superior informativa limpia y sobria */
.top-notice-bar {
  background: #dceefa;
  color: var(--navy);
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--celeste-border);
}

/* Header compacto */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--celeste-border);
}

.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.header-logo {
  width: 44px;
  height: 52px;
  object-fit: contain;
  background: transparent;
  border-radius: 50%;
  border: none;
  padding: 0;
  filter: drop-shadow(0 2px 5px rgba(27, 63, 102, 0.14));
  flex-shrink: 0;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-brand-text strong {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  white-space: nowrap;
}

.header-brand-text span {
  font-size: 0.76rem;
  color: var(--celeste-deep);
  font-weight: 500;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-only {
  display: none;
}

@media (min-width: 820px) {
  .desktop-only {
    display: inline-flex;
  }
}

.header-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 10px;
}
.header-link:hover {
  color: var(--celeste-deep);
}

.header-admin-pill {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--bg-celeste-tint);
  border: 1px solid var(--celeste-border);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  transition: background 0.15s;
}
.header-admin-pill:hover {
  background: var(--bg-celeste-soft);
}

@media (min-width: 680px) {
  .header-admin-pill {
    display: inline-flex;
  }
}

.header-admin-pill .icon {
  color: var(--celeste);
}

.admin-pill-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.admin-pill-text strong {
  font-size: 0.78rem;
  color: var(--navy);
}

.admin-pill-text span {
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.header-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--celeste-deep);
  color: #ffffff;
  padding: 8px 15px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 650;
  min-height: 40px;
  transition: background 0.15s;
}
.header-cart-btn:hover {
  background: var(--navy);
}

.cart-count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--orange-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* HERO EN CELESTE EL GALLO + BOTÓN DEGRADADO NARANJO */
.hero-banner {
  padding: 18px 0 12px;
}

@media (min-width: 768px) {
  .hero-banner {
    padding: 24px 0 16px;
  }
}

.hero-panel {
  position: relative;
  overflow: hidden;
  background: var(--celeste-hero);
  border: 1.5px solid #9ec7e4;
  color: var(--navy);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  box-shadow: 0 10px 28px rgba(76, 142, 196, 0.14);
}

@media (min-width: 860px) {
  .hero-panel {
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    padding: 36px 40px;
    gap: 32px;
  }
}

.hero-watermark {
  position: absolute;
  left: -30px;
  bottom: -45px;
  width: 250px;
  height: auto;
  opacity: 0.09;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

/* Botón Hacer Pedido con Degradado Naranjo */
.btn-orange-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 5px 16px rgba(214, 90, 28, 0.32);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn-orange-cta:hover {
  background: var(--orange-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(214, 90, 28, 0.42);
}

.btn-orange-cta .icon {
  width: 18px;
  height: 18px;
}

.hero-open-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #8ebce0;
  color: var(--navy);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4.8vw, 2.7rem);
  font-weight: 750;
  line-height: 1.07;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--navy-deep);
}

.hero-lead {
  font-size: 0.98rem;
  color: #234b73;
  max-width: 480px;
  line-height: 1.48;
}

/* Tarjeta derecha del Hero: Escenario interactivo de cocción y nutrición (máximo 110px) */
.hero-motion-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(35, 130, 67, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: 0 4px 18px rgba(23, 58, 94, 0.06);
  transition: border-color 0.28s ease, box-shadow 0.28s ease;
  --active-pill-bg: #238243;
}

.hero-motion-card[data-active-state="copa"] {
  border-color: rgba(35, 130, 67, 0.45);
  box-shadow: 0 6px 20px rgba(35, 130, 67, 0.1);
  --active-pill-bg: #238243;
}

.hero-motion-card[data-active-state="crudo"] {
  border-color: rgba(43, 123, 185, 0.45);
  box-shadow: 0 6px 20px rgba(43, 123, 185, 0.1);
  --active-pill-bg: #2b7bb9;
}

.hero-motion-card[data-active-state="medio"] {
  border-color: rgba(217, 107, 20, 0.45);
  box-shadow: 0 6px 20px rgba(217, 107, 20, 0.1);
  --active-pill-bg: #d96b14;
}

.hero-motion-card[data-active-state="duro"] {
  border-color: rgba(192, 57, 43, 0.45);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.1);
  --active-pill-bg: #c0392b;
}

.motion-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.motion-stage-wrap {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  background: var(--bg-celeste-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--celeste-border);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 2px 8px rgba(23, 58, 94, 0.05);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.cooking-stage-svg {
  width: 70px;
  height: 70px;
  overflow: visible;
}

.cook-scene {
  display: none;
}

.cook-scene.active {
  display: block;
}

/* Animaciones SVG de cocción continua */
@keyframes liquidWave {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50% { transform: translateY(1.2px) scaleY(0.93); }
}

@keyframes shinePulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

@keyframes dripStretch {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.15) translateY(1px); }
}

@keyframes creamyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes steamRise {
  0% { transform: translateY(5px); opacity: 0; }
  45% { opacity: 0.75; }
  100% { transform: translateY(-7px); opacity: 0; }
}

@keyframes springDrop {
  0% { transform: translateY(-16px) scale(0.8, 1.25); }
  60% { transform: translateY(3.5px) scale(1.12, 0.92); }
  80% { transform: translateY(-1.5px) scale(0.96, 1.03); }
  100% { transform: translateY(0) scale(1, 1); }
}

@keyframes sizzleFlicker {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

.anim-copa-wave {
  animation: liquidWave 2.4s ease-in-out infinite;
  transform-origin: center;
}

.anim-copa-shine {
  animation: shinePulse 2.8s ease-in-out infinite;
  transform-origin: center;
}

.anim-copa-drip {
  animation: dripStretch 3.2s ease-in-out infinite;
  transform-origin: top center;
}

.anim-medio-yolk-wrap {
  animation: creamyPulse 2.6s ease-in-out infinite;
  transform-origin: 70px 74px;
}

.anim-steam.steam-1 {
  animation: steamRise 2.1s ease-out infinite;
}

.anim-steam.steam-2 {
  animation: steamRise 2.1s ease-out infinite 0.75s;
}

.anim-crudo-yolk-wrap {
  animation: springDrop 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: 70px 94px;
}

.duro-sizzle.d1 { animation: sizzleFlicker 1.8s ease-in-out infinite; }
.duro-sizzle.d2 { animation: sizzleFlicker 2.1s ease-in-out infinite 0.4s; }
.duro-sizzle.d3 { animation: sizzleFlicker 1.6s ease-in-out infinite 0.8s; }

/* Cuerpo de textos y controles */
.motion-main-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Fila 1: Píldoras selectoras con scroll horizontal suave en móvil */
.motion-pills {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.motion-pills::-webkit-scrollbar {
  display: none;
}

.cook-pill {
  border: 1px solid var(--celeste-border);
  background: #f0f7fc;
  color: var(--navy);
  padding: 4px 9px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 650;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.18s ease;
}

.cook-pill:hover {
  background: #e1effa;
  border-color: #9ac7eb;
}

.cook-pill.active {
  background: var(--active-pill-bg, #238243);
  color: #ffffff;
  border-color: var(--active-pill-bg, #238243);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.12);
}

/* Fila 2: Título de impacto y descripción */
.motion-impact-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.motion-impact-line strong {
  color: var(--active-pill-bg, #238243);
  font-weight: 750;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.motion-impact-sep {
  color: var(--ink-muted);
  opacity: 0.45;
}

.motion-impact-line span {
  color: var(--navy-deep);
  font-weight: 500;
  font-size: 0.78rem;
}

/* Fila 3: Badges nutricionales compactos en una sola línea */
.motion-badges-row {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  padding-bottom: 1px;
}

.motion-badges-row::-webkit-scrollbar {
  display: none;
}

.motion-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.69rem;
  font-weight: 600;
  padding: 2.5px 7px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid transparent;
  line-height: 1.2;
}

.badge-positive {
  background: #e8f5e9;
  color: #1b5e20;
  border-color: #c8e6c9;
}

.badge-highlight {
  background: #e8f8f0;
  color: #0d6832;
  border-color: #a3e2bb;
  font-weight: 700;
}

.badge-warning {
  background: #fff3e0;
  color: #b75300;
  border-color: #ffe0b2;
}

.badge-negative {
  background: #fbe9e7;
  color: #b71c1c;
  border-color: #ffccbc;
}

.badge-neutral {
  background: #eceff1;
  color: #37474f;
  border-color: #cfd8dc;
}

.badge-icon {
  width: 10.5px;
  height: 10.5px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-motion-card {
    padding: 8px 10px;
  }
  .motion-stage-wrap {
    width: 58px;
    height: 58px;
  }
  .cooking-stage-svg {
    width: 54px;
    height: 54px;
  }
  .cook-pill {
    font-size: 0.70rem;
    padding: 3px 7px;
  }
  .motion-impact-line {
    font-size: 0.76rem;
  }
  .motion-badge {
    font-size: 0.64rem;
    padding: 2px 6px;
  }
}

/* SECCIÓN 1: ELIGE TUS HUEVOS */
.catalog-section {
  padding: 18px 0 24px;
}

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

@media (min-width: 640px) {
  .catalog-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.catalog-header h2, .section-head h2 {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.catalog-sub {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.next-delivery-pill {
  display: inline-flex;
  align-items: center;
  background: var(--bg-celeste-soft);
  border: 1px solid var(--celeste-border);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 650;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  width: max-content;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 720px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

.product-card {
  background: var(--bg-white);
  border: 1.5px solid var(--celeste-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.product-card:hover {
  border-color: var(--celeste);
}

.product-card.selected {
  border-color: var(--orange);
  box-shadow: 0 6px 20px rgba(223, 104, 38, 0.12);
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.product-thumb {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  background: var(--bg-celeste-soft);
  border: 1px solid var(--celeste-border);
  display: grid;
  place-items: center;
  padding: 6px;
  flex-shrink: 0;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-main-info {
  flex: 1;
  min-width: 0;
}

.product-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.product-title-line h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

/* Etiqueta de formato seria y limpia (sin emojis) */
.culinary-mini-pill {
  font-size: 0.73rem;
  font-weight: 650;
  background: var(--bg-celeste-soft);
  color: var(--celeste-deep);
  border: 1px solid var(--celeste-border);
  padding: 2px 9px;
  border-radius: var(--radius-full);
}

.product-price-big {
  font-size: 1.45rem;
  font-weight: 750;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.product-meta-line {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.product-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--bg-celeste-soft);
}

.qty-label {
  font-size: 0.84rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stepper button {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--celeste-border);
  background: var(--bg-celeste-tint);
  color: var(--navy);
  display: grid;
  place-items: center;
  transition: background 0.15s, color 0.15s;
}

.stepper button:hover:not(:disabled) {
  background: var(--celeste-deep);
  color: #ffffff;
  border-color: var(--celeste-deep);
}

.stepper button:disabled {
  opacity: 0.35;
  cursor: default;
}

.stepper button .icon {
  width: 16px;
  height: 16px;
}

.stepper output {
  min-width: 26px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}

.stock-pill-off {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--error);
  background: #ffebee;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* SECCIÓN 2: AGENDA TUS HUEVITOS */
.checkout-section {
  padding: 18px 0 24px;
}

.section-head {
  margin-bottom: 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 840px) {
  .checkout-grid {
    grid-template-columns: 1.35fr 0.9fr;
    align-items: start;
    gap: 22px;
  }
}

.card {
  background: var(--bg-white);
  border: 1.5px solid var(--celeste-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 600px) {
  .card {
    padding: 24px;
  }
}

.form-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--navy);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--celeste-border);
  border-radius: var(--radius-sm);
  background: var(--bg-celeste-tint);
  color: var(--ink);
  font-size: 0.94rem;
  transition: border-color 0.15s, background 0.15s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--celeste);
  background: #ffffff;
}

.field textarea {
  resize: vertical;
  min-height: 70px;
}

.checks-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.84rem;
  cursor: pointer;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--celeste-deep);
  flex-shrink: 0;
}

.check-row strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
}

.check-row small {
  display: block;
  color: var(--ink-muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.form-error {
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 18px;
}

/* Resumen lateral */
.summary-card {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bg-celeste-soft);
}

.summary-top h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.box-pill {
  background: var(--bg-celeste-soft);
  color: var(--celeste-deep);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.cart-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 68px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  gap: 10px;
}

.cart-line strong {
  display: block;
  color: var(--navy);
}

.cart-line small {
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.cart-line b {
  font-weight: 700;
  color: var(--navy);
}

.empty-cart {
  font-size: 0.85rem;
  color: var(--ink-muted);
  padding: 10px 0;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-celeste-soft);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.summary-total-row span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.summary-total-row strong {
  font-size: 1.4rem;
  font-weight: 750;
  color: var(--navy-deep);
}

.summary-disclaimer {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* Botón Registrar pedido también en degradado naranjo */
.btn-register-order {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--orange-gradient);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  box-shadow: 0 4px 14px rgba(214, 90, 28, 0.28);
  transition: transform 0.15s, background 0.15s;
}

.btn-register-order:hover {
  background: var(--orange-gradient-hover);
  transform: translateY(-1px);
}

/* SECCIÓN 3: MIS PEDIDOS */
.my-orders-section {
  padding: 12px 0 28px;
}

.my-orders-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.my-orders-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.lookup-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.lookup-label {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--navy);
}

.lookup-input-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 560px) {
  .lookup-input-row {
    flex-direction: row;
  }
}

.lookup-input-row input,
.lookup-form > input {
  flex: 1;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--celeste-border);
  border-radius: var(--radius-sm);
  background: var(--bg-celeste-tint);
  font-size: 0.92rem;
}

.btn-lookup {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--celeste-border);
  background: var(--bg-celeste-soft);
  color: var(--navy);
  font-weight: 650;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.btn-lookup:hover {
  background: var(--celeste-deep);
  color: #ffffff;
}

.lookup-result {
  margin-bottom: 18px;
}

.lookup-not-found {
  background: #fff8e1;
  border: 1px solid #ffe082;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.no-orders-msg {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.saved-orders-subtitle {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: 10px;
}

.saved-orders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 680px) {
  .saved-orders-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.saved-order-item {
  background: var(--bg-celeste-tint);
  border: 1px solid var(--celeste-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.saved-order-item.highlighted-order {
  background: #fff9f2;
  border-color: var(--orange);
}

.saved-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.saved-order-code {
  display: block;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.saved-order-date {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}
.status-pendiente { background: var(--orange-pill); color: var(--orange-text); }
.status-confirmado { background: var(--bg-celeste-soft); color: var(--navy); }
.status-entregado { background: #d4edda; color: var(--success); }
.status-cancelado { background: #e2e3e5; color: #495057; }

.saved-order-items {
  font-size: 0.84rem;
  color: var(--ink);
}

.saved-order-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--celeste-border);
}

.saved-order-total {
  font-size: 1.05rem;
  color: var(--navy);
}

.saved-wa-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: #ffffff;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--celeste-border);
}

/* FOOTER REDISEÑADO: TARJETA CELESTE COMPACTA Y ORDENADA */
.site-footer {
  padding: 8px 0 28px;
}

.footer-card {
  background: var(--celeste-hero);
  border: 1.5px solid #9ec7e4;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-main-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 760px) {
  .footer-main-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-brand-col {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-oval {
  width: 44px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 5px rgba(23, 58, 94, 0.14));
}

.footer-brand-col strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.footer-brand-col p {
  font-size: 0.82rem;
  color: #234b73;
  margin-top: 2px;
}

.footer-actions-col {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.footer-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #92c0e2;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 650;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, border-color 0.15s;
}

.footer-action-btn:hover {
  background: #ffffff;
  border-color: var(--celeste-deep);
}

.footer-action-btn .icon {
  width: 17px;
  height: 17px;
  color: var(--celeste-deep);
}

.footer-bottom-row {
  padding-top: 12px;
  border-top: 1px solid rgba(46, 109, 164, 0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #2b5680;
}

.footer-bottom-row a {
  font-weight: 650;
  color: var(--navy);
}

/* NAVEGACIÓN MÓVIL INFERIOR */
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--celeste-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 10px));
  min-height: var(--mobile-nav-h);
  box-shadow: 0 -4px 16px rgba(23, 58, 94, 0.06);
}

@media (min-width: 860px) {
  .mobile-nav {
    display: none;
  }
}

.mobile-nav > a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 550;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  padding: 4px 0;
}

.mobile-nav > a[aria-current="location"] {
  color: var(--navy);
  font-weight: 700;
  background: var(--bg-celeste-soft);
}

.mobile-bag-wrap {
  position: relative;
  display: inline-grid;
  place-items: center;
}

.mobile-badge {
  position: absolute;
  top: -5px;
  right: -10px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-full);
  background: var(--orange-gradient);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 12px) + 12px);
  left: 50%;
  transform: translate(-50%, 16px);
  background: var(--navy-deep);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}

@media (min-width: 860px) {
  .toast {
    bottom: 24px;
  }
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* MODAL DE CONFIRMACIÓN */
dialog {
  margin: auto;
  max-width: 460px;
  width: calc(100% - 32px);
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--celeste-border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: 0 24px 48px rgba(18, 44, 73, 0.25);
}

dialog::backdrop {
  background: rgba(18, 44, 73, 0.6);
  backdrop-filter: blur(4px);
}

.close-dialog {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bg-celeste-soft);
  color: var(--navy);
  display: grid;
  place-items: center;
}

.conf-icon-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange-pill);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

#confirmation-title {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 6px;
}

#confirmation-description {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

#confirmation-detail {
  background: var(--bg-celeste-tint);
  border: 1px solid var(--celeste-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conf-code-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--celeste-border);
}

.conf-code-row strong {
  font-size: 1rem;
  color: var(--orange-text);
  background: var(--orange-pill);
  padding: 2px 8px;
  border-radius: 6px;
}

.conf-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.conf-line {
  display: flex;
  justify-content: space-between;
}

.conf-total-line {
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--celeste-border);
  font-size: 0.95rem;
}

.conf-total-line strong {
  color: var(--navy);
  font-size: 1.15rem;
}

.conf-meta-info {
  font-size: 0.8rem;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-whatsapp-confirm {
  width: 100%;
  min-height: 46px;
  border-radius: var(--radius-sm);
  background: #1b8748;
  color: #ffffff;
  font-weight: 650;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}

.dialog-note {
  font-size: 0.76rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 12px;
}

/* Storefront: keep ordering and preparation controls within the viewport. */
:root {
  --celeste-hero: #d7ecf8;
  --orange-gradient: #bd4b12;
  --orange-gradient-hover: #a53e0b;
  --shadow-card: none;
}
.top-notice-bar strong,
.top-notice-bar span { display: block; }
.site-header, .mobile-nav, .hero-motion-card { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.hero-panel, .hero-motion-card, .hero-motion-card[data-active-state],
.btn-orange-cta, .btn-orange-cta:hover, .btn-register-order,
.product-card.selected, .mobile-nav { box-shadow: none; }
.hero-watermark { display: none; }
.hero-panel { min-width: 0; }
.hero-panel > *, .motion-card-inner > * { min-width: 0; }
.hero-content { display: flex; flex-direction: column; }
.hero-top-actions { order: 1; margin: 16px 0 0; }
.hero-open-pill { border: 0; background: none; padding: 0; letter-spacing: 0; font-weight: 500; font-size: 0.85rem; }
.motion-card-inner { flex-direction: column; align-items: stretch; }
.motion-stage-wrap { align-self: center; }
.motion-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 6px; }
.cook-pill { white-space: normal; min-height: 44px; padding: 8px; font-size: 0.875rem; border-radius: 8px; }
.motion-impact-line { white-space: normal; overflow: visible; flex-wrap: wrap; margin-top: 6px; font-size: 0.9rem; }
.motion-impact-line span { font-size: 0.875rem; }
.motion-badges-row:empty { display: none; }
.motion-main-body { gap: 6px; }
.cart-continue { display: none; }
:focus-visible { outline: 3px solid var(--celeste-deep); outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 859px) {
  .top-notice-bar { font-size: 0.75rem; padding: 6px 16px; }
  .header-row { gap: 8px; }
  .header-brand { gap: 7px; }
  .header-logo { width: 32px; height: 42px; }
  .header-brand-text strong { font-size: 0.95rem; }
  .header-brand-text span { font-size: 0.7rem; white-space: normal; }
  .header-cart-btn { padding: 8px 10px; gap: 5px; }
  .header-cart-btn > span:not(.cart-count-badge) { display: none; }
  .hero-banner { padding: 12px 0 0; }
  .hero-panel { padding: 18px 16px; gap: 16px; border: 0; border-radius: 12px; }
  .hero-content h1 { font-size: clamp(1.55rem, 6.4vw, 2rem); }
  .hero-lead { font-size: 1rem; }
  .hero-top-actions { gap: 12px; }
  .hero-open-pill { flex: 1; font-size: 0.8rem; }
  .hero-motion-card { padding: 10px; border: 0; border-radius: 8px; }
  .motion-card-inner { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; }
  .motion-stage-wrap { width: 48px; height: 56px; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .cooking-stage-svg { width: 48px; height: 56px; }
  .motion-impact-line strong, .motion-impact-sep { display: none; }
  .catalog-section { padding: 20px 0 16px; }
  .catalog-header { gap: 8px; margin-bottom: 12px; }
  .catalog-header h2, .section-head h2 { font-size: 1.5rem; }
  .catalog-sub { font-size: 0.9rem; }
  .next-delivery-pill { font-size: 0.82rem; padding: 6px 10px; }
  .products-grid { gap: 10px; }
  .product-card { padding: 12px; gap: 10px; border-radius: 12px; }
  .product-card-top { gap: 10px; }
  .product-thumb { width: 48px; height: 56px; border: 0; border-radius: 8px; }
  .product-title-line { gap: 2px; }
  .product-title-line h3 { font-size: 1rem; line-height: 1.25; }
  .culinary-mini-pill { border: 0; background: none; padding: 0; font-size: 0.8rem; }
  .product-price-big { font-size: 1.25rem; margin-top: 2px; }
  .product-meta-line { font-size: 0.8rem; }
  .product-card-bottom { padding-top: 0; border: 0; }
  .stepper button { width: 44px; height: 44px; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .cart-continue {
    display: flex; position: fixed; left: 16px; right: 16px;
    bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 10px) + 8px);
    z-index: 79; align-items: center; gap: 12px; padding: 12px 16px;
    min-height: 48px; background: var(--navy-deep); color: white; border-radius: 8px;
  }
  .cart-continue strong { margin-left: auto; }
  body:has(.cart-continue:not([hidden])) { padding-bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 16px) + 84px); }
  body:has(#pedido:target) .cart-continue,
  body:has(#mis-pedidos:target) .cart-continue { display: none; }
  .toast { bottom: calc(var(--mobile-nav-h) + env(safe-area-inset-bottom, 10px) + 72px); max-width: calc(100vw - 32px); white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.cooking-details { position: relative; z-index: 2; min-width: 0; }
.cooking-details summary { cursor: pointer; font-size: 0.9rem; padding: 10px 0; color: var(--navy); }
.cooking-details[open] summary { margin-bottom: 6px; }
