:root {
  --azul: #0F1F4D;
  --azul-2: #1E3470;
  --azul-3: #2A417F;
  --rosa: #E6198A;
  --rosa-texto: #B5126C;
  --amarillo: #FFD21F;
  --celeste: #6CC4F0;
  --verde: #25D366;
  --gris-claro: #E8EEF9;
  --gris-texto: #4A5A80;
  --texto-suave: #C9D6F2;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--azul);
  color: #FFFFFF;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; cursor: pointer; }
a { color: var(--celeste); }
img { display: block; }

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.anton { font-family: Anton, Impact, sans-serif; font-weight: 400; }
.oswald { font-family: Oswald, sans-serif; }

/* ---------- Franja de lanzamiento ---------- */
.franja {
  background: var(--rosa);
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: clamp(11px, 3.2vw, 13px);
  letter-spacing: .5px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

/* ---------- Catálogo ---------- */
.catalogo {
  padding: 0 18px 130px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cabecera {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
}
.cabecera img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
.btn-borde {
  font-size: 13px;
  font-weight: 600;
  border: 2px solid var(--celeste);
  border-radius: 20px;
  padding: 10px 14px;
  background: transparent;
  color: var(--celeste);
  text-decoration: none;
  min-height: 44px;
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(38px, 12vw, 48px);
  line-height: 1;
  color: var(--amarillo);
  text-shadow: 4px 4px 0 var(--rosa);
}
.cinta {
  background: var(--rosa);
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 6px 12px;
  transform: rotate(-2deg);
}
.hero p { margin: 4px 0 0; font-size: 14px; color: var(--texto-suave); }

/* Cartel de precios */
.cartel {
  background: var(--amarillo);
  color: var(--azul);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 5px 5px 0 var(--rosa);
}
.cartel-titulo { font-family: Anton, Impact, sans-serif; font-size: 28px; line-height: 1.05; }
.filas { display: flex; flex-direction: column; gap: 6px; }
.fila {
  position: relative;
  background: #FFFFFF;
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  align-items: center;
  gap: 8px;
}
.fila .cant { font-family: Oswald, sans-serif; font-weight: 700; font-size: 15px; }
.fila .cu { font-size: 13px; }
.fila .total { font-family: Anton, Impact, sans-serif; font-size: 18px; }
.fila.destacada { background: var(--azul); color: #FFFFFF; padding: 10px; border: 2px solid var(--rosa); }
.fila.destacada strong, .fila.destacada .total { color: var(--amarillo); }
.fila.mejor { background: var(--rosa); color: #FFFFFF; padding: 10px; }
.fila.destacada .total, .fila.mejor .total { font-size: 20px; }
.fila .sello {
  position: absolute;
  top: -10px;
  right: 10px;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--rosa);
  color: #FFFFFF;
}
.fila.mejor .sello { background: var(--azul); }
.cartel-pie { font-size: 13px; font-weight: 600; text-align: center; }

.social {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--azul-2);
  border: 2px solid var(--celeste);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
}
.punto { width: 10px; height: 10px; border-radius: 5px; background: var(--verde); flex-shrink: 0; animation: latido 1.6s infinite; }
@keyframes latido { 50% { opacity: .35; } }

/* Filtros */
.filtros {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -18px;
  padding: 2px 18px 4px;
  scrollbar-width: none;
}
.filtros::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  border: 2px solid var(--celeste);
  background: transparent;
  color: #FFFFFF;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}
.chip.activo { background: var(--amarillo); border-color: var(--amarillo); color: var(--azul); }

/* Grilla */
.grilla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tarjeta {
  background: #FFFFFF;
  color: var(--azul);
  border: 3px solid var(--celeste);
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tarjeta.tendencia { border-color: var(--rosa); }
.tarjeta.nuevo { border-color: var(--amarillo); }
.foto {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--gris-claro);
  overflow: hidden;
}
.foto img { width: 100%; height: 100%; object-fit: cover; }
.etiqueta {
  position: absolute;
  top: 6px;
  left: 6px;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.etiqueta.tendencia { background: var(--rosa); color: #FFFFFF; }
.etiqueta.nuevo { background: var(--amarillo); color: var(--azul); }
.etiqueta.masvendido { background: var(--azul); color: #FFFFFF; }
.tarjeta .nombre { font-family: Oswald, sans-serif; font-weight: 700; font-size: 15px; line-height: 1.2; }
.tarjeta .dato { font-size: 12px; color: var(--gris-texto); font-weight: 600; min-height: 15px; }
.tarjeta .dato.caliente { color: var(--rosa-texto); }
.btn-agregar {
  margin-top: auto;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: var(--rosa);
  color: #FFFFFF;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 15px;
}
.btn-agregar.agregado { background: var(--azul); }
.vacio { grid-column: 1 / -1; text-align: center; color: var(--texto-suave); padding: 24px 0; }

.proxima {
  background: var(--azul-2);
  border: 2px dashed var(--celeste);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proxima .anton { font-size: 24px; }
.proxima span:last-child { font-size: 14px; color: var(--amarillo); font-weight: 600; }

/* Barra fija del carrito */
.barra {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom));
  width: calc(min(480px, 100vw) - 24px);
  background: var(--amarillo);
  color: var(--azul);
  border-radius: 18px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 4px 4px 0 var(--rosa);
  z-index: 10;
}
.barra .info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.barra .info b { font-family: Oswald, sans-serif; font-weight: 700; font-size: 15px; }
.barra .info span { font-size: 12px; font-weight: 600; }
.barra .info span.fuerte { color: var(--rosa-texto); }
.btn {
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: none;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.btn-azul { background: var(--azul); color: #FFFFFF; }
.con-barra .whatsapp { bottom: calc(112px + env(safe-area-inset-bottom)); }

/* ---------- Carrito ---------- */
.carrito {
  padding: 20px 20px 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100vh;
  min-height: 100dvh;
}
.carrito-cab { display: flex; align-items: center; gap: 10px; }
.btn-volver {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  border: 2px solid var(--celeste);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.carrito h1 {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-weight: 400;
  font-size: 34px;
  color: var(--amarillo);
  text-shadow: 3px 3px 0 var(--rosa);
}
.empuje {
  background: var(--rosa);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.empuje b { font-family: Oswald, sans-serif; font-weight: 700; font-size: 16px; line-height: 1.25; }
.empuje span { font-size: 12px; }
.empuje.fuerte { background: var(--amarillo); color: var(--azul); box-shadow: 4px 4px 0 var(--rosa); }
.progreso { height: 12px; border-radius: 6px; background: rgba(255,255,255,.3); overflow: hidden; }
.empuje.fuerte .progreso { background: rgba(15,31,77,.15); }
.progreso div { height: 100%; background: var(--amarillo); transition: width .4s; }
.empuje.fuerte .progreso div { background: var(--rosa); }

/* Alerta fuerte del carrito */
.alerta {
  position: relative;
  background: var(--amarillo);
  color: var(--azul);
  border: 4px solid var(--rosa);
  border-radius: 20px;
  padding: 26px 16px 16px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 6px 6px 0 var(--rosa);
  animation: sacudon .6s ease-out 2;
}
@keyframes sacudon {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-1.5deg); }
  75% { transform: rotate(1.5deg); }
}
.alerta-sello {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  white-space: nowrap;
  background: var(--rosa);
  color: #FFFFFF;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 5px 14px;
  border-radius: 8px;
  animation: latido 1.4s infinite;
}
.comparar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.caja {
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}
.caja.hoy { background: #FFFFFF; border: 2px dashed var(--gris-texto); }
.caja.combo { background: var(--azul); color: #FFFFFF; border: 2px solid var(--azul); }
.caja-titulo { font-family: Oswald, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1px; }
.caja.combo .caja-titulo { color: var(--amarillo); }
.caja-cant { font-family: Oswald, sans-serif; font-weight: 600; font-size: 17px; }
.caja-precio { font-family: Anton, Impact, sans-serif; font-size: 28px; line-height: 1.1; }
.caja.hoy .caja-precio { text-decoration: line-through; text-decoration-color: var(--rosa); text-decoration-thickness: 3px; }
.caja.combo .caja-precio { color: var(--amarillo); }
.flecha { font-size: 24px; color: var(--rosa); font-weight: 700; }
.alerta-texto { margin: 0; font-size: 17px; line-height: 1.35; text-align: center; }
.alerta .progreso { height: 16px; border-radius: 8px; background: rgba(15,31,77,.15); }
.alerta .progreso div { background: var(--rosa); }
.alerta-cuenta { font-size: 13px; font-weight: 700; text-align: center; margin-top: -6px; }
.btn-alerta {
  height: 58px;
  border-radius: 14px;
  border: none;
  background: var(--rosa);
  color: #FFFFFF;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 19px;
  box-shadow: 4px 4px 0 var(--azul);
}

/* Barra del catálogo en modo alerta */
.barra.alerta-barra { background: var(--rosa); color: #FFFFFF; box-shadow: 4px 4px 0 var(--amarillo); }
.barra.alerta-barra .info span { font-size: 13px; font-weight: 700; color: var(--amarillo); }

.items { display: flex; flex-direction: column; gap: 10px; }
.item {
  background: #FFFFFF;
  color: var(--azul);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.item img { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; }
.item .textos { flex: 1; display: flex; flex-direction: column; }
.item .textos b { font-family: Oswald, sans-serif; font-weight: 700; font-size: 16px; }
.item .textos span { font-size: 13px; color: var(--gris-texto); }
.btn-quitar { width: 44px; height: 44px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; }

.sugeridos-titulo { font-family: Oswald, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 1px; color: var(--celeste); }
.sugeridos { display: flex; gap: 10px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.sugeridos::-webkit-scrollbar { display: none; }
.sugerido {
  flex: 0 0 150px;
  background: var(--azul-2);
  border: 2px solid var(--celeste);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sugerido img { width: 100%; aspect-ratio: 1 / 1; border-radius: 8px; }
.sugerido span { font-family: Oswald, sans-serif; font-size: 14px; font-weight: 600; }
.sugerido button {
  margin-top: auto;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: var(--amarillo);
  color: var(--azul);
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.ver-catalogo { align-self: flex-start; font-size: 14px; font-weight: 600; }

.pago {
  margin-top: auto;
  background: #FFFFFF;
  color: var(--azul);
  border-radius: 18px;
  border: 3px solid var(--amarillo);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.linea { display: flex; justify-content: space-between; font-size: 14px; }
.linea.descuento { color: var(--rosa-texto); font-weight: 600; }
.armado { font-size: 12px; color: var(--gris-texto); }
.linea.total { align-items: baseline; border-top: 2px solid var(--gris-claro); padding-top: 8px; }
.linea.total span:first-child { font-family: Oswald, sans-serif; font-weight: 700; font-size: 18px; }
.linea.total span:last-child { font-family: Anton, Impact, sans-serif; font-size: 30px; }
.pago label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.pago input {
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--azul);
  padding: 0 14px;
  font-size: 16px;
  font-family: Inter, sans-serif;
}
.pago input.error { border-color: var(--rosa); }
.error-texto { color: var(--rosa-texto); font-size: 12px; font-weight: 600; }
.btn-pagar {
  height: 56px;
  border-radius: 14px;
  border: none;
  background: var(--azul);
  color: #FFFFFF;
  font-family: Oswald, sans-serif;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 4px 4px 0 var(--rosa);
}
.pago small { text-align: center; font-size: 12px; color: var(--gris-texto); }

.carrito-vacio { text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; padding: 40px 0; color: var(--texto-suave); }
.btn-amarillo { background: var(--amarillo); color: var(--azul); }

/* ---------- WhatsApp ---------- */
.whatsapp {
  position: fixed;
  right: max(16px, calc(50vw - 240px + 16px));
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 29px;
  background: var(--verde);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0 #0A1636, 0 0 0 2px #FFFFFF;
  z-index: 11;
  transition: bottom .2s;
}

/* ---------- Diálogo ---------- */
.dialogo {
  border: 3px solid var(--amarillo);
  border-radius: 18px;
  padding: 20px;
  max-width: 340px;
  color: var(--azul);
  text-align: center;
}
.dialogo::backdrop { background: rgba(15,31,77,.7); }
.dialogo p { margin: 0 0 16px; font-size: 15px; line-height: 1.4; }
