:root {
  --paper: #F2F6FA;
  --surface: #FFFFFF;
  --ink: #1D3F5E;
  --ink-soft: #55718A;
  --line: #D5E1EC;
  --leaf: #234B6E;
  --leaf-dark: #1A3A56;
  --tag: #F4868C;
  --tag-dark: #EB6870;
  --danger: #C23B2B;
  --danger-bg: #FBE9E5;
  --ok: #1F7A4D;
  --ok-bg: #E2F4EA;
  --warn-bg: #FFF1CC;
  --seco: #E8A33D; --humedo: #2A9AA5; --snacks: #E8607F; --salud: #3F6FD9; --accesorios: #7C5BE8; --higiene: #43A878;
  --r-sm: 8px; --r-md: 14px; --r-lg: 24px;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --shadow-pop: 0 18px 40px -18px rgba(29, 63, 94, .40);
  --max: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--leaf); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tag-dark); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.muted { color: var(--ink-soft); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
[hidden] { display: none !important; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.2rem; border: 2px solid transparent; border-radius: 999px; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--leaf); color: #fff; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--leaf-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-tag { background: var(--tag); color: var(--ink); }
.btn-tag:hover { background: var(--tag-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #9d2e21; }
.btn-sm { min-height: 36px; padding: .35rem .85rem; font-size: .9rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--leaf); text-decoration: underline; cursor: pointer; font-weight: 600; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid transparent; background: transparent; cursor: pointer; display: grid; place-items: center; color: inherit; font-size: 1.35rem; }
.icon-btn:hover { background: var(--paper); }

/* ---------- Encabezado ---------- */
.announce { background: var(--tag); color: var(--ink); font-size: .875rem; font-weight: 600; }
.announce .wrap { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; padding: .45rem 0; }
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr-main { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto; gap: 1.5rem; align-items: center; padding: .5rem 0; }
.logo { display: block; line-height: 0; }
.logo img { width: 100px; height: auto; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); transform-origin: 50% 100%; }
.logo:hover img { transform: rotate(-4deg) scale(1.04); }
.search { position: relative; }
.search input { width: 100%; min-height: 46px; border-radius: 999px; border: 2px solid var(--line); padding: .5rem 1rem .5rem 2.8rem; background: var(--paper); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--leaf); background: #fff; }
.search input::placeholder { color: #66819a; }
.search::before { content: '🔍'; position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: .95rem; }
.hdr-actions { display: flex; gap: .25rem; align-items: center; }
.acct-btn { display: inline-flex; gap: .5rem; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; background: transparent; border: 0; cursor: pointer; }
.acct-btn:hover { background: var(--paper); }
.badge { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--tag); color: var(--ink); font: 800 .75rem/20px var(--font-body); text-align: center; }
.badge.bump { animation: bump .35s; }
@keyframes bump { 40% { transform: scale(1.35); } }

.nav-row { background: var(--ink); position: relative; }
.nav { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav > li { position: relative; flex: none; }
.nav-link { display: flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 .85rem; background: none; border: 0; color: #fff; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; border-bottom: 3px solid transparent; }
.nav-link:hover, .nav-link[aria-expanded="true"], .nav-link.active { border-bottom-color: var(--dot, var(--tag)); background: rgba(255, 255, 255, .07); }
.nav-link .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--tag)); }
.nav-link .caret { font-size: .65rem; opacity: .7; }
.menu { position: absolute; left: 0; top: 100%; min-width: 260px; background: var(--surface); color: var(--ink); border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: var(--shadow-pop); padding: .75rem; z-index: 70; border-top: 4px solid var(--dot, var(--tag)); }
.menu .menu-title { padding: .35rem .6rem; font-size: .85rem; color: var(--ink-soft); }
.menu a { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .6rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 500; }
.menu a:hover { background: var(--paper); }
.menu a.all { font-weight: 700; color: var(--leaf); }
.menu .n { color: var(--ink-soft); font-size: .85rem; }
.nav-mobile-toggle { display: none; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #C9D9E8; margin-top: 4rem; padding: 2.5rem 0; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: #C9D9E8; display: block; padding: .15rem 0; }
.site-footer .fine { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 1.5rem; padding-top: 1rem; font-size: .85rem; opacity: .8; }

/* ---------- Inicio ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 2rem; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.2rem; max-width: 34rem; color: var(--ink-soft); }
.hero .cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.who { background: var(--surface); border-radius: var(--r-lg); padding: 1.5rem; box-shadow: var(--shadow-pop); position: relative; border: 2px solid var(--ink); }
.who::before { content: ''; position: absolute; top: -14px; left: 50%; width: 22px; height: 22px; margin-left: -11px; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; }
.who h2 { font-size: 1.35rem; margin: .5rem 0 1rem; text-align: center; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.who-btn { display: grid; gap: .15rem; justify-items: center; padding: .85rem .4rem; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--paper); cursor: pointer; font-weight: 700; text-decoration: none; color: var(--ink); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1), border-color .15s, background .15s; }
.who-btn .e { font-size: 2.1rem; line-height: 1.1; }
.who-btn .c { font-size: .8rem; font-weight: 500; color: var(--ink-soft); }
.who-btn:hover { transform: rotate(-3deg) translateY(-3px); border-color: var(--ink); background: var(--tag); }
.who-btn:nth-child(even):hover { transform: rotate(3deg) translateY(-3px); }

.section { padding: 2.5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .9rem; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; padding: 1rem; border-radius: var(--r-md); background: var(--c); color: #fff; text-decoration: none; overflow: hidden; transition: transform .2s; }
.cat-tile:hover { transform: translateY(-4px) rotate(-.6deg); }
.cat-tile .e { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .12)); }
.cat-tile strong { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.1; display: block; }
.cat-tile span.n { font-size: .85rem; opacity: .92; }
.cat-tile::after { content: ''; position: absolute; right: -28px; top: -28px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.cat-tile.dark-text { color: var(--ink); }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.perk { display: flex; gap: .9rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.perk .e { font-size: 1.8rem; }
.perk h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.perk p { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ---------- Productos ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-pop); transform: translateY(-3px); }
.art { position: relative; display: grid; place-items: center; aspect-ratio: 1 / .82; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 22%, white), color-mix(in srgb, var(--c) 48%, white)); font-size: 4.2rem; overflow: hidden; text-decoration: none; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.art .emoji { filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .1)); }
.chip { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--paper); color: var(--ink); }
.flag { position: absolute; top: .6rem; left: .6rem; padding: .2rem .65rem; border-radius: 999px; font-size: .78rem; font-weight: 800; background: var(--ink); color: #fff; }
.flag.off { background: var(--danger); }
.flag.rx { left: auto; right: .6rem; background: var(--salud); }
.card-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-body .brand { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.card-body h3 { font-size: 1.02rem; margin: 0; font-family: var(--font-body); font-weight: 700; letter-spacing: 0; line-height: 1.25; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-body .size { font-size: .88rem; color: var(--ink-soft); }
.card-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: .5rem; padding-top: .5rem; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.price s { display: block; font: 500 .8rem var(--font-body); color: var(--ink-soft); margin-bottom: .15rem; }
.stock-low { font-size: .8rem; color: var(--danger); font-weight: 700; }
.add { min-width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--tag); color: var(--ink); font-size: 1.4rem; font-weight: 800; cursor: pointer; transition: transform .15s; }
.add:hover { transform: scale(1.1) rotate(8deg); background: var(--tag-dark); }
.add[disabled] { background: var(--line); cursor: not-allowed; transform: none; }
.sold-out { color: var(--ink-soft); font-weight: 700; font-size: .9rem; }

/* ---------- Tienda ---------- */
.shop { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; padding: 1.5rem 0; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; }
.filters h3 { font-family: var(--font-body); font-size: .95rem; margin: 1.1rem 0 .5rem; }
.filters h3:first-child { margin-top: 0; }
.f-list { list-style: none; margin: 0; padding: 0; }
.f-list button { display: flex; width: 100%; justify-content: space-between; gap: .5rem; padding: .4rem .6rem; border: 0; background: none; border-radius: var(--r-sm); cursor: pointer; text-align: left; }
.f-list button:hover { background: var(--paper); }
.f-list button[aria-pressed="true"] { background: var(--ink); color: #fff; font-weight: 700; }
.f-list .sub button { padding-left: 1.6rem; font-size: .92rem; }
.f-list .n { opacity: .65; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips button { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: .25rem .7rem; cursor: pointer; font-weight: 600; font-size: .9rem; }
.chips button[aria-pressed="true"] { background: var(--tag); border-color: var(--ink); }
.shop-top { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.shop-top h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; }
.active-filters { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pill-x { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .4rem .25rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 600; }
.pill-x button { border: 0; background: var(--paper); border-radius: 50%; width: 22px; height: 22px; cursor: pointer; line-height: 1; }
.filter-toggle { display: none; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--surface); border: 2px dashed var(--line); border-radius: var(--r-md); }
.empty .e { font-size: 3rem; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: .3rem; margin-bottom: .9rem; }
.field label, .field .lbl { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 44px; padding: .55rem .8rem; border: 2px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(35, 75, 110, .22); }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.alert { padding: .75rem 1rem; border-radius: var(--r-sm); margin-bottom: 1rem; font-weight: 500; }
.alert.err { background: var(--danger-bg); color: #7d2318; border: 1px solid #efc2ba; }
.alert.ok { background: var(--ok-bg); color: #145535; border: 1px solid #b6e2c8; }
.alert.warn { background: var(--warn-bg); color: #6b4a00; border: 1px solid #f1d98b; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; }
.radio-card { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; border: 2px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: #fff; margin-bottom: .6rem; }
.radio-card:has(input:checked) { border-color: var(--leaf); background: #EEF4FA; }
.radio-card input { margin-top: .3rem; accent-color: var(--leaf); width: 18px; height: 18px; }
.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.check input { margin-top: .25rem; width: 18px; height: 18px; accent-color: var(--leaf); }
.pet-row { display: grid; grid-template-columns: 1fr 140px 44px; gap: .5rem; margin-bottom: .5rem; }

/* ---------- Páginas ---------- */
.page { padding: 2rem 0; }
.narrow { width: min(100% - 2.5rem, 520px); margin-inline: auto; }
.auth-card { margin-top: 1rem; }
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs button, .tabs a { padding: .65rem 1.1rem; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 700; cursor: pointer; color: var(--ink-soft); white-space: nowrap; text-decoration: none; }
.tabs [aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tag-dark); }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-soft); }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.pd .art { aspect-ratio: 1; font-size: 9rem; border-radius: var(--r-lg); }
.pd .price { font-size: 2.2rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.2rem; font-weight: 800; cursor: pointer; border-radius: 50%; }
.qty button:hover { background: var(--paper); }
.qty output { min-width: 34px; text-align: center; font-weight: 700; }
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.summary { position: sticky; top: 130px; }
.sum-line { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.sum-line.total { border-top: 2px solid var(--ink); margin-top: .5rem; padding-top: .75rem; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.mini-item { display: flex; gap: .75rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.mini-item .thumb { width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 1.8rem; background: color-mix(in srgb, var(--c) 30%, white); flex: none; overflow: hidden; }
.mini-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-item .info { flex: 1; min-width: 0; }
.mini-item .info strong { display: block; font-size: .95rem; line-height: 1.25; }

.timeline { display: flex; gap: 0; margin: 1.25rem 0; list-style: none; padding: 0; overflow-x: auto; }
.timeline li { flex: 1; min-width: 90px; text-align: center; position: relative; font-size: .85rem; color: var(--ink-soft); padding-top: 34px; }
.timeline li::before { content: ''; position: absolute; top: 8px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--line); z-index: 1; }
.timeline li::after { content: ''; position: absolute; top: 16px; left: -50%; width: 100%; height: 4px; background: var(--line); }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: var(--ink); font-weight: 700; }
.timeline li.done::before, .timeline li.done::after { background: var(--leaf); }
.timeline li.now::before { background: var(--tag); box-shadow: 0 0 0 4px rgba(244, 134, 140, .35); }
.status { display: inline-block; padding: .15rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--warn-bg); color: #6b4a00; }
.status.confirmado, .status.preparando { background: #DDEBFF; color: #1f4a99; }
.status.enviado { background: #E7E0FF; color: #4b36a8; }
.status.entregado, .status.pagado { background: var(--ok-bg); color: #145535; }
.status.cancelado { background: var(--danger-bg); color: #7d2318; }
.order-row { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: .6rem; text-decoration: none; color: inherit; }
.order-row:hover { border-color: var(--ink); }
.confirm-banner { background: var(--tag); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 1.5rem; margin-bottom: 1.5rem; }
.confirm-banner h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: .3rem; }

/* ---------- Carrito (cajón) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(10, 22, 34, .55); z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(430px, 100%); background: var(--paper); z-index: 100; transform: translateX(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .5); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; background: var(--ink); color: #fff; }
.drawer-head h2 { margin: 0; font-size: 1.3rem; }
.drawer-body { flex: 1; overflow: auto; padding: 1rem 1.25rem; }
.drawer-foot { padding: 1rem 1.25rem; background: var(--surface); border-top: 1px solid var(--line); }
.free-bar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin: .4rem 0 .9rem; }
.free-bar i { display: block; height: 100%; background: var(--tag-dark); transition: width .3s; }
.cart-line { display: flex; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 64px; height: 64px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 2.2rem; background: color-mix(in srgb, var(--c) 30%, white); flex: none; overflow: hidden; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .info { flex: 1; min-width: 0; }
.cart-line .info strong { display: block; line-height: 1.25; }
.cart-line .qty { margin-top: .35rem; }
.cart-line .qty button { width: 32px; height: 32px; }

/* ---------- Avisos y modal ---------- */
.toasts { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 300; display: grid; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--r-md); box-shadow: var(--shadow-pop); font-weight: 600; animation: pop .25s cubic-bezier(.3, 1.4, .5, 1); border-left: 6px solid var(--tag); }
.toast.err { border-left-color: #ff7a66; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.modal { border: 0; border-radius: var(--r-lg); padding: 0; width: min(94vw, 560px); max-height: 92vh; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); }
.modal::backdrop { background: rgba(10, 22, 34, .6); }
.modal-in { padding: 1.5rem; }
.modal-in h2 { font-size: 1.5rem; }
.modal-actions { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }

/* ---------- Panel del equipo ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.1rem; }
.stat .v { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat .l { color: var(--ink-soft); font-size: .9rem; }
.two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.bars { display: flex; align-items: end; gap: .6rem; height: 160px; padding-top: .5rem; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: end; height: 100%; gap: .3rem; font-size: .75rem; color: var(--ink-soft); }
.bars .b i { display: block; width: 100%; background: var(--leaf); border-radius: 6px 6px 0 0; min-height: 3px; }
.bars .b b { color: var(--ink); font-size: .78rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--paper); font-size: .85rem; white-space: nowrap; position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.archived { opacity: .55; }
.stock-pill { display: inline-block; min-width: 2.2rem; text-align: center; padding: .1rem .6rem; border-radius: 999px; font-weight: 800; background: var(--ok-bg); color: #145535; }
.stock-pill.low { background: var(--warn-bg); color: #6b4a00; }
.stock-pill.out { background: var(--danger-bg); color: #7d2318; }
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar input[type=search], .toolbar select { min-height: 40px; padding: .4rem .8rem; border: 2px solid var(--line); border-radius: 999px; background: #fff; }
.toolbar .grow { flex: 1; min-width: 180px; }
.mov-in { color: var(--ok); font-weight: 800; }
.mov-out { color: var(--danger); font-weight: 800; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--leaf); animation: spin .8s linear infinite; margin: 3rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #E1EAF3 25%, #F2F6FA 50%, #E1EAF3 75%); background-size: 200% 100%; animation: sh 1.3s infinite; border-radius: var(--r-md); min-height: 280px; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .hero, .pd, .checkout, .two { grid-template-columns: 1fr; }
  .shop { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0 auto 0 0; width: min(330px, 92vw); z-index: 120; border-radius: 0; max-height: none; transform: translateX(-105%); transition: transform .25s; }
  .filters.open { transform: none; }
  .filter-toggle { display: inline-flex; }
  .summary { position: static; }
  .perks { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hdr-main { grid-template-columns: auto 1fr auto; gap: .5rem; }
  .hdr-main .search { grid-column: 1 / -1; order: 3; }
    .acct-btn .t { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .art { font-size: 3.2rem; }
  .card-body { padding: .7rem; }
  .order-row { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Ajustes finos */
td:first-child { white-space: nowrap; }
@media (max-width: 640px) {
  .announce .wrap { padding: .4rem 0; }
  .announce .wrap span:not(:first-child) { display: none; }
}

.foot-logo { width: 130px; height: auto; margin-bottom: .8rem; }
.logo-big { max-width: 220px; margin: 0 auto 1rem; }
@media (max-width: 640px) { .logo img { width: 62px; } }

/* Ver / ocultar contraseña */
.pw { position: relative; display: block; }
.pw input { padding-right: 3rem; }
.pw-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r-sm); color: var(--ink-soft); cursor: pointer; }
.pw-eye:hover { color: var(--leaf); }
.pw-eye:focus-visible { outline: 3px solid var(--leaf); outline-offset: -3px; }
