/* =========================================================
   FAST PET · Hoja de estilos principal
   Layout: tienda clara y amable, bloques redondeados, header
   fijo con buscador; acento de marca solo en acciones.
   >>> Para cambiar los colores de la marca, edita SOLO el
       bloque :root de abajo. <<<
   ========================================================= */
:root {
  /* Paleta del manual de marca FastPet */
  --brand: #4f248f;        /* morado principal (botones, acentos) */
  --brand-dark: #3b1a6d;   /* hover del principal */
  --brand-soft: #ebe2f6;   /* lila muy suave */
  --ink: #2a1650;          /* texto y franjas oscuras */
  --sun: #b891ec;          /* lila de acento (badges, foco, cifras) */
  --bg: #ffffff;
  --paper: #f6f1f8;        /* fondo de secciones alternas */
  --line: #e4dcef;
  --muted: #6d6480;
  --ok: #17915a;
  --ok-soft: #e7f6ee;
  --warn: #b7791f;
  --warn-soft: #fff6e0;
  --danger: #c2372b;
  --danger-soft: #fdecea;

  --f-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --f-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --shadow: 0 6px 24px rgba(42, 22, 80, .10);
  --wrap: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--f-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.section { padding-block: clamp(36px, 6vw, 64px); }
.section--paper { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head p { color: var(--muted); }
.eyebrow { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--brand); }
.muted { color: var(--muted); }
.link { color: var(--brand-dark); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 800; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wa { background: #1fa855; color: #fff; }
.btn--wa:hover { background: #178a45; }
.btn--block { width: 100%; white-space: normal; text-align: center; padding-block: 8px; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }

/* ---------- Barra superior y header ---------- */
.topbar { background: var(--ink); color: #fff; font-size: .88rem; }
.topbar .wrap { display: flex; gap: 24px; justify-content: center; padding-block: 8px; overflow-x: auto; scrollbar-width: none; }
.topbar span { white-space: nowrap; }
.topbar b { color: var(--sun); }
.demo-note { background: var(--warn-soft); color: var(--warn); font-size: .82rem; text-align: center; padding: 6px 16px; font-weight: 700; }

.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 16px; padding-block: 12px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); flex-shrink: 0; }
.logo img { height: 48px; width: auto; }
.logo__mark { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); display: grid; place-items: center; }
.logo__mark svg { width: 22px; height: 22px; }
.logo em { font-style: normal; color: var(--brand); }
.search { flex: 1; display: flex; min-width: 0; position: relative; }
.search input {
  width: 100%; min-height: 46px; border: 2px solid var(--line); border-radius: 999px; padding: 0 48px 0 18px; background: var(--paper);
}
.search input:focus { outline: none; border-color: var(--brand); background: #fff; }
.search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; cursor: pointer; display: grid; place-items: center; }
.header__actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; text-decoration: none; color: var(--ink); }
.icon-btn:hover { background: var(--paper); }
.icon-btn svg { width: 24px; height: 24px; }
.badge-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.badge-count[data-n="0"] { display: none; }
.menu-btn { display: none; }

.nav { border-top: 1px solid var(--line); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a { display: block; padding: 12px 14px; text-decoration: none; font-weight: 700; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brand); }
.nav .nav__hot { color: var(--brand-dark); }

@media (max-width: 760px) {
  .header__row { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; }
  .header__actions { margin-left: auto; }
  .logo { font-size: 1.3rem; }
}

/* ---------- Hero / carrusel ---------- */
.hero { padding-block: 20px; }
.slides { position: relative; border-radius: var(--r-l); overflow: hidden; }
.slide { display: none; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px; padding: clamp(24px, 5vw, 56px); min-height: 320px; }
.slide.is-active { display: grid; }
.slide h1, .slide h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
.slide p { margin-top: 12px; font-size: 1.08rem; max-width: 46ch; }
.slide__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.slide__art { display: grid; place-items: center; }
.slide__art svg { width: min(100%, 360px); height: auto; }
.slide__art img { max-height: 340px; width: auto; }
.slide--a { background: var(--brand-soft); }
.slide--b { background: #f1eafb; }
.slide--c { background: #e9e1f7; }
.slide__tag { display: inline-block; background: var(--ink); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px; }
.slides__dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slides__dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(42,22,80,.25); cursor: pointer; }
.slides__dots button[aria-current="true"] { background: var(--ink); width: 26px; }
@media (max-width: 760px) { .slide { grid-template-columns: 1fr; } .slide__art { order: -1; } .slide__art svg { width: 200px; } .slide__art img { max-height: 220px; } }

/* ---------- Beneficios ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.perk { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: var(--r-m); background: var(--paper); }
.perk svg { width: 34px; height: 34px; flex-shrink: 0; color: var(--brand); }
.perk b { display: block; font-size: .98rem; }
.perk span { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .perks { grid-template-columns: 1fr; } }

/* ---------- Categorías (círculos) ---------- */
.cats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.cat { text-align: center; text-decoration: none; display: grid; gap: 10px; justify-items: center; font-weight: 800; }
.cat__img { width: 100%; max-width: 132px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; transition: transform .15s; }
.cat:hover .cat__img { transform: translateY(-4px); }
.cat__img svg { width: 56%; height: 56%; }
@media (max-width: 1000px) { .cats { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .cats { grid-template-columns: repeat(3, 1fr); gap: 10px; } .cat { font-size: .82rem; } }

/* ---------- Bloque perro / gato ---------- */
.species { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.species a { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; border-radius: var(--r-l); text-decoration: none; min-height: 180px; }
.species h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
.species p { margin-top: 6px; }
.species svg { width: 120px; height: 120px; flex-shrink: 0; }
.species__dog { background: var(--brand-soft); }
.species__cat { background: #e6dcf6; }
@media (max-width: 640px) { .species { grid-template-columns: 1fr; } .species svg { width: 90px; height: 90px; } }

/* ---------- Herramientas destacadas ---------- */
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tool-card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.tool-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.tool-card__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.tool-card__icon svg { width: 28px; height: 28px; }
.tool-card p { color: var(--muted); font-size: .94rem; }
.tool-card .link { margin-top: 4px; }
@media (max-width: 960px) { .tools { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .tools { grid-template-columns: 1fr; } }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 800; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Tarjeta de producto ---------- */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .grid-products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid-products { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; transition: box-shadow .15s; }
.card:hover { box-shadow: var(--shadow); }
.card__img { aspect-ratio: 1; background: var(--paper); display: grid; place-items: center; padding: 14px; }
.card__img svg { width: 78%; height: auto; }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__brand { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card__name { font-weight: 800; line-height: 1.3; text-decoration: none; font-size: .98rem; }
.card__name::after { content: ""; position: absolute; inset: 0; }
.card__price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.card__sub { font-size: .8rem; color: var(--ok); font-weight: 700; }
.card .btn { position: relative; z-index: 1; margin-top: 8px; }
.tag { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--brand); color: #fff; font-weight: 900; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.tag--new { background: var(--ink); color: #fff; }

/* ---------- Marcas ---------- */
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.brand-chip { display: grid; place-items: center; min-height: 72px; padding: 10px; border-radius: var(--r-m); border: 1px solid var(--line); text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; text-align: center; background: #fff; }
.brand-chip:hover { border-color: var(--ink); }


/* ---------- Franja horario ---------- */
.cutoff { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 22px 26px; border-radius: var(--r-l); background: var(--ink); color: #fff; }
.cutoff__clock { font-family: var(--f-display); font-size: 2rem; font-weight: 700; color: var(--sun); font-variant-numeric: tabular-nums; }
.cutoff p { color: #c9d1e3; }
@media (max-width: 720px) { .cutoff { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d6dcea; margin-top: 40px; }
.footer .wrap { padding-block: 44px 24px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo { color: #fff; margin-bottom: 12px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Carrito lateral ---------- */
.drawer-bg { position: fixed; inset: 0; background: rgba(30, 14, 60, .45); z-index: 90; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 100; background: #fff;
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
  box-shadow: -10px 0 40px rgba(0,0,0,.15);
}
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 14px; align-content: start; }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ship-meter { font-size: .88rem; }
.ship-meter__bar { height: 8px; border-radius: 999px; background: var(--paper); overflow: hidden; margin-top: 6px; }
.ship-meter__bar i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.line-item__img { width: 64px; height: 64px; border-radius: 12px; background: var(--paper); display: grid; place-items: center; }
.line-item__img svg { width: 80%; }
.line-item__name { font-weight: 800; font-size: .92rem; line-height: 1.3; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-weight: 900; font-size: 1.05rem; }
.qty span { min-width: 24px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.total { font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 32px 8px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; z-index: 200; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Migas ---------- */
.crumbs { font-size: .86rem; color: var(--muted); padding-block: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Ficha de producto ---------- */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.pdp > * { min-width: 0; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.gallery { position: sticky; top: 140px; display: grid; gap: 12px; }
@media (max-width: 860px) { .gallery { position: static; } }
.gallery__main { aspect-ratio: 1; border-radius: var(--r-l); background: var(--paper); display: grid; place-items: center; padding: 8%; }
.gallery__main svg { width: 80%; }
.gallery__thumbs { display: flex; gap: 10px; }
.gallery__thumbs button { width: 72px; height: 72px; border-radius: 12px; border: 2px solid var(--line); background: var(--paper); padding: 6px; cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--brand); }
.gallery__thumbs svg { width: 100%; height: 100%; }
.pdp__info { display: grid; gap: 16px; }
.pdp__brand { font-weight: 800; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; text-decoration: none; }
.pdp__title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
.stars { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); }
.stars b { color: var(--warn); letter-spacing: 2px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pdp__price .price { font-size: 2.2rem; }
.save { background: var(--ok-soft); color: var(--ok); font-weight: 800; font-size: .85rem; padding: 3px 10px; border-radius: 999px; }
.pdp__lead { font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .86rem; font-weight: 700; }
.formats { display: flex; gap: 8px; flex-wrap: wrap; }
.format { border: 2px solid var(--line); background: #fff; border-radius: var(--r-s); padding: 10px 14px; cursor: pointer; font-weight: 800; text-align: left; }
.format small { display: block; font-weight: 600; color: var(--muted); }
.format[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.buy-row .qty button { width: 42px; height: 46px; }
.buy-row .btn--brand { flex: 1; min-width: 180px; }

.buy-mode { display: grid; gap: 8px; }
.buy-opt { display: flex; gap: 12px; align-items: center; border: 2px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; cursor: pointer; }
.buy-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.buy-opt input { accent-color: var(--brand); width: 20px; height: 20px; }
.buy-opt div { flex: 1; }
.buy-opt small { display: block; color: var(--muted); }
.buy-opt select { margin-top: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; }

.ship-box { border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; display: grid; gap: 10px; font-size: .92rem; }
.ship-box div { display: flex; gap: 10px; align-items: start; }
.ship-box svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand); margin-top: 2px; }

.pdp-tabs { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); margin-top: 40px; }
.pdp-tabs ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.pdp-tabs a { display: block; padding: 14px 14px; text-decoration: none; font-weight: 800; white-space: nowrap; border-bottom: 3px solid transparent; }
.pdp-tabs a:hover { border-bottom-color: var(--brand); }
.pdp-block { padding-block: 36px; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.pdp-block > h2 { margin-bottom: 18px; }
.pdp-block .prose { max-width: 70ch; display: grid; gap: 12px; font-size: 1.03rem; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.benefit { padding: 18px; border-radius: var(--r-m); background: var(--paper); display: grid; gap: 6px; align-content: start; }
.benefit__ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--brand); }
.benefit__ic svg { width: 22px; height: 22px; }
.benefit p { color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-m); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--paper); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
tr.is-hit td { background: var(--brand-soft); font-weight: 800; }
.note { font-size: .86rem; color: var(--muted); margin-top: 10px; }

.analysis { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.nutri { border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px; display: grid; gap: 8px; }
.nutri__label { font-size: .84rem; color: var(--muted); font-weight: 700; }
.nutri__value { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.nutri__bar { height: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.nutri__bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }

.ingredients { display: flex; flex-wrap: wrap; gap: 8px; }
.ingr { border-radius: 999px; padding: 7px 14px; background: var(--paper); border: 1px solid var(--line); font-size: .92rem; }
.ingr--top { background: var(--brand-soft); border-color: transparent; font-weight: 800; }
.ingr--star { background: var(--ok-soft); border-color: transparent; font-weight: 700; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; max-width: 70ch; color: #3b4459; }

.pending { padding: 18px; border: 2px dashed var(--line); border-radius: var(--r-m); color: var(--muted); }

/* ---------- Catálogo ---------- */
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.shop > * { min-width: 0; }
.filters { display: grid; gap: 20px; position: sticky; top: 140px; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filters legend { font-weight: 800; margin-bottom: 6px; font-family: var(--f-display); font-size: 1.05rem; }
.filters label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.filters input { accent-color: var(--brand); width: 18px; height: 18px; }
.shop-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
select.sel { border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; background: #fff; font-weight: 700; }
@media (max-width: 860px) { .shop { grid-template-columns: 1fr; } .filters { position: static; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }

/* ---------- Herramientas: estructura común ---------- */
.tool-hero { background: var(--brand-soft); padding-block: clamp(28px, 5vw, 48px); }
.tool-hero p { margin-top: 10px; max-width: 60ch; font-size: 1.05rem; }
.tool-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.tool-layout > * { min-width: 0; }
.tool-layout--wide { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 860px) { .tool-layout, .tool-layout--wide { grid-template-columns: 1fr; } }
.panel { grid-template-columns: minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(18px, 3vw, 28px); display: grid; gap: 18px; align-content: start; }
.panel--accent { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel--accent .muted { color: #b9c2d6; }
.field { display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr); }
.field > label, .field > .lbl { font-weight: 800; font-size: .92rem; }
.field small { color: var(--muted); }
input[type="file"] { max-width: 100%; }
.input, .field select, .field textarea {
  width: 100%; min-height: 46px; border: 2px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; background: #fff;
}
.input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .fields-2 { grid-template-columns: 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { border: 2px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: .92rem; background: #fff; }
.seg input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + label { outline: 3px solid var(--sun); }
.result-big { font-family: var(--f-display); font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 700; line-height: 1; color: var(--sun); font-variant-numeric: tabular-nums; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.result-cell { background: rgba(255,255,255,.08); border-radius: var(--r-m); padding: 12px 14px; }
.result-cell b { display: block; font-family: var(--f-display); font-size: 1.4rem; font-variant-numeric: tabular-nums; }
.result-cell span { font-size: .84rem; color: #b9c2d6; }
.disclaimer { font-size: .82rem; color: var(--muted); }
.panel--accent .disclaimer { color: #9aa5bd; }

/* Carnet */
.pet-switch { display: flex; gap: 8px; flex-wrap: wrap; }
.pet-pill { display: flex; align-items: center; gap: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; background: #fff; cursor: pointer; font-weight: 800; }
.pet-pill[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.pet-pill .avatar { width: 30px; height: 30px; }
.avatar { border-radius: 50%; background: var(--paper); overflow: hidden; display: grid; place-items: center; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar svg { width: 60%; height: 60%; color: var(--muted); }
.idcard { border-radius: var(--r-l); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.idcard__top { background: var(--ink); color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.idcard__top .logo { color: #fff; font-size: 1.1rem; }
.idcard__top .logo__mark { width: 28px; height: 28px; border-radius: 9px; }
.idcard__top .logo__mark svg { width: 16px; height: 16px; }
.idcard__title { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--sun); }
.idcard__body { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 20px; }
.idcard__body .avatar { width: 110px; height: 110px; border-radius: 20px; }
.idcard dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.idcard dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.idcard dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.idcard__name { font-family: var(--f-display); font-size: 1.7rem; grid-column: 1 / -1; }
@media (max-width: 480px) { .idcard__body { grid-template-columns: 1fr; } }
.records { display: grid; gap: 8px; }
.record { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); }
.record__meta { font-size: .85rem; color: var(--muted); }
.record__del { border: 0; background: none; color: var(--muted); cursor: pointer; font-weight: 800; padding: 6px; }
.record__del:hover { color: var(--danger); }
.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--late { background: var(--danger-soft); color: var(--danger); }
.pill--muted { background: var(--paper); color: var(--muted); }
.add-form { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-m); background: var(--paper); }

/* Recordatorios */
.rem-list { display: grid; gap: 10px; }
.rem { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-m); border: 1px solid var(--line); background: #fff; }
.rem__date { text-align: center; border-radius: 12px; background: var(--paper); padding: 6px 0; line-height: 1.1; }
.rem__date b { display: block; font-family: var(--f-display); font-size: 1.4rem; }
.rem__date span { font-size: .72rem; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.rem__title { font-weight: 800; }
.rem__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: end; }
@media (max-width: 560px) { .rem { grid-template-columns: 56px 1fr; } .rem__actions { grid-column: 1 / -1; justify-content: start; } }

/* Recompra */
.timeline { position: relative; height: 18px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.timeline i { position: absolute; inset: 0 auto 0 0; background: var(--sun); border-radius: 999px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 20px; border-radius: var(--r-l); background: var(--paper); display: grid; gap: 6px; }
.step::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: .94rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

@media print {
  .topbar, .demo-note, .header, .footer, .wa-float, .no-print { display: none !important; }
  .idcard { box-shadow: none; }
}

/* =========================================================
   Ilustraciones de marca, cuenta, FastPuntos, pop-up y burbuja
   ========================================================= */
.cat__img { color: var(--brand); background: var(--paper); border: 1px solid var(--line); }
.cat__img svg { width: 42%; height: 42%; }
.cat__img--photo { background: var(--brand-soft); border-color: transparent; overflow: hidden; }
.cat__img--photo picture, .cat__img--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat:hover .cat__img { box-shadow: 0 10px 24px rgba(79, 36, 143, .14); }

.species a { overflow: hidden; position: relative; padding-block: 28px 0; align-items: end; }
.species a > div { align-self: center; padding-bottom: 28px; }
.species__art { width: 150px; flex-shrink: 0; align-self: end; }
.species__art img { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .species__art { width: 110px; } }

.slide--d { background: linear-gradient(135deg, #ebe2f6, #d9c8f3); }
.slide__art picture img { max-height: 340px; width: auto; }
@media (max-width: 760px) { .slide__art picture img { max-height: 220px; } }
.mini-id { width: min(100%, 300px); background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 18px; display: grid; gap: 6px; justify-items: start; }
.mini-id__top { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--brand); }
.mini-id__pic { width: 96px; height: 96px; border-radius: 22px; overflow: hidden; background: var(--brand-soft); }
.mini-id__pic img { width: 100%; height: 100%; object-fit: cover; }
.mini-id b { font-family: var(--f-display); font-size: 1.4rem; }
.mini-id > span:not(.mini-id__top):not(.mini-id__pic) { font-size: .85rem; color: var(--muted); }
.pts-coin { width: 230px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #ebe2f6 60%, #d4c0f2); display: grid; place-content: center; text-align: center; gap: 2px; box-shadow: inset 0 -8px 0 rgba(79,36,143,.12), var(--shadow); color: var(--brand); }
.pts-coin svg { width: 42px; height: 42px; margin-inline: auto; }
.pts-coin b { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; }
.pts-coin small { font-weight: 800; max-width: 14ch; margin-inline: auto; }
@media (max-width: 760px) { .pts-coin { width: 170px; } .pts-coin b { font-size: 2rem; } }

/* Accesos rápidos (como la franja de Kaman) */
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--brand); color: #fff; text-decoration: none; font-size: .92rem; transition: background .15s, transform .15s; }
.quick a:hover { background: var(--brand-dark); transform: translateY(-2px); }
.quick span { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex-shrink: 0; }
.quick svg { width: 20px; height: 20px; }
@media (max-width: 1000px) { .quick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .quick { grid-template-columns: repeat(2, 1fr); } .quick a { font-size: .85rem; padding: 10px; } }

/* Banda FastPuntos */
.pts-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; padding: clamp(22px, 4vw, 40px); border-radius: var(--r-l); background: var(--ink); color: #fff; }
.pts-band > * { min-width: 0; }
.pts-band p { color: #d8cdea; margin-top: 10px; max-width: 52ch; }
.pts-band b { color: #fff; }
.pts-band .eyebrow { color: var(--sun); }
.pts-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.pts-band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pts-band__grid div { background: rgba(255,255,255,.07); border-radius: var(--r-m); padding: 14px 16px; }
.pts-band__grid b { display: block; font-family: var(--f-display); font-size: 1.5rem; color: var(--sun); }
.pts-band__grid span { font-size: .86rem; color: #d8cdea; }
@media (max-width: 860px) { .pts-band { grid-template-columns: 1fr; } }

/* Chip de cuenta en el header */
.acct-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; text-decoration: none; color: var(--ink); min-height: 46px; }
.acct-chip:hover { background: var(--paper); }
.acct-chip svg { width: 26px; height: 26px; color: var(--brand); flex-shrink: 0; }
.acct-chip span { display: grid; line-height: 1.15; }
.acct-chip small { font-size: .72rem; color: var(--muted); }
.acct-chip b { font-size: .9rem; white-space: nowrap; }
@media (max-width: 420px) { .acct-chip span { display: none; } }

/* Carrito: promo y puntos */
.promo-chip { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-s); background: var(--brand-soft); color: var(--brand-dark); font-size: .88rem; }
.promo-chip svg { width: 22px; height: 22px; flex-shrink: 0; }
.pts-use { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border: 2px dashed var(--sun); border-radius: var(--r-s); font-weight: 800; cursor: pointer; font-size: .9rem; }
.pts-use input { accent-color: var(--brand); width: 18px; height: 18px; }
.pts-use small { font-weight: 600; color: var(--muted); }
.pts-earn { display: flex; gap: 8px; align-items: center; font-size: .86rem; color: var(--brand-dark); text-decoration: none; font-weight: 700; }
.pts-earn svg { width: 18px; height: 18px; flex-shrink: 0; }
.empty__pic { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); display: block; }
.empty__pic img { width: 100%; height: 100%; object-fit: cover; }

/* Newsletter */
.newsletter { background: var(--brand-soft); margin-top: 40px; }
.newsletter__row { display: grid; grid-template-columns: auto 1fr minmax(0, 420px); gap: 20px; align-items: center; padding-block: 22px; }
.newsletter__row > * { min-width: 0; }
.newsletter__pic { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: #fff; display: block; }
.newsletter__pic img { width: 100%; height: 100%; object-fit: cover; }
.newsletter p { color: var(--muted); }
.newsletter__form { display: flex; gap: 8px; }
.newsletter__form .input { flex: 1; min-width: 0; border-radius: 999px; }
@media (max-width: 800px) { .newsletter__row { grid-template-columns: auto 1fr; } .newsletter__form { grid-column: 1 / -1; } }
.footer { margin-top: 0; }

/* Ventanas emergentes */
.modal-bg { position: fixed; inset: 0; z-index: 300; background: rgba(30, 14, 60, .55); display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: fade .2s ease-out; }
.modal { position: relative; width: min(100%, 760px); max-height: 100%; overflow: auto; background: #fff; border-radius: var(--r-l); box-shadow: 0 30px 80px rgba(30, 14, 60, .35); animation: rise .28s cubic-bezier(.2, .9, .3, 1.2); }
.modal__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.modal__x svg { width: 22px; height: 22px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.welcome { display: grid; grid-template-columns: 1fr 1.15fr; }
.welcome__art { background: linear-gradient(160deg, #ebe2f6, #cdb7f0); display: flex; align-items: end; justify-content: center; padding: 28px 10px 0; min-height: 260px; }
.welcome__art picture:first-child img { height: 260px; width: auto; display: block; }
.welcome__art picture:last-child img { height: 180px; width: auto; display: block; margin-left: -34px; }
.welcome__body { padding: clamp(22px, 4vw, 36px); display: grid; gap: 12px; align-content: center; }
.welcome__body h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.welcome__body p { color: var(--muted); }
.welcome__form { display: grid; gap: 10px; }
.welcome__skip { background: none; border: 0; cursor: pointer; justify-self: center; font-weight: 700; color: var(--muted); }
@media (max-width: 640px) {
  .welcome { grid-template-columns: 1fr; }
  .welcome__art { min-height: 0; padding-top: 18px; }
  .welcome__art picture:first-child img { height: 150px; }
  .welcome__art picture:last-child img { height: 110px; margin-left: -20px; }
}
.modal--promo { width: min(100%, 420px); }
.promo-pop { padding: 34px 26px 26px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.promo-pop__burst { width: 96px; height: 96px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px var(--brand-soft), 0 0 0 20px #f6f1f8; animation: pulse 1.6s ease-in-out infinite; margin-bottom: 10px; }
.promo-pop__burst svg { width: 50px; height: 50px; }
.promo-pop p { color: var(--muted); }
.promo-pop__timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 6px 14px; }
@keyframes pulse { 50% { transform: scale(1.06); } }

/* Burbuja FastPet */
.bubble { position: fixed; left: 0; top: 0; z-index: 250; width: 84px; height: 84px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: radial-gradient(circle at 30% 28%, rgba(255,255,255,.95) 0 8%, rgba(255,255,255,.35) 9% 22%, rgba(184,145,236,.25) 40%, rgba(79,36,143,.28) 100%);
  box-shadow: inset -6px -8px 18px rgba(79,36,143,.35), inset 4px 6px 14px rgba(255,255,255,.7), 0 10px 26px rgba(79,36,143,.25);
  display: grid; place-items: center; will-change: transform; animation: bob 2.8s ease-in-out infinite; }
.bubble img { width: 46px; height: 46px; animation: spin 7s linear infinite; }
.bubble__hint { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--brand); color: #fff; font-weight: 800; font-size: .74rem; padding: 3px 10px; border-radius: 999px; }
.bubble.is-pop { animation: none; }
.bubble.is-pop img, .bubble.is-pop .bubble__hint { opacity: 0; transition: opacity .1s; }
.bubble.is-pop { background: transparent; box-shadow: none; }
.bubble__bit { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); transform: rotate(var(--a)) translateX(0); animation: burst .45s ease-out forwards; }
.bubble__bit:nth-child(odd) { background: var(--brand); }
@keyframes burst { to { transform: rotate(var(--a)) translateX(70px) scale(.3); opacity: 0; } }
@keyframes bob { 50% { scale: 1.05; } }
@keyframes spin { 50% { rotate: 12deg; } }
@media (prefers-reduced-motion: reduce) { .bubble, .bubble img { animation: none; } }

/* Página de cuenta */
.acct-hero { background: linear-gradient(135deg, var(--ink), var(--brand)); color: #fff; padding-block: clamp(26px, 5vw, 44px); }
.acct-hero__row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.acct-hero p { color: #d8cdea; }
.acct-balance { background: rgba(255,255,255,.1); border-radius: var(--r-l); padding: 18px 22px; min-width: 220px; }
.acct-balance b { display: block; font-family: var(--f-display); font-size: 2.4rem; line-height: 1.1; color: var(--sun); font-variant-numeric: tabular-nums; }
.acct-balance span { color: #d8cdea; font-size: .88rem; }
@media (max-width: 640px) { .acct-hero__row { grid-template-columns: 1fr; } }
.acct-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.ledger { display: grid; gap: 8px; }
.ledger__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-m); }
.ledger__pts { font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger__pts.is-plus { color: var(--ok); }
.ledger__pts.is-minus { color: var(--danger); }
.auth { max-width: 520px; margin-inline: auto; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { accent-color: var(--brand); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }

/* Seguimiento de pedido */
.track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; margin-block: 10px 6px; }
.track__step { display: grid; justify-items: center; text-align: center; gap: 8px; position: relative; font-size: .86rem; font-weight: 700; color: var(--muted); }
.track__step::before { content: ""; position: absolute; top: 22px; left: -50%; right: 50%; height: 4px; background: var(--line); z-index: 0; }
.track__step:first-child::before { display: none; }
.track__dot { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; position: relative; z-index: 1; color: var(--muted); }
.track__dot svg { width: 22px; height: 22px; }
.track__step.is-done { color: var(--ink); }
.track__step.is-done::before { background: var(--brand); }
.track__step.is-done .track__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.track__step.is-now .track__dot { box-shadow: 0 0 0 6px var(--brand-soft); }
@media (max-width: 560px) {
  .track { grid-template-columns: 1fr; gap: 14px; }
  .track__step { grid-template-columns: 46px 1fr; justify-items: start; text-align: left; align-items: center; }
  .track__step::before { top: -14px; bottom: auto; left: 21px; right: auto; width: 4px; height: 14px; }
}

/* =========================================================
   Menú de categorías y versión más limpia de la interfaz
   ========================================================= */
.nav__row { display: flex; align-items: center; gap: 8px; }
.nav__row ul { flex: 1; min-width: 0; }
.nav__cats { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; padding: 8px 14px; margin-block: 6px; cursor: pointer; }
.nav__cats svg { width: 18px; height: 18px; }
.nav__cats svg:last-child { width: 16px; height: 16px; transition: transform .2s; }
.nav__cats[aria-expanded="true"] svg:last-child { transform: rotate(180deg); }
.nav a { font-weight: 700; color: var(--ink); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 40px rgba(42, 22, 80, .12); max-height: calc(100vh - 160px); overflow-y: auto; }
.header { position: sticky; }
.nav { position: relative; }
.mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-block: 24px 28px; }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__col li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 0; }
.mega__col li a:hover { background: var(--paper); color: var(--brand); }
.mega__col li a span { width: 30px; height: 30px; border-radius: 9px; background: var(--paper); display: grid; place-items: center; color: var(--brand); flex-shrink: 0; overflow: hidden; }
.mega__col li a span svg { width: 18px; height: 18px; }
.mega__col li a span img { width: 100%; height: 100%; object-fit: contain; }
.mega__head { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 8px; border: 0 !important; padding: 0 !important; }
.mega__head b { font-family: var(--f-display); font-size: 1.2rem; }
.mega__pic { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); }
.mega__pic img { width: 100%; height: 100%; object-fit: cover; }
.mega__title { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; margin: 10px 0 12px; }
.mega__brands { grid-template-columns: 1fr 1fr; }
.mega__brands a { padding: 6px 10px !important; }
.mega__promo { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; border-radius: var(--r-m); background: var(--brand-soft); text-decoration: none; color: var(--brand-dark); }
.mega__promo svg { width: 28px; height: 28px; flex-shrink: 0; }
.mega__promo span { display: grid; }
.mega__promo small { font-weight: 600; color: var(--muted); }
@media (max-width: 860px) {
  .mega__grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .nav__cats span { display: none; }
}
@media (max-width: 520px) { .mega__grid { grid-template-columns: 1fr; } }

/* Limpieza general */
.topbar { font-size: .82rem; }
.topbar .wrap { gap: 32px; padding-block: 7px; }
.demo-note { font-size: .76rem; padding: 4px 16px; font-weight: 700; }
.header__row { padding-block: 14px; }
.search input { background: #f7f5fa; border-color: transparent; }
.section { padding-block: clamp(32px, 5vw, 56px); }
h2 { letter-spacing: -.01em; }

/* Accesos rápidos: claros, con íconos 3D */
.quick a { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 10px 12px; }
.quick a:hover { background: #fff; border-color: var(--sun); box-shadow: 0 8px 20px rgba(79, 36, 143, .08); }
.quick span { background: var(--paper); width: 42px; height: 42px; border-radius: 12px; overflow: hidden; color: var(--brand); }
.quick span img { width: 100%; height: 100%; object-fit: contain; }

/* Tarjetas de producto más livianas */
.card { border-color: #efeaf5; border-radius: 18px; }
.card__img { background: #faf8fc; }
.card__brand { letter-spacing: .04em; font-size: .7rem; }
.card .btn--brand { background: var(--brand); }
.tag { background: var(--brand); color: #fff; font-weight: 800; }
.price { font-size: 1.2rem; }

/* Íconos 3D (imágenes) dentro de tarjetas y círculos */
.ic3d { display: block; width: 100%; height: 100%; object-fit: contain; }
.cat__img--3d { background: #faf8fc; border: 1px solid #efeaf5; padding: 16%; }
.tool-card__icon--3d { width: 64px; height: 64px; background: var(--paper); padding: 6px; border-radius: 18px; }
.benefit__ic--3d { width: 52px; height: 52px; padding: 4px; }
.perk--3d img { width: 40px; height: 40px; flex-shrink: 0; }

/* =========================================================
   Carnet amigable
   ========================================================= */
.pets-bar { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.pet-bubble { display: grid; justify-items: center; gap: 6px; border: 0; background: none; cursor: pointer; font-weight: 800; color: var(--ink); flex-shrink: 0; }
.pet-bubble .avatar { width: 72px; height: 72px; border: 3px solid transparent; box-shadow: 0 0 0 2px var(--line); transition: box-shadow .15s; }
.pet-bubble .avatar img { object-fit: cover; }
.pet-bubble[aria-pressed="true"] .avatar { box-shadow: 0 0 0 3px var(--brand); }
.pet-bubble--add .avatar { background: var(--paper); color: var(--brand); border: 2px dashed var(--sun); box-shadow: none; }
.pet-bubble--add .avatar svg { width: 30px; height: 30px; }
.cv-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .cv-layout { grid-template-columns: 1fr; } }
.cv-left { display: grid; gap: 14px; position: sticky; top: 150px; }
@media (max-width: 900px) { .cv-left { position: static; } }
.pet-card { border-radius: 26px; background: linear-gradient(150deg, #4f248f, #7445c2 70%, #9b6fe0); color: #fff; padding: 20px; display: grid; gap: 16px; box-shadow: 0 20px 40px rgba(79, 36, 143, .25); position: relative; overflow: hidden; }
.pet-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.07); }
.pet-card__top { display: flex; justify-content: space-between; align-items: center; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--sun); }
.pet-card__main { display: flex; gap: 16px; align-items: center; }
.pet-card__pic { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: #ebe2f6; flex-shrink: 0; border: 4px solid rgba(255,255,255,.35); }
.pet-card__pic img { width: 100%; height: 100%; object-fit: cover; }
.pet-card h2 { font-size: 1.9rem; color: #fff; }
.pet-card p { color: #e3d8f5; }
.pet-card__facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; background: rgba(255,255,255,.1); border-radius: 16px; padding: 12px 14px; }
.pet-card__facts dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: #cbb8ee; font-weight: 800; }
.pet-card__facts dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.pet-card__note { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.pet-card__note svg, .pet-card__alert svg { width: 20px; height: 20px; flex-shrink: 0; }
.pet-card__alert { display: flex; gap: 10px; align-items: center; background: #fff; color: var(--warn); border-radius: 14px; padding: 10px 14px; font-weight: 800; font-size: .9rem; }
.pet-card__alert--ok { color: var(--ok); }
.health-tiles { display: grid; gap: 12px; margin-bottom: 16px; }
.htile { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.htile__ic { width: 52px; height: 52px; border-radius: 16px; background: var(--paper); display: grid; place-items: center; color: var(--brand); }
.htile__ic svg { width: 26px; height: 26px; }
.htile__txt { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.htile__txt small { color: var(--muted); }
.htile--late { border-color: #f3c3bd; background: #fffafa; }
.htile--warn { border-color: #f1dfb1; }
@media (max-width: 520px) { .htile { grid-template-columns: 44px 1fr; } .htile .btn { grid-column: 1 / -1; } .htile__ic { width: 44px; height: 44px; } }
.record__del svg { display: block; }

/* Asistente paso a paso (ventana) */
.modal--wiz { width: min(100%, 560px); }
.wiz { padding: 26px; display: grid; gap: 16px; }
.wiz__bar { height: 6px; background: var(--paper); border-radius: 999px; overflow: hidden; margin: 18px 26px 0; }
.wiz__bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; transition: width .3s; }
#wz { padding: 18px 26px 26px; display: grid; gap: 16px; }
.wiz__choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wiz__opt { border: 2px solid var(--line); background: #fff; border-radius: 22px; padding: 16px 12px 14px; cursor: pointer; display: grid; justify-items: center; gap: 8px; font-family: var(--f-display); font-size: 1.2rem; transition: border-color .15s, transform .15s; }
.wiz__opt:hover { border-color: var(--sun); transform: translateY(-2px); }
.wiz__opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.wiz__opt picture, .wiz__opt img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.wiz__photo { display: flex; justify-content: center; }
.wiz__pic { width: 120px; height: 120px; border-radius: 50%; background: var(--paper); border: 2px dashed var(--sun); display: grid; place-items: center; align-content: center; gap: 4px; cursor: pointer; color: var(--brand); overflow: hidden; font-weight: 800; }
.wiz__pic svg { width: 34px; height: 34px; }
.wiz__pic img { width: 100%; height: 100%; object-fit: cover; }
.wiz__nav { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.wiz__nav .btn--brand { margin-left: auto; }
.chips--pick .chip { cursor: pointer; padding: 9px 14px; font-size: .92rem; background: #fff; }
.chips--pick .chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 12px; }
.stepper button { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--brand-soft); color: var(--brand); font-size: 1.6rem; font-weight: 800; cursor: pointer; }
.stepper input { width: 130px; text-align: center; font-family: var(--f-display); font-size: 2.4rem; font-weight: 700; border: 0; border-bottom: 3px solid var(--sun); background: none; }
.stepper input:focus { outline: none; border-color: var(--brand); }
.stepper span { font-weight: 800; color: var(--muted); }

/* =========================================================
   Checkout
   ========================================================= */
.co-steps { list-style: none; margin: 0 0 22px; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.co-steps li { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--muted); padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--paper); }
.co-steps li span { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .9rem; }
.co-steps li span svg { width: 16px; height: 16px; }
.co-steps .is-now { background: var(--brand); color: #fff; }
.co-steps .is-now span { color: var(--brand); }
.co-steps .is-done { color: var(--ink); }
.co-steps .is-done span { background: var(--ok); color: #fff; }
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: start; }
@media (max-width: 900px) { .co-layout { grid-template-columns: 1fr; } .co-sum { order: -1; } }
.co-sum { background: var(--paper); border-radius: var(--r-l); padding: 20px; display: grid; gap: 14px; position: sticky; top: 150px; }
@media (max-width: 900px) { .co-sum { position: static; } }
.co-sum__items { display: grid; gap: 10px; }
.co-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; }
.co-item__img { position: relative; width: 56px; height: 56px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.co-item__img svg, .co-item__img img { width: 80%; height: auto; }
.co-item__img i { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 999px; background: var(--ink); color: #fff; font-style: normal; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.co-item small { display: block; color: var(--muted); }
.co-sum__rows { display: grid; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.co-sum__total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.co-trust { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); }
.co-trust svg { width: 18px; height: 18px; flex-shrink: 0; }
.pay-list { display: grid; gap: 10px; }
.pay-opt { display: grid; grid-template-columns: auto 44px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--line); border-radius: var(--r-m); cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt input { accent-color: var(--brand); width: 20px; height: 20px; }
.pay-opt__ic { width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); }
.pay-opt__ic svg { width: 24px; height: 24px; }
.pay-opt small { display: block; color: var(--muted); }
.pay-opt.is-off { opacity: .55; cursor: not-allowed; }
.co-addr { background: var(--paper); border-radius: var(--r-s); padding: 12px 14px; font-size: .92rem; }
.co-addr .link { background: none; border: 0; cursor: pointer; padding: 0 4px; }
.is-invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px var(--danger-soft); }
textarea { width: 100%; border: 2px solid var(--line); border-radius: var(--r-s); padding: 10px 12px; resize: vertical; }
.thanks { text-align: center; display: grid; justify-items: center; gap: 8px; margin-bottom: 20px; }
.thanks__pic { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: var(--brand-soft); }
.thanks__pic img { width: 100%; height: 100%; object-fit: cover; }
.copy { cursor: pointer; border-bottom: 1px dashed var(--sun); }
#root > .panel + .panel, #root > .panel + .pts-band { margin-top: 16px; }
.mega .mega__head { display: flex; padding: 0; border: 0; }
.mega .mega__pic { display: block; flex-shrink: 0; }
.mega__pic picture { display: block; width: 100%; height: 100%; }
.mega__brands { grid-template-columns: 1fr; }
@media (max-width: 480px) { .pet-card__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =========================================================
   Venta: tarjetas, carruseles, marcas, confianza y venta cruzada
   ========================================================= */
.card__tags { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; flex-direction: column; gap: 4px; align-items: start; }
.card__tags .tag { position: static; }
.tag--hot { background: #ff7a1a; }
.card__img { background: #fff; border-bottom: 1px solid var(--line); text-decoration: none; }
.card__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__fmts { display: flex; flex-wrap: wrap; gap: 4px; }
.card__fmts span { font-size: .74rem; font-weight: 800; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; color: var(--muted); }
.price--ask { font-size: 1.02rem; color: var(--brand); }
.card__pts { display: flex; gap: 5px; align-items: center; font-size: .78rem; color: var(--muted); font-weight: 700; }
.card__pts svg { width: 14px; height: 14px; color: var(--sun); flex-shrink: 0; }
.card .btn { display: inline-flex; gap: 6px; align-items: center; justify-content: center; }

/* Carrusel horizontal de productos */
.rail { position: relative; }
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail__btn { position: absolute; top: 34%; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.rail__btn--prev { left: -18px; } .rail__btn--next { right: -18px; }
@media (max-width: 1000px) { .rail__track { grid-auto-columns: calc((100% - 32px) / 3); } }
@media (max-width: 720px) { .rail__track { grid-auto-columns: 46%; gap: 10px; } .rail__btn { display: none; } }

/* Banda de confianza */
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trust li { display: flex; gap: 10px; align-items: center; font-size: .88rem; line-height: 1.3; }
.trust svg { width: 24px; height: 24px; color: var(--brand); flex-shrink: 0; }
.trust small { display: block; color: var(--muted); }
.trust--band { grid-template-columns: repeat(4, 1fr); background: var(--paper); border-radius: var(--r-m); padding: 16px 20px; margin-top: 18px; }
.trust--band li b { display: block; }
@media (max-width: 860px) { .trust--band { grid-template-columns: repeat(2, 1fr); } }

/* Marcas con foto */
.brand-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.brand-tile { display: grid; justify-items: center; gap: 4px; padding: 14px 10px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); text-decoration: none; text-align: center; transition: transform .15s, box-shadow .15s; }
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.brand-tile__img { width: 100px; height: 100px; display: grid; place-items: center; }
.brand-tile__img img, .brand-tile__img svg { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-tile b { font-family: var(--f-display); font-size: 1.02rem; }
.brand-tile small { color: var(--muted); font-weight: 700; }

/* Banners dobles */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.duo__card { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: clamp(18px, 3vw, 30px); border-radius: var(--r-l); text-decoration: none; }
.duo__card h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); margin-bottom: 6px; }
.duo__card p { margin-bottom: 14px; }
.duo__card--a { background: #ffe9d6; } .duo__card--b { background: var(--brand-soft); }
.duo__art { width: clamp(80px, 12vw, 130px); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* Texto SEO */
.seo-text { max-width: 860px; display: grid; gap: 12px; color: var(--muted); }
.seo-text h2 { font-size: 1.2rem; color: var(--ink); }
.seo-text a { color: var(--brand); font-weight: 700; }
.shop-intro { max-width: 75ch; margin-bottom: 20px; }

/* Ficha de producto */
.gallery__main { background: #fff; border: 1px solid var(--line); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs button { background: #fff; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp__meta span { background: var(--paper); border-radius: 6px; padding: 2px 10px; font-size: .82rem; font-weight: 800; color: var(--muted); }
.per-kg { font-size: .9rem; }
.variants { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.variant { flex: 0 0 auto; width: 92px; display: grid; justify-items: center; gap: 4px; text-decoration: none; font-size: .72rem; font-weight: 800; line-height: 1.2; text-align: center; border: 2px solid var(--line); border-radius: var(--r-s); padding: 6px; background: #fff; }
.variant[aria-current="page"] { border-color: var(--brand); background: var(--brand-soft); }
.variant__img { width: 56px; height: 56px; display: grid; place-items: center; }
.variant__img img, .variant__img svg { max-width: 100%; max-height: 100%; object-fit: contain; }
.ask-box { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-m); background: var(--paper); border: 1px dashed var(--sun); }
.ask-box b { font-family: var(--f-display); font-size: 1.1rem; }
.ask-box .btn { margin-top: 4px; }
.btn--block { width: 100%; justify-content: center; }
#buy-zone { display: grid; gap: 12px; }
.together { padding-bottom: 0; }

/* Barra fija de compra (celular) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(42, 22, 80, .1); }
.buybar div { display: grid; min-width: 0; }
.buybar small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 861px) { .buybar { display: none !important; } }

/* Ventana "agregado al carrito" con venta cruzada */
.modal--ups { width: min(100%, 720px); }
.ups { padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.ups__added { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; padding-right: 36px; }
.ups__added > div { display: grid; gap: 4px; justify-items: start; }
.ups__img { width: 84px; height: 84px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: #fff; }
.ups__img img, .ups__img svg { max-width: 100%; max-height: 100%; object-fit: contain; }
.ups__name { font-size: 1.05rem; }
.ups__title { font-size: 1.1rem; }
.ups__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mini-card { display: grid; gap: 6px; align-content: start; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: .84rem; }
.mini-card__img { aspect-ratio: 1; display: grid; place-items: center; }
.mini-card__img img, .mini-card__img svg { max-width: 100%; max-height: 100%; object-fit: contain; }
.mini-card__name { font-weight: 800; line-height: 1.25; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini-card__price { color: var(--muted); font-weight: 700; }
.ups__cta { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; padding-top: 8px; }
@media (max-width: 640px) { .ups__list { grid-template-columns: repeat(2, 1fr); } .ups__cta .btn { flex: 1; } }

/* Calculadora de duración en la ficha */
.dura { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-m); background: linear-gradient(135deg, var(--brand-soft), #fff); border: 1px solid var(--line); }
.dura__head { display: flex; gap: 10px; align-items: center; font-family: var(--f-display); }
.dura__head svg { width: 24px; height: 24px; color: var(--brand); flex-shrink: 0; }
.dura__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dura__kg { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .9rem; }
.dura__step { display: inline-grid; grid-template-columns: 34px 64px 34px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.dura__step button { border: 0; background: var(--brand-soft); color: var(--brand); font-weight: 900; font-size: 1.1rem; cursor: pointer; }
.dura__step input { border: 0; text-align: center; font-weight: 800; padding: 8px 2px; width: 100%; -moz-appearance: textfield; }
.dura__step input::-webkit-outer-spin-button, .dura__step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dura__seg label { padding: 6px 12px; font-size: .85rem; }
.dura__est { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: .88rem; }
.dura__out { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: #fff; border-radius: 12px; padding: 12px 14px; }
.dura__big { display: grid; justify-items: center; text-align: center; min-width: 92px; }
.dura__big b { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; color: var(--brand); }
.dura__big span { font-size: .75rem; color: var(--muted); font-weight: 700; max-width: 110px; }
.dura__info { display: grid; gap: 4px; font-size: .9rem; justify-items: start; }
.dura__info .btn { margin-top: 4px; display: inline-flex; gap: 6px; align-items: center; }
.dura__note { grid-column: 1 / -1; font-size: .75rem; }
@media (max-width: 420px) { .dura__out { grid-template-columns: 1fr; } }
.pdp__info, .pdp__info > * { min-width: 0; }
.dura__out { grid-template-columns: auto minmax(0, 1fr); }
.dura__info .btn { white-space: normal; text-align: left; }
/* Mascotas de la marca (de frente) en los círculos de categorías */
.cat__img--pet { background: var(--brand-soft); border: 1px solid #efeaf5; overflow: hidden; align-items: end; padding: 8% 8% 0; }
.cat__img--pet picture, .cat__img--pet img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; display: block; }
.cupo-msg { display: flex; gap: 10px; align-items: start; padding: 12px 14px; border-radius: var(--r-s); background: var(--warn-soft); color: #6b4a10; font-size: .92rem; }
.cupo-msg svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--warn); }
.seg label.is-full { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.modal--carnet { width: min(100%, 820px); }
.carnet-dl { padding: clamp(18px, 3vw, 28px); display: grid; gap: 14px; text-align: center; }
.carnet-dl__img { width: 100%; border-radius: 18px; box-shadow: 0 12px 34px rgba(42,22,80,.25); }
.carnet-gift { display: flex; gap: 10px; align-items: center; justify-content: center; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); font-size: .95rem; margin: 0; }
.carnet-gift svg { width: 22px; height: 22px; color: var(--brand); flex-shrink: 0; }
.carnet-gift--ok { background: var(--ok-soft); } .carnet-gift--ok svg { color: var(--ok); }

/* Páginas legales */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.legal__toc { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 16px; background: #f6f2fc; font-size: .9rem; }
.legal__toc a { padding: 6px 10px; border-radius: 8px; color: inherit; text-decoration: none; }
.legal__toc a:hover { background: #fff; color: #4f248f; }
.legal__body { max-width: 75ch; min-width: 0; line-height: 1.65; }
.legal__body h2 { font-size: 1.2rem; margin: 2em 0 .5em; scroll-margin-top: 130px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body ul, .legal__body ol { padding-left: 1.3em; }
.legal__body li { margin: .35em 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a { color: inherit; opacity: .85; }
.footer__legal a:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; gap: 20px; } .legal__toc { position: static; display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .legal__toc { grid-template-columns: 1fr; } }

/* Canje del carnet físico */
.carnet-canje { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #f3ecff, #fff4e0); border: 1px solid #e3d6f7; text-align: left; }
.carnet-canje > svg { width: 30px; height: 30px; color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.carnet-canje b { display: block; font-size: 1.02rem; }
.carnet-canje span { display: block; font-size: .92rem; margin: 4px 0 10px; line-height: 1.45; }
.carnet-canje__row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.carnet-canje small { color: var(--muted, #6b6480); }
.carnet-dl .carnet-canje { margin: 0 0 4px; }

/* Premios FastPuntos */
.sec-head { margin-bottom: 22px; }
.rewards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.reward { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--r-m, 18px); background: #fff; border: 1px solid #ece4f8; box-shadow: 0 6px 18px rgba(79, 36, 143, .06); }
.reward__ic { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 20px; background: #f3ecff; }
.reward__ic img, .reward__ic svg { width: 62px; height: 62px; } .reward__ic svg { width: 34px; height: 34px; color: var(--brand); }
.reward h3 { font-size: 1.05rem; margin: 4px 0 0; } .reward p { font-size: .9rem; color: var(--muted, #6b6480); margin: 0; line-height: 1.45; }
.reward__pts { font-size: .95rem; } .reward__pts b { font-size: 1.35rem; color: var(--brand); }
.reward__bar { height: 6px; border-radius: 9px; background: #eee7f7; overflow: hidden; } .reward__bar i { display: block; height: 100%; background: linear-gradient(90deg, #7c4ddb, #f5a623); }
.reward .btn { justify-self: start; margin-top: 4px; }

/* Blog y cursos */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.course-card { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 22px; color: inherit; text-decoration: none; background: linear-gradient(145deg, #f3ecff, #fff); border: 1px solid #e6dbf7; box-shadow: 0 10px 26px rgba(79, 36, 143, .08); transition: transform .2s, box-shadow .2s; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(79, 36, 143, .14); }
.course-card__ic img { width: 84px; height: 84px; }
.course-card__tag, .post-card__tag { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }
.course-card h3 { font-size: 1.25rem; margin: 0; } .course-card p, .post-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .95rem; }
.course-card__meta { font-size: .88rem; } .course-card__meta b { color: #b86e00; }
.course-card__bar, .course-progress__bar { display: block; height: 8px; border-radius: 9px; background: #e9e0f6; overflow: hidden; }
.course-card__bar i, .course-progress__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7c4ddb, #f5a623); transition: width .4s; }
.course-card .btn { justify-self: start; margin-top: 6px; }
.blog-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; }
.chips .chip.is-on { background: var(--brand); color: #fff; border-color: var(--brand); } #blog-filter .chip { cursor: pointer; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.post-card { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(42, 22, 80, .08); }
.post-card[hidden] { display: none; }
.post-card__ic img { width: 60px; height: 60px; } .post-card h3 { font-size: 1.08rem; margin: 0; }
.blog-promo { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 24px; border-radius: 22px; background: linear-gradient(120deg, #3b1a6d, #6b3bbd); color: #fff; }
.blog-promo > span img { width: 84px; height: 84px; } .blog-promo div { flex: 1 1 260px; } .blog-promo h2 { color: #fff; margin: 0 0 4px; } .blog-promo p { margin: 0; opacity: .9; }
.blog-promo .btn { background: #fff; color: var(--brand); }
.post { max-width: 820px; } .post__head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 8px 0; } .post__lead { font-size: 1.12rem; color: var(--muted); margin: 0 0 8px; }
.post__body { margin-top: 26px; } .post__body h2 { font-size: 1.25rem; }
.post__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 32px 0 12px; padding: 18px 20px; border-radius: 18px; background: var(--brand-soft); }
.post__cta > div { flex: 1 1 220px; } .post__cta p { margin: 2px 0 0; }
.post__note { font-size: .85rem; margin-top: 14px; } .post__more { margin: 36px 0 14px; font-size: 1.3rem; }
.course-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; max-width: 520px; } .course-progress__bar { flex: 1; height: 10px; background: #fff; }
.course-progress span { font-weight: 800; font-size: .9rem; white-space: nowrap; }
.course { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.course__toc { position: sticky; top: 120px; padding: 18px; border-radius: 16px; background: #f6f2fc; }
.course__toc ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; }
.course__toc a { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; color: inherit; text-decoration: none; font-size: .92rem; line-height: 1.3; }
.course__toc a:hover { background: #fff; }
.lesson-dot { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid #d9c9f2; font-size: .8rem; font-weight: 800; }
.course__toc a.is-done .lesson-dot { background: var(--ok, #1f9d55); border-color: var(--ok, #1f9d55); color: #fff; }
.lesson { padding: 26px; border-radius: 20px; border: 1px solid var(--line); margin-bottom: 20px; scroll-margin-top: 130px; background: #fff; }
.lesson.is-done { border-color: #bfe5cc; background: #f8fdf9; }
.lesson h2 { margin: 6px 0 12px; font-size: 1.35rem; } .lesson h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
.lesson__done { margin-top: 10px; }
@media (max-width: 860px) { .course { grid-template-columns: 1fr; gap: 18px; } .course__toc { position: static; } .lesson { padding: 18px; } }

/* Código de descuento en el pago */
.cu-form { display: flex; gap: 8px; margin-top: 14px; }
.cu-form .input { flex: 1; min-width: 0; text-transform: uppercase; height: 42px; }
.cu-msg { display: block; color: var(--bad, #c2372b); font-size: .85rem; margin-top: 6px; min-height: 1px; }
.cu-ok { display: flex; gap: 10px; align-items: center; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--ok-soft, #e8f6ee); font-size: .9rem; }
.cu-ok svg { width: 20px; height: 20px; color: var(--ok, #17915a); flex-shrink: 0; }
.cu-ok span { flex: 1; } .cu-ok small { display: block; color: var(--muted); }
.cu-ok--warn { background: #fff6e5; } .cu-ok--warn svg { color: #b86e00; }

/* Quiénes somos */
.about-hero { background: linear-gradient(135deg, #efe6fb, #fff6ea); padding-block: clamp(32px, 6vw, 64px); }
.about-hero__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; }
.about-hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); line-height: 1.12; margin: 10px 0 14px; }
.about-hero p { font-size: 1.08rem; max-width: 58ch; line-height: 1.6; }
.about-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.about-hero__pets { display: flex; justify-content: center; align-items: flex-end; }
.about-hero__pets picture { display: block; width: 54%; max-width: 280px; } .about-hero__pets img { width: 100%; height: auto; display: block; }
.about-hero__pets picture + picture { margin-left: -12%; }
.about-mv { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.about-card { padding: 28px; border-radius: 22px; border: 1px solid #e6dbf7; background: #fff; box-shadow: 0 10px 26px rgba(79, 36, 143, .07); }
.about-card--vision { background: linear-gradient(145deg, #3b1a6d, #6b3bbd); color: #fff; border: 0; }
.about-card--vision h2, .about-card--vision .about-card__k { color: #fff; }
.about-card__k { font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.about-card h2 { font-size: 1.35rem; margin: 8px 0 10px; } .about-card p { margin: 0; line-height: 1.6; }
.hist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; max-width: 860px; }
.hist::before { content: ""; position: absolute; left: 44px; top: 10px; bottom: 10px; width: 3px; background: #d9c9f2; border-radius: 3px; }
.hist li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 18px; padding: 14px 0; position: relative; }
.hist__y { z-index: 1; justify-self: center; align-self: start; min-width: 74px; text-align: center; padding: 6px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 900; font-size: .95rem; }
.hist h3 { margin: 4px 0 6px; font-size: 1.12rem; } .hist p { margin: 0; line-height: 1.6; color: var(--ink, #2a1650); }
.about-values .benefit__ic { font-size: 1.5rem; }
.about-dream { display: flex; gap: 24px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: linear-gradient(120deg, #2a1650, #4f248f); color: #fff; }
.about-dream h2 { color: #fff; margin: 6px 0 10px; } .about-dream p { margin: 0; line-height: 1.65; opacity: .95; max-width: 70ch; }
.about-dream__pets { font-size: 3.2rem; flex-shrink: 0; }
.about-cta { text-align: center; } .about-cta p { max-width: 56ch; margin: 8px auto 0; }
.home-about { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 26px; border-radius: 22px; background: linear-gradient(135deg, #efe6fb, #fff6ea); }
.home-about h2 { margin: 4px 0 8px; font-size: 1.4rem; } .home-about p { margin: 0; max-width: 70ch; line-height: 1.55; }
.post__author { display: flex; gap: 10px; align-items: center; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.post__author img { width: 36px; height: 36px; border-radius: 50%; background: #efe6fb; }
@media (max-width: 760px) { .about-hero__row { grid-template-columns: 1fr; } .about-hero__pets { order: -1; } .about-hero__pets picture { width: 46%; }
  .hist::before { left: 34px; } .hist li { grid-template-columns: 70px minmax(0, 1fr); gap: 12px; } .hist__y { min-width: 62px; font-size: .85rem; }
  .about-dream { flex-direction: column; text-align: left; align-items: flex-start; } .home-about { grid-template-columns: 1fr; } }

/* Comparativas del blog */
.cmp-wrap { overflow-x: auto; margin: 18px 0 8px; border-radius: 16px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; background: #fff; table-layout: fixed; }
.cmp th, .cmp td { white-space: normal; padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.cmp thead th { background: #f3ecff; font-size: .9rem; }
.cmp tbody td:first-child { font-weight: 800; color: var(--muted); width: 24%; }
.cmp thead th { text-transform: none; letter-spacing: 0; }
.cmp tr:last-child td { border-bottom: 0; }
.refs { font-size: .85rem; line-height: 1.5; color: var(--muted); padding-left: 1.3em; }
.refs li { margin: .4em 0; }
.post__body sup { font-size: .7em; color: var(--brand); font-weight: 800; }
@media (max-width: 560px) { .cmp tbody td:first-child { white-space: normal; } }

/* Despacho por rondas */
.cupo-msg--info { background: var(--paper, #f6f2fb); color: var(--ink); }
.cupo-msg--info svg { color: var(--brand); }
#rm-only > * + * { margin-top: 14px; }
.hz-tabs { display: flex; gap: 4px; background: var(--paper, #f6f2fb); padding: 4px; border-radius: 999px; margin: 6px 0 12px; }
.hz-tab { flex: 1; border: 0; background: transparent; border-radius: 999px; padding: 9px 12px; font: inherit; font-weight: 800; font-size: .9rem; color: var(--ink); cursor: pointer; }
.hz-tab.is-on { background: #fff; box-shadow: 0 2px 8px rgba(42,22,80,.12); color: var(--brand); }
.hz-tab:focus-visible { outline: 3px solid var(--sun); }
.hz-panel { display: grid; gap: 10px; }
.hz-panel .pay-opt__ic { font-size: 1.2rem; display: grid; place-items: center; }
.hz-panel .pay-opt.is-off { opacity: .5; }
.hz-lead { margin: 0; }
.hz-sel { padding: 0 0 4px 52px; }
.hz-ok { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-s); background: var(--ok-soft); color: var(--ink); }
.hz-ok svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--ok); }
.hz-tip { font-size: .88rem; color: var(--muted); }
.hz-panel .btn--wa { justify-self: start; white-space: normal; }
.hz-panel .btn--wa svg { width: 18px; height: 18px; }
@media (max-width: 480px) { .hz-tab { font-size: .82rem; padding: 9px 6px; } .hz-sel { padding-left: 0; } }
.hz-conf { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-s); background: var(--warn-soft); color: #5a3d0a; border: 1px solid var(--warn); }
.hz-conf p { margin: 0; font-size: .92rem; }
.hz-conf .check { font-weight: 700; }
