/* Propuesta 3 · Asistente primero: oscura, colores neón del logo, estilo app */
:root {
  --bg: #0B1530; --bg2: #111E42; --card: #16244D; --line: rgb(255 255 255 / .1);
  --ink: #F2F5FF; --muted: #A9B4D6;
  --pink: #FF4FA3; --yellow: #FFD43B; --cyan: #3DD9FF; --green: #3CE07A; --blue: #4C7DFF;
  --r: 22px; --wrap: min(1180px, 100% - 40px);
  --d: "Poppins", system-ui, sans-serif; --t: "Inter", system-ui, sans-serif;
  --w-ink: var(--ink); --w-paper: #101C3E; --w-main: var(--yellow); --w-main-ink: #0B1530; --w-alt: var(--cyan);
  --w-border: 1px solid rgb(255 255 255 / .14); --w-radius: 16px; --w-shadow: 0 30px 80px -20px rgb(0 0 0 / .7); --w-shadow-sm: 0 0 0 0 transparent;
  --w-display: var(--d); --w-text: var(--t);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
body { margin: 0; font: 400 16px/1.6 var(--t); color: var(--ink); background: var(--bg); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
button, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 10px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 10px; }
h1, h2, h3 { font-family: var(--d); margin: 0; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; margin-bottom: 28px; }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(16px, 1.3vw, 19px); max-width: 58ch; }
.eyebrow { font: 600 13px var(--d); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.grad { background: linear-gradient(90deg, var(--yellow), var(--pink) 50%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200%; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 14px; border: 0; font: 600 15px var(--d); transition: transform .15s, box-shadow .2s, opacity .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn--neon { background: var(--yellow); color: #0B1530; box-shadow: 0 0 30px -6px var(--yellow); }
.btn--ghost { background: rgb(255 255 255 / .08); border: 1px solid var(--line); }

.switcher { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; align-items: center; padding: 8px 12px; background: #060C1E; font: 600 13px var(--t); }
.switcher span { opacity: .7; margin-right: 4px; }
.switcher a { text-decoration: none; padding: 4px 10px; border-radius: 99px; }
.switcher a[aria-current="page"] { background: #12B3A6; color: #04130C; }
.switcher a:hover { background: rgb(255 255 255 / .12); }

.top { position: sticky; top: 0; z-index: 60; background: rgb(11 21 48 / .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; height: 74px; }
.logo img { height: 52px; width: auto; border-radius: 12px; box-shadow: 0 0 0 2px rgb(255 255 255 / .15); }
.top__nav { display: flex; gap: 4px; margin-right: auto; }
.top__nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: color .2s, background .2s; }
.top__nav a:hover { color: #fff; background: rgb(255 255 255 / .06); }
.pill-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 18px; border-radius: 99px; border: 1px solid var(--line); background: rgb(255 255 255 / .06); font: 600 15px var(--d); }
.pill-btn b, .tabbar b { min-width: 30px; height: 30px; border-radius: 99px; background: var(--yellow); color: #0B1530; display: inline-grid; place-items: center; font-size: 13px; }
[data-cart-n].bump { animation: bmp .5s; }
@keyframes bmp { 40% { transform: scale(1.4); } }
@media (max-width: 860px) { .top__nav { display: none; } .top__in { justify-content: space-between; } }

/* hero con buscador */
.hero { position: relative; padding: 80px 0 90px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.g1 { width: 420px; height: 420px; background: #FF4FA3; left: -120px; top: -60px; }
.g2 { width: 380px; height: 380px; background: #3D6BFF; right: -100px; top: 40px; animation-delay: -4s; }
.g3 { width: 300px; height: 300px; background: #FFD43B; left: 40%; bottom: -200px; opacity: .3; animation-delay: -8s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.1); } }
.hero__in { position: relative; text-align: center; display: grid; justify-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: rgb(255 255 255 / .07); border: 1px solid var(--line); font-size: 14px; font-weight: 600; margin-bottom: 26px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgb(60 224 122 / .2); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgb(60 224 122 / 0); } }
.hero h1 { font-size: clamp(44px, 7vw, 96px); font-weight: 800; margin-bottom: 18px; }
.hero .lead { margin: 0 auto 34px; }
.ask { position: relative; width: min(760px, 100%); display: flex; align-items: flex-end; gap: 10px; padding: 10px 10px 10px 22px; border-radius: 26px; background: rgb(255 255 255 / .96); color: #0B1530; box-shadow: 0 0 0 6px rgb(255 255 255 / .06), 0 30px 80px -30px #FF4FA3; }
.ask textarea { flex: 1; border: 0; outline: 0; resize: none; background: none; font-size: 18px; line-height: 1.5; padding: 12px 0; max-height: 180px; color: #0B1530; }
.ask textarea::placeholder { color: #7A86A8; }
.ask__go { width: 56px; height: 56px; flex: none; border-radius: 18px; border: 0; background: linear-gradient(135deg, var(--pink), #FF7A59); color: #fff; display: grid; place-items: center; transition: transform .15s; }
.ask__go:hover { transform: scale(1.06) rotate(-6deg); }
.ask__go svg { width: 24px; height: 24px; }
.results { width: min(760px, 100%); text-align: left; margin-top: 14px; display: grid; gap: 10px; }
.results:empty { display: none; }
.res-act { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: rgb(255 255 255 / .07); border: 1px solid var(--line); animation: up .35s backwards; text-align: left; width: 100%; color: inherit; }
.res-act:hover { background: rgb(255 255 255 / .12); }
.res-act i { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font: 700 16px var(--d); font-style: normal; color: #0B1530; }
.res-act b { display: block; font-family: var(--d); }
.res-act span { color: var(--muted); font-size: 14px; }
.res-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.res-prod { background: rgb(255 255 255 / .07); border: 1px solid var(--line); border-radius: 16px; padding: 8px; display: grid; gap: 6px; animation: up .35s backwards; }
.res-prod img, .res-prod .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; background: #233466; }
.res-prod b { font-size: 13.5px; line-height: 1.3; }
.res-prod div { display: flex; justify-content: space-between; align-items: center; }
.res-prod span { font: 700 15px var(--d); color: var(--yellow); }
.res-prod button { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--yellow); color: #0B1530; font: 700 20px/1 var(--d); }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }
.sugg { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 18px; width: min(760px, 100%); }
.sugg button { border: 1px solid var(--line); background: rgb(255 255 255 / .05); border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s, border-color .2s; }
.sugg button:hover { color: #fff; border-color: var(--cyan); }

/* secciones */
.sec { padding: 90px 0; }
.sec--alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
@media (max-width: 640px) { .sec { padding: 64px 0; } }

/* acciones */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; text-align: left; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-height: 180px; background: var(--card); display: flex; flex-direction: column; justify-content: space-between; color: inherit; transition: transform .25s, border-color .25s; }
.tile::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; border-radius: 50%; background: var(--c); opacity: .22; filter: blur(10px); transition: transform .4s; }
.tile:hover { transform: translateY(-5px); border-color: var(--c); }
.tile:hover::after { transform: scale(1.4); }
.tile i { width: 52px; height: 52px; border-radius: 16px; background: var(--c); color: #0B1530; display: grid; place-items: center; font-style: normal; }
.tile i svg { width: 26px; height: 26px; }
.tile b { display: block; font: 700 21px var(--d); margin-top: 18px; }
.tile span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr; } .tile { min-height: 0; } }

/* morral */
.morral { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.morral__head { grid-column: 1 / -1; }
.shelf { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; padding: 22px; border-radius: var(--r); background: repeating-linear-gradient(#16244D 0 66px, #0E1A3B 66px 72px); border: 1px solid var(--line); min-height: 300px; }
.item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; color: #0B1530; font: 600 14px var(--d); cursor: grab; user-select: none; border: 0; box-shadow: 0 6px 0 rgb(0 0 0 / .25); transition: transform .15s; touch-action: none; }
.item:hover { transform: translateY(-3px) rotate(-2deg); }
.item.dragging { opacity: .4; }
.item i { width: 14px; height: 14px; border-radius: 4px; background: var(--c); }
.item small { color: #56607A; font-weight: 600; }
.bag { position: sticky; top: 100px; display: grid; justify-items: center; gap: 12px; padding: 22px; border-radius: var(--r); border: 2px dashed rgb(255 255 255 / .2); background: var(--card); transition: border-color .2s, background .2s, transform .2s; }
.bag.over { border-color: var(--yellow); background: #1D2E60; transform: scale(1.02); }
.bag.gulp .bag__svg { animation: gulp .4s; }
@keyframes gulp { 40% { transform: scale(1.1, .92); } }
.bag__svg { width: 160px; height: auto; }
.bag__info { text-align: center; }
.bag__info b { display: block; font: 700 20px var(--d); }
.bag__info span { font: 800 34px var(--d); color: var(--yellow); }
.bag__items { list-style: none; margin: 0; padding: 0; width: 100%; max-height: 170px; overflow-y: auto; display: grid; gap: 6px; }
.bag__items li { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgb(255 255 255 / .06); font-size: 14px; animation: up .3s; }
.bag__items button { border: 0; background: none; color: var(--muted); font-size: 18px; width: 30px; height: 30px; }
.bag__btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; width: 100%; }
@media (max-width: 860px) { .morral { grid-template-columns: 1fr; } .bag { position: static; } }

/* ofertas */
.timer { font: 700 18px var(--d); color: var(--pink); }
.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.deal { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.deal__img { position: relative; aspect-ratio: 16/10; }
.deal__img img { width: 100%; height: 100%; object-fit: cover; }
.deal__off { position: absolute; top: 12px; left: 12px; background: var(--pink); color: #fff; font: 800 18px var(--d); padding: 6px 12px; border-radius: 12px; transform: rotate(-4deg); box-shadow: 0 0 24px -4px var(--pink); }
.deal__body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.deal__body h3 { font-size: 18px; }
.deal__price { display: flex; gap: 10px; align-items: baseline; }
.deal__price b { font: 800 26px var(--d); color: var(--yellow); }
.deal__price s { color: var(--muted); }
.stock { height: 8px; border-radius: 99px; background: rgb(255 255 255 / .1); overflow: hidden; }
.stock i { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--pink)); border-radius: inherit; }
.deal small { color: var(--muted); font-weight: 600; }
.fine { color: var(--muted); font-size: 13px; margin-top: 14px; }
@media (max-width: 860px) { .deals { grid-template-columns: 1fr; } }

/* catálogo */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filters button { border: 1px solid var(--line); background: rgb(255 255 255 / .05); color: var(--muted); border-radius: 99px; padding: 8px 14px; font-weight: 600; font-size: 14px; }
.filters button[aria-pressed="true"] { background: #fff; color: #0B1530; }
.cgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cp { height: 100%; display: flex; flex-direction: column; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; animation: up .35s backwards; transition: transform .2s, border-color .2s; }
.cp:hover { transform: translateY(-4px); border-color: rgb(255 255 255 / .3); }
.cp__img { aspect-ratio: 4/3; overflow: hidden; background: #233466; }
.cp__img img, .cp__img svg { width: 100%; height: 100%; object-fit: cover; }
.cp__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cp__body h3 { font-size: 15px; font-weight: 600; line-height: 1.3; }
.cp__row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cp__row b { font: 700 18px var(--d); }
.cp__row button { border: 0; border-radius: 10px; padding: 8px 12px; background: var(--yellow); color: #0B1530; font: 600 14px var(--d); }
.cp__row .sep { background: rgb(255 255 255 / .1); color: #fff; }
@media (max-width: 960px) { .cgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .cgrid { grid-template-columns: 1fr 1fr; gap: 10px; } .cp__row { flex-wrap: wrap; } .cp__row button { flex: 1; } }

/* visita, pie y barra inferior */
.visit { display: grid; grid-template-columns: 1.3fr .7fr; gap: 30px; align-items: center; }
.visit h2 { margin-bottom: 14px; }
.visit__stats { display: grid; gap: 12px; }
.visit__stats div { padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.visit__stats b { display: block; font: 700 24px var(--d); color: var(--yellow); }
.visit__stats span { color: var(--muted); }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; } }
.foot { padding: 30px 0 110px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot img { height: 48px; width: auto; border-radius: 10px; }
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 70; display: grid; grid-template-columns: repeat(5, 1fr); background: rgb(16 28 62 / .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 22px; padding: 6px; }
  .tabbar a, .tabbar button { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; color: var(--muted); font: 600 11px var(--t); text-decoration: none; min-height: 50px; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar b { position: absolute; top: 0; right: 14%; min-width: 18px; height: 18px; font-size: 10px; }
  .fabwrap { display: none; }
  .hero { padding: 50px 0 60px; }
  .ask { border-radius: 20px; padding-left: 16px; }
  .ask textarea { font-size: 16px; }
}
.deal__img { overflow: hidden; }
.deal__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile { justify-content: flex-start; gap: 18px; }
.tile b { margin-top: 0; }
@media (max-width: 760px) { .ask textarea { min-height: 3.2em; } }
