/* SIPOTE · tienda nueva (/nuevo) — paleta tomada del vaso Sipote */
:root {
  --tinta: #17224A;
  --tinta-2: #222F63;
  --papel: #FFF7EC;
  --blanco: #fff;
  --c1: #AA3E8E; /* morado */
  --c2: #E53944; /* rojo */
  --c3: #EA985F; /* naranja */
  --c4: #F5E851; /* amarillo */
  --c5: #C1D160; /* verde */
  --c6: #74B8D9; /* azul */
  --gris: #5B6483;
  --linea: rgba(23, 34, 74, .10);
  --radio: 22px;
  --rail: 1180px;
  --f: 'Nunito', system-ui, -apple-system, sans-serif;
  --ft: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --rebote: cubic-bezier(.34, 1.56, .64, 1);
  --sombra: 0 10px 28px rgba(23, 34, 74, .12);
  --arcoiris: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6));
}
*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 500 16px/1.5 var(--f); -webkit-font-smoothing: antialiased; }
body.sin-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-family: var(--ft); line-height: 1.05; margin: 0; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--c6); outline-offset: 3px; border-radius: 10px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--c2); color: #fff; font: 900 16px/1 var(--f); text-decoration: none;
  box-shadow: 0 8px 22px rgba(229, 57, 68, .35); transition: transform .18s var(--rebote), box-shadow .18s;
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(.96); }
.btn--grande { min-height: 56px; font-size: 17px; padding: 0 28px; }
.btn--full { width: 100%; }
.btn--linea { background: transparent; color: inherit; box-shadow: inset 0 0 0 2.5px currentColor; }
.btn--off { background: #C9CDDB; color: #5B6483; box-shadow: none; cursor: not-allowed; }

/* ---------- Intro ---------- */
.intro { display: none; }
.con-intro body { overflow: hidden; }
.con-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
  background: var(--tinta);
  background-image: radial-gradient(60% 40% at 50% 45%, rgba(116, 184, 217, .18), transparent 70%);
  animation: intro-seguro .3s 8s forwards; /* si algo falla, nunca se queda tapando la tienda */
}
@keyframes intro-seguro { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro-centro { display: grid; justify-items: center; gap: 18px; }
.intro-vaso { width: min(46vw, 210px); height: auto; overflow: visible; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35)); }
.intro-marca { display: grid; justify-items: center; gap: 4px; color: #fff; }
.im-nombre { font: 800 clamp(46px, 13vw, 78px)/1 var(--ft); letter-spacing: -.02em; display: flex; }
.im-nombre i { font-style: normal; display: inline-block; }
.im-nombre i:nth-child(1) { color: var(--c6); } .im-nombre i:nth-child(2) { color: var(--c5); }
.im-nombre i:nth-child(3) { color: var(--c4); } .im-nombre i:nth-child(4) { color: var(--c3); }
.im-nombre i:nth-child(5) { color: var(--c2); } .im-nombre i:nth-child(6) { color: #E07BC6; }
.im-sub { font-weight: 800; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.intro-saltar {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px;
  background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px;
}

/* ---------- Avisos ---------- */
.aviso { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 10px 16px; background: var(--tinta-2); color: #fff; font-size: 14px; font-weight: 600; text-align: left; }
.aviso b { color: var(--c4); }
.aviso--rojo { background: linear-gradient(135deg, #E5372B, #FF6A4E); font-size: 15px; }
.aviso--rojo b { color: #fff; }

/* ---------- Barra superior ---------- */
.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-left)); padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(23, 34, 74, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff;
}
.top-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font: 800 22px/1 var(--ft); }
.top-logo img { width: 26px; height: auto; }
.top-estado { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); white-space: nowrap; }
.top-estado i { width: 8px; height: 8px; border-radius: 50%; background: #FF8A80; }
.top-estado.ok i { background: #6EE7A0; box-shadow: 0 0 0 0 rgba(110, 231, 160, .7); animation: vivo 1.8s infinite; }
@keyframes vivo { 70% { box-shadow: 0 0 0 7px rgba(110, 231, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 231, 160, 0); } }
.vasito { position: relative; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; }
.vasito svg { overflow: visible; }
.vm-capa { transform: scaleY(0); transition: transform .5s var(--rebote); }
.vm-capa.on { transform: scaleY(1); }
.vasito-n { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--c4); color: var(--tinta); font: 900 12px/22px var(--f); text-align: center; box-shadow: 0 0 0 3px var(--tinta); }
.vasito.trago { animation: trago .55s var(--rebote); }
@keyframes trago { 0% { transform: scale(1); } 30% { transform: scale(1.22, .86) rotate(-6deg); } 60% { transform: scale(.94, 1.08) rotate(4deg); } 100% { transform: scale(1); } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--tinta);
  display: grid; gap: 8px; padding: 10px 18px 34px;
  background-image:
    radial-gradient(42% 32% at 80% 22%, rgba(229, 57, 68, .38), transparent 70%),
    radial-gradient(40% 34% at 10% 75%, rgba(116, 184, 217, .30), transparent 70%),
    radial-gradient(36% 30% at 70% 90%, rgba(193, 209, 96, .25), transparent 70%);
}
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--arcoiris); }
.hero-txt { display: grid; gap: 16px; align-content: start; position: relative; z-index: 2; }
.hero-kicker { justify-self: start; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.hero h1 { font-size: clamp(40px, 11vw, 74px); font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--c4), var(--c3), #FF7A8A, var(--c6)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .82); max-width: 520px; }
.hero-sub b { color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-ctas .btn--linea { color: #fff; }
.hero-datos { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.hero-datos li { display: flex; align-items: center; gap: 10px; }
.hero-datos i { width: 22px; height: 6px; border-radius: 3px; background: var(--c); flex: none; }
.hero-datos a { color: #fff; font-weight: 800; }

.seg { display: grid; gap: 8px; }
.seg-lbl { font-size: 13px; font-weight: 800; opacity: .75; }
.seg-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 4px; max-width: 360px; }
.seg-in button { position: relative; z-index: 1; border: 0; background: none; min-height: 44px; border-radius: 999px; font-weight: 900; font-size: 15px; color: inherit; transition: color .2s; }
.seg-in button.on { color: var(--tinta); }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: transform .32s var(--rebote); }

.hero-foto { position: relative; display: grid; place-items: center; min-height: 290px; order: -1; }
.hero-aro { position: absolute; width: 250px; height: 250px; border-radius: 50%; background: conic-gradient(from 0deg, var(--c1), var(--c2), var(--c3), var(--c4), var(--c5), var(--c6), var(--c1)); filter: blur(2px); opacity: .9; animation: girar 18s linear infinite; }
.hero-aro::after { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: var(--tinta); }
@keyframes girar { to { transform: rotate(360deg); } }
.hero-prod { position: relative; z-index: 2; width: min(76vw, 330px); height: auto; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .45)); }
.hero-logo { position: absolute; z-index: 3; width: 58px; height: 58px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); display: grid; place-items: center; animation: flotar 4.5s ease-in-out infinite; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; }
.hl0 { top: 8%; left: 6%; transform: rotate(-10deg); }
.hl1 { top: 4%; right: 8%; animation-delay: -1.2s; }
.hl2 { bottom: 14%; left: 2%; animation-delay: -2s; }
.hl3 { bottom: 8%; right: 4%; animation-delay: -3s; }
.hl4, .hl5 { display: none; }
@keyframes flotar { 50% { translate: 0 -8px; } }
.hero-sello { position: absolute; z-index: 4; right: 18%; top: 42%; width: 88px; height: 88px; border-radius: 50%; background: var(--c4); color: var(--tinta); display: grid; place-content: center; text-align: center; font: 800 20px/1 var(--ft); rotate: 12deg; box-shadow: 0 10px 22px rgba(0, 0, 0, .3); }
.hero-sello small { font: 800 11px/1.2 var(--f); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Riel de categorías ---------- */
.riel { position: sticky; top: 70px; z-index: 30; background: rgba(255, 247, 236, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linea); }
.riel-in { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; max-width: var(--rail); margin: 0 auto; }
.riel-in::-webkit-scrollbar { display: none; }
.riel a { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 800; font-size: 14.5px; box-shadow: inset 0 0 0 1.5px var(--linea); transition: background .2s, color .2s; white-space: nowrap; }
.riel-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--papel); font-size: 16px; }
.riel-ico img { width: 22px; height: 22px; object-fit: contain; }
.riel a.on { background: var(--tinta); color: #fff; box-shadow: none; }

/* ---------- Menú ---------- */
.menu { max-width: var(--rail); margin: 0 auto; padding: 8px 16px 40px; }
.sec-cab { margin: 34px 0 16px; }
.sec-cab h2 { font-size: clamp(30px, 8vw, 42px); display: flex; align-items: center; gap: 10px; }
.sec-ico { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 24px; box-shadow: var(--sombra); }
.sec-ico img { width: 30px; height: 30px; object-fit: contain; }
.sec-cab p { margin: 6px 0 0; color: var(--gris); }
.ancla { position: relative; top: -130px; }

/* Favoritos */
.favs-riel { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 12px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.favs-riel::-webkit-scrollbar { display: none; }
.fav { scroll-snap-align: start; background: #fff; border-radius: var(--radio); padding: 10px 12px 12px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 8px; }
.fav .fav-pie { margin-top: auto; }
.fav-foto { aspect-ratio: 1; border-radius: 16px; background: radial-gradient(circle at 50% 60%, #FFEFD6, #FFF7EC 70%); display: grid; place-items: center; }
.fav-foto img { width: 92%; height: 92%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(23, 34, 74, .2)); }
.fav h3 { font-size: 18px; }
.fav-pie { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 15px; }

.mas { flex: none; width: 42px; height: 42px; border-radius: 14px; border: 0; background: var(--tinta); color: #fff; font: 900 22px/1 var(--f); display: grid; place-items: center; transition: transform .18s var(--rebote), background .2s; }
.mas:active { transform: scale(.88); background: var(--c2); }

/* Sabores */
.sab { background: #fff; border-radius: 28px; padding: 18px 14px 16px; box-shadow: var(--sombra); margin-bottom: 18px; position: relative; }
.sab-cab { display: flex; gap: 14px; align-items: center; padding: 0 4px 14px; }
.sab-foto { width: 92px; height: 92px; object-fit: contain; flex: none; filter: drop-shadow(0 8px 10px rgba(23, 34, 74, .2)); }
.sab-cab h3 { font-size: 26px; }
.sab-cab p { margin: 4px 0 6px; font-size: 14.5px; color: var(--gris); line-height: 1.35; }
.sab-precio { display: inline-block; font-weight: 900; font-size: 15px; padding: 4px 10px; border-radius: 999px; background: var(--papel); }
.sab-precio s { color: var(--gris); font-weight: 700; }
.buscar { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; padding: 0 14px; border-radius: 16px; background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--linea); }
.buscar input { flex: 1; border: 0; background: none; min-height: 48px; font: 700 16px var(--f); color: var(--tinta); outline: none; }
.sab-tip { margin: 0 4px 10px; font-size: 13px; font-weight: 800; color: var(--gris); }
.sab-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sabor {
  width: 100%; height: 100%; position: relative; display: grid; justify-items: center; align-content: start; gap: 6px;
  padding: 10px 6px 12px; border: 0; border-radius: 18px; background: #FBFAF7;
  box-shadow: inset 0 0 0 1.5px var(--linea); transition: transform .2s var(--rebote), box-shadow .2s;
}
.sabor::before { content: ''; position: absolute; left: 12px; right: 12px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--c); }
.sabor:active { transform: scale(.93); box-shadow: inset 0 0 0 2.5px var(--c); }
.sabor-logo { width: 100%; aspect-ratio: 1.3; display: grid; place-items: center; border-radius: 12px; background: #fff; }
.sabor-logo img { width: 86%; height: 86%; object-fit: contain; }
.sabor-logo b { font: 800 28px/1 var(--ft); color: var(--c); }
.sabor-nom { font-weight: 800; font-size: 13.5px; line-height: 1.15; text-align: center; }
.sabor-nom em { font-style: normal; font-size: 10.5px; font-weight: 900; color: #fff; background: var(--c2); padding: 1px 5px; border-radius: 6px; vertical-align: 1px; }
.sabor-pre { font-size: 12.5px; font-weight: 900; color: var(--gris); }
.sabor-mas { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 9px; background: var(--tinta); color: #fff; font: 900 16px/24px var(--f); }
.vacio { margin: 12px 4px 0; color: var(--gris); font-weight: 700; }
.agotado { margin: 4px; font-weight: 800; color: var(--c2); }

/* Productos */
.prods { display: grid; gap: 12px; }
.prod { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; background: #fff; border-radius: var(--radio); padding: 10px; box-shadow: var(--sombra); }
.prod-foto { aspect-ratio: 1; border-radius: 16px; background: radial-gradient(circle at 50% 60%, #FFEFD6, #FFF7EC 70%); display: grid; place-items: center; font-size: 38px; }
.prod-foto img { width: 94%; height: 94%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(23, 34, 74, .2)); }
.prod-txt { display: grid; gap: 4px; min-width: 0; }
.prod h3 { font-size: 20px; }
.prod p { margin: 0; font-size: 14px; color: var(--gris); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod-pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; font-size: 17px; }
.prod-pie s { color: var(--gris); font-size: 14px; font-weight: 700; }
.prod--ag { opacity: .6; }
.tag { display: inline-block; vertical-align: 3px; font: 900 11px/1 var(--f); padding: 4px 7px; border-radius: 8px; background: #FFF2B8; color: #7A5A00; }
.tag--gris { background: #EEF0F6; color: var(--gris); }

/* Puntos */
.puntos { margin-top: 40px; display: grid; gap: 14px; align-items: center; padding: 22px; border-radius: 28px; color: #fff; background: var(--tinta); position: relative; overflow: hidden; }
.puntos::before { content: ''; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--arcoiris); }
.puntos h2 { font-size: 28px; }
.puntos p { margin: 4px 0 0; color: rgba(255, 255, 255, .8); }
.puntos .btn { justify-self: start; background: var(--c4); color: var(--tinta); box-shadow: none; }

.pie { text-align: center; padding: 30px 18px 120px; color: var(--gris); font-size: 14px; }
.pie img { width: 30px; height: auto; margin: 0 auto 8px; }
.pie p { margin: 4px 0; }
.pie b { color: var(--tinta); }
.pie-links a { font-weight: 800; }

/* ---------- Barra inferior ---------- */
.barra {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 0 20px 0 8px; height: 62px; max-width: 560px; margin: 0 auto;
  border: 0; border-radius: 999px; background: var(--tinta); color: #fff; font-weight: 900; font-size: 16px;
  box-shadow: 0 14px 34px rgba(23, 34, 74, .4);
}
.barra::after { content: ''; position: absolute; left: 30px; right: 30px; bottom: 0; height: 3px; border-radius: 3px; background: var(--arcoiris); }
.barra-n { width: 46px; height: 46px; border-radius: 50%; background: var(--c4); color: var(--tinta); display: grid; place-items: center; font-size: 17px; }
.barra b { margin-left: auto; font-size: 18px; }

/* ---------- Hoja del pedido ---------- */
.velo { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 32, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.velo--alto { z-index: 70; }
.hoja {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column; background: #fff; border-radius: 28px 28px 0 0; box-shadow: 0 -20px 50px rgba(0, 0, 0, .25);
  max-width: 600px; margin: 0 auto;
}
.h-in { transition: transform .38s cubic-bezier(.2, .9, .25, 1.08); }
.h-out { transition: transform .25s ease-in; }
.h-ini { transform: translateY(105%); }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px 10px; position: relative; }
.hoja-asa { position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #DADDE8; }
.hoja-cab h2 { font-size: 30px; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #F1F2F7; font-weight: 900; }
.hoja-cuerpo { overflow-y: auto; padding: 4px 20px 10px; flex: 1; overscroll-behavior: contain; }
.hoja-vacia { text-align: center; color: var(--gris); font-weight: 700; padding: 30px 0; }
.linea { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.linea-img { width: 54px; height: 54px; border-radius: 14px; background: var(--papel); display: grid; place-items: center; overflow: hidden; }
.linea-img img { width: 86%; height: 86%; object-fit: contain; }
.linea-txt { display: grid; min-width: 0; line-height: 1.25; }
.linea-txt strong { font-size: 16px; }
.linea-txt span { font-size: 13.5px; color: var(--gris); font-weight: 700; }
.linea-txt b { font-size: 15px; margin-top: 2px; }
.qty { display: flex; align-items: center; gap: 8px; background: var(--papel); border-radius: 999px; padding: 4px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff; font: 900 18px/1 var(--f); box-shadow: 0 2px 6px rgba(23, 34, 74, .1); }
.qty b { min-width: 16px; text-align: center; }
.bump { margin-top: 16px; }
.bump p { margin: 0 0 8px; font-weight: 900; }
.bump-riel { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.bump-it { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 0; border-radius: 16px; background: var(--papel); text-align: left; font-size: 13.5px; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--linea); }
.bump-it img { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; background: #fff; }
.bump-it b { display: block; color: var(--c2); }
.hoja-pie { padding: 14px 20px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); display: grid; gap: 10px; }
.seg--mini .seg-in { max-width: none; background: var(--papel); }
.seg--mini .seg-in button { color: var(--gris); }
.seg--mini .seg-in button.on { color: #fff; }
.seg--mini .seg-pill { background: var(--tinta); }
.hoja-nota { margin: 0; font-size: 14px; font-weight: 800; color: #B3221A; background: #FFF0EE; padding: 8px 12px; border-radius: 12px; }
.hoja-nota + .hoja-nota { color: var(--tinta); background: var(--papel); }
.hoja-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.hoja-total b { font: 800 30px/1 var(--ft); }
.hoja-mini { margin: 0; text-align: center; font-size: 13px; color: var(--gris); font-weight: 700; }

/* +18 */
.modal18 { position: fixed; z-index: 80; left: 16px; right: 16px; top: 50%; translate: 0 -50%; max-width: 400px; margin: 0 auto; background: #fff; border-radius: 26px; padding: 26px 22px 20px; text-align: center; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.m18-ico { font-size: 42px; }
.modal18 h2 { font-size: 26px; margin-top: 6px; }
.modal18 p { color: var(--gris); }
.m18-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m18-btns .btn--linea { color: var(--tinta); }

/* Toast + objeto volando */
.toast { position: fixed; z-index: 90; left: 50%; translate: -50% 0; top: max(76px, calc(env(safe-area-inset-top) + 70px)); background: #fff; color: var(--tinta); font-weight: 900; font-size: 14px; padding: 10px 16px; border-radius: 999px; box-shadow: 0 12px 30px rgba(23, 34, 74, .25); white-space: nowrap; max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.vuela { position: fixed; z-index: 95; pointer-events: none; border-radius: 18px; background: #fff; box-shadow: 0 12px 24px rgba(0, 0, 0, .25); display: grid; place-items: center; padding: 6px; }
.vuela img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Escritorio ---------- */
@media (min-width: 560px) {
  .sab-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .favs-riel { grid-auto-columns: 200px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr .95fr; align-items: center; padding: 40px max(32px, calc((100vw - var(--rail)) / 2)) 64px; min-height: 560px; }
  .hero-foto { order: 0; min-height: 460px; }
  .hero-aro { width: 400px; height: 400px; }
  .hero-prod { width: 440px; }
  .hero-logo { width: 74px; height: 74px; }
  .hl4 { display: grid; top: 46%; left: -2%; animation-delay: -1.6s; }
  .hl5 { display: grid; top: 50%; right: -2%; animation-delay: -2.6s; }
  .hero-sello { width: 108px; height: 108px; font-size: 24px; right: auto; left: 30%; top: auto; bottom: 2%; }
  .riel { top: 70px; }
  .sab { padding: 26px 24px; }
  .sab-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
  .prods { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prod { grid-template-columns: 1fr; text-align: left; }
  .puntos { grid-template-columns: 1fr auto; padding: 30px 36px; }
  .hoja { border-radius: 28px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Navegación tipo app: categorías ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  position: relative; display: grid; justify-items: start; gap: 2px; padding: 12px 12px 14px; text-align: left;
  border: 0; border-radius: 24px; background: #fff; box-shadow: var(--sombra); overflow: hidden;
  transition: transform .2s var(--rebote);
}
.tile::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 58%; background: radial-gradient(120% 100% at 50% 100%, color-mix(in srgb, var(--c) 30%, #fff) 0%, color-mix(in srgb, var(--c) 12%, #fff) 70%); }
.tile:active { transform: scale(.95); }
.tile-foto { position: relative; width: 100%; aspect-ratio: 1.15; display: grid; place-items: center; margin-bottom: 6px; overflow: hidden; border-radius: 16px; }
.tile-foto img { position: absolute; inset: 4% 7%; width: 86%; height: 92%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(23, 34, 74, .25)); transition: transform .3s var(--rebote); }
.tile:hover .tile-foto img { transform: scale(1.06) rotate(-2deg); }
.tile-ico { font-size: 58px; line-height: 1; }
.tile-ico img { width: 72px; height: 72px; }
.tile-nom { position: relative; font: 800 19px/1.1 var(--ft); }
.tile-n { position: relative; font-size: 13px; font-weight: 800; color: var(--gris); }
.tile-ir { position: absolute; right: 10px; bottom: 12px; width: 30px; height: 30px; border-radius: 10px; background: var(--tinta); color: #fff; display: grid; place-items: center; font-weight: 900; }
.antojos .sec-cab { margin-top: 26px; }

.volver { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 8px 14px; border: 0; border-radius: 999px; background: #fff; font-weight: 900; font-size: 14px; box-shadow: inset 0 0 0 1.5px var(--linea); }
.cat .sec-cab { margin-top: 18px; }
.riel-inicio { background: var(--papel) !important; }
.v-in { transition: opacity .28s ease, transform .32s cubic-bezier(.2, .9, .25, 1.05); }
.v-ini { opacity: 0; transform: translateX(28px); }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tile-nom { font-size: 22px; } }

/* ---------- Novedades (campana) ---------- */
.campana { position: relative; margin-left: auto; }
.campana + .top-estado { margin-left: 0; }
.campana-btn { position: relative; width: 42px; height: 42px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .12); font-size: 18px; }
.campana-btn b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--c2); color: #fff; font: 900 11px/18px var(--f); }
.campana-panel { position: absolute; right: -60px; top: 52px; width: min(320px, calc(100vw - 24px)); background: #fff; color: var(--tinta); border-radius: 20px; padding: 14px; box-shadow: 0 20px 44px rgba(0, 0, 0, .25); }
.cp-tit { margin: 0 0 8px; font: 800 18px var(--ft); }
.cp-item { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--linea); font-size: 14px; }
.cp-item p { margin: 2px 0 0; color: var(--gris); }
@media (max-width: 420px) { .campana ~ .top-estado { font-size: 0; gap: 0; padding: 10px; } .campana ~ .top-estado i { width: 10px; height: 10px; } }

/* ---------- Pie ---------- */
.pie-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 10px; }
.pie-btns a { padding: 9px 14px; border-radius: 999px; background: #fff; font-weight: 800; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--linea); color: var(--tinta); }
.pie-legal { font-size: 12.5px; margin-top: 12px !important; }
