/* Farmacia marca blanca · app del cliente */
:root {
  --vi: #6A2BE0; --vi2: #5418C4; --vid: #3B0F8C; --vin: #1E0752;
  --li: #C6F432; --li2: #9BC414; --lid: #5E7A00;
  --rosa: #FF8AD8; --ros2: #FFC9EE; --menta: #7FF0D2;
  --papel: #F6F2FF; --lila: #EADFFF; --lila2: #DCCBFF;
  --tinta: #170A33; --mut: #6E6491; --line: rgba(23, 10, 51, .09);
  --ft: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --fb: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { font: 500 14.5px/1.45 var(--fb); color: var(--tinta); background: var(--vin); overflow: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
img { max-width: 100%; height: auto; display: block; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--li); outline-offset: 2px; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

#app { position: relative; width: 100%; max-width: 900px; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--papel); isolation: isolate; container-type: inline-size; }
#view { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: calc(72px + var(--sat)) 0 calc(110px + var(--sab)); scrollbar-width: none; overscroll-behavior: contain; outline: 0; }
#view::-webkit-scrollbar { display: none; }
#view.vin > * { animation: subir .5s var(--out) backwards; }
#view.vin > *:nth-child(2) { animation-delay: .05s; } #view.vin > *:nth-child(3) { animation-delay: .1s; } #view.vin > *:nth-child(4) { animation-delay: .15s; } #view.vin > *:nth-child(5) { animation-delay: .2s; }
@keyframes subir { from { opacity: 0; transform: translateY(18px); } }
.pad { padding: 0 16px; }
.sec { margin-top: 26px; }
.tt { font: 800 25px/1.02 var(--ft); letter-spacing: -.025em; }
.tt-s { font: 800 19px/1.1 var(--ft); letter-spacing: -.02em; }
.sub { color: var(--mut); font-size: 13px; font-weight: 600; }
.cab { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding: 0 16px; margin-bottom: 12px; }
.lnk { font: 800 12.5px var(--fb); color: var(--vi); white-space: nowrap; }

/* botones con canto */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 99px; font: 800 15px/1 var(--fb); white-space: nowrap; transition: transform .14s var(--out), box-shadow .14s; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 13px; }
.btn.full { width: 100%; }
.btn-li { background: var(--li); color: var(--tinta); box-shadow: 0 5px 0 var(--li2); }
.btn-li:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--li2); }
.btn-vi { background: var(--vi); color: #fff; box-shadow: 0 5px 0 var(--vid); }
.btn-vi:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--vid); }
.btn-w { background: #fff; color: var(--vi); box-shadow: 0 5px 0 var(--lila2); }
.btn-w:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lila2); }
.btn-ol { box-shadow: inset 0 0 0 2px currentColor; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* barra de arriba */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + var(--sat)) 14px 10px; background: color-mix(in srgb, var(--papel) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo { width: 42px; height: 42px; border-radius: 14px; background: var(--vi); display: grid; place-items: center; flex: none; box-shadow: 0 3px 0 var(--vid); position: relative; }
.logo::before { content: ""; width: 20px; height: 20px; background: var(--li); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.top-l b { display: block; font: 800 16px/1.05 var(--ft); letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-l small { display: flex; align-items: center; gap: 6px; font: 700 11px/1.2 var(--fb); color: var(--mut); margin-top: 3px; }
.top-l small i { width: 7px; height: 7px; border-radius: 50%; background: #2BD49A; box-shadow: 0 0 0 3px rgba(43, 212, 154, .2); }
.pts-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 8px; border-radius: 99px; background: var(--tinta); color: #fff; font: 800 14px var(--fb); font-variant-numeric: tabular-nums; }
.cruz-mini { width: 22px; height: 22px; border-radius: 50%; background: var(--li); position: relative; }
.cruz-mini::after { content: ""; position: absolute; inset: 5px; background: var(--vid); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.pts-chip.pop { animation: pop .5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.18); } }

/* navegación */
#nav { position: absolute; left: 10px; right: 10px; bottom: calc(10px + var(--sab)); z-index: 30; display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; height: 68px; padding: 0 4px; background: var(--tinta); border-radius: 26px; box-shadow: 0 14px 34px -10px rgba(30, 7, 82, .55); }
#nav button { position: relative; display: grid; place-content: center; justify-items: center; gap: 4px; color: #9C92C2; font: 700 10.5px var(--fb); transition: color .25s; }
#nav button > svg { width: 23px; height: 23px; transition: transform .4s var(--spring); }
#nav button.on { color: #fff; }
#nav button.on > svg { transform: translateY(-2px); color: var(--li); }
#nav button .dot { position: absolute; top: 12px; right: calc(50% - 18px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--li); color: var(--tinta); font: 800 10px/17px var(--fb); text-align: center; }
.nav-club { align-content: end !important; padding-bottom: 9px; }
.nc-in { position: absolute; top: -22px; left: 50%; margin-left: -32px; width: 64px; height: 64px; border-radius: 22px; background: var(--li); color: var(--vid); display: grid; place-items: center; box-shadow: 0 5px 0 var(--li2), 0 10px 22px rgba(0, 0, 0, .3); transform: rotate(-6deg); transition: transform .45s var(--spring); }
.nc-in svg { width: 30px; height: 30px; fill: var(--vid); stroke: none; }
#nav .nav-club.on .nc-in { transform: rotate(6deg) scale(1.06); }
#nav .nav-club.on { color: var(--li); }

/* bolsa flotante */
.bolsa-fab { position: absolute; left: 50%; bottom: calc(92px + var(--sab)); z-index: 25; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 8px 0 8px; border-radius: 99px; background: var(--vi); color: #fff; box-shadow: 0 5px 0 var(--vid), 0 14px 30px rgba(59, 15, 140, .4); white-space: nowrap; animation: fabin .5s var(--spring); }
.bolsa-fab[hidden] { display: none; }
.bf-n { width: 38px; height: 38px; border-radius: 50%; background: var(--li); color: var(--tinta); display: grid; place-items: center; font: 800 15px var(--fb); }
.bf-t { font: 800 15px var(--fb); }
.bf-p { padding: 0 14px; height: 38px; display: grid; place-items: center; border-radius: 99px; background: rgba(255, 255, 255, .16); font: 800 14px var(--fb); font-variant-numeric: tabular-nums; }
.bolsa-fab.pop { animation: pop .5s var(--spring); }
@keyframes fabin { from { transform: translate(-50%, 30px); opacity: 0; } }

/* inicio */
.hola { padding: 4px 16px 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.hola h1 { font: 800 34px/.95 var(--ft); letter-spacing: -.035em; }
.hola h1 em { font-style: normal; color: var(--vi); }
.cred { margin: 16px 16px 0; border-radius: 26px; padding: 18px 18px 16px; color: #fff; position: relative; overflow: hidden; background: var(--vi); box-shadow: 0 6px 0 var(--vid); }
.cred::before { content: ""; position: absolute; right: -40px; top: -40px; width: 190px; height: 190px; background: var(--vi2); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); transform: rotate(14deg); opacity: .85; }
.cred > * { position: relative; }
.cred-a { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cred-n { font: 700 11px var(--fb); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.cred-niv { font: 800 30px/1 var(--ft); letter-spacing: -.03em; margin-top: 4px; }
.cred-pts { text-align: right; }
.cred-pts b { display: block; font: 800 30px/1 var(--ft); font-variant-numeric: tabular-nums; color: var(--li); }
.cred-pts small { font: 700 11px var(--fb); opacity: .8; }
.barra { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin-top: 16px; overflow: hidden; }
.barra i { display: block; height: 100%; border-radius: inherit; background: var(--li); transition: width 1s var(--out); }
.cred-f { display: flex; justify-content: space-between; margin-top: 8px; font: 700 11.5px var(--fb); opacity: .9; }

/* carrusel de tarjetas */
.carr { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; scrollbar-width: none; }
.carr::-webkit-scrollbar { display: none; }
.carr > * { scroll-snap-align: center; flex: 0 0 86%; max-width: 380px; }
.puntos { display: flex; justify-content: center; gap: 6px; }
.puntos i { width: 7px; height: 7px; border-radius: 99px; background: var(--lila2); transition: width .3s, background .3s; }
.puntos i.on { width: 22px; background: var(--vi); }
.tj { position: relative; border-radius: 26px; padding: 18px; min-height: 236px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.tj h3 { font: 800 26px/1 var(--ft); letter-spacing: -.03em; max-width: 62%; }
.tj p { font-size: 13px; font-weight: 600; max-width: 60%; margin-top: 6px; }
.tj .chip { align-self: flex-start; }
.tj-ben { background: var(--li); color: var(--tinta); }
.tj-ben .foto { position: absolute; right: -8px; top: 64px; width: 44%; aspect-ratio: 1; border-radius: 22px; background: #fff; padding: 8px; transform: rotate(7deg); box-shadow: 0 6px 0 var(--li2); }
.tj-rem { background: var(--tinta); color: #fff; }
.tj-sel { background: var(--rosa); color: var(--tinta); }
.tj-piel { background: var(--menta); color: var(--tinta); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 99px; font: 800 11px var(--fb); letter-spacing: .02em; background: rgba(255, 255, 255, .7); color: var(--tinta); }
.chip.k { background: var(--tinta); color: #fff; }
.chip.v { background: var(--vi); color: #fff; }
.chip.l { background: var(--li); color: var(--tinta); }
.chip.o { background: rgba(255, 255, 255, .12); color: #fff; }
.sello-r { position: absolute; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 800 22px/0.9 var(--ft); letter-spacing: -.03em; background: var(--vi); color: #fff; box-shadow: 0 4px 0 var(--vid); transform: rotate(-12deg); }
.sello-r svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: currentColor; stroke: none; font: 800 8.6px var(--fb); letter-spacing: .14em; animation: girar 14s linear infinite; }
.sello-r span { position: relative; font-size: 21px; }
.sello-r small { display: block; font: 800 9px var(--fb); letter-spacing: .04em; }
@keyframes girar { to { transform: rotate(360deg); } }
.tj-ben .sello-r { right: 14px; bottom: 12px; width: 80px; height: 80px; }
.tj-ben p { max-width: 52%; }

/* anillo de días */
.anillo { --p: 50; --c: var(--li); width: 96px; height: 96px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255, 255, 255, .14) 0); display: grid; place-items: center; flex: none; position: relative; }
.anillo::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--fondo, var(--tinta)); }
.anillo b { position: relative; font: 800 30px/1 var(--ft); text-align: center; }
.anillo b small { display: block; font: 700 10px var(--fb); opacity: .75; margin-top: 2px; }
.tj-rem .fila { display: flex; gap: 14px; align-items: center; }

/* sellos */
.sellos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin-top: 12px; }
.sellos i { aspect-ratio: 1; border-radius: 50%; border: 2.5px dashed rgba(23, 10, 51, .28); display: grid; place-items: center; }
.sellos i.on { border: 0; background: var(--tinta); position: relative; animation: sellar .5s var(--spring) backwards; }
.sellos i.on::after { content: ""; width: 46%; height: 46%; background: var(--li); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.sellos i.reg { border: 0; background: var(--vi); color: #fff; font: 800 9px/1 var(--fb); text-align: center; box-shadow: 0 3px 0 var(--vid); }
@keyframes sellar { from { transform: scale(2.2) rotate(-30deg); opacity: 0; } }

/* rubros */
.rubros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 16px; }
.rub { position: relative; border-radius: 22px; padding: 12px 10px 10px; min-height: 128px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 3px; transition: transform .2s var(--spring); }
.rub:active { transform: scale(.95); }
.rub b { font: 800 15px/1 var(--ft); letter-spacing: -.02em; position: relative; z-index: 1; }
.rub small { font: 700 10.5px var(--fb); opacity: .75; position: relative; z-index: 1; }
.rub img { position: absolute; right: -8px; bottom: -10px; width: 58%; mix-blend-mode: multiply; transform: rotate(-8deg); }
.r-dermo { background: var(--lila); } .r-maquillaje { background: var(--ros2); } .r-perfumes { background: #FFE3B8; }
.r-higiene { background: #D6F5EC; } .r-bebe { background: #DDEBFF; } .r-salud { background: #EFEDF5; }

/* cinta */
.cinta { margin-top: 26px; background: var(--tinta); color: #fff; overflow: hidden; transform: rotate(-2deg); margin-left: -10px; margin-right: -10px; padding: 11px 0; }
.cinta div { display: flex; gap: 26px; width: max-content; animation: cinta 26s linear infinite; font: 800 15px var(--ft); letter-spacing: -.01em; white-space: nowrap; }
.cinta span { display: inline-flex; align-items: center; gap: 26px; }
.cinta span::after { content: ""; width: 14px; height: 14px; background: var(--li); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
@keyframes cinta { to { transform: translateX(-50%); } }

/* productos */
.riel { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.riel::-webkit-scrollbar { display: none; }
.riel > .prod { flex: 0 0 156px; scroll-snap-align: start; }
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 0 16px; }
.prod { position: relative; background: #fff; border-radius: 22px; padding: 8px 8px 12px; display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line), 0 8px 22px -14px rgba(59, 15, 140, .35); transition: transform .2s var(--spring); }
.prod:active { transform: scale(.97); }
.prod .ph { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fff; }
.prod .ph img { width: 100%; height: 100%; object-fit: contain; }
.prod .mc { font: 800 10.5px var(--fb); letter-spacing: .06em; text-transform: uppercase; color: var(--vi); margin: 8px 4px 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prod .nm { font: 700 12.5px/1.28 var(--fb); margin: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 32px; }
.prod .pr { display: flex; align-items: baseline; gap: 6px; margin: 8px 4px 0; flex-wrap: wrap; }
.prod .pr b { font: 800 17px/1 var(--ft); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.prod .pr s { font: 600 11px var(--fb); color: var(--mut); }
.prod .tag { position: absolute; top: 12px; left: 12px; height: 24px; padding: 0 9px; border-radius: 99px; background: var(--li); font: 800 11px/24px var(--fb); }
.prod .pp { margin: 7px 4px 0; font: 800 10.5px var(--fb); color: var(--vi); display: flex; align-items: center; gap: 5px; }
.prod .pp.rx { color: var(--mut); }
.prod .mas { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 12px; background: var(--vi); color: #fff; display: grid; place-items: center; box-shadow: 0 3px 0 var(--vid); }
.prod .mas svg { width: 18px; height: 18px; stroke-width: 2.6; }
.prod .mas:active { transform: translateY(3px); box-shadow: none; }

/* tienda */
.buscar { margin: 0 16px; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 2px var(--lila2); }
.buscar svg { width: 20px; height: 20px; color: var(--vi); flex: none; }
.buscar input { flex: 1; border: 0; outline: 0; background: none; font-weight: 600; min-width: 0; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; height: 38px; padding: 0 15px; border-radius: 99px; background: #fff; font: 800 13px var(--fb); box-shadow: inset 0 0 0 1.5px var(--line); }
.tabs button.on { background: var(--tinta); color: #fff; box-shadow: none; }
.tabs.chico button { height: 32px; font-size: 12px; padding: 0 12px; background: transparent; }
.tabs.chico button.on { background: var(--vi); }
.aviso-rx { margin: 12px 16px 0; padding: 12px 14px; border-radius: 18px; background: var(--lila); font: 600 12.5px/1.35 var(--fb); display: flex; gap: 10px; align-items: center; }
.aviso-rx svg { width: 22px; height: 22px; color: var(--vi); flex: none; }
.vacio { text-align: center; padding: 40px 20px; color: var(--mut); font-weight: 600; }
.mas-abajo { height: 1px; }

/* club */
.credg { margin: 4px 16px 0; border-radius: 30px; background: var(--vin); color: #fff; padding: 20px; position: relative; overflow: hidden; box-shadow: 0 7px 0 #0E0230; }
.credg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(198, 244, 50, .25), transparent 40%), radial-gradient(circle at 0% 100%, rgba(106, 43, 224, .9), transparent 55%); pointer-events: none; }
.credg > * { position: relative; z-index: 1; }
.credg .qr { background: #fff; border-radius: 18px; padding: 8px; width: 116px; height: 116px; flex: none; }
.credg .qr svg, .credg .qr img { width: 100%; height: 100%; }
.credg-f { display: flex; gap: 16px; align-items: center; margin-top: 14px; }
.credg-f .dato b { display: block; font: 800 34px/1 var(--ft); color: var(--li); font-variant-numeric: tabular-nums; }
.credg-f .dato small { font: 700 11px var(--fb); opacity: .75; }
.niveles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 16px; }
.niv { border-radius: 20px; padding: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; }
.niv b { font: 800 17px var(--ft); display: block; }
.niv small { font: 700 10.5px/1.3 var(--fb); color: var(--mut); display: block; margin-top: 4px; }
.niv .pts { font: 800 11px var(--fb); color: var(--vi); }
.niv.on { background: var(--vi); color: #fff; box-shadow: 0 5px 0 var(--vid); }
.niv.on small, .niv.on .pts { color: rgba(255, 255, 255, .85); }
.niv.on::after { content: "Estás acá"; position: absolute; top: -9px; right: 10px; height: 20px; padding: 0 8px; border-radius: 99px; background: var(--li); color: var(--tinta); font: 800 10px/20px var(--fb); }
.bloque { margin: 0 16px; border-radius: 26px; padding: 18px; }
.b-lila { background: var(--lila); } .b-rosa { background: var(--rosa); } .b-menta { background: var(--menta); } .b-li { background: var(--li); } .b-k { background: var(--tinta); color: #fff; } .b-w { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.premios { display: flex; gap: 12px; overflow-x: auto; padding: 2px 16px 10px; scrollbar-width: none; }
.premios::-webkit-scrollbar { display: none; }
.premio { flex: 0 0 150px; background: #fff; border-radius: 22px; padding: 8px 8px 12px; box-shadow: 0 1px 0 var(--line), 0 8px 22px -14px rgba(59, 15, 140, .35); }
.premio img { aspect-ratio: 1; object-fit: contain; border-radius: 14px; width: 100%; }
.premio .nm { font: 700 12px/1.25 var(--fb); margin: 6px 4px 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 30px; }
.premio .btn { width: 100%; height: 36px; font-size: 12.5px; padding: 0 8px; }
.raspa { position: relative; border-radius: 22px; overflow: hidden; height: 150px; background: #fff; display: grid; place-items: center; text-align: center; margin-top: 14px; touch-action: none; }
.raspa canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.raspa .res b { display: block; font: 800 24px/1 var(--ft); color: var(--vi); }
.raspa .res small { font-weight: 700; color: var(--mut); }
.test { display: grid; gap: 8px; margin-top: 12px; }
.test button { height: 48px; border-radius: 16px; background: rgba(255, 255, 255, .7); font: 800 14px var(--fb); padding: 0 16px; text-align: left; transition: transform .15s; }
.test button:active { transform: scale(.97); }
.test button.on { background: var(--tinta); color: #fff; }
.rutina { display: grid; gap: 10px; margin-top: 12px; }
.paso { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 18px; padding: 8px 12px 8px 8px; }
.paso img { width: 62px; height: 62px; border-radius: 12px; object-fit: contain; flex: none; }
.paso .n { width: 26px; height: 26px; border-radius: 50%; background: var(--tinta); color: var(--li); display: grid; place-items: center; font: 800 12px var(--fb); flex: none; }
.paso div { flex: 1; min-width: 0; }
.paso b { display: block; font: 800 11px var(--fb); letter-spacing: .06em; text-transform: uppercase; color: var(--vi); }
.paso span { display: block; font: 700 12.5px/1.25 var(--fb); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* remedios */
.trat { margin: 0 16px 12px; border-radius: 26px; padding: 16px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 26px -16px rgba(59, 15, 140, .4); }
.trat-a { display: flex; gap: 14px; align-items: center; }
.trat .anillo { --fondo: #fff; width: 84px; height: 84px; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--lila) 0); }
.trat .anillo b { font-size: 26px; }
.trat h3 { font: 800 20px/1.05 var(--ft); letter-spacing: -.02em; }
.trat .det { font: 600 12.5px/1.35 var(--fb); color: var(--mut); margin-top: 4px; }
.trat .fin { margin-top: 6px; font: 800 12.5px var(--fb); color: var(--vi); }
.trat-b { display: flex; gap: 8px; margin-top: 14px; align-items: center; flex-wrap: wrap; }
.trat-b .btn { flex: 1; min-width: 140px; }
.estado { display: flex; gap: 4px; margin-top: 14px; }
.estado i { flex: 1; height: 8px; border-radius: 99px; background: var(--lila); }
.estado i.on { background: var(--vi); }
.estado-t { display: flex; justify-content: space-between; margin-top: 6px; font: 700 10.5px var(--fb); color: var(--mut); }
.estado-t span.on { color: var(--vi); font-weight: 800; }
.tomas { display: grid; gap: 8px; margin-top: 12px; }
.toma { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .08); border-radius: 16px; padding: 10px 12px; }
.toma b { flex: 1; font: 700 13.5px var(--fb); }
.toma small { font: 700 11px var(--fb); opacity: .7; }
.toma button { width: 34px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); display: grid; place-items: center; transition: background .2s; }
.toma button svg { width: 18px; height: 18px; stroke-width: 3; opacity: 0; }
.toma button.on { background: var(--li); box-shadow: none; color: var(--tinta); }
.toma button.on svg { opacity: 1; }
.receta-zona { display: grid; place-items: center; gap: 6px; border: 2.5px dashed var(--lila2); border-radius: 20px; padding: 18px; text-align: center; font: 700 13px var(--fb); color: var(--mut); cursor: pointer; background: #fff; }
.receta-zona img { max-height: 150px; border-radius: 12px; }
.receta-zona svg { width: 30px; height: 30px; color: var(--vi); }

/* pedidos */
.ped { margin: 0 16px 12px; border-radius: 24px; padding: 16px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 26px -16px rgba(59, 15, 140, .4); }
.ped-a { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ped-a b { font: 800 17px var(--ft); }
.ped-a small { font: 700 11.5px var(--fb); color: var(--mut); }
.minis { display: flex; gap: 6px; margin-top: 10px; overflow: hidden; }
.minis img { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }

/* hoja */
.sheet { position: absolute; inset: 0; z-index: 60; }
.sheet[hidden] { display: none; }
.sh-fondo { position: absolute; inset: 0; background: rgba(23, 10, 51, .5); animation: fade .3s; }
.sh-caja { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; background: var(--papel); border-radius: 30px 30px 0 0; padding: 22px 18px calc(22px + var(--sab)); animation: sheetin .45s var(--out); scrollbar-width: none; }
.sh-caja::-webkit-scrollbar { display: none; }
.sh-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; z-index: 2; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.sh-x svg { width: 18px; height: 18px; stroke-width: 2.6; }
@keyframes sheetin { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.ficha-ph { aspect-ratio: 1; max-height: 46vh; margin: 0 auto; background: #fff; border-radius: 26px; display: grid; place-items: center; padding: 14px; }
.ficha-ph img { max-height: 100%; width: auto; object-fit: contain; }
.ficha h2 { font: 800 23px/1.08 var(--ft); letter-spacing: -.02em; margin-top: 14px; }
.ficha .mc { font: 800 11px var(--fb); letter-spacing: .08em; text-transform: uppercase; color: var(--vi); margin-top: 16px; }
.ficha .pr { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.ficha .pr b { font: 800 30px var(--ft); letter-spacing: -.02em; }
.ficha .pr s { color: var(--mut); font-weight: 600; }
.suma { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: var(--lila); font: 700 13px/1.3 var(--fb); }
.suma .cruz-mini { flex: none; width: 28px; height: 28px; }
.suma.rx { background: #EFEDF5; color: var(--mut); }
.cant { display: inline-flex; align-items: center; gap: 4px; background: #fff; border-radius: 99px; padding: 4px; box-shadow: inset 0 0 0 1.5px var(--line); }
.cant button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 20px var(--fb); }
.cant b { min-width: 26px; text-align: center; font: 800 16px var(--fb); }
.ficha-pie { position: sticky; bottom: calc(-22px - var(--sab)); margin: 18px -18px calc(-22px - var(--sab)); padding: 14px 18px calc(16px + var(--sab)); background: var(--papel); display: flex; gap: 10px; align-items: center; box-shadow: 0 -10px 20px -12px rgba(23, 10, 51, .2); }
.ficha-pie .btn { flex: 1; }
.lin { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lin img { width: 56px; height: 56px; border-radius: 14px; background: #fff; object-fit: contain; flex: none; }
.lin div { flex: 1; min-width: 0; }
.lin .nm { font: 700 13px/1.25 var(--fb); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lin .pr { font: 800 14px var(--fb); margin-top: 3px; }
.lin .cant button { width: 30px; height: 30px; font-size: 16px; }
.lin .cant b { min-width: 18px; font-size: 13px; }
.opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.opciones button { border-radius: 18px; padding: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: 800 13.5px var(--fb); }
.opciones button small { display: block; font: 600 11.5px var(--fb); color: var(--mut); margin-top: 2px; }
.opciones button.on { box-shadow: inset 0 0 0 2.5px var(--vi); background: var(--lila); }
.tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; font-weight: 700; }
.tot b { font: 800 26px var(--ft); }
.campo { display: block; margin-top: 10px; }
.campo span { display: block; font: 800 11px var(--fb); letter-spacing: .06em; text-transform: uppercase; color: var(--mut); margin-bottom: 6px; }
.campo input, .campo select { width: 100%; height: 48px; border-radius: 14px; border: 0; padding: 0 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--lila2); font-weight: 700; outline: 0; }
.campo input:focus, .campo select:focus { box-shadow: inset 0 0 0 2.5px var(--vi); }
.ok-gran { text-align: center; padding: 10px 0; }
.ok-gran .ico { width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 30px; background: var(--li); display: grid; place-items: center; transform: rotate(-8deg); animation: pop .7s var(--spring); box-shadow: 0 6px 0 var(--li2); }
.ok-gran .ico::before { content: ""; width: 44px; height: 44px; background: var(--vid); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.ok-gran h2 { font: 800 28px/1 var(--ft); letter-spacing: -.03em; }
.ok-gran p { color: var(--mut); font-weight: 600; margin-top: 8px; }

#toast { position: absolute; left: 50%; top: calc(76px + var(--sat)); z-index: 90; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 99px; background: var(--tinta); color: #fff; font: 700 13.5px var(--fb); white-space: nowrap; transition: .35s var(--out); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.vuela { position: absolute; z-index: 80; width: 56px; height: 56px; border-radius: 14px; background: #fff; object-fit: contain; pointer-events: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); transition: transform .7s cubic-bezier(.5, -0.3, .7, 1), opacity .7s; }
.lluvia { position: absolute; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.lluvia i { position: absolute; top: -20px; width: 14px; height: 14px; background: var(--li); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); animation: caer 1.8s cubic-bezier(.3, .6, .6, 1) forwards; }
@keyframes caer { to { transform: translateY(110vh) rotate(540deg); } }

/* entrada */
#intro { position: fixed; inset: 0; z-index: 200; background: var(--vi); display: grid; place-items: center; align-content: center; gap: 22px; transition: opacity .5s .1s, visibility .6s; }
#intro.fuera { opacity: 0; visibility: hidden; }
.in-cruz { position: relative; width: 132px; height: 132px; }
.in-cruz i { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px; background: var(--li); border-radius: 12px; animation: armar .9s var(--spring) backwards; }
.in-cruz i:nth-child(1) { --x: 0; --y: -44px; animation-delay: .05s; }
.in-cruz i:nth-child(2) { --x: 44px; --y: 0; animation-delay: .15s; }
.in-cruz i:nth-child(3) { --x: 0; --y: 44px; animation-delay: .25s; }
.in-cruz i:nth-child(4) { --x: -44px; --y: 0; animation-delay: .35s; }
.in-cruz::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; background: var(--li); border-radius: 6px; animation: cent .5s .55s var(--spring) backwards; }
.in-cruz i { transform: translate(var(--x), var(--y)); }
@keyframes armar { from { transform: translate(calc(var(--x) * 5), calc(var(--y) * 5)) rotate(180deg) scale(.4); border-radius: 50%; } }
@keyframes cent { from { transform: scale(0) rotate(-90deg); } }
.in-cruz { animation: girarc 1.4s .7s var(--out) both; }
@keyframes girarc { 50% { transform: rotate(90deg) scale(1.1); } to { transform: rotate(90deg) scale(1); } }
.in-nom { color: #fff; font: 800 42px/1 var(--ft); letter-spacing: -.04em; text-align: center; padding: 0 20px; animation: subir .6s 1s var(--out) backwards; }

/* pantallas anchas */
@media (min-width: 600px) {
  .carr > * { flex-basis: 46%; }
  .rubros { grid-template-columns: repeat(6, 1fr); }
  .grilla { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
  .hola h1 { font-size: 44px; }
  #nav { left: 50%; right: auto; width: 520px; transform: translateX(-50%); }
  .sh-caja { left: 50%; right: auto; width: 620px; transform: translateX(-50%); border-radius: 30px 30px 0 0; animation: sheetin2 .45s var(--out); }
  @keyframes sheetin2 { from { transform: translate(-50%, 100%); } }
  .dos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 16px; }
  .dos > .bloque, .dos > .trat { margin: 0; }
}
@media (min-width: 901px) {
  body { background: var(--vin) radial-gradient(circle at 20% 20%, #3B0F8C, transparent 50%); }
  #app { box-shadow: 0 0 80px rgba(0, 0, 0, .35); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01s !important; transition-duration: .01s !important; } }
