/* ============================================================
   PETMAS — estilos
   Colores de la marca en :root; los ajustes de la identidad están al final ("Identidad PETMAS").
   ============================================================ */
:root {
  /* Identidad PETMAS: amarillo, negro y celeste (brand/identidad-petmas.webp) */
  --yellow: #FCC101;       /* encabezado, botón de compra */
  --yellow-dark: #E5AE00;  /* hover del amarillo */
  --ink: #171717;          /* negro de la marca: textos sobre amarillo, botones principales */
  --sky: #0E9ED6;          /* celeste: detalles, ofertas */

  --brand: #171717;        /* botones principales y elementos activos */
  --brand-dark: #0B7FB5;   /* links y textos destacados (celeste oscuro, legible sobre blanco) */
  --brand-soft: #FFF6D6;   /* fondos suaves (amarillo claro) */
  --promo: #0E9ED6;        /* ofertas por tiempo limitado, insignias */
  --promo-soft: #E3F4FB;
  --discount: #E53935;     /* etiqueta de % OFF */
  --sale: #E53935;         /* precio en oferta */
  --success: #2E9E44;      /* verde: envío gratis, confirmaciones */
  --success-dark: #1F7A33;
  --accent: #FFF6D6;       /* etiqueta "Destacado" */
  --whats: #25d366;

  --bg: #F4F4F4;
  --surface: #ffffff;
  --text: #171717;
  --muted: #555555;
  --border: #DADADA;

  --radius: 12px;
  --shadow: 0 4px 8px 0 rgb(0 0 0 / .08);
  --font: "Montserrat", "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h2 { font-size: 1.5rem; margin: 0; font-weight: 800; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Utility bar ---------- */
.utility { background: var(--promo); color: #fff; font-size: .85rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.announce { margin: 0; font-weight: 700; transition: opacity .3s; }
.announce.fade { opacity: 0; }
.prefs { display: flex; align-items: center; gap: 8px; }
.select-mini { display: flex; align-items: center; gap: 6px; font-weight: 600; opacity: .95; }
.select-mini select { appearance: none; border: 1px solid rgb(255 255 255 / .35); background: rgb(255 255 255 / .1); color: #fff; border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: .82rem; }
.select-mini option { color: var(--text); }
.seg { display: inline-flex; border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; overflow: hidden; }
.seg button { border: 0; background: none; color: rgb(255 255 255 / .8); padding: 3px 10px; font-weight: 800; font-size: .78rem; }
.seg button.active { background: #fff; color: var(--brand-dark); }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--brand); box-shadow: var(--shadow); }
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; font-weight: 900; font-size: 1.6rem; letter-spacing: .01em; flex-shrink: 0; }
.searchbar { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid transparent; border-radius: 8px; padding: 0 18px; height: 48px; transition: border-color .15s, background .15s; }
.searchbar:focus-within { border-color: var(--promo); background: var(--surface); }
.searchbar input { flex: 1; border: 0; background: none; outline: none; font-size: 1rem; min-width: 0; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; border: 2px solid rgb(255 255 255 / .7); background: transparent; color: #fff; border-radius: 8px; padding: 0 16px; height: 48px; font-weight: 700; flex-shrink: 0; }
.cart-btn:hover { background: rgb(255 255 255 / .15); }
.badge { min-width: 22px; padding: 0 6px; border-radius: 999px; background: var(--promo); color: #fff; font-size: .78rem; font-weight: 800; text-align: center; line-height: 22px; }
.badge.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.35); } }

.nav { background: var(--surface); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner > * { border: 0; background: none; padding: 11px 12px; font-weight: 700; font-size: .92rem; white-space: nowrap; color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; }
.nav-inner > *:hover { color: var(--brand); border-bottom-color: var(--brand); }
.nav-hot { color: var(--promo) !important; }

/* ---------- Hero slider ---------- */
.hero { padding-top: 20px; }
.slider { position: relative; border-radius: 22px; overflow: hidden; }
.slides { display: flex; transition: transform .5s ease; }
.slide { flex: 0 0 100%; color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; min-height: 280px; padding: 36px 56px; position: relative; overflow: hidden; }
.slide::after { content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px; border-radius: 50%; background: rgb(255 255 255 / .1); }
.slide-title { font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.1; margin: 0 0 10px; font-weight: 900; text-wrap: balance; }
.slide p { margin: 0 0 20px; font-size: 1.1rem; opacity: .92; max-width: 44ch; }
.slide .btn { background: #fff; color: var(--text); }
.slide-art { font-size: clamp(6rem, 13vw, 10rem); text-align: center; position: relative; z-index: 1; filter: drop-shadow(0 10px 20px rgb(0 0 0 / .2)); }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .9); font-size: 1.5rem; line-height: 1; box-shadow: var(--shadow); z-index: 2; }
.slide-arrow.prev { left: 12px; } .slide-arrow.next { right: 12px; }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgb(255 255 255 / .5); transition: width .2s; }
.dots button.active { width: 24px; background: #fff; }

/* ---------- Shortcuts ---------- */
.shortcuts { display: grid; grid-template-columns: 1fr 1fr 2.4fr; gap: 14px; margin-top: 20px; }
.pet-tile { border: 0; border-radius: var(--radius); padding: 18px 20px; text-align: left; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; min-height: 128px; position: relative; overflow: hidden; transition: transform .15s; }
.pet-tile:hover { transform: translateY(-2px); }
.pet-tile.dog { background: #FFE3C7; }
.pet-tile.cat { background: #CDEFF1; }
.pet-tile strong { font-size: 1.45rem; font-weight: 900; grid-column: 1; align-self: end; }
.pet-tile small { grid-column: 1; align-self: start; font-weight: 700; opacity: .7; }
.pet-emoji { grid-column: 2; grid-row: 1 / 3; font-size: 4.2rem; }
.cat-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cat-tiles button { border: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 4px; transition: transform .15s; }
.cat-tiles button:hover { transform: translateY(-2px); }
.cat-tiles span { font-size: 1.9rem; width: 56px; height: 56px; display: grid; place-items: center; background: var(--brand-soft); border-radius: 50%; }
.cat-tiles b { font-size: .85rem; }

/* ---------- Perks ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.perks > div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.perks > div + div { border-left: 1px solid var(--border); }
.perks span { font-size: 1.7rem; }
.perks p { margin: 0; line-height: 1.25; }
.perks strong { display: block; font-size: .95rem; }
.perks small { color: var(--muted); }

/* ---------- Repeat order ---------- */
.repeat { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(90deg, var(--brand-soft), var(--surface)); border: 2px dashed var(--brand); border-radius: var(--radius); padding: 16px 20px; }
.repeat strong { font-size: 1.1rem; }
.repeat p { margin: 2px 0 0; color: var(--muted); }

/* ---------- Sections ---------- */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-lead { color: var(--muted); margin: 6px 0 0; }
.link { border: 0; background: none; color: var(--brand); font-weight: 800; }
.rail-section { margin-top: 40px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 16px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 8px; padding: 12px 22px; font-weight: 800; text-decoration: none; transition: transform .1s, background .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--surface); color: var(--brand); border: 2px solid var(--brand); }
.btn-whats { background: var(--whats); color: #fff; }
.btn-whats:hover { filter: brightness(.95); }
.btn-block { width: 100%; }
.icon-btn { border: 0; background: none; font-size: 1.2rem; padding: 6px; }

/* ---------- Catalog ---------- */
.catalog { padding-top: 40px; }
.sort { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-weight: 700; }
.filters { display: grid; gap: 10px; margin-bottom: 20px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 7px 15px; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.chip:hover { border-color: var(--text); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.active-filters:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand-dark); border: 0; border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: .85rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 8px 28px rgb(0 0 0 / .1); transform: translateY(-2px); }
.card-media { aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid #f0f0f0; display: grid; place-items: center; font-size: 4.2rem; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.tag { position: absolute; top: 10px; left: 10px; background: var(--brand-soft); color: var(--brand-dark); font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 4px; }
.tag.off { background: var(--promo-soft); color: var(--discount); }
.tag.out { background: var(--text); color: #fff; }
.card.soldout .card-media > :not(.tag) { filter: grayscale(1); opacity: .45; }
.card.soldout .price, .card.soldout h3 { color: var(--muted); }
.variants button.out { color: var(--muted); text-decoration: line-through; }
.low-stock { color: var(--promo); font-weight: 700; font-size: .8rem; }
.add:disabled, .add:disabled:hover { background: var(--border); color: var(--muted); cursor: not-allowed; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.toast { max-width: min(92vw, 520px); text-align: center; border-radius: 16px; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .brand { font-size: .72rem; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border: 0; background: none; padding: 0; text-align: left; align-self: flex-start; }
.card .brand:hover { color: var(--brand); }
.card h3 { margin: 0; font-size: .98rem; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.variants { display: flex; gap: 6px; flex-wrap: wrap; }
.variants button { border: 1px solid var(--border); background: var(--surface); border-radius: 8px; padding: 3px 9px; font-size: .78rem; font-weight: 700; }
.variants button.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); }
.prices { margin-top: auto; padding-top: 4px; min-height: 3.2em; display: flex; flex-direction: column; justify-content: flex-end; }
.was { color: var(--muted); text-decoration: line-through; font-size: .85rem; }
.price { font-weight: 700; font-size: 1.3rem; white-space: nowrap; line-height: 1.2; }
.price.sale { color: var(--sale); }
.add { margin-top: 6px; width: 100%; border: 0; background: var(--brand); color: #fff; border-radius: 8px; padding: 10px 14px; font-weight: 800; white-space: nowrap; }
.add:hover { background: var(--brand-dark); }
.empty { color: var(--muted); text-align: center; padding: 24px 0; }

/* ---------- Brands ---------- */
.brands-section { margin-top: 48px; }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.brands button { border: 0; background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); height: 72px; font-weight: 900; font-size: 1.05rem; color: var(--brand-dark); transition: transform .15s; }
.brands button:hover { transform: translateY(-2px); }

/* ---------- How to buy ---------- */
.how { background: var(--surface); margin-top: 56px; padding: 44px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { display: grid; gap: 4px; align-content: start; }
.steps span { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; margin-bottom: 6px; }
.steps strong { font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Zones ---------- */
.stores { padding: 48px 16px 56px; }
.stores-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 18px; }
.store { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border: 2px solid transparent; }
.store h3 { margin: 0 0 6px; }
.store p { margin: 2px 0; color: var(--muted); }
.store .btn { margin-top: 14px; padding: 9px 18px; }
.store-zone { position: relative; text-align: left; font: inherit; }
.store-zone:hover { border-color: var(--brand-soft); }
.store-zone.current, .store-zone.current:hover { border-color: var(--brand); }
.store-zone .tag { left: auto; right: 14px; top: 14px; }
.store-zone strong { color: var(--text); }
.store-base { background: var(--brand); color: #fff; }
.store-base p { color: rgb(255 255 255 / .85); }

/* ---------- Footer ---------- */
.footer { background: var(--text); color: rgb(255 255 255 / .75); padding: 32px 0 88px; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.footer p { margin: 6px 0; }
.footer a { color: var(--whats); font-weight: 800; }
.footer small { grid-column: 1 / -1; border-top: 1px solid rgb(255 255 255 / .15); padding-top: 14px; }

/* ---------- WhatsApp FAB ---------- */
.whats-fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: var(--whats); display: grid; place-items: center; font-size: 1.6rem; text-decoration: none; box-shadow: 0 6px 20px rgb(37 211 102 / .45); z-index: 30; transition: transform .15s; }
.whats-fab:hover { transform: scale(1.06); }

/* ---------- Drawer ---------- */
.overlay { position: fixed; inset: 0; background: rgb(0 0 0 / .4); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); z-index: 50; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; }
.drawer-body { overflow-y: auto; padding: 12px 20px 24px; flex: 1; }
.free-bar { background: var(--bg); border-radius: 12px; padding: 10px 14px; margin-bottom: 4px; }
.free-bar small { font-weight: 700; color: var(--success-dark); }
.bar { height: 6px; background: var(--border); border-radius: 999px; margin-top: 6px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--success); border-radius: 999px; transition: width .3s; }
.cart-list { list-style: none; padding: 0; margin: 0; }
.cart-item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item .thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.5rem; overflow: hidden; }
.cart-item .nm { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.cart-item .pr { color: var(--muted); font-size: .82rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; }
.qty button { border: 0; background: none; width: 30px; height: 30px; font-weight: 900; }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }

.checkout { display: grid; gap: 14px; margin-top: 18px; }
.checkout label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; }
.checkout input, .checkout select, .checkout textarea { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface); font-weight: 400; }
.zone-note { margin: 0; background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; padding: 10px 14px; border-radius: 10px; }
.totals { background: var(--bg); border-radius: var(--radius); padding: 12px 16px; display: grid; gap: 4px; }
.totals > div { display: flex; justify-content: space-between; }
.totals .savings { color: var(--sale); font-weight: 700; }
.totals .total { font-weight: 900; font-size: 1.15rem; border-top: 1px solid var(--border); padding-top: 6px; margin-top: 4px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; background: var(--text); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 700; z-index: 60; transition: transform .25s, opacity .25s, visibility .25s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .shortcuts { grid-template-columns: 1fr 1fr; }
  .cat-tiles { grid-column: 1 / -1; }
  .perks { grid-template-columns: 1fr 1fr; }
  .perks > div:nth-child(3) { border-left: 0; }
  .perks > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 170px; }
  .utility-inner { flex-direction: column; align-items: stretch; gap: 6px; padding-top: 6px; padding-bottom: 8px; }
  .announce { text-align: center; font-size: .8rem; }
  .prefs { justify-content: space-between; }
  .select-mini > span { display: none; }
  .topbar-inner { flex-wrap: wrap; height: auto; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .logo { font-size: 1.35rem; }
  .cart-btn { margin-left: auto; height: 42px; padding: 0 14px; }
  .cart-label { display: none; }
  .searchbar { order: 3; flex-basis: 100%; height: 44px; }
  .slide { grid-template-columns: 1fr; padding: 28px 24px 40px; min-height: 0; }
  .slide-art { position: absolute; right: 8px; bottom: 6px; font-size: 5rem; opacity: .35; }
  .slide-arrow { display: none; }
  .pet-tile { min-height: 96px; padding: 14px; }
  .pet-tile strong { font-size: 1.15rem; }
  .pet-emoji { font-size: 3rem; }
  .cat-tiles { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: 1fr; }
  .perks > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .repeat { flex-direction: column; align-items: stretch; text-align: center; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px 10px 12px; }
  .card h3 { font-size: .88rem; }
  .price { font-size: 1.1rem; }
  .rail { grid-auto-columns: 46%; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .whats-fab { width: 50px; height: 50px; right: 14px; bottom: 14px; }
}

/* ---------- Checkout ---------- */
.drawer-foot { border-top: 1px solid var(--border); padding: 12px 20px 16px; background: var(--surface); box-shadow: 0 -6px 16px rgb(0 0 0 / .06); }
.foot-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-weight: 700; }
.foot-total strong { font-size: 1.25rem; }
.no-pay { margin: 8px 0 0; font-size: .78rem; color: var(--muted); text-align: center; line-height: 1.35; }
.row-2 { display: flex; gap: 10px; }
.row-2 .grow { flex: 1; }
.row-2 .num { width: 96px; }
.checkout label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: .85rem; color: var(--muted); }
.checkout .invalid { border-color: #C80E3B !important; background: #FAE7EB; }
.cart-tools { display: flex; justify-content: flex-end; margin-top: 4px; }
.link-btn { border: 0; background: none; color: var(--muted); font-size: .8rem; font-weight: 600; text-decoration: underline; padding: 4px 0; }
.link-btn:hover { color: #C80E3B; }
.cart-item { grid-template-columns: 48px 1fr auto auto; }
.cart-item .remove { border: 0; background: none; color: var(--muted); font-size: 1rem; padding: 4px; }
.cart-item .remove:hover { color: #C80E3B; }
.drawer.open ~ .toast { bottom: 190px; }

/* ---------- Pix ---------- */
.modal { position: fixed; inset: 0; z-index: 70; background: rgb(0 0 0 / .5); display: grid; place-items: center; padding: 16px; }
.modal-box { position: relative; background: var(--surface); border-radius: 16px; padding: 24px 22px; width: min(400px, 100%); max-height: 100%; overflow-y: auto; text-align: center; box-shadow: 0 16px 48px rgb(0 0 0 / .24); }
.modal-box h3 { margin: 0 0 4px; font-size: 1.3rem; }
.modal-close { position: absolute; top: 10px; right: 10px; }
.pix-amount { margin: 0 0 10px; color: var(--muted); }
.pix-amount strong { display: block; font-size: 1.8rem; color: var(--text); }
.pix-qr { display: grid; place-items: center; margin: 0 auto 10px; }
.pix-qr svg, .pix-qr img { width: 220px; height: 220px; }
.pix-help { font-size: .85rem; color: var(--muted); margin: 8px 0; }
.pix-copy { display: flex; gap: 8px; }
.pix-copy input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-size: .8rem; color: var(--muted); background: var(--bg); }
.pix-copy .btn { padding: 10px 16px; }
.pix-to { font-size: .85rem; margin: 10px 0 0; }
.pix-order { margin: 6px 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Cuenta del cliente ---------- */
.shop-main { padding-top: 24px; padding-bottom: 60px; max-width: 860px; }
.shop-head-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.seg-light { border-color: rgb(255 255 255 / .6); }
.seg-light button { color: #fff; }
.seg-light button.active { background: #fff; color: var(--brand-dark); }
.shop-page .topbar .cart-btn { text-decoration: none; font-size: .9rem; height: 40px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; }
.flash-ok { background: #E9F7E6; color: #1C6400; }
.flash-error { background: #FAE7EB; color: #960B2C; }
.flash-info { background: var(--brand-soft); color: var(--brand-dark); word-break: break-all; }
.muted { color: var(--muted); }
.auth-card { max-width: 420px; margin: 20px auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; }
.auth-card h1 { font-size: 1.5rem; margin: 0 0 6px; }
.form { display: grid; gap: 14px; margin-top: 16px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .9rem; }
.form input, .form select { min-width: 0; max-width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 11px 12px; background: var(--surface); font-weight: 400; }
.form input:focus, .form select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.form label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; color: var(--muted); }
.form label.check input { margin-top: 3px; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 14px; align-items: center; }
.auth-links { text-align: center; margin: 16px 0 0; font-size: .9rem; }
.auth-links a { color: var(--brand-dark); font-weight: 700; }
.auth-alt { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 16px; text-align: center; }
.auth-alt p { margin: 0 0 8px; color: var(--muted); }
.perks-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .92rem; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.account-head h1 { margin: 0; font-size: 1.6rem; }
.account-head p { margin: 2px 0 0; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin: 18px 0; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--muted); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs a.active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.points-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: var(--radius); padding: 22px 24px; }
.points-card p { margin: 4px 0 0; opacity: .9; }
.points-big { display: block; font-size: 2.4rem; font-weight: 900; line-height: 1.1; }
.points-big span { font-size: 1rem; font-weight: 700; }
.points-card .pending { background: rgb(255 255 255 / .15); padding: 4px 10px; border-radius: 999px; display: inline-block; margin-top: 8px; font-size: .85rem; }
.btn-white { background: #fff; color: var(--brand-dark); text-decoration: none; }
.btn-sm { padding: 7px 14px; font-size: .85rem; text-decoration: none; }
.card-box { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-top: 16px; }
.card-box h2 { font-size: 1.15rem; margin: 0 0 10px; }
.empty-box { text-align: center; }
.how-points { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.moves { list-style: none; padding: 0; margin: 0; }
.moves li { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.plus { color: var(--success-dark); }
.minus { color: #C80E3B; }
.order-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 12px; }
.order-card header, .order-card footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-items { margin: 10px 0; padding-left: 18px; font-size: .9rem; }
.status { font-size: .75rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--bg); white-space: nowrap; }
.status-new { background: var(--brand-soft); color: var(--brand-dark); }
.status-confirmed { background: #E9F0FA; color: #174D97; }
.status-delivered { background: #E9F7E6; color: #1C6400; }
.status-cancelled { background: #f0f0f0; color: var(--muted); }
.pets { display: grid; gap: 12px; }
.pet-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.pet-avatar { font-size: 2rem; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; flex-shrink: 0; }
.pet-info { display: grid; flex: 1; }
.pet-actions { display: flex; gap: 12px; }
.link-btn.danger:hover { color: #C80E3B; }

/* ---------- Puntos en la tienda ---------- */
.earn { align-self: flex-start; background: #EEF6E4; color: var(--success-dark); font-weight: 800; font-size: .75rem; padding: 2px 8px; border-radius: 999px; }
.account-btn { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; flex-shrink: 0; }
.account-btn .pts { background: var(--promo); border-radius: 999px; padding: 2px 8px; font-size: .75rem; }
.points-box { border: 1px dashed var(--success); background: #F3F9EC; border-radius: 10px; padding: 10px 14px; font-size: .88rem; }
.points-box label { display: flex !important; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.points-box a { color: var(--brand-dark); font-weight: 700; }
.totals .points-row { color: var(--success-dark); font-weight: 700; }
@media (max-width: 720px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .account-btn .label { max-width: 76px; overflow: hidden; text-overflow: ellipsis; font-size: .8rem; }
  .shop-page .topbar .cart-btn { padding: 0 10px; }
}
.checkout input, .checkout select, .checkout textarea { width: 100%; min-width: 0; }
.checkout input[type=checkbox], .checkout input[type=radio] { width: 18px; height: 18px; flex: none; padding: 0; accent-color: var(--brand); }
.row-2 > label { min-width: 0; }
.refill { display: block; margin-top: 4px; color: var(--muted); }
.refill.soon { color: var(--promo); font-weight: 700; }
.refill a { color: var(--brand-dark); font-weight: 800; }
.refill-banner { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; margin-top: 16px; background: var(--promo-soft); border: 2px solid var(--promo); border-radius: var(--radius); padding: 14px 18px; }
.refill-banner p { margin: 0; font-weight: 600; }
.refill-banner .btn { background: var(--promo); color: #fff; }
@media (max-width: 720px) {
  .pet-card { flex-wrap: wrap; align-items: flex-start; }
  .pet-info { flex: 1 1 calc(100% - 72px); }
  .pet-actions { width: 100%; justify-content: flex-end; border-top: 1px solid #f0f0f0; padding-top: 8px; }
}

/* ---------- Logo ---------- */
.logo-img { height: 40px; width: auto; display: block; }
.footer-logo { display: inline-flex; align-items: center; gap: 8px; }
.footer-logo img { height: 30px; width: auto; }
.store-logo { height: 26px; width: auto; vertical-align: -5px; }
@media (max-width: 720px) { .logo-img { height: 32px; } }

/* ---------- Programa de puntos ---------- */
.nav-points { color: var(--success-dark) !important; }
.loyalty-banner { margin-top: 20px; display: flex; align-items: center; gap: 18px; background: linear-gradient(120deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.coin { flex-shrink: 0; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #FFE7A3, #F7B733 55%, #D98E04); color: #8A5300; font-weight: 900; font-size: 1.6rem;
  box-shadow: inset 0 -3px 0 rgb(0 0 0 / .15), inset 0 0 0 3px rgb(255 255 255 / .35), 0 4px 10px rgb(0 0 0 / .2); }
.coin-lg { width: 80px; height: 80px; font-size: 2.4rem; margin: 0 auto; }
.loyalty-banner .loy-text { flex: 1; }
.loyalty-banner strong { font-size: 1.2rem; display: block; }
.loyalty-banner p { margin: 4px 0 0; opacity: .92; font-size: .92rem; }
.loy-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.loy-link { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
@media (max-width: 720px) {
  .loyalty-banner { flex-wrap: wrap; padding: 16px; }
  .loyalty-banner .coin { width: 44px; height: 44px; font-size: 1.3rem; }
  .loyalty-banner .loy-text { flex: 1 1 calc(100% - 60px); }
  .loy-actions { width: 100%; }
  .loy-actions .btn { flex: 1; }
}
.points-hero { text-align: center; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: var(--radius); padding: 32px 22px; }
.points-hero h1 { font-size: 1.8rem; margin: 6px 0 8px; }
.points-hero p { opacity: .92; max-width: 560px; margin: 0 auto 16px; }
.points-hero .coin-big { font-size: 3.4rem; }
.points-hero-balance { font-weight: 800; background: rgb(255 255 255 / .15); display: inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.points-hero .small-link { margin: 10px 0 0; }
.points-hero .small-link a { color: #fff; font-weight: 700; }
.steps-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-3 span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; margin-bottom: 6px; }
.steps-3 p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.points-table { width: 100%; border-collapse: collapse; }
.points-table th, .points-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #f0f0f0; }
.faq details { border-bottom: 1px solid #f0f0f0; padding: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }
@media (max-width: 720px) { .steps-3 { grid-template-columns: 1fr; } .points-hero h1 { font-size: 1.4rem; } }
@media (max-width: 720px) {
  .account-btn.logged .label { display: none; }  /* con sesión: ícono + saldo, para que el carrito no baje de línea */
  .topbar-inner { flex-wrap: wrap; }
  .account-btn { margin-left: auto; }
  .cart-btn { margin-left: 8px; }
}
.offer-until { color: var(--sale); font-weight: 700; font-size: .75rem; }

/* ---------- Ofertas por tiempo limitado ---------- */
.deals { margin-top: 28px; }
.deals-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 340px); gap: 16px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.deal-card { scroll-snap-align: start; position: relative; background: var(--surface); border: 2px solid var(--promo); border-radius: 18px; padding: 16px 18px 18px; display: flex; flex-direction: column; text-align: center; box-shadow: var(--shadow); }
.deal-head { display: flex; justify-content: space-between; align-items: flex-start; min-height: 62px; }
.deal-label { font-weight: 800; font-size: 1.05rem; text-align: left; }
.deal-save { width: 72px; height: 72px; margin: -6px -6px 0 0; border-radius: 50%; background: var(--promo); color: #fff; display: grid; place-content: center; line-height: 1.1; box-shadow: 0 4px 10px rgb(230 117 0 / .35); }
.deal-save small { font-size: .68rem; font-weight: 600; }
.deal-save b { font-size: .92rem; }
.deal-media { position: relative; aspect-ratio: 1 / 1; max-height: 300px; display: grid; place-items: center; font-size: 6.5rem; margin: 0 auto 10px; width: 100%; }
.deal-media img { max-height: 100%; width: auto; object-fit: contain; }
.deal-card h3 { margin: 0; font-size: 1rem; color: var(--brand-dark); }
.deal-size { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.deal-prices { display: flex; justify-content: center; align-items: baseline; gap: 10px; margin: 10px 0 6px; }
.deal-prices .price { font-size: 1.7rem; }
.deal-hurry { margin: 4px 0 8px; color: var(--muted); font-size: .9rem; }
.countdown { display: flex; justify-content: center; align-items: flex-start; gap: 6px; }
.countdown div { display: grid; justify-items: center; gap: 4px; }
.countdown div[hidden], .countdown i[hidden] { display: none; }
.countdown b { background: #E6E6E6; border-radius: 6px; min-width: 58px; padding: 4px 6px; font-size: 1.85rem; font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .72rem; font-weight: 800; color: var(--text); text-transform: uppercase; letter-spacing: .04em; }
.countdown i { font-style: normal; font-weight: 700; font-size: 1.6rem; padding-top: 6px; color: var(--text); }
.deal-stock { margin: 12px 0 0; text-align: left; }
.deal-stock .bar { height: 6px; background: #F2F2F2; border-radius: 999px; overflow: hidden; }
.deal-stock .bar span { display: block; height: 100%; background: var(--promo); }
.deal-stock small { color: var(--promo); font-weight: 700; }
.deal-card .add { margin-top: 14px; }
.deal-card.ended { opacity: .55; }
.deal-card.ended .countdown { filter: grayscale(1); }
.offer-timer { color: var(--sale); font-weight: 800; font-size: .75rem; font-variant-numeric: tabular-nums; }
.offer-timer.ended { color: var(--muted); }
.deals-rail.single { grid-auto-columns: minmax(280px, 420px); }
/* Oferta especial a la izquierda + mix de perros y gatos a la derecha (como Electro) */
.deals-layout { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 20px; align-items: start; }
.deals-layout .deals-rail { grid-auto-columns: 100%; padding: 4px 0 14px; }
.picks { display: flex; flex-direction: column; min-width: 0; }
.picks[hidden] { display: none; }
.picks-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.picks-tabs button { border: 0; background: none; padding: 8px 14px; font-weight: 800; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; cursor: pointer; }
.picks-tabs button.active { color: var(--brand-dark); border-color: var(--promo); }
.picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; flex: 1; }
.mini { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 4px; transition: box-shadow .2s, transform .2s; min-width: 0; }
.mini:hover { box-shadow: 0 8px 28px rgb(0 0 0 / .1); transform: translateY(-2px); }
.mini-media { position: relative; height: 130px; display: grid; place-items: center; font-size: 4rem; }
.mini-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mini-media .tag { top: 0; left: 0; }
.mini-brand { font-size: .68rem; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.mini h4 { margin: 0; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.mini-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; margin-top: auto; }
.mini-foot .prices { display: flex; flex-direction: column; gap: 0; }
.mini-foot .price { font-size: 1.1rem; }
.mini-foot .was { font-size: .78rem; }
.mini-foot small { color: var(--muted); font-size: .72rem; }
.mini-add { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 1.4rem; font-weight: 700; line-height: 1; cursor: pointer; }
.mini-add:hover { background: var(--brand-dark); }
.picks-all { grid-column: 1 / -1; justify-self: end; border: 0; background: none; color: var(--brand-dark); font-weight: 800; cursor: pointer; padding: 4px; }
@media (max-width: 1100px) { .picks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .deals-rail { grid-auto-columns: 86%; }
  .deals-rail.single { grid-auto-columns: 100%; }   /* una sola oferta: todo el ancho, como Electro */
  .deals-layout { grid-template-columns: 1fr; }
  .deals-layout .deals-rail:not(.single) { grid-auto-columns: 86%; }
  .picks-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mini-media { height: 110px; }
  .picks-tabs { gap: 0; scrollbar-width: none; }
  .picks-tabs button { padding: 8px 10px; flex: 1; }
  .countdown b { min-width: 54px; font-size: 1.75rem; }
}

/* ============================================================
   App instalable (estilo NovaPet): barra de abajo, favoritos, bienvenida, invitar, calculadora
   ============================================================ */
.btn-outline { background: #fff; color: var(--brand-dark); border: 2px solid var(--brand); text-decoration: none; }
.btn-outline:hover { background: var(--brand-soft); }
.small { font-size: .85rem; }

/* Barra fija de abajo: solo en celulares */
.bottom-nav { display: none; }
@media (max-width: 720px) {
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgb(0 0 0 / .06); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .68rem; padding: 4px 0; position: relative; }
  .bottom-nav b { font-weight: 700; }
  .bottom-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
  .bottom-nav a.active { color: var(--brand-dark); }
  .bottom-nav a.active::before { content: ""; position: absolute; top: -6px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .whats-fab { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .drawer { z-index: 50; }
}

/* Favoritos */
.fav { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .92);
  box-shadow: 0 2px 6px rgb(0 0 0 / .12); color: var(--muted); font-size: 1.15rem; line-height: 1; display: grid; place-items: center; z-index: 2; transition: transform .15s; }
.fav:hover { transform: scale(1.1); color: #E0245E; }
.fav.on { color: #E0245E; }
.mini-media .fav { top: 0; right: 0; width: 30px; height: 30px; font-size: 1rem; }
.chip-fav.active { background: #FDE8EF; color: #B0174A; border-color: #F5B5C9; }

/* Puntos por vencer */
.loy-expiring { margin: 4px 0 0; font-weight: 700; color: #FFE7C2; }

/* Aviso para instalar */
.install-banner { position: fixed; left: 12px; right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 45; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 14px; box-shadow: 0 8px 30px rgb(0 0 0 / .18); padding: 10px 12px; animation: up .3s ease; }
.install-banner img { border-radius: 10px; flex-shrink: 0; }
.install-banner div { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.install-banner small { color: var(--muted); font-size: .78rem; }
.install-close { border: 0; background: none; font-size: 1.4rem; color: var(--muted); padding: 0 4px; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
.install-tip { background: var(--brand-soft); color: var(--brand-dark); border-radius: 10px; padding: 10px 12px; font-size: .88rem; margin: 10px 0; }

/* Bienvenida en 3 pasos */
.welcome { max-width: 440px; margin: 10px auto; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 22px 22px 26px; text-align: center; }
.welcome h1 { font-size: 1.4rem; margin: 6px 0 6px; }
.welcome .form { text-align: left; grid-template-columns: minmax(0, 1fr); }  /* el <select> con textos largos no ensancha la tarjeta */
.welcome .form select, .calc .form select { min-width: 0; width: 100%; }
.welcome-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.welcome-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--border); transition: width .2s; }
.welcome-dots i.on { width: 24px; background: var(--brand); }
.welcome-emoji { font-size: 3rem; line-height: 1.2; }
.welcome-list { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; text-align: left; }
.welcome-list li { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 12px; padding: 11px 14px; font-weight: 600; font-size: .92rem; }
.welcome-list .coin { width: 26px; height: 26px; font-size: .8rem; flex-shrink: 0; }
.wl-ico { width: 26px; text-align: center; font-size: 1.2rem; flex-shrink: 0; }
.welcome .btn-block + .btn-block { margin-top: 10px; }
.welcome-skip { display: block; margin: 12px auto 0; }
.push-status { font-size: .88rem; }
.species-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin-bottom: 4px; }
.species-pick label { cursor: pointer; }
.species-pick input { position: absolute; opacity: 0; pointer-events: none; }
.species-pick span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 1.8rem; background: var(--bg); border: 2px solid transparent; border-radius: 14px; padding: 10px 6px; transition: border-color .15s, background .15s; }
.species-pick b { font-size: .82rem; }
.species-pick input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.species-pick input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Invitar amigos */
.invite-note { background: var(--promo-soft); color: #8A4600; border-radius: 10px; padding: 10px 12px; font-weight: 600; font-size: .9rem; margin: 8px 0 14px; }
.invite-card { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: var(--radius); padding: 24px 22px; text-align: center; margin-bottom: 16px; }
.invite-card h2 { font-size: 1.3rem; margin: 4px 0 8px; }
.invite-card p { opacity: .95; margin: 0 auto 14px; max-width: 520px; }
.invite-gift { font-size: 2.6rem; }
.invite-link { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 12px; }
.invite-link input { flex: 1; min-width: 0; border: 0; border-radius: 10px; padding: 10px 12px; font-size: .88rem; color: var(--text); }
.invite-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.invite-code { margin: 14px 0 0; font-size: .9rem; }
.invite-code b { letter-spacing: .08em; background: rgb(255 255 255 / .18); padding: 2px 8px; border-radius: 6px; }
.invite-promo { display: flex; gap: 16px; align-items: flex-start; }
.invite-promo h2 { font-size: 1.15rem; }
.invite-promo p { margin: 6px 0 12px; }

/* Foto de la mascota */
.pet-photo { object-fit: cover; padding: 0; }
.photo-row { display: flex; align-items: center; gap: 12px; }
.photo-row { min-width: 0; }
.photo-row input[type=file] { flex: 1; min-width: 0; width: 100%; font-size: .82rem; padding: 8px; }
.pet-photo-preview { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

/* Calculadora */
.calc-hero { text-align: center; margin-bottom: 16px; }
.calc-hero h1 { font-size: 1.6rem; margin: 0 0 6px; }
.calc-hero p { color: var(--muted); margin: 0; }
.calc-result { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 16px; text-align: center; }
.calc-big { display: flex; flex-direction: column; align-items: center; }
.calc-big strong { font-size: 3rem; line-height: 1; color: var(--brand-dark); }
.calc-big span { font-weight: 700; color: var(--muted); }
.calc-result .points-table { max-width: 360px; margin: 10px auto 16px; }
.calc-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }

/* ============================================================
   Ficha de producto (formato Cobasi)
   ============================================================ */
.pdp { padding-top: 14px; padding-bottom: 40px; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-dark); text-decoration: underline; }
.crumbs span { color: var(--text); }
.pdp-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 360px; gap: 28px; align-items: start; background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.pdp-gallery { position: relative; }
.pdp-main-photo { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 12px; }
.pdp-main-photo img { width: 100%; height: 100%; object-fit: contain; }
.pdp-emoji { font-size: 9rem; }
.pdp-main-photo .tag { top: 8px; left: 8px; }
.pdp-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.pdp-thumbs button { width: 64px; height: 64px; flex-shrink: 0; border: 2px solid var(--border); border-radius: 8px; background: #fff; padding: 4px; }
.pdp-thumbs button.active { border-color: var(--brand); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info { position: relative; padding-top: 4px; }
.pdp-actions { position: absolute; top: 0; right: 0; display: flex; gap: 6px; }
.pdp-icon { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); color: var(--promo); font-size: 1.35rem; display: grid; place-items: center; }
.pdp-icon.on { color: #E0245E; }
.pdp-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--promo); stroke-width: 2; }
.pdp-brand { display: inline-block; color: var(--muted); font-weight: 600; font-size: .88rem; text-decoration: none; margin-bottom: 4px; }
.pdp-brand:hover { color: var(--brand-dark); }
.pdp-info h1 { font-size: 1.45rem; line-height: 1.3; margin: 0 96px 16px 0; font-weight: 700; }
.pdp-sub { font-size: 1rem; margin: 0 0 6px; }
.pdp-bullets { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--text); display: grid; gap: 4px; }
.pdp-bullets li { font-weight: 600; }
.buy-card { border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; background: var(--surface); }
.buy-card + .buy-card { margin-top: 12px; }
.buy-label { font-weight: 700; margin: 0 0 10px; }
.buy-title { font-weight: 800; margin: 0 0 10px; }
.buy-options { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.buy-options button { position: relative; border: 1.5px solid var(--success); color: var(--success-dark); background: #fff; border-radius: 8px; padding: 7px 12px; font-weight: 600; font-size: .9rem; }
.buy-options button.active { background: #F1F8E9; box-shadow: inset 0 0 0 1px var(--success); }
.buy-options button.out { border-color: var(--border); color: var(--muted); text-decoration: line-through; }
.opt-off { position: absolute; top: -8px; right: -8px; width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #fff; font-size: .62rem; font-style: normal; display: grid; place-items: center; }
.buy-perkg { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.buy-price-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.buy-price-row .was { display: block; color: var(--muted); font-size: .85rem; }
.buy-price { font-size: 1.6rem; font-weight: 800; }
.buy-off { background: var(--promo-soft); color: var(--discount); font-weight: 800; font-size: .78rem; border-radius: 6px; padding: 2px 6px; margin-left: 6px; vertical-align: middle; }
.buy-qty { border: 1px solid var(--border); border-radius: 10px; }
.buy-qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.3rem; color: var(--text); }
.buy-qty span { min-width: 30px; text-align: center; font-weight: 700; display: inline-block; }
.buy-pay { color: var(--muted); font-size: .82rem; margin: 6px 0 12px; }
.btn-buy { background: var(--success); color: #fff; border-radius: 999px; font-size: 1rem; }
.btn-buy:hover { background: var(--success-dark); }
.btn-buy:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.buy-wa { margin-top: 8px; border-radius: 999px; }
.buy-points { display: flex; align-items: center; gap: 12px; }
.buy-points div:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.buy-points small { color: var(--muted); }
.buy-points small a { color: var(--brand-dark); font-weight: 700; }
.points-pill { background: var(--promo-soft); color: var(--promo); font-weight: 800; border-radius: 8px; padding: 6px 10px; white-space: nowrap; }
.buy-last ul { margin: 0 0 4px; padding-left: 18px; font-weight: 700; }
.ship-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.ship-row + .ship-row { margin-top: 10px; }
.ship-ico { font-size: 1.3rem; }
.ship-row small { color: var(--muted); }
.pdp-section { margin-top: 22px; }
.pdp-section > h2 { font-size: 1.25rem; margin-bottom: 12px; }
.pdp-related { grid-auto-columns: 190px; }
.rel-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 3px; scroll-snap-align: start; }
.rel-card:hover { box-shadow: 0 8px 28px rgb(0 0 0 / .1); }
.rel-media { height: 140px; display: grid; place-items: center; font-size: 3.6rem; }
.rel-media img { max-height: 100%; object-fit: contain; }
.rel-brand { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: .68rem; letter-spacing: .05em; }
.rel-name { font-weight: 600; font-size: .88rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.rel-price s { color: var(--muted); font-size: .78rem; }
.rel-price b { color: var(--text); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; vertical-align: top; }
.spec-table tr:nth-child(odd) { background: var(--bg); }
.spec-table th { width: 32%; font-weight: 700; }
.pdp-details p { margin: 0 0 12px; line-height: 1.65; }
.pdp-sticky { display: none; }
.card-media a, .card h3 a, .deal-card h3 a, .mini h4 a { color: inherit; text-decoration: none; }
.card h3 a:hover, .deal-card h3 a:hover, .mini h4 a:hover { color: var(--brand-dark); }
.mini-media > a { display: contents; }
a.deal-media { text-decoration: none; }
.card-media > a { display: contents; }
@media (max-width: 1000px) {
  .pdp-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pdp-buy { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
  .buy-card + .buy-card { margin-top: 0; }
}
@media (max-width: 720px) {
  .pdp-top { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 16px; }
  .pdp-buy { display: block; }
  .buy-card + .buy-card { margin-top: 12px; }
  .pdp-info h1 { font-size: 1.15rem; margin-right: 0; }
  .pdp-actions { position: static; float: right; flex-direction: column; margin-left: 8px; }
  .pdp-gallery { margin: 0 -4px; }
  .pdp-main-photo { aspect-ratio: auto; height: min(78vw, 340px); }
  .pdp-emoji { font-size: 7rem; }
  .pdp-sticky { display: flex; position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 39; background: var(--surface);
    border-top: 1px solid var(--border); padding: 10px 16px; align-items: center; justify-content: space-between; gap: 10px; transform: translateY(120%); transition: transform .2s; }
  .pdp-sticky.show { transform: none; }
  .pdp-sticky div { display: flex; flex-direction: column; line-height: 1.2; }
  .pdp-sticky small { color: var(--muted); }
  .pdp-sticky strong { font-size: 1.2rem; }
  .pdp-sticky .btn { padding: 12px 26px; }
  .store-page .whats-fab { display: none; }
}

/* Cupón en el carrito */
.coupon-box { border: 1px dashed var(--border); border-radius: 10px; padding: 10px; margin: 6px 0 10px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; text-transform: uppercase; font-weight: 600; }
.coupon-form input::placeholder { text-transform: none; font-weight: 400; }
.coupon-form .btn { padding: 9px 14px; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--success-dark); }
.coupon-on small { color: var(--muted); }
.coupon-msg { margin: 6px 0 0; font-size: .82rem; color: var(--promo); font-weight: 600; }
.coupon-msg.bad { color: #C80E3B; }
.coupon-total { color: var(--success-dark); }

/* ============================================================
   Identidad PETMAS (amarillo + negro + celeste) sobre el formato Cobasi
   ============================================================ */
.utility { background: var(--ink); color: #fff; }
.topbar { background: var(--yellow); }
.logo { color: var(--ink); gap: 4px; }
.logo-img { height: 44px; }
.logo-word { height: 30px; width: auto; display: block; }
.searchbar:focus-within { border-color: var(--ink); }
.cart-btn { border-color: var(--ink); color: var(--ink); }
.cart-btn:hover { background: rgb(0 0 0 / .07); }
.badge { background: var(--ink); color: var(--yellow); }
.account-btn { color: var(--ink); }
.account-btn .pts { background: var(--ink); color: var(--yellow); }
.seg-light button { color: var(--ink); }
.seg-light button.active { background: var(--ink); color: var(--yellow); }
.nav-inner > *:hover { color: var(--ink); border-bottom-color: var(--yellow); }
.nav-hot { color: var(--sky) !important; }
.btn-primary:hover, .chip.active:hover { background: #333; }
.add, .btn-buy, .mini-add { background: var(--yellow); color: var(--ink); }
.add:hover, .btn-buy:hover, .mini-add:hover { background: var(--yellow-dark); color: var(--ink); }
.loyalty-banner, .points-hero, .points-card, .invite-card { background: radial-gradient(circle at 100% 0, rgb(252 193 1 / .28), transparent 45%), var(--ink); }
.loy-link, .points-hero .small-link a { color: var(--yellow); }
.deal-save { box-shadow: 0 4px 10px rgb(14 158 214 / .35); }
.buy-options button { border-color: var(--sky); color: var(--brand-dark); }
.buy-options button.active { background: var(--promo-soft); box-shadow: inset 0 0 0 1px var(--sky); }
.opt-off { background: var(--sky); }
.footer { background: var(--ink); }
.footer-logo img { height: 30px; }
.store-logo { height: 24px; vertical-align: middle; }
.bottom-nav a.active::before { background: var(--yellow); height: 4px; }
.tag.featured, .tag:not(.off):not(.out) { background: var(--yellow); color: var(--ink); }
@media (max-width: 720px) {
  .logo-img { height: 30px; }
  .logo-word { height: 20px; }
  .topbar-inner { column-gap: 10px; }
}
@media (max-width: 360px) { .logo-word { display: none; } }  /* celulares muy angostos: solo el dibujo */
.slide-light { color: var(--ink); }
.slide-light .btn { background: var(--ink); color: #fff; }
.pet-tile.dog { background: #FFEBA8; }
.pet-tile.cat { background: #D4EEF9; }
.nav-points { color: var(--ink) !important; }
