[hidden] {
  display: none !important;
}

:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #203254;
  background: #f1f5fc;
  font-synthesis: none;
  --green: #195cdd;
  --muted: #536581;
  --line: #d8e2f2;
  --soft: #e8f0ff;
  --accent: #ff8a26;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  min-height: 44px;
  border-radius: 9px;
  font-weight: 650;
  border: 1px solid var(--line);
  padding: 10px 14px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
button:hover:not(:disabled) {
  filter: brightness(0.93);
}
:focus-visible {
  outline: 3px solid #174fb7;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -70px;
  background: white;
  padding: 15px;
  z-index: 5;
}
.skip:focus {
  top: 8px;
}
.header {
  background: #195cdd;
  color: #ffffff;
  padding: 19px max(28px, calc((100vw - 1440px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 4px solid #ff8a26;
  box-shadow: 0 2px 12px #195cdd14;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.6px;
}
.brand small {
  font:
    10px Consolas,
    monospace;
  letter-spacing: 2px;
  margin-left: 10px;
  color: #dceaff;
  padding-left: 15px;
  border-left: 1px solid #6697ee;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #195cdd;
  width: 33px;
  height: 33px;
  border-radius: 8px;
  font:
    bold 23px Consolas,
    monospace;
}
.pill {
  background: var(--soft);
  font:
    11px Consolas,
    monospace;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.header .pill {
  color: #ffffff;
  background: #2469e9;
  border: 1px solid #78a3f3;
  text-transform: uppercase;
  letter-spacing: 1px;
}
main {
  max-width: 1496px;
  margin: auto;
  padding: 30px 28px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 23px;
  border-bottom: 1px solid #cdd9eb;
}
h1 {
  font-size: clamp(27px, 3vw, 37px);
  letter-spacing: -1.3px;
  margin: 10px 0;
  font-weight: 650;
}
p {
  line-height: 1.5;
}
.intro p {
  color: var(--muted);
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 24px;
  align-items: start;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  margin-bottom: 16px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.3px;
  margin: 0;
  font-weight: 700;
}
#catalog-title::before {
  content: "01 / ";
  font:
    12px Consolas,
    monospace;
  color: var(--muted);
}
#cart-title::before {
  content: "02 / ";
  font:
    12px Consolas,
    monospace;
  color: var(--muted);
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.search-label {
  display: block;
  font-size: 12px;
  margin: 10px 0 7px;
}
input[type="search"] {
  width: 100%;
  padding: 13px 15px;
  background: #ffffff;
  border: 1px solid #91a7c9;
  border-radius: 9px;
  margin-bottom: 18px;
  min-height: 46px;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.product {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 3px 12px #194a9010;
  transition:
    box-shadow 160ms ease,
    border-color 160ms ease;
}
.product:hover {
  border-color: #8eb3f1;
  box-shadow: 0 6px 18px #194a9020;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.category,
.product-index {
  font:
    10px Consolas,
    monospace;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #416399;
}
.product-index {
  color: #617391;
}
.product-photo {
  display: grid;
  place-items: center;
  height: 174px;
  background: white;
  border-bottom: 1px solid #eaf0f9;
  margin-bottom: 13px;
}
.product-photo img {
  width: 100%;
  height: 162px;
  object-fit: contain;
}
.product-brand {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #3c639b;
  margin: 0 0 5px;
}
.product h3 {
  font-size: 14px;
  font-weight: 650;
  margin: 0 0 9px;
  line-height: 1.4;
  min-height: 40px;
}
.product .stock {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 15px;
}
.product-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #e5edf9;
}
.price {
  font:
    bold 19px Consolas,
    monospace;
  letter-spacing: -0.8px;
}
.add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #195cdd;
  color: #fff;
  border-color: #195cdd;
  font-size: 12px;
  padding: 9px 12px;
}
.cart-panel {
  background: #ffffff;
  padding: 23px;
  border: 1px solid #cddcf3;
  border-top: 3px solid #ff8a26;
  border-radius: 14px;
  box-shadow: 0 5px 20px #194a9012;
  position: sticky;
  top: 20px;
}
.cart-help {
  margin: 3px 0 18px;
}
.empty {
  text-align: center;
  padding: 38px 15px;
  border: 1px dashed #b0c8ee;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  background: #eff5ff;
}
.empty strong {
  display: block;
  color: #234779;
  margin-bottom: 8px;
  font-size: 15px;
}
.cart-line {
  border-top: 1px solid var(--line);
  padding: 17px 0;
}
.cart-thumbnail {
  float: left;
  object-fit: contain;
  background: white;
  border: 1px solid #e0eafa;
  margin: 0 10px 8px 0;
}
.line-heading {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  margin-bottom: 5px;
}
.line-heading h3 {
  font-size: 13px;
  margin: 0;
  line-height: 1.4;
}
.line-heading strong {
  font:
    bold 14px Consolas,
    monospace;
  white-space: nowrap;
}
.line-price {
  font-size: 11px;
  color: var(--muted);
}
.quantity-form {
  display: flex;
  align-items: end;
  gap: 7px;
  padding-top: 12px;
  flex-wrap: wrap;
  clear: both;
}
.quantity-form label {
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}
.quantity-form input {
  width: 62px;
  padding: 10px;
  border: 1px solid #91a7c9;
  border-radius: 8px;
  min-height: 44px;
  background: white;
}
.quantity-form button {
  font-size: 12px;
}
.secondary {
  background: white;
  color: #1955bf;
}
.text-button {
  background: transparent;
  border: 0;
  color: #1955bf;
  padding-inline: 8px;
}
.remove {
  margin-left: auto;
}
.field-error {
  color: #a12820;
  font-size: 12px;
  margin: 6px 0 0;
}
.total {
  border-top: 1px solid #c6d8f3;
  padding-top: 20px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.total small {
  font:
    11px Consolas,
    monospace;
  color: var(--muted);
}
.total strong {
  font:
    bold 34px Consolas,
    monospace;
  letter-spacing: -1.5px;
}
.stock-note,
.checkout-note {
  font-size: 11px;
  color: var(--muted);
}
.primary {
  background: #195cdd;
  color: #fff;
  border: 1px solid #195cdd;
}
.checkout {
  width: 100%;
  margin-top: 6px;
  font-size: 12px;
}
.checkout:disabled {
  background: #e8edf5;
  color: #65718a;
  border-color: #d4dfef;
  opacity: 1;
}
.checkout-note {
  text-align: center;
}
#new-cart {
  display: block;
  margin: auto;
  font-size: 12px;
  text-decoration: underline;
}
#catalog-message:not(:empty),
#cart-message:not(:empty) {
  padding: 16px 0;
  color: var(--muted);
  font-size: 13px;
}
.demo-tools {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  color: var(--muted);
  font-size: 12px;
}
.demo-tools summary {
  cursor: pointer;
  min-height: 32px;
}
.demo-tools button,
.demo-tools select {
  margin: 5px;
  padding: 10px;
}
.demo-tools select {
  border: 1px solid var(--line);
  border-radius: 8px;
}
footer {
  max-width: 1496px;
  margin: auto;
  padding: 10px 28px 24px;
  color: var(--muted);
  font:
    10px Consolas,
    monospace;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 1200px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cart-panel {
    position: static;
  }
  main {
    padding: 24px 18px;
  }
  .header {
    padding: 17px 18px;
  }
  .brand small {
    display: none;
  }
  footer {
    padding-inline: 18px;
    flex-wrap: wrap;
  }
}
@media (max-width: 600px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product {
    padding: 11px;
  }
  .product-photo {
    height: 150px;
  }
  .product-photo img {
    height: 140px;
  }
  .product-bottom {
    flex-wrap: wrap;
  }
  .add {
    width: 100%;
  }
  .cart-panel {
    padding: 18px;
  }
  .brand {
    font-size: 18px;
  }
  .header .pill {
    font-size: 9px;
  }
  .product h3 {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product {
    transition: none;
  }
}

/* Identidad: reconocimiento visual + compra, azul vivo y naranja. */
.brand-logo {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 5px #12378826);
}
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.brand-name {
  font-size: 28px;
  letter-spacing: -1.1px;
  line-height: 1;
}
.brand-name > span {
  color: #ffce90;
}
.brand-copy small {
  display: block;
  border: 0;
  padding: 0;
  margin: 0;
  font:
    9px "Segoe UI",
    sans-serif;
  letter-spacing: 1.7px;
  color: #e1edff;
}

.intro h1 {
  color: #203254;
  font-size: clamp(25px, 2.5vw, 32px);
  letter-spacing: -0.9px;
  margin: 0;
  font-weight: 650;
}
.cart-panel > .section-heading {
  margin: -23px -23px 18px;
  padding: 20px 23px;
  background: #e8f0ff;
  border-radius: 11px 11px 0 0;
  border-bottom: 1px solid #c8dafa;
}
.cart-panel > .section-heading h2 {
  color: #174ca0;
}
.cart-panel .pill {
  background: #195cdd;
  color: white;
}
.category {
  background: #edf3ff;
  border-radius: 5px;
  padding: 5px 7px;
  color: #275cad;
}
@media (max-width: 600px) {
  .brand-logo {
    width: 45px;
    height: 45px;
  }
  .brand-name {
    font-size: 20px;
    letter-spacing: -0.7px;
  }
  .brand-copy small {
    font-size: 7px;
    letter-spacing: 0.65px;
  }
  .header {
    gap: 8px;
    padding: 16px 14px;
  }
  .header .pill {
    padding: 7px;
    font-size: 8px;
  }
  .brand {
    gap: 8px;
  }
  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 0 0 18px;
  }
  .cart-panel > .section-heading {
    margin: -18px -18px 18px;
    padding: 18px;
  }
}

/* Tarjetas vinculadas a la identidad visual y al estado del carrito. */
.product {
  padding: 0;
  overflow: hidden;
  border-color: #d2e0f7;
  border-radius: 18px;
  box-shadow: 0 4px 15px #195cdd0b;
}
.product-meta {
  margin: 0;
  padding: 11px 14px;
  background: #edf3ff;
  border-bottom: 1px solid #dce8fc;
  min-height: 45px;
  gap: 5px;
}
.product .category {
  background: transparent;
  padding: 0;
  font:
    600 11px "Segoe UI",
    sans-serif;
  letter-spacing: 0.2px;
  text-transform: none;
}
.selection-badge {
  color: #164fab;
  background: #fff;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 650;
  padding: 4px 7px;
  white-space: nowrap;
}
.selection-badge:empty {
  display: none;
}
.product-photo {
  margin: 13px 14px 14px;
  border: 1px solid #e6edf9;
  border-radius: 12px;
  height: 172px;
  padding: 7px;
}
.product-photo img {
  height: 156px;
}
.product-brand,
.product h3,
.product .stock {
  margin-left: 15px;
  margin-right: 15px;
}
.product-brand {
  font-size: 10px;
  letter-spacing: 0.3px;
}
.product h3 {
  font-size: 14px;
  min-height: 40px;
}
.product .stock {
  margin-top: 3px;
  margin-bottom: 16px;
}
.product-bottom {
  background: #f2f6ff;
  border-top: 1px solid #dce8fc;
  padding: 13px 14px;
}
.product-bottom .price {
  color: #174ba4;
  font:
    750 21px "Segoe UI",
    sans-serif;
  letter-spacing: -0.8px;
}
.product-bottom .add {
  border-radius: 12px;
  box-shadow: 0 3px 8px #195cdd22;
}
.product.in-cart {
  border-color: #81aaf0;
  box-shadow: 0 4px 16px #195cdd14;
}
.product.in-cart .product-meta {
  background: #dfeaff;
}
.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #a5bee8;
  border-radius: 10px;
  overflow: hidden;
  background: white;
}
.quantity-control .quantity-step {
  width: 42px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #195cdd;
  background: #eaf1ff;
  font-size: 22px;
}
.quantity-control input {
  border: 0;
  border-radius: 0;
  width: 52px;
  padding: 9px 3px;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}
.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity-control :focus-visible {
  outline-offset: -3px;
}
@media (max-width: 600px) {
  .product {
    padding: 0;
  }
  .product-meta {
    padding: 10px;
    flex-wrap: wrap;
  }
  .product-photo {
    margin: 10px;
    height: 145px;
  }
  .product-photo img {
    height: 128px;
  }
  .product-brand,
  .product h3,
  .product .stock {
    margin-left: 11px;
    margin-right: 11px;
  }
  .product h3 {
    font-size: 13px;
  }
  .product-bottom {
    padding: 11px;
  }
}

.add-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #ffffff24;
  font-size: 18px;
  line-height: 1;
}
.add:hover:not(:disabled) {
  background: #124fc7;
  filter: none;
}
.product-bottom .add:disabled {
  background: #e2eafa;
  color: #546783;
  border-color: #cedaf0;
  box-shadow: none;
  opacity: 1;
}
.add:disabled .add-icon {
  background: transparent;
}
.quantity-step:disabled {
  opacity: 0.4;
}

/* Franja de compra: silueta angular y contenido simplificado por el usuario. */
.intro {
  position: relative;
  isolation: isolate;
  display: block;
  padding: 27px 30px 29px;
  margin-bottom: 16px;
  border: 0;
  background: #e3edff;
  clip-path: polygon(
    0 0,
    calc(100% - 23px) 0,
    100% 23px,
    100% 100%,
    23px 100%,
    0 calc(100% - 23px)
  );
}
.intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 64px;
  height: 4px;
  background: #ff8a26;
}
.intro::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 200px;
  z-index: -1;
  background: repeating-linear-gradient(
    120deg,
    transparent 0 34px,
    #195cdd08 34px 66px
  );
  border-right: 5px solid #8db2f5;
}
.intro-copy {
  max-width: 760px;
}
.intro .intro-label {
  color: #3765a6;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.3px;
  margin: 0 0 10px;
}
.intro h1 {
  color: #194d91;
  font-size: clamp(27px, 2.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.9px;
  margin: 0 0 11px;
  font-weight: 700;
}
.intro p {
  font-size: 13px;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .intro {
    padding: 23px 21px;
  }
  .intro::before {
    left: 21px;
  }
  .intro::after {
    width: 55px;
    opacity: 0.65;
  }
  .intro-copy {
    padding-right: 7px;
  }
  .intro h1 {
    font-size: 27px;
  }
  .intro p {
    font-size: 12px;
  }
}
/* Escena decorativa compacta; independiente del reconocimiento y del carrito. */
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 12px;
}
.intro-copy {
  flex: 1;
  min-width: 0;
}
.mini-capture {
  width: 44%;
  flex-shrink: 0;
  position: relative;
}
.mini-scene {
  height: 150px;
  position: relative;
  background: radial-gradient(ellipse at center, #bdd5ff80, transparent 72%);
}
.mini-camera {
  position: absolute;
  top: 0;
  left: calc(50% - 21px);
  width: 42px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #195cdd;
  box-shadow: 0 3px 8px #195cdd26;
}
.mini-camera span {
  width: 16px;
  height: 16px;
  border: 3px solid #ffa65c;
  border-radius: 50%;
  background: #e8f1ff;
}
.mini-frame {
  position: absolute;
  top: 33px;
  bottom: 3px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7%;
  border-inline: 2px solid #7ba6ef;
  background:
    linear-gradient(#195cdd38, #195cdd38) left top/17px 2px no-repeat,
    linear-gradient(#195cdd38, #195cdd38) right top/17px 2px no-repeat,
    linear-gradient(#195cdd38, #195cdd38) left bottom/17px 2px no-repeat,
    linear-gradient(#195cdd38, #195cdd38) right bottom/17px 2px no-repeat;
}
.mini-frame .mini-tile {
  object-fit: contain;
  background: white;
  border: 1px solid #ccdcf6;
  border-radius: 4px;
  padding: 4px;
  width: 24%;
  max-width: 110px;
  height: 100px;
  box-shadow: 0 4px 8px #195cdd13;
}
.mini-milk {
  transform: rotate(-7deg);
}
.mini-frame .mini-cereal {
  height: 94px;
  transform: rotate(3deg);
}
.mini-soda {
  transform: rotate(7deg);
}
.mini-beam {
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  height: 2px;
  background: #ff9b43;
  box-shadow: 0 0 9px #ff982f80;
  animation: mini-scan 4.8s ease-in-out infinite;
}
.mini-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #496995;
  font-size: 9px;
  margin-top: 4px;
}
.mini-caption button {
  background: transparent;
  border: 0;
  color: #28589e;
  padding: 4px;
  min-height: 28px;
  font-size: 10px;
  border-radius: 3px;
}
.is-paused .mini-beam {
  animation-play-state: paused;
}
@keyframes mini-scan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(100px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mini-beam {
    animation: none;
    transform: translateY(35px);
  }
  #mini-motion {
    display: none;
  }
}
@media (max-width: 700px) {
  .intro {
    gap: 15px;
  }
  .mini-capture {
    width: 43%;
  }
  .mini-frame {
    left: 4px;
    right: 4px;
    gap: 12px;
  }
  .mini-caption {
    font-size: 8px;
  }
}
@media (max-width: 550px) {
  .intro {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .mini-capture {
    width: 100%;
    max-width: none;
    align-self: center;
  }
  .intro-copy {
    padding-right: 0;
  }
  .mini-scene {
    height: 150px;
  }
  .mini-frame {
    left: 4px;
    right: 4px;
    gap: 7%;
  }
  .mini-caption {
    font-size: 9px;
  }
  .intro::after {
    width: 95px;
  }
}
/* Una sola franja azul, con la escena integrada y altura compacta. */
.intro {
  background: linear-gradient(145deg, #1246a9, #195cdd 60%, #2876ee);
  padding-block: 10px;
}
.intro h1 {
  color: #fff;
}
.intro .intro-label {
  color: #c5ddff;
}
.intro-copy > p {
  color: #e1edff;
}
.intro::after {
  width: 44%;
  border-right: 0;
  background: repeating-linear-gradient(
    120deg,
    transparent 0 34px,
    #ffffff04 34px 66px
  );
}
.mini-capture {
  width: 44%;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.mini-scene {
  height: 120px;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 24px 24px;
}
.mini-camera {
  background: #103c89;
  border: 1px solid #ffffff60;
  height: 23px;
}
.mini-frame {
  top: 28px;
  gap: 7%;
  border-color: #a4cbff;
  background:
    linear-gradient(#a4cbff, #a4cbff) left top/17px 2px no-repeat,
    linear-gradient(#a4cbff, #a4cbff) right top/17px 2px no-repeat,
    linear-gradient(#a4cbff, #a4cbff) left bottom/17px 2px no-repeat,
    linear-gradient(#a4cbff, #a4cbff) right bottom/17px 2px no-repeat;
}
.mini-frame .mini-tile {
  width: 25%;
  max-width: 110px;
  height: 78px;
  padding: 2px;
  box-shadow: 0 5px 10px #07256333;
}
.mini-frame .mini-cereal {
  height: 74px;
  border-color: #ffbb80;
}
.mini-caption {
  color: #dbeaff;
}
.mini-caption button {
  color: white;
}
.mini-caption button:hover:not(:disabled) {
  background: #ffffff1f;
  filter: none;
}
@keyframes mini-scan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  50% {
    transform: translateY(75px);
    opacity: 1;
  }
}
@media (max-width: 700px) {
  .mini-capture {
    width: 43%;
  }
  .mini-frame {
    gap: 5%;
  }
}
@media (max-width: 550px) {
  .intro {
    padding-block: 18px;
  }
  .mini-capture {
    width: 100%;
  }
  .mini-scene {
    height: 120px;
  }
  .mini-frame {
    gap: 7%;
  }
}
/* Cinco productos distribuidos sobre una escena más ancha, sin aumentar la altura. */
.mini-capture {
  width: 60%;
}
.intro::after {
  width: 60%;
}
.mini-frame {
  gap: 3%;
  justify-content: space-evenly;
}
.mini-frame .mini-tile {
  width: 16%;
  max-width: 110px;
  flex-shrink: 0;
}
.mini-jam {
  transform: rotate(-4deg);
}
.mini-rice {
  transform: rotate(5deg);
}
@media (max-width: 850px) {
  .mini-capture {
    width: 54%;
  }
  .intro {
    gap: 18px;
  }
  .mini-frame {
    left: 4px;
    right: 4px;
    gap: 2%;
  }
}
@media (max-width: 550px) {
  .mini-capture {
    width: 100%;
  }
  .mini-frame .mini-tile {
    width: 17%;
    height: 70px;
  }
  .mini-frame .mini-cereal {
    height: 67px;
  }
}

/* Acercar la fotografía dentro del marco, conservando sus dimensiones. */
.mini-frame .mini-tile {
  display: block;
  overflow: hidden;
  padding: 0;
}
.mini-tile > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.06);
}
/* Recuadros completos más grandes para llenar la franja. */
.mini-capture {
  width: 64%;
}
.intro {
  gap: 20px;
}
.mini-scene {
  height: 140px;
}
.mini-frame {
  left: 3px;
  right: 3px;
  gap: 1.5%;
  justify-content: space-between;
}
.mini-frame .mini-tile {
  width: 18%;
  max-width: none;
  height: 100px;
}
.mini-frame .mini-cereal {
  height: 96px;
}
.mini-milk {
  transform: rotate(-4deg);
}
.mini-soda {
  transform: rotate(4deg);
}
.mini-rice {
  transform: rotate(3deg);
}
@media (max-width: 850px) {
  .mini-capture {
    width: 56%;
  }
}
@media (max-width: 550px) {
  .mini-capture {
    width: 100%;
  }
  .mini-frame .mini-tile {
    width: 18%;
    height: 92px;
  }
  .mini-frame .mini-cereal {
    height: 88px;
  }
}
/* Marco exterior con margen para las esquinas inclinadas de los productos. */
.mini-scene {
  height: 160px;
}
.mini-frame {
  left: -6px;
  right: -6px;
  top: 28px;
  bottom: 0;
  padding: 10px 12px;
}
@media (max-width: 550px) {
  .mini-scene {
    height: 155px;
  }
  .mini-frame {
    left: 0;
    right: 0;
    padding-inline: 8px;
  }
}

/* Revisión previa y comprobante; la confirmación real continúa bloqueada. */
.checkout-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  color: #203254;
  background: #fff;
  box-shadow: 0 24px 70px #0b255866;
}
.checkout-dialog::backdrop {
  background: #0d234a99;
  backdrop-filter: blur(3px);
}
.checkout-dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 28px);
}
.checkout-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 20px;
  background: #e8f0ff;
  border-top: 4px solid #ff8a26;
  border-bottom: 1px solid #cdddf6;
}
.checkout-dialog-header h2 {
  font-size: 23px;
  margin-top: 6px;
  color: #174b96;
}
.dialog-step {
  font:
    10px Consolas,
    monospace;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #5273a3;
}
.dialog-close {
  min-width: 40px;
  width: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #31537e;
  font-size: 27px;
  line-height: 1;
}
.checkout-dialog-content {
  padding: 24px 26px;
  overflow: auto;
}
.checkout-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.checkout-summary {
  border-block: 1px solid var(--line);
}
.checkout-summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #e8eef8;
}
.checkout-summary-line:last-child {
  border-bottom: 0;
}
.checkout-summary-line > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.checkout-summary-line strong {
  font-size: 13px;
}
.checkout-summary-line span {
  font-size: 11px;
  color: var(--muted);
}
.checkout-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
}
.checkout-summary-total span {
  font-size: 13px;
}
.checkout-summary-total strong {
  font:
    750 30px Consolas,
    monospace;
  color: #174b96;
}
.checkout-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  max-width: none;
  margin: 0;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: #f8faff;
  color: inherit;
  font: inherit;
}
.confirm-purchase {
  background: #195cdd;
  color: #fff;
  border-color: #195cdd;
}
.confirm-purchase:disabled {
  background: #e4eaf4;
  color: #63718a;
  border-color: #d2ddec;
  opacity: 1;
}
.checkout-progress {
  text-align: center;
  padding: 26px 12px 34px;
}
.checkout-progress h3 {
  font-size: 22px;
  margin: 20px 0 7px;
}
.checkout-progress p {
  max-width: 390px;
  margin: auto;
  color: var(--muted);
  font-size: 13px;
}
.checkout-progress-signal {
  display: inline-block;
  width: 58px;
  height: 58px;
  border: 5px solid #d9e6fb;
  border-top-color: #195cdd;
  border-radius: 50%;
  animation: checkout-spin 0.85s linear infinite;
}
.receipt-success {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: #eef7f2;
  border-left: 4px solid #238154;
}
.receipt-success h3,
.receipt-success p {
  margin: 0;
}
.receipt-success p {
  font-size: 12px;
  color: #537064;
  margin-top: 3px;
}
.receipt-check {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #238154;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}
.receipt-lines {
  margin-top: 20px;
}
.receipt-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
}
.receipt-facts dt,
.receipt-facts dd {
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid #e7edf7;
  font-size: 12px;
}
.receipt-facts dt {
  color: var(--muted);
}
.receipt-facts dd {
  text-align: right;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.receipt-disclaimer {
  font-size: 11px;
  color: var(--muted);
  margin: 16px 0 0;
}
@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-progress-signal {
    animation: none;
    border-color: #195cdd;
  }
}
@media (max-width: 600px) {
  .checkout-dialog-header,
  .checkout-dialog-content {
    padding-inline: 18px;
  }
  .checkout-dialog-actions {
    padding: 14px 18px;
    flex-direction: column-reverse;
  }
  .checkout-dialog-actions button {
    width: 100%;
  }
  .checkout-summary-line {
    gap: 10px;
  }
  .checkout-summary-line > strong {
    white-space: nowrap;
  }
}

/* Recorrido principal: bienvenida, captura y revisión visual. */
.welcome {
  padding-top: 46px;
}
.welcome-hero {
  min-height: 560px;
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  background: #fff;
  box-shadow: 0 18px 55px #173a7417;
  border: 1px solid #d5e1f3;
}
.welcome-copy {
  padding: 70px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.welcome-copy h1 {
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: -3.5px;
  margin: 18px 0;
  color: #18335f;
}
.welcome-copy h1 span {
  color: #195cdd;
}
.welcome-copy > p:not(.intro-label) {
  max-width: 500px;
  color: var(--muted);
  font-size: 17px;
}
.start-purchase {
  margin-top: 28px;
  width: max-content;
  background: #ff8a26;
  color: #172e54;
  border: 0;
  border-radius: 14px;
  padding: 15px 22px;
  font-size: 16px;
  box-shadow: 0 8px 22px #d85c0d35;
}
.start-purchase span {
  font-size: 22px;
  margin-right: 8px;
}
.welcome-copy small {
  margin-top: 13px;
  color: var(--muted);
}
.welcome-visual {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: linear-gradient(145deg, #0d3d9b, #1760df 58%, #2879ee);
  display: grid;
  place-items: center;
}
.welcome-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#fff0 95%, #ffffff12 96%),
    linear-gradient(90deg, #fff0 95%, #ffffff12 96%);
  background-size: 38px 38px;
  mask-image: linear-gradient(black, transparent);
}
.welcome-camera {
  position: absolute;
  top: 75px;
  width: 88px;
  height: 54px;
  border: 1px solid #ffffff80;
  border-radius: 15px;
  background: #0c398e;
  display: grid;
  place-items: center;
}
.welcome-camera span {
  width: 31px;
  height: 31px;
  border: 6px solid #ff9b42;
  border-radius: 50%;
  box-shadow: inset 0 0 0 5px #216fe9;
}
.welcome-track {
  position: relative;
  width: 80%;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  border: 1px solid #9bc2ff99;
}
.welcome-track > div {
  width: 29%;
  height: 205px;
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 20px 30px #08286155;
  transform: rotate(-4deg);
}
.welcome-track > div:nth-child(2) {
  transform: translateY(15px) rotate(3deg);
}
.welcome-track > div:nth-child(3) {
  transform: rotate(5deg);
}
.welcome-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.welcome-scanline {
  position: absolute;
  width: 78%;
  height: 3px;
  background: #ffad67;
  box-shadow: 0 0 24px 7px #ff8a2655;
}
.welcome-visual > p {
  position: absolute;
  bottom: 55px;
  color: #dceaff;
  font:
    11px Consolas,
    monospace;
  letter-spacing: 2px;
}
.welcome-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 1.4fr;
  gap: 1px;
  margin-top: 20px;
  background: #d7e2f2;
  border: 1px solid #d7e2f2;
  border-radius: 16px;
  overflow: hidden;
}
.welcome-info article,
.welcome-info aside {
  background: #fff;
  padding: 24px;
}
.welcome-info span {
  font:
    11px Consolas,
    monospace;
  color: #195cdd;
}
.welcome-info strong {
  display: block;
  margin-top: 9px;
}
.welcome-info p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.welcome-info aside {
  background: #fff0db;
  border-left: 3px solid #ff8a26;
}
.purchase-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
}
.purchase-tabs button {
  border: 0;
  border-radius: 8px 8px 0 0;
  background: transparent;
  color: #526783;
}
.purchase-tabs button[aria-selected="true"] {
  background: #195cdd;
  color: #fff;
}
.purchase-main {
  min-width: 0;
}
.scan-view {
  background: #fff;
  border: 1px solid #d2dff1;
  border-radius: 16px;
  padding: 22px;
}
.scan-view > .section-heading {
  align-items: flex-end;
}
.scan-view .intro-label {
  margin: 0 0 7px;
}
.camera-status {
  font:
    11px Consolas,
    monospace;
  color: #43628f;
  padding: 7px 9px;
  background: #eef4fe;
  border-radius: 7px;
}
.camera-status.ready {
  color: #16754a;
  background: #eaf7f0;
}
.scan-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(145deg, #10213c, #142c50);
  border-radius: 12px;
  border: 1px solid #264775;
  display: grid;
  place-items: center;
}
.scan-frame video,
.scan-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scan-frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.camera-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #d9e7ff;
  gap: 9px;
}
.camera-empty img {
  width: 70px;
  height: 70px;
}
.camera-empty span {
  font-size: 12px;
  color: #9db4d8;
}
.scan-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.scan-actions .primary {
  font-size: 14px;
  padding-inline: 22px;
}
.upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: #1955bf;
  font-weight: 650;
  background: #fff;
  cursor: pointer;
}
.upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.scan-message {
  min-height: 22px;
  color: var(--muted);
  font-size: 12px;
}
.scan-results {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.scan-results-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
}
.scan-results-heading h3 {
  margin: 4px 0 15px;
}
.scan-results-heading > span {
  font:
    10px Consolas,
    monospace;
  color: var(--muted);
}
.detection {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #e5ecf7;
}
.detection img {
  width: 54px;
  height: 58px;
  object-fit: contain;
}
.detection h4 {
  margin: 0 0 4px;
  font-size: 13px;
}
.detection p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.detection-confidence {
  font:
    700 13px Consolas,
    monospace;
  color: #195cdd;
}
.detection-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.detection-status.added {
  color: #147148;
}
.detection-status.pending {
  color: #a85409;
}
.detection-status.rejected {
  color: #8b3940;
}
.detection label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
}
.detection input {
  width: 18px;
  height: 18px;
}
.scan-results #suggestion-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 16px;
}
@media (max-width: 1000px) {
  .welcome-copy {
    padding: 45px 38px;
  }
  .welcome-track {
    width: 90%;
  }
  .welcome-info {
    grid-template-columns: repeat(3, 1fr);
  }
  .welcome-info aside {
    grid-column: 1/-1;
    border-left: 0;
    border-top: 3px solid #ff8a26;
  }
}
@media (max-width: 850px) {
  .welcome {
    padding-top: 22px;
  }
  .welcome-hero {
    grid-template-columns: 1fr;
  }
  .welcome-copy {
    padding: 42px 30px;
  }
  .welcome-copy h1 {
    font-size: 46px;
  }
  .welcome-visual {
    min-height: 420px;
  }
  .welcome-camera {
    top: 35px;
  }
  .welcome-visual > p {
    bottom: 25px;
  }
  .welcome-track > div {
    height: 155px;
  }
  .scan-view {
    padding: 16px;
  }
}
@media (max-width: 600px) {
  .welcome-copy h1 {
    font-size: 38px;
    letter-spacing: -2px;
  }
  .welcome-visual {
    min-height: 330px;
  }
  .welcome-track {
    padding: 30px 10px;
    gap: 8px;
  }
  .welcome-track > div {
    height: 120px;
    padding: 7px;
  }
  .welcome-info {
    grid-template-columns: 1fr;
  }
  .welcome-info aside {
    grid-column: auto;
  }
  .scan-actions > * {
    width: 100%;
  }
  .scan-results-heading {
    display: block;
  }
  .detection {
    grid-template-columns: 45px 1fr;
  }
  .detection img {
    width: 45px;
  }
  .detection-confidence {
    grid-column: 2;
  }
  .scan-results #suggestion-actions {
    flex-direction: column;
  }
  .scan-results #suggestion-actions button {
    width: 100%;
  }
}

/* La bienvenida ocupa una sola vista de kiosco: mensaje, promociones y pasos. */
.welcome {
  height: calc(100svh - 134px);
  min-height: 570px;
  padding: 28px 0 10px;
}
.welcome-panel {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 136px;
  overflow: hidden;
  border: 1px solid #d5e1f3;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 55px #173a7417;
}
.welcome-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(350px, 0.72fr) minmax(580px, 1.28fr);
}
.welcome-stage .welcome-copy {
  padding: 32px 48px;
}
.welcome-stage .welcome-copy h1 {
  font-size: clamp(40px, 4.15vw, 62px);
  margin: 14px 0;
  letter-spacing: -3px;
}
.welcome-stage .welcome-copy > p:not(.intro-label) {
  font-size: 15px;
  line-height: 1.5;
}
.welcome-stage .start-purchase {
  margin-top: 19px;
}
.promotions {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(145deg, #0d3d9b, #1760df 58%, #2879ee);
}
.promotion {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 22px;
  border-radius: 15px;
  color: #fff;
  box-shadow: 0 9px 24px #08286135;
}
.promotion::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, #0b2f78ee, #155bc8bb 62%, #2077e300);
}
.promotion-main {
  grid-row: 1/3;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  background: linear-gradient(145deg, #0a2e6e, #1768d9);
}
.promotion-main::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 45px solid #ff9b42;
  border-radius: 50%;
  right: -110px;
  top: -120px;
  opacity: 0.18;
}
.promotion-drinks {
  background: linear-gradient(135deg, #153261, #0b8fc5);
}
.promotion-breakfast {
  background: linear-gradient(135deg, #85410b, #ff922e);
}
.promotion-breakfast::before {
  background: linear-gradient(120deg, #6d2f0cf0, #dd650bb8 65%, #ff9d2d44);
}
.promotion span {
  font:
    700 10px Consolas,
    monospace;
  letter-spacing: 1.3px;
  color: #ffd3a8;
}
.promotion h2 {
  margin: 7px 0 5px;
  font-size: clamp(20px, 2vw, 31px);
  line-height: 1.05;
}
.promotion p {
  margin: 0;
  max-width: 310px;
  font-size: 12px;
  line-height: 1.45;
  color: #e4efff;
}
.promotion-products {
  height: 44%;
  min-height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}
.promotion-products img {
  width: 31%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 9px 9px #061c4366);
}
.promotion:not(.promotion-main) .promotion-products {
  align-self: stretch;
  height: 100%;
  min-width: 34%;
}
.promotion:not(.promotion-main) .promotion-products img {
  width: 48%;
}
.welcome-panel .welcome-info {
  height: 136px;
  margin: 0;
  grid-template-columns: repeat(3, 1fr);
  border: 0;
  border-top: 1px solid #d7e2f2;
  border-radius: 0;
  background: #d7e2f2;
}
.welcome-panel .welcome-info article {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
}
.step-image {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #edf4ff;
}
.step-image > img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.step-products {
  grid-template-columns: 1fr 1fr;
  padding: 7px;
}
.step-products > img {
  width: 100%;
  height: 48px;
}
.step-cart {
  background: #fff0db;
  border: 1px solid #ffd1a8;
}
.step-cart span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 30px;
  border: 3px solid #195cdd;
  border-top: 0;
  border-radius: 4px 4px 10px 10px;
  color: #ff8120;
  font-weight: 900;
  font-size: 21px;
}
.welcome-panel .welcome-info article > div:last-child > span {
  font:
    11px Consolas,
    monospace;
  color: #195cdd;
}
.welcome-panel .welcome-info strong {
  margin-top: 4px;
}
.welcome-panel .welcome-info p {
  margin-top: 5px;
  line-height: 1.35;
}
@media (max-width: 1050px) {
  .welcome-stage {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .welcome-stage .welcome-copy {
    padding: 26px 32px;
  }
  .promotions {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    gap: 9px;
  }
  .promotion {
    padding: 16px;
  }
  .welcome-panel .welcome-info article {
    padding: 14px;
    gap: 10px;
  }
  .step-image {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }
}
@media (max-width: 850px) {
  .welcome {
    height: auto;
    min-height: 0;
  }
  .welcome-panel {
    height: auto;
    display: block;
  }
  .welcome-stage {
    display: block;
  }
  .promotions {
    min-height: 430px;
  }
  .welcome-panel .welcome-info {
    height: auto;
    grid-template-columns: 1fr;
  }
  .welcome-panel .welcome-info article {
    min-height: 96px;
  }
  .welcome-stage .welcome-copy h1 {
    font-size: 44px;
  }
}
@media (max-width: 600px) {
  .welcome {
    padding-top: 16px;
  }
  .welcome-panel {
    border-radius: 18px;
  }
  .welcome-stage .welcome-copy {
    padding: 28px 24px;
  }
  .welcome-stage .welcome-copy h1 {
    font-size: 38px;
  }
  .promotions {
    min-height: 570px;
    grid-template-columns: 1fr;
    grid-template-rows: 230px 150px 150px;
  }
  .promotion-main {
    grid-row: auto;
    flex-direction: row;
  }
  .promotion-products {
    height: 90px;
  }
  .promotion:not(.promotion-main) .promotion-products {
    height: 100px;
  }
  .welcome-panel .welcome-info article {
    padding: 15px 18px;
  }
}
.promotions,
.promotion {
  min-height: 0;
}
.promotions {
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}
@media (min-width: 851px) and (max-height: 800px) {
  .welcome-panel {
    grid-template-rows: minmax(0, 1fr) 120px;
  }
  .welcome-panel .welcome-info {
    height: 120px;
  }
  .welcome-panel .welcome-info article {
    padding: 12px 24px;
  }
  .promotion {
    padding: 16px;
  }
  .promotion h2 {
    font-size: 24px;
  }
  .promotion-products {
    min-height: 58px;
    height: 38%;
  }
  .welcome-stage .welcome-copy h1 {
    font-size: 48px;
  }
  .welcome-stage .welcome-copy > p:not(.intro-label) {
    font-size: 14px;
  }
  .step-image {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }
}
.promotion {
  border: 2px solid #ffffff5c;
  box-shadow:
    0 12px 25px #071d4c70,
    inset 0 1px #ffffff38;
}
.promotion-main {
  background: linear-gradient(145deg, #ffd43b, #ff8a26);
  color: #152c54;
}
.promotion-main::before {
  background:
    radial-gradient(circle at 90% 12%, #fff7 0 15%, transparent 15.5%),
    linear-gradient(120deg, #fff6d5e8, #ffbc40c7 68%, #ff7b1c99);
}
.promotion-main span,
.promotion-main p {
  color: #453516;
}
.promotion-drinks {
  background: linear-gradient(135deg, #8b1cc4, #ec3974);
}
.promotion-drinks::before {
  background:
    radial-gradient(circle at 100% 0, #ffde5a55 0 28%, transparent 28.5%),
    linear-gradient(120deg, #691799ef, #ed3478c7);
}
.promotion-breakfast {
  background: linear-gradient(135deg, #008f73, #32bd72);
}
.promotion-breakfast::before {
  background:
    radial-gradient(circle at 95% 110%, #fff45f66 0 30%, transparent 30.5%),
    linear-gradient(120deg, #006c5bea, #26ad65c7);
}
.promotion-products img {
  mix-blend-mode: multiply;
  background: transparent;
  border-radius: 12px;
}
.promo-offer {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: #19345d;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 5px 12px #0c214d30;
}
.promotion-main .promo-offer {
  background: #17345d;
  color: #fff;
}
.step-person {
  position: relative;
  background: #fff0db;
  border: 1px solid #ffc88f;
}
.step-person i {
  position: absolute;
  display: block;
}
.person-head {
  left: 13px;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #195cdd;
}
.person-body {
  left: 9px;
  top: 29px;
  width: 25px;
  height: 25px;
  border-radius: 14px 14px 7px 7px;
  background: #195cdd;
}
.person-list {
  right: 8px;
  bottom: 8px;
  width: 27px;
  height: 34px;
  padding-top: 8px;
  border: 2px solid #ff8426;
  border-radius: 5px;
  background: #fff;
  color: #14835b;
  font: 900 16px/1 sans-serif;
  text-align: center;
}
.welcome-message {
  min-height: 17px;
  margin: 8px 0 0 !important;
  color: #a54414 !important;
  font-size: 12px !important;
  font-weight: 650;
}
.welcome-stage .start-purchase {
  min-width: 230px;
  min-height: 66px;
  margin-top: 25px;
  padding: 10px 20px 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ff9e3d, #ff7417);
  color: #142d55;
  font-size: 18px;
  box-shadow:
    0 13px 26px #cf5b1742,
    inset 0 1px #fff9;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.welcome-stage .start-purchase span {
  width: 43px;
  height: 43px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: #185bd7;
  font-size: 25px;
  box-shadow: 0 6px 14px #a6491433;
}
.welcome-stage .start-purchase:hover {
  transform: translateY(-2px);
  box-shadow:
    0 17px 31px #cf5b1752,
    inset 0 1px #fff9;
}
.welcome-stage .start-purchase:active {
  transform: translateY(1px);
}
.welcome-stage .start-purchase:focus-visible {
  outline: 4px solid #8fb8ff;
  outline-offset: 4px;
}
.promotions {
  position: relative;
  display: block;
  padding: 18px;
  background: #123f91;
}
.promotion-slide {
  position: absolute;
  inset: 18px;
  overflow: hidden;
  border: 2px solid #ffffffb8;
  border-radius: 20px;
  background: #102d5c;
  box-shadow: 0 17px 38px #061b4866;
  opacity: 0;
  visibility: hidden;
  transform: translateX(22px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0.5s;
}
.promotion-slide.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.promotion-slide > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.promotion-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #07182ddd 0,
    #07182db8 32%,
    #07182d22 62%,
    transparent 78%
  );
}
.promotion-copy {
  position: absolute;
  z-index: 1;
  left: 6%;
  top: 50%;
  max-width: 42%;
  transform: translateY(-50%);
  color: #fff;
  text-shadow: 0 3px 14px #000a;
}
.promotion-copy span {
  font:
    700 11px Consolas,
    monospace;
  letter-spacing: 1.6px;
  color: #ffc37e;
}
.promotion-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 0.98;
  letter-spacing: -1.7px;
}
.promotion-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #edf5ff;
}
.promotion-controls {
  position: absolute;
  z-index: 3;
  right: 34px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 18px;
  background: #06172bb8;
  backdrop-filter: blur(10px);
}
.promotion-controls > button {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #ffffff4d;
  border-radius: 12px;
  background: #ffffff17;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
.promotion-controls > div {
  display: flex;
  gap: 7px;
}
.promotion-dot {
  width: 10px;
  height: 10px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff69;
}
.promotion-dot.active {
  width: 26px;
  border-radius: 8px;
  background: #ff8a26;
}
.promotions:focus-within .promotion-slide {
  transition: none;
}
@media (max-width: 850px) {
  .promotions {
    min-height: 430px;
  }
  .promotion-slide {
    inset: 12px;
  }
  .promotion-copy {
    max-width: 56%;
  }
  .promotion-controls {
    right: 26px;
    bottom: 24px;
  }
}
@media (max-width: 600px) {
  .promotions {
    min-height: 390px;
    display: block;
  }
  .promotion-slide {
    inset: 10px;
  }
  .promotion-copy {
    left: 7%;
    top: auto;
    right: 7%;
    bottom: 18%;
    max-width: none;
    transform: none;
  }
  .promotion-copy h2 {
    font-size: 34px;
  }
  .promotion-copy p {
    font-size: 12px;
  }
  .promotion-slide::after {
    background: linear-gradient(
      0deg,
      #07182de8 0,
      #07182d99 50%,
      transparent 78%
    );
  }
  .promotion-controls {
    right: 18px;
    bottom: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .promotion-slide,
  .welcome-stage .start-purchase {
    transition: none;
  }
}
.promotion-slide {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.promotion-slide::after {
  display: none;
}
.promotion-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 2px solid #ffffffc9;
  border-radius: 17px;
  background: #102d5c;
  box-shadow: 0 12px 28px #061b486b;
}
.promotion-card.featured {
  grid-row: 1/3;
}
.promotion-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.promotion-card span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #0b1d37d9;
  color: #fff;
  font:
    700 11px Consolas,
    monospace;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px #0005;
}
.promotion-controls {
  right: 32px;
  bottom: 30px;
}
.promotion-controls::before {
  content: "9 anuncios";
  padding-left: 8px;
  color: #fff;
  font:
    700 9px Consolas,
    monospace;
  letter-spacing: 0.8px;
}
@media (max-width: 600px) {
  .promotion-slide {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.25fr 0.75fr;
    gap: 8px;
  }
  .promotion-card.featured {
    grid-row: auto;
    grid-column: 1/-1;
  }
  .promotion-controls::before {
    display: none;
  }
}
.promotion-card img {
  object-fit: contain;
}
.promotion-slide:nth-of-type(1) .promotion-card:nth-child(1) {
  background: #f28a1a;
}
.promotion-slide:nth-of-type(1) .promotion-card:nth-child(2) {
  background: #a90e15;
}
.promotion-slide:nth-of-type(1) .promotion-card:nth-child(3) {
  background: #07588d;
}
.promotion-slide:nth-of-type(2) .promotion-card:nth-child(1) {
  background: #5a260f;
}
.promotion-slide:nth-of-type(2) .promotion-card:nth-child(2) {
  background: #bd2930;
}
.promotion-slide:nth-of-type(2) .promotion-card:nth-child(3) {
  background: #56723f;
}
.promotion-slide:nth-of-type(3) .promotion-card:nth-child(1) {
  background: #173d8d;
}
.promotion-slide:nth-of-type(3) .promotion-card:nth-child(2) {
  background: #ee0039;
}
.promotion-slide:nth-of-type(3) .promotion-card:nth-child(3) {
  background: #b50e17;
}
.promotion-card img {
  object-fit: cover;
}
.promotion-slide:nth-of-type(1) .promotion-card.featured img {
  object-position: center;
}
.promotion-slide:nth-of-type(2) .promotion-card.featured img {
  object-position: center 42%;
}
.promotion-slide:nth-of-type(3) .promotion-card.featured img {
  object-position: center;
}
.promotion-slide .promotion-card:nth-child(2) img,
.promotion-slide .promotion-card:nth-child(3) img {
  object-position: center;
}
.promotion-controls::before {
  content: "7 anuncios";
}
.promotion-slide {
  transform: translateX(70px) scale(0.975);
  transition:
    opacity 0.68s ease,
    transform 0.68s cubic-bezier(0.22, 0.75, 0.25, 1),
    visibility 0.68s;
}
.promotion-slide.was-active {
  visibility: visible;
  transform: translateX(-70px) scale(0.975);
}
.promotion-slide.promotion-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.promotion-wide .promotion-card:nth-child(1),
.promotion-wide .promotion-card:nth-child(2) {
  grid-column: span 2;
}
.promotion-wide .promotion-portrait {
  grid-row: 1/3;
}
.promotion-wide .promotion-card:nth-child(3) {
  grid-column: 3;
}
.promotion-wide .promotion-card:nth-child(4) {
  grid-column: 4;
}
.promotion-three .promotion-card:nth-child(3) {
  grid-column: 3/5;
  grid-row: 1/3;
}
.promotion-slide.promotion-mixed {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 1.45fr 0.8fr;
}
.promotion-mixed .promotion-colgate {
  grid-column: 1/4;
}
.promotion-mixed .promotion-colgate img {
  object-position: center;
}
.promotion-card img {
  object-fit: cover;
  background: none;
  backdrop-filter: none;
}
.promotion-wide .promotion-card:nth-child(1) img {
  object-position: center;
}
.promotion-wide .promotion-card:nth-child(2) img {
  object-position: center 48%;
}
.promotion-controls::before {
  display: none;
}
.promotion-dot {
  position: relative;
  overflow: hidden;
  transition: width 0.25s ease;
}
.promotion-dot.active {
  width: 46px;
  background: #ffffff45;
}
.promotion-dot.active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #ff8a26;
  transform-origin: left;
  animation: promotion-time 6.5s linear forwards;
}
.promotion-controls > div.restart .promotion-dot.active::after {
  animation: none;
}
@keyframes promotion-time {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@media (max-width: 600px) {
  .promotion-slide.promotion-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .promotion-slide.promotion-square {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 1fr;
  }
  .promotion-card {
    border-radius: 11px;
  }
  .promotion-slide {
    gap: 6px;
  }
  .promotion-controls {
    right: 14px;
    bottom: 14px;
  }
}

/* Entrada suave al cambiar entre escaneo y selección manual */
#scan-view:not([hidden]),
#catalog:not([hidden]) {
  animation: mode-content-enter 420ms cubic-bezier(0.22, 0.75, 0.25, 1) both;
}

#purchase-intro:not([hidden]) {
  animation: mode-intro-enter 360ms cubic-bezier(0.22, 0.75, 0.25, 1) both;
}

@keyframes mode-content-enter {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes mode-intro-enter {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Evita animaciones cuando el usuario solicita menos movimiento */
@media (prefers-reduced-motion: reduce) {
  #scan-view:not([hidden]),
  #catalog:not([hidden]),
  #purchase-intro:not([hidden]) {
    animation: none;
  }
}

.age-restriction-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem;
  border: 2px solid #ff8526;
  border-radius: 999px;
  background: #fff2e6;
  color: #9b3500;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
}

.age-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 0.55rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.age-status-pending {
  border: 1px solid #ffb577;
  background: #fff0df;
  color: #873800;
}

.age-status-approved {
  border: 1px solid #8bd0ad;
  background: #eaf9f1;
  color: #12643a;
}

.age-warning {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 2px solid #ff9b45;
  border-radius: 1rem;
  background: #fff4e8;
  color: #6f2d00;
}

.age-warning-icon {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #ff8526;
  color: #fff;
  font-weight: 900;
}

.age-warning strong {
  align-self: end;
  font-size: 1rem;
}

.age-warning p {
  margin: 0;
  line-height: 1.45;
}

.authorize-age-button {
  grid-column: 2;
  justify-self: start;
  margin-top: 0.45rem;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #ff8526;
  color: #102c5c;
  font-weight: 900;
  cursor: pointer;
}

.authorize-age-button:hover { background: #ff9e4d; }
.authorize-age-button:disabled { cursor: not-allowed; opacity: 0.55; }

.age-verification-dialog {
  width: min(92vw, 34rem);
  padding: 0;
  border: 0;
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 4rem rgb(8 35 81 / 35%);
}

.age-verification-dialog::backdrop {
  background: rgb(6 25 58 / 68%);
  backdrop-filter: blur(4px);
}

.age-verification-shell { display: flex; flex-direction: column; }
.age-verification-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.25rem 1.4rem;
  background: #123d7a;
  color: #fff;
}
.age-verification-header h2 { margin: 0.25rem 0 0; }
.age-verification-content { display: grid; gap: 0.65rem; padding: 1.4rem; }
.age-verification-content label { color: #17335f; font-size: 0.85rem; font-weight: 800; }
.age-verification-content input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #b7c9e5;
  border-radius: 0.7rem;
  font: inherit;
}
.age-verification-content input:focus {
  border-color: #2463df;
  outline: 3px solid rgb(36 99 223 / 18%);
}
.age-verification-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  margin-bottom: 0.65rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #fff1e4;
  color: #703000;
}
.age-verification-notice p { margin: 0.25rem 0 0; line-height: 1.45; }
.age-verification-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #ff8526;
  color: #fff;
  font-weight: 900;
}
.age-verification-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.4rem 1.4rem;
}
.age-verification-form[aria-busy="true"] { cursor: wait; }

@media (max-width: 560px) {
  .age-verification-actions { flex-direction: column-reverse; }
  .age-verification-actions button { width: 100%; }
}
