/* ============================================================
   SIPOTE MALTEADA · estilos.css · v2 "Candy Pop"
   Diseño original: redondo, colorido y juguetón sobre la
   identidad Sipote (azul royal + amarillo + crema).
   Mismas clases y estructura del sistema — solo cambia la piel.
   ============================================================ */

:root {
  --azul:        #2247B2;
  --azul-2:      #4A7CFF;
  --azul-hover:  #1B3A94;
  --tinta:       #17224A;
  --papel:       #FFF7EC;
  --hueso:       #FFFFFF;
  --amarillo:    #FFC93C;
  --naranja:     #FF9430;
  --verde:       #1E9E5A;
  --verde-2:     #35C97E;
  --rojo:        #FF5A4E;
  --lila:        #B79BFF;
  --gris:        #5B6483;
  --radio:       22px;
  --rail:        1160px;
  --fuente:        'Nunito', system-ui, -apple-system, sans-serif;
  --fuente-titulo: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --sombra-azul:   0 10px 26px rgba(34, 71, 178, .16);
  --sombra-suave:  0 8px 22px rgba(23, 34, 74, .10);
  --rebote: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  color: var(--tinta);
  font-family: var(--fuente);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(600px 380px at 8% -4%,  rgba(255, 201, 60, .22), transparent 62%),
    radial-gradient(560px 400px at 96% 2%,  rgba(74, 124, 255, .14), transparent 60%),
    radial-gradient(700px 460px at 50% 108%, rgba(183, 155, 255, .16), transparent 62%),
    var(--papel);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--azul); }
[x-cloak] { display: none !important; }
:focus-visible { outline: 3px solid var(--azul-2); outline-offset: 3px; border-radius: 8px; }

/* ---------- Animaciones (propias) ---------- */
@keyframes sp-pop {
  0%   { opacity: 0; transform: scale(.86) translateY(14px); }
  70%  { opacity: 1; transform: scale(1.03) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes sp-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes sp-wiggle {
  0%, 100% { transform: rotate(-3deg); }
  50%      { transform: rotate(3deg); }
}
@keyframes sp-ring {
  0%   { box-shadow: 0 0 0 0 rgba(255, 201, 60, .55); }
  100% { box-shadow: 0 0 0 18px rgba(255, 201, 60, 0); }
}
@keyframes sp-slide {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes sp-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}

/* ---------- Franja arcoíris (firma de marca, versión candy) ---------- */
.arcoiris {
  display: block; height: 8px; width: 100%;
  background: linear-gradient(90deg,
    #FF5A4E, #FF9430, #FFC93C, #35C97E, #4A7CFF, #B79BFF, #FF5A4E);
  background-size: 200% 100%;
  animation: sp-slide 14s linear infinite;
}
.arcoiris i { display: none; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(23, 34, 74, .08);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px max(16px, calc((100% - var(--rail)) / 2)); flex-wrap: wrap;
}
.topbar .arcoiris { position: absolute; left: 0; right: 0; bottom: -8px; }
.marca { text-decoration: none; }
.marca-nombre {
  font-family: var(--fuente-titulo); font-weight: 800; font-size: 23px;
  letter-spacing: -.3px;
  background: linear-gradient(92deg, var(--azul) 20%, var(--azul-2) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topbar-der { display: flex; align-items: center; gap: 10px; }

.chip {
  font-size: 13px; font-weight: 800; padding: 6px 13px;
  border: 0; border-radius: 999px; background: #F1EEFF; color: var(--tinta);
  white-space: nowrap; box-shadow: inset 0 0 0 2px rgba(23, 34, 74, .06);
}
.chip-abierto { background: linear-gradient(135deg, var(--verde), var(--verde-2)); color: #fff; }
.chip-cerrado { background: linear-gradient(135deg, var(--rojo), #FF8A72); color: #fff; }

.btn-carrito {
  font-family: var(--fuente); font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--amarillo), #FFD973);
  color: var(--tinta);
  border: 0; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 176, 32, .38);
  padding: 10px 18px; cursor: pointer;
  transition: transform .18s var(--rebote), box-shadow .18s ease;
}
.btn-carrito:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 24px rgba(255, 176, 32, .45); }
.btn-carrito:active { transform: scale(.94); }
.carrito-n {
  display: inline-block; min-width: 23px; text-align: center;
  background: var(--tinta); color: var(--amarillo);
  border-radius: 999px; padding: 2px 7px; font-size: 13px; margin-left: 5px;
}

/* ---------- Aviso cerrado ---------- */
.aviso-cerrado {
  background: linear-gradient(90deg, var(--tinta), #26336B);
  color: #FDFCF8; text-align: center; font-size: 14px; font-weight: 600;
  padding: 10px 16px;
}
.aviso-cerrado strong { color: var(--amarillo); }

/* ---------- Hero (con emojis flotando) ---------- */
.hero { position: relative; padding: 40px 16px 22px; max-width: var(--rail); margin: 0 auto; }
.hero::before, .hero::after {
  position: absolute; font-size: 44px; line-height: 1; pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(23, 34, 74, .16));
  animation: sp-bob 5.5s ease-in-out infinite;
}
.hero::before { content: '🥤'; right: max(20px, calc((100% - var(--rail)) / 2 + 90px)); top: 26px; }
.hero::after  { content: '🍔'; right: max(64px, calc((100% - var(--rail)) / 2 + 190px)); top: 96px; font-size: 38px; animation-delay: 1.4s; animation-duration: 6.5s; }
.hero h1 {
  font-family: var(--fuente-titulo); font-weight: 800;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.04; letter-spacing: -1px;
  margin: 0 0 10px; max-width: 16ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, var(--azul-2), var(--lila));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 0 0 18px; font-size: 17px; max-width: 52ch; color: var(--gris); font-weight: 600; }
.hero .cta {
  display: inline-block; text-decoration: none;
  background: linear-gradient(135deg, var(--azul), var(--azul-2));
  color: #fff; font-weight: 800; font-size: 17px;
  border: 0; border-radius: 999px; box-shadow: var(--sombra-azul);
  padding: 14px 28px;
  transition: transform .18s var(--rebote), box-shadow .18s ease;
}
.hero .cta:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 34px rgba(34, 71, 178, .30); }
.hero .cta:active { transform: scale(.95); }

/* ---------- Secciones y grilla ---------- */
.seccion { max-width: var(--rail); margin: 0 auto; padding: 30px 16px 8px; }
.seccion h2 {
  font-family: var(--fuente-titulo); font-weight: 800; font-size: 27px;
  margin: 0 0 4px; display: inline-block;
  background: linear-gradient(135deg, var(--azul), var(--azul-2));
  color: #fff; border-radius: 999px; box-shadow: var(--sombra-azul);
  padding: 8px 22px; transform: rotate(-1deg);
}
.seccion .sub { margin: 10px 0 0; font-size: 14px; color: var(--gris); font-weight: 600; }

.grid {
  display: grid; gap: 18px; margin-top: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.grid:has(> .card:only-child) { grid-template-columns: minmax(250px, 460px); }

/* ---------- Tarjeta de producto ---------- */
.card {
  background: var(--hueso);
  border: 0; border-radius: var(--radio);
  box-shadow: var(--sombra-suave);
  padding: 18px; display: flex; flex-direction: column; gap: 9px;
  animation: sp-pop .5s var(--rebote) backwards;
  transition: transform .22s var(--rebote), box-shadow .22s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(23, 34, 74, .15); }
.card:nth-child(2) { animation-delay: .05s; } .card:nth-child(3) { animation-delay: .1s; }
.card:nth-child(4) { animation-delay: .15s; } .card:nth-child(5) { animation-delay: .2s; }
.card:nth-child(6) { animation-delay: .25s; } .card:nth-child(7) { animation-delay: .3s; }
.card:nth-child(n+8) { animation-delay: .35s; }
.card h3 { margin: 0; font-family: var(--fuente-titulo); font-size: 18px; font-weight: 700; line-height: 1.2; }
.card .desc { margin: 0; font-size: 13.5px; color: var(--gris); font-weight: 600; }
.card .precio {
  align-self: flex-start;
  font-weight: 800; font-size: 17px; color: var(--tinta);
  background: linear-gradient(135deg, var(--amarillo), #FFD973);
  border: 0; border-radius: 999px; padding: 4px 14px;
  box-shadow: 0 5px 12px rgba(255, 176, 32, .30);
}
.card select {
  font-family: var(--fuente); font-weight: 700; font-size: 14.5px;
  border: 2px solid #E7E3F6; border-radius: 14px;
  padding: 10px 12px; background: #FBFAFF; color: var(--tinta); width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card select:focus { border-color: var(--azul-2); box-shadow: 0 0 0 4px rgba(74, 124, 255, .15); outline: none; }
.card select.falta { border-color: var(--rojo); background: #FFF0EE; animation: sp-wiggle .3s ease 2; }
.card .agregar {
  margin-top: auto;
  font-family: var(--fuente); font-weight: 800; font-size: 15px;
  background: linear-gradient(135deg, var(--azul), var(--azul-2));
  color: #fff; border: 0; border-radius: 999px;
  box-shadow: var(--sombra-azul);
  padding: 12px 14px; cursor: pointer;
  transition: transform .18s var(--rebote), box-shadow .18s ease;
}
.card .agregar:hover:not(:disabled) { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 28px rgba(34, 71, 178, .28); }
.card .agregar:active:not(:disabled) { transform: scale(.94); }
.card .agregar:disabled { background: #C4C9DD; box-shadow: none; cursor: not-allowed; }

/* ---------- Carrito (panel lateral) ---------- */
.velo {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(23, 34, 74, .45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(420px, 100%);
  background: var(--papel);
  border-radius: 26px 0 0 26px;
  box-shadow: -14px 0 40px rgba(23, 34, 74, .22);
  display: flex; flex-direction: column;
}
.panel-cab {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px; background: var(--hueso);
  border-radius: 26px 0 0 0;
  box-shadow: 0 6px 16px rgba(23, 34, 74, .06);
}
.panel-cab h2 { margin: 0; font-family: var(--fuente-titulo); font-weight: 800; font-size: 22px; }
.panel-cerrar {
  background: #F1EEFF; border: 0; border-radius: 999px;
  font-size: 16px; font-weight: 800; width: 38px; height: 38px; cursor: pointer;
  transition: transform .18s var(--rebote), background .15s ease;
}
.panel-cerrar:hover { background: #E4DEFF; transform: rotate(90deg); }
.panel-items { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.panel-vacio { text-align: center; color: var(--gris); margin-top: 40px; font-size: 15px; font-weight: 700; }
.item {
  background: var(--hueso); border: 0; border-radius: 18px;
  box-shadow: var(--sombra-suave);
  padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  animation: sp-pop .35s var(--rebote) backwards;
}
.item-info { flex: 1; min-width: 0; }
.item-info strong { display: block; font-size: 14.5px; line-height: 1.25; }
.item-info span { font-size: 13px; color: var(--gris); font-weight: 600; }
.item-qty { display: flex; align-items: center; gap: 7px; }
.item-qty button {
  width: 32px; height: 32px; font-size: 16px; font-weight: 800;
  background: linear-gradient(135deg, var(--amarillo), #FFD973);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 176, 32, .32);
  transition: transform .18s var(--rebote);
}
.item-qty button:hover { transform: scale(1.12); }
.item-qty button:active { transform: scale(.88); }
.item-qty b { min-width: 20px; text-align: center; font-size: 15px; }
.panel-pie { background: var(--hueso); padding: 16px; border-radius: 0 0 0 26px; box-shadow: 0 -6px 16px rgba(23, 34, 74, .06); }
.panel-total { display: flex; justify-content: space-between; font-size: 19px; font-weight: 800; margin-bottom: 12px; font-family: var(--fuente-titulo); }
.btn-pagar {
  display: block; width: 100%; text-align: center; text-decoration: none;
  font-family: var(--fuente); font-weight: 800; font-size: 17px;
  background: linear-gradient(135deg, var(--verde), var(--verde-2));
  color: #fff; border: 0; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(30, 158, 90, .32);
  padding: 15px; cursor: pointer;
  transition: transform .18s var(--rebote), box-shadow .18s ease;
}
.btn-pagar:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 30px rgba(30, 158, 90, .40); }
.btn-pagar:active { transform: scale(.96); }
.btn-pagar[disabled], .btn-pagar.off { background: #C4C9DD; box-shadow: none; pointer-events: none; }

/* ---------- Checkout ---------- */
.hoja { max-width: 640px; margin: 0 auto; padding: 26px 16px 60px; }
.hoja h1 { font-family: var(--fuente-titulo); font-weight: 800; font-size: 31px; margin: 0 0 18px; }
.bloque {
  background: var(--hueso); border: 0; border-radius: var(--radio);
  box-shadow: var(--sombra-suave); padding: 20px; margin-bottom: 18px;
  animation: sp-pop .45s var(--rebote) backwards;
}
.bloque:nth-of-type(2) { animation-delay: .06s; }
.bloque:nth-of-type(3) { animation-delay: .12s; }
.bloque:nth-of-type(4) { animation-delay: .18s; }
.bloque h2 { margin: 0 0 12px; font-family: var(--fuente-titulo); font-size: 18px; font-weight: 700; }
.campo { margin-bottom: 12px; }
.campo label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.campo input[type=text], .campo input[type=tel], .campo input[type=email], .campo textarea, .campo select {
  width: 100%; font-family: var(--fuente); font-weight: 700; font-size: 16px;
  border: 2px solid #E7E3F6; border-radius: 14px;
  padding: 12px 14px; background: #FBFAFF; color: var(--tinta);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.campo input:focus, .campo textarea:focus, .campo select:focus {
  border-color: var(--azul-2); box-shadow: 0 0 0 4px rgba(74, 124, 255, .15); outline: none;
}
.campo textarea { resize: vertical; min-height: 64px; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opcion {
  border: 2px solid #E7E3F6; border-radius: 16px; background: #FBFAFF;
  padding: 13px; cursor: pointer; display: flex; gap: 8px; align-items: flex-start;
  font-size: 14.5px; font-weight: 800;
  transition: transform .18s var(--rebote), background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.opcion:hover { transform: translateY(-2px); }
.opcion input { margin-top: 2px; accent-color: var(--azul); }
.opcion.activa {
  background: linear-gradient(135deg, var(--azul), var(--azul-2));
  border-color: transparent; color: #fff;
  box-shadow: var(--sombra-azul);
}
.opcion small { display: block; font-weight: 600; color: var(--gris); margin-top: 2px; }
.opcion.activa small { color: rgba(255, 255, 255, .85); }
.opcion.activa input { accent-color: #fff; }
.linea { display: flex; justify-content: space-between; font-size: 15px; padding: 4px 0; font-weight: 700; }
.linea.total { font-family: var(--fuente-titulo); font-size: 20px; font-weight: 800; border-top: 2px dashed #E0DBF2; margin-top: 8px; padding-top: 10px; }
.error {
  background: #FFF0EE; border: 2px solid var(--rojo); color: #B03328;
  border-radius: 16px; padding: 12px 15px; font-size: 14.5px; font-weight: 800; margin-bottom: 14px;
  animation: sp-wiggle .3s ease 2;
}
.btn-principal {
  display: block; width: 100%; text-align: center;
  font-family: var(--fuente); font-weight: 800; font-size: 18px;
  background: linear-gradient(135deg, var(--verde), var(--verde-2));
  color: #fff; border: 0; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(30, 158, 90, .32);
  padding: 16px; cursor: pointer;
  transition: transform .18s var(--rebote), box-shadow .18s ease;
}
.btn-principal:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 30px rgba(30, 158, 90, .40); }
.btn-principal:active:not(:disabled) { transform: scale(.96); }
.btn-principal:disabled { background: #C4C9DD; box-shadow: none; cursor: wait; }
.volver { display: inline-block; margin-bottom: 14px; font-size: 14px; font-weight: 800; }

/* ---------- Gracias ---------- */
.gracias-icono {
  width: 78px; height: 78px; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--verde), var(--verde-2));
  color: #fff; font-size: 36px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(30, 158, 90, .35); margin-bottom: 16px;
  animation: sp-pop .55s var(--rebote) backwards;
}
.gracias-codigo {
  font-family: var(--fuente-titulo); font-size: 23px; font-weight: 800; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--amarillo), #FFD973);
  border: 0; border-radius: 999px;
  display: inline-block; padding: 8px 20px;
  box-shadow: 0 8px 18px rgba(255, 176, 32, .35);
}

/* ---------- Funnel: inicio (elige categoría) ---------- */
.tienda { padding-bottom: 110px; min-height: 55vh; }
.hero-funnel { padding-bottom: 4px; }
.cat-tiles {
  max-width: var(--rail); margin: 0 auto;
  padding: 8px 16px 36px;
  display: grid; gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}
.cat-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  background: var(--hueso); border: 0; border-radius: var(--radio);
  box-shadow: var(--sombra-suave); padding: 18px 16px;
  font-family: var(--fuente); text-align: left; cursor: pointer;
  animation: sp-pop .5s var(--rebote) backwards;
  transition: transform .22s var(--rebote), box-shadow .22s ease;
}
.cat-tile:nth-child(2) { animation-delay: .05s; } .cat-tile:nth-child(3) { animation-delay: .1s; }
.cat-tile:nth-child(4) { animation-delay: .15s; } .cat-tile:nth-child(5) { animation-delay: .2s; }
.cat-tile:nth-child(6) { animation-delay: .25s; } .cat-tile:nth-child(7) { animation-delay: .3s; }
.cat-tile:nth-child(n+8) { animation-delay: .35s; }
.cat-tile:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 16px 34px rgba(23, 34, 74, .16); }
.cat-tile:active { transform: scale(.95); }
.cat-emoji { font-size: 42px; line-height: 1; animation: sp-float 4s ease-in-out infinite; }
.cat-tile:nth-child(2n) .cat-emoji { animation-delay: .8s; }
.cat-tile:nth-child(3n) .cat-emoji { animation-delay: 1.6s; animation-duration: 5s; }
.cat-tile:hover .cat-emoji { animation: sp-wiggle .4s ease infinite; }
.cat-nombre { font-family: var(--fuente-titulo); font-weight: 700; font-size: 17.5px; line-height: 1.15; }
.cat-n { font-size: 12.5px; color: var(--gris); font-weight: 800; }

/* ---------- Vista de categoría ---------- */
.vista-cab { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.volver-cats {
  font-family: var(--fuente); font-weight: 800; font-size: 14px;
  background: var(--hueso); border: 0; border-radius: 999px;
  padding: 10px 17px; cursor: pointer; box-shadow: var(--sombra-suave);
  transition: transform .18s var(--rebote), box-shadow .18s ease;
}
.volver-cats:hover { transform: translateX(-3px); box-shadow: 0 10px 22px rgba(23, 34, 74, .14); }
.volver-cats:active { transform: scale(.94); }

/* ---------- FAB: cambiar de categoría ---------- */
.fab {
  position: fixed; right: 18px; bottom: 20px; z-index: 50;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amarillo), var(--naranja));
  color: var(--tinta); border: 0;
  box-shadow: 0 12px 26px rgba(255, 148, 48, .40);
  font-size: 24px; cursor: pointer;
  animation: sp-ring 2.6s ease-out infinite;
  transition: transform .18s var(--rebote), bottom .15s ease-out;
}
.fab:hover { transform: scale(1.1) rotate(8deg); }
.fab:active { transform: scale(.9); }

/* ---------- Menú flotante de categorías ---------- */
.menu-flotante {
  position: fixed; z-index: 70; right: 18px; bottom: 92px;
  width: min(340px, calc(100vw - 36px)); max-height: 68vh; overflow-y: auto;
  background: var(--hueso); border: 0; border-radius: 24px;
  box-shadow: 0 20px 48px rgba(23, 34, 74, .26); padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  animation: sp-pop .3s var(--rebote) backwards;
}
.mf-titulo { margin: 0 0 4px; font-family: var(--fuente-titulo); font-weight: 800; font-size: 17px; }
.mf-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--fuente); font-weight: 800; font-size: 15px; text-align: left;
  background: #FBFAFF; border: 0; border-radius: 14px;
  padding: 11px 13px; cursor: pointer;
  transition: transform .18s var(--rebote), background .15s ease;
}
.mf-item.on { background: linear-gradient(135deg, var(--amarillo), #FFD973); }
.mf-item:hover { background: #F1EEFF; transform: translateX(4px); }
.mf-item.on:hover { background: linear-gradient(135deg, var(--amarillo), #FFD973); }
.mf-item:active { transform: scale(.96); }

/* ---------- Barra inferior: ver pedido ---------- */
.barra-pedido {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 55;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: min(560px, calc(100vw - 110px));
  background: linear-gradient(135deg, var(--verde), var(--verde-2));
  color: #fff; border: 0; border-radius: 999px;
  box-shadow: 0 14px 32px rgba(30, 158, 90, .42);
  padding: 14px 22px;
  font-family: var(--fuente); font-weight: 800; font-size: 16px; cursor: pointer;
  animation: sp-pop .4s var(--rebote) backwards;
  transition: transform .18s var(--rebote), box-shadow .18s ease;
}
.barra-pedido:hover { transform: translateX(-50%) translateY(-3px); box-shadow: 0 18px 38px rgba(30, 158, 90, .48); }
.barra-pedido:active { transform: translateX(-50%) scale(.97); }
.bp-n { background: #fff; color: var(--verde); border-radius: 999px; min-width: 26px; text-align: center; padding: 2px 9px; font-size: 14px; }

/* ---------- Seguir comprando ---------- */
.btn-seguir {
  display: block; width: 100%; text-align: center; margin-top: 10px;
  font-family: var(--fuente); font-weight: 800; font-size: 15px;
  background: #F1EEFF; color: var(--tinta);
  border: 0; border-radius: 999px;
  padding: 12px; cursor: pointer;
  transition: transform .18s var(--rebote), background .15s ease;
}
.btn-seguir:hover { background: #E4DEFF; }
.btn-seguir:active { transform: scale(.97); }

/* ---------- Puntos ---------- */
.pts-chip {
  display: inline-block;
  background: linear-gradient(135deg, var(--amarillo), #FFD973);
  border: 0; border-radius: 999px; padding: 2px 12px; font-weight: 800;
  box-shadow: 0 4px 10px rgba(255, 176, 32, .30);
}
.pts-hola { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.pts-linea { font-size: 15.5px; font-weight: 700; }
.pts-linea small { color: var(--gris); font-weight: 600; }
.canje-nota { margin: 10px 0 0; font-size: 13px; color: var(--gris); font-weight: 600; }

/* ---------- Footer ---------- */
.pie { margin-top: 54px; background: linear-gradient(135deg, var(--tinta), #232E63); color: #FDFCF8; }
.pie-info {
  max-width: var(--rail); margin: 0 auto; padding: 28px 16px;
  display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 600;
}
.pie-info strong { font-family: var(--fuente-titulo); font-weight: 800; font-size: 20px; color: var(--amarillo); }
.pie-info a { color: #FDFCF8; font-weight: 800; }

/* ---------- Ofertas (cinta abrazando la tarjeta) ---------- */
.card--oferta {
  position: relative; overflow: visible; margin-top: 14px;
  box-shadow: 0 0 0 3px var(--rojo), 0 14px 32px rgba(255, 90, 78, .28);
}
.card--oferta:hover { box-shadow: 0 0 0 3px var(--rojo), 0 20px 42px rgba(255, 90, 78, .36); }
.oferta-cinta {
  position: absolute; top: -15px; left: -10px; right: -10px; z-index: 2;
  background: linear-gradient(92deg, var(--rojo), var(--naranja));
  color: #fff; border: 0; border-radius: 999px;
  box-shadow: 0 8px 18px rgba(255, 90, 78, .40);
  font-family: var(--fuente-titulo); font-weight: 800;
  font-size: 13px; letter-spacing: .6px; text-transform: uppercase;
  text-align: center; padding: 5px 12px; transform: rotate(-2deg);
  animation: sp-wiggle 2.4s ease-in-out infinite;
}
.precios { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.precio-antes { text-decoration: line-through; color: #A0A7C4; font-weight: 800; font-size: 14px; }
.card--oferta .precio {
  background: linear-gradient(92deg, var(--rojo), var(--naranja));
  color: #fff; box-shadow: 0 5px 12px rgba(255, 90, 78, .34);
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 13px; }
  .card h3 { font-size: 15.5px; }
  .opciones { grid-template-columns: 1fr; }
  .hero::before { font-size: 34px; right: 16px; }
  .hero::after { display: none; }
  html { scroll-padding-top: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ── Logo y favoritos ────────────────────────────────────── */
.marca-logo { display: block; height: 46px; width: auto; }
.fav-chip {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--amarillo), var(--naranja));
  color: var(--tinta); font-weight: 800; font-size: 12px;
  border-radius: 999px; padding: 3px 11px;
  box-shadow: 0 4px 10px rgba(255, 176, 32, .32);
}
.destacados { padding-top: 4px; }
@media (max-width: 560px) {
  .marca-logo { height: 38px; }
}

/* ── Subcategorías (grupo dentro de la categoría) ────────── */
.sub-cat {
  display: inline-block; margin: 28px 0 0;
  font-family: var(--fuente-titulo); font-weight: 800; font-size: 19px;
  background: linear-gradient(135deg, var(--amarillo), var(--naranja));
  color: var(--tinta); border-radius: 999px; padding: 6px 18px;
  box-shadow: 0 8px 18px rgba(255, 176, 32, .32);
  transform: rotate(-1deg);
}

/* ── Nota de registro y puntos (checkout) ────────────────── */
.nota-registro {
  margin: -2px 0 14px; font-size: 13.5px; font-weight: 600;
  color: var(--gris); background: #F6F3FF;
  border-radius: 14px; padding: 10px 13px; line-height: 1.45;
}
.nota-registro b { color: var(--tinta); }

/* ── Mini panel de reconocimiento (checkout) ─────────────── */
.pts-panel {
  margin: 12px 0 2px; padding: 12px 15px;
  background: linear-gradient(135deg, #FFF6DC, #FFEFC2);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(255, 176, 32, .22);
  animation: sp-pop .35s var(--rebote) backwards;
}
.pts-panel p { margin: 0 0 5px; font-size: 14.5px; font-weight: 800; }
.pts-panel p:last-child { margin-bottom: 0; }
.pts-panel .pts-estado { font-weight: 600; color: #6B5A20; }

/* ── Selector de sabores con logos ───────────────────────── */
.sel-sabor { position: relative; }
.sel-btn {
  width: 100%; display: flex; align-items: center; gap: 9px;
  font-family: var(--fuente); font-weight: 700; font-size: 14.5px;
  border: 2px solid #E7E3F6; border-radius: 14px;
  padding: 10px 12px; background: #FBFAFF; color: var(--tinta);
  cursor: pointer; text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sel-btn:hover { border-color: #CFC6F0; }
.sel-btn.falta { border-color: var(--rojo); background: #FFF0EE; animation: sp-wiggle .3s ease 2; }
.sel-mini { width: 26px; height: 26px; object-fit: contain; }
.sel-caret { margin-left: auto; color: var(--gris); }
.sel-lista {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
  background: #fff; border-radius: 18px;
  box-shadow: 0 18px 44px rgba(23, 34, 74, .24);
  padding: 10px; max-height: 330px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 3px;
  animation: sp-pop .25s var(--rebote) backwards;
}
.sel-buscar {
  position: sticky; top: 0; z-index: 1;
  font-family: var(--fuente); font-weight: 700; font-size: 14px;
  border: 2px solid #E7E3F6; border-radius: 12px;
  padding: 9px 12px; background: #FBFAFF; margin-bottom: 6px;
}
.sel-buscar:focus { border-color: var(--azul-2); outline: none; }
.sel-op {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--fuente); font-weight: 700; font-size: 14.5px;
  border: 0; border-radius: 12px; background: transparent; color: var(--tinta);
  padding: 8px 10px; cursor: pointer; text-align: left;
}
.sel-op:hover { background: #F1EEFF; }
.sel-op img { width: 30px; height: 30px; object-fit: contain; }
.sel-op small { color: var(--gris); font-weight: 600; }
.sel-ph { width: 30px; text-align: center; font-size: 20px; }

/* ── Imagen de producto flotando en la esquina ───────────── */
.card { position: relative; }
.card-img {
  position: absolute; top: -22px; right: -12px; z-index: 3;
  width: 92px; height: 92px; object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(23, 34, 74, .22));
  animation: sp-bob 5.5s ease-in-out infinite;
  pointer-events: none;
}
.card:nth-child(2n) .card-img { animation-delay: .9s; }
.card:nth-child(3n) .card-img { animation-delay: 1.7s; animation-duration: 6.5s; }
.tiene-img h3 { padding-right: 76px; }
.tiene-img .fav-chip { max-width: calc(100% - 84px); }

/* ── Campanita de notificaciones ─────────────────────────── */
.notif { position: relative; }
.notif-btn {
  width: 42px; height: 42px; border: 0; border-radius: 999px;
  background: #F1EEFF; font-size: 19px; cursor: pointer; position: relative;
  transition: transform .18s var(--rebote), background .15s ease;
}
.notif-btn:hover { background: #E4DEFF; transform: scale(1.1) rotate(-10deg); }
.notif-btn:active { transform: scale(.9); }
.notif-n {
  position: absolute; top: -4px; right: -4px;
  background: var(--rojo); color: #fff;
  font-size: 11px; font-weight: 800; min-width: 18px;
  padding: 1px 5px; border-radius: 999px;
}
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 80;
  width: min(340px, calc(100vw - 30px)); max-height: 65vh; overflow-y: auto;
  background: #fff; border-radius: 20px;
  box-shadow: 0 18px 44px rgba(23, 34, 74, .26);
  padding: 14px; display: flex; flex-direction: column; gap: 10px;
  text-align: left; animation: sp-pop .25s var(--rebote) backwards;
}
.notif-item { display: flex; gap: 10px; background: #FBFAFF; border-radius: 14px; padding: 10px 12px; }
.notif-emoji { font-size: 22px; line-height: 1.2; }
.notif-item strong { display: block; font-size: 14.5px; }
.notif-item p { margin: 3px 0 0; font-size: 13.5px; color: var(--gris); font-weight: 600; }

/* ── Order bump del checkout ─────────────────────────────── */
.bumps { display: flex; flex-direction: column; gap: 10px; }
.bump-item { display: flex; align-items: center; gap: 12px; background: #FBFAFF; border-radius: 16px; padding: 10px 12px; }
.bump-item > img { width: 46px; height: 46px; object-fit: contain; }
.bump-ph { width: 46px; text-align: center; font-size: 26px; }
.bump-info { flex: 1; min-width: 0; }
.bump-info strong { display: block; font-size: 14.5px; }
.bump-add {
  border: 0; border-radius: 999px; white-space: nowrap;
  font-family: var(--fuente); font-weight: 800; font-size: 13.5px;
  padding: 9px 15px; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--azul), var(--azul-2));
  box-shadow: var(--sombra-azul);
  transition: transform .18s var(--rebote);
}
.bump-add:hover { transform: scale(1.06); }
.bump-add:active { transform: scale(.94); }
.bump-add.ok { background: linear-gradient(135deg, var(--verde), var(--verde-2)); box-shadow: 0 8px 18px rgba(30, 158, 90, .30); }

/* ── Redes y compartir (footer) ──────────────────────────── */
.pie-redes {
  max-width: var(--rail); margin: 0 auto; padding: 0 16px 26px;
  display: flex; flex-wrap: wrap; gap: 9px; align-items: center;
  font-size: 13.5px; font-weight: 700;
}
.pie-redes .pr-tit { color: var(--amarillo); font-weight: 800; }
.pie-redes a {
  color: #FDFCF8; background: rgba(255, 255, 255, .10);
  border-radius: 999px; padding: 6px 13px; text-decoration: none;
  transition: background .15s ease, transform .18s var(--rebote);
}
.pie-redes a:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }

@media (max-width: 560px) {
  .card-img { width: 72px; height: 72px; top: -16px; right: -8px; }
  .tiene-img h3 { padding-right: 60px; }
}

/* ── Persecución del Comilón Sipote (checkout) ───────────── */
.persecucion { position: relative; height: 66px; margin: 26px 0 2px; overflow: hidden; }
.p-dulce {
  position: absolute; top: 50%; width: 11px; height: 11px; border-radius: 999px;
  left: calc(4% + var(--i) * 8%);
  transform: translateY(-50%);
  background: conic-gradient(from 180deg, #FF5D73, #FFB03A, #35C46E, #4A7CFF, #B14AFF, #FF5D73);
  box-shadow: 0 2px 5px rgba(23, 34, 74, .16);
}
.p-runner {
  position: absolute; top: 50%; left: -15%;
  display: flex; align-items: center; gap: 16px;
  transform: translateY(-50%) scaleX(1);
  animation: p-corre 18s linear infinite;
  will-change: left, transform;
}
/* ida (0-48%) → media vuelta en el borde (48-52%) → regreso espejado (52-100%) */
@keyframes p-corre {
  0%   { left: -15%; transform: translateY(-50%) scaleX(1); }
  48%  { left: 115%; transform: translateY(-50%) scaleX(1); }
  52%  { left: 115%; transform: translateY(-50%) scaleX(-1); }
  100% { left: -15%; transform: translateY(-50%) scaleX(-1); }
}
.p-comilon {
  position: relative; width: 46px; height: 46px; border-radius: 999px;
  background: linear-gradient(135deg, var(--azul), var(--azul-2));
  box-shadow: 0 8px 16px rgba(34, 71, 178, .30);
}
.p-comilon::before {
  content: ''; position: absolute; inset: 0; background: #FFF7EC;
  clip-path: polygon(52% 50%, 100% 12%, 100% 88%);
  animation: p-boca .38s ease-in-out infinite alternate;
}
.p-ojo { position: absolute; top: 9px; left: 15px; width: 9px; height: 9px; border-radius: 999px; background: #fff; }
.p-ojo::after { content: ''; position: absolute; top: 2px; left: 3.5px; width: 4px; height: 4px; border-radius: 999px; background: #17224A; }
.p-mejilla { position: absolute; bottom: 10px; left: 6px; width: 9px; height: 6px; border-radius: 999px; background: rgba(255, 133, 162, .75); filter: blur(.6px); }
@keyframes p-boca {
  from { clip-path: polygon(52% 50%, 100% 4%, 100% 96%); }
  to   { clip-path: polygon(52% 50%, 100% 44%, 100% 56%); }
}
.p-malteada { display: inline-flex; animation: p-huye .5s ease-in-out infinite alternate; }
@keyframes p-huye {
  from { transform: translateY(-2px) rotate(-3deg); }
  to   { transform: translateY(2px) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { .persecucion { display: none; } }

/* Dulces: comidos en la ida, van reapareciendo detras de el en la vuelta */
.persecucion .p-dulce:nth-child(1) { animation: pd0 18s linear infinite; }
@keyframes pd0 {
  0%, 4.4% { opacity: 1; transform: translateY(-50%) scale(1); }
  5.9%, 95.6% { opacity: 0; transform: translateY(-50%) scale(.2); }
  97.1%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.persecucion .p-dulce:nth-child(2) { animation: pd1 18s linear infinite; }
@keyframes pd1 {
  0%, 7.4% { opacity: 1; transform: translateY(-50%) scale(1); }
  8.9%, 92.6% { opacity: 0; transform: translateY(-50%) scale(.2); }
  94.1%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.persecucion .p-dulce:nth-child(3) { animation: pd2 18s linear infinite; }
@keyframes pd2 {
  0%, 10.3% { opacity: 1; transform: translateY(-50%) scale(1); }
  11.8%, 89.7% { opacity: 0; transform: translateY(-50%) scale(.2); }
  91.2%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.persecucion .p-dulce:nth-child(4) { animation: pd3 18s linear infinite; }
@keyframes pd3 {
  0%, 13.3% { opacity: 1; transform: translateY(-50%) scale(1); }
  14.8%, 86.7% { opacity: 0; transform: translateY(-50%) scale(.2); }
  88.2%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.persecucion .p-dulce:nth-child(5) { animation: pd4 18s linear infinite; }
@keyframes pd4 {
  0%, 16.2% { opacity: 1; transform: translateY(-50%) scale(1); }
  17.7%, 83.8% { opacity: 0; transform: translateY(-50%) scale(.2); }
  85.3%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.persecucion .p-dulce:nth-child(6) { animation: pd5 18s linear infinite; }
@keyframes pd5 {
  0%, 19.2% { opacity: 1; transform: translateY(-50%) scale(1); }
  20.7%, 80.8% { opacity: 0; transform: translateY(-50%) scale(.2); }
  82.3%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.persecucion .p-dulce:nth-child(7) { animation: pd6 18s linear infinite; }
@keyframes pd6 {
  0%, 22.2% { opacity: 1; transform: translateY(-50%) scale(1); }
  23.7%, 77.8% { opacity: 0; transform: translateY(-50%) scale(.2); }
  79.3%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.persecucion .p-dulce:nth-child(8) { animation: pd7 18s linear infinite; }
@keyframes pd7 {
  0%, 25.1% { opacity: 1; transform: translateY(-50%) scale(1); }
  26.6%, 74.9% { opacity: 0; transform: translateY(-50%) scale(.2); }
  76.4%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.persecucion .p-dulce:nth-child(9) { animation: pd8 18s linear infinite; }
@keyframes pd8 {
  0%, 28.1% { opacity: 1; transform: translateY(-50%) scale(1); }
  29.6%, 71.9% { opacity: 0; transform: translateY(-50%) scale(.2); }
  73.4%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.persecucion .p-dulce:nth-child(10) { animation: pd9 18s linear infinite; }
@keyframes pd9 {
  0%, 31.0% { opacity: 1; transform: translateY(-50%) scale(1); }
  32.5%, 69.0% { opacity: 0; transform: translateY(-50%) scale(.2); }
  70.5%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.persecucion .p-dulce:nth-child(11) { animation: pd10 18s linear infinite; }
@keyframes pd10 {
  0%, 34.0% { opacity: 1; transform: translateY(-50%) scale(1); }
  35.5%, 66.0% { opacity: 0; transform: translateY(-50%) scale(.2); }
  67.5%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
.persecucion .p-dulce:nth-child(12) { animation: pd11 18s linear infinite; }
@keyframes pd11 {
  0%, 36.9% { opacity: 1; transform: translateY(-50%) scale(1); }
  38.4%, 63.1% { opacity: 0; transform: translateY(-50%) scale(.2); }
  64.6%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
}
