/* ==========================================================================
   Huellitas Pet Shop — estilos (mobile-first)
   ========================================================================== */

:root {
  /* Marca */
  --green-900: #11402F;
  --green-800: #175A44;
  --green-700: #1F6F54;
  --green-600: #2A8566;
  --green-100: #D5EADF;
  --green-50: #EDF6F1;
  --coral-700: #D24A1F;
  --coral-600: #E85A2C;
  --coral-500: #FF6B3D;
  --coral-50: #FFF1EB;
  --cream: #FBF7F0;
  --beige: #F4EBDC;
  --sand: #E9DDC8;
  --yellow: #FFB930;

  /* Texto y superficies */
  --ink: #1B2621;
  --ink-2: #44544C;
  --muted: #6B7A72;
  --line: #E8E2D7;
  --line-2: #F1ECE3;
  --surface: #FFFFFF;
  --bg: #FFFFFF;

  /* Estado */
  --ok: #1E7D4F;
  --warn: #B26A00;
  --warn-bg: #FFF4DB;
  --danger: #C93838;
  --danger-bg: #FDECEC;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(27, 38, 33, .06), 0 1px 3px rgba(27, 38, 33, .05);
  --shadow: 0 4px 16px rgba(27, 38, 33, .08);
  --shadow-lg: 0 18px 40px rgba(27, 38, 33, .14);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --header-h: 64px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-800); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.75rem); }
.h3 { font-size: 1.15rem; }
.h4 { font-size: 1rem; margin-top: 1rem; }
p { margin: 0 0 1em; }
code { background: var(--beige); padding: .1em .4em; border-radius: 6px; font-size: .9em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral-500); outline-offset: 2px; border-radius: 6px; }
#app:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; color: #fff; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }
.page { padding-block: 16px 56px; }
.section { padding-block: 28px; }
@media (min-width: 768px) { .section { padding-block: 44px; } }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section__head h2 { margin: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ok { color: var(--ok); font-weight: 700; }
.danger { color: var(--danger); }
.warn { color: var(--warn); }
.d-block { display: block; }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.eyebrow { font-weight: 800; color: var(--green-700); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin-bottom: .75rem; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; font-size: .95rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--green-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--danger); }
.icon { flex-shrink: 0; }
.boot { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 30vh 0; color: var(--muted); }

/* ───────────── Botones ───────────── */
.btn {
  --bg: var(--surface); --fg: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 800; font-size: 1rem; line-height: 1.1;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--fg); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { --bg: var(--green-700); --fg: #fff; --bd: var(--green-700); }
.btn--primary:hover:not(:disabled) { --bg: var(--green-800); --bd: var(--green-800); box-shadow: 0 6px 16px rgba(31, 111, 84, .25); }
.btn--primary.is-added { --bg: var(--ok); --bd: var(--ok); }
.btn--accent { --bg: var(--coral-500); --fg: #fff; --bd: var(--coral-500); }
.btn--accent:hover { --bg: var(--coral-600); --bd: var(--coral-600); }
.btn--outline { --bg: transparent; --fg: var(--green-700); --bd: var(--green-700); }
.btn--outline:hover { --bg: var(--green-50); }
.btn--ghost { --bg: transparent; --bd: var(--line); }
.btn--ghost:hover { --bg: var(--cream); }
.btn--light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--whatsapp { --bg: #25D366; --fg: #fff; --bd: #25D366; }
.btn--whatsapp:hover { --bg: #1EBE5B; --bd: #1EBE5B; }
.btn--whatsapp-outline { --bg: #fff; --fg: #128C4A; --bd: #BDEBD0; }
.btn--whatsapp-outline:hover { --bg: #EFFBF4; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--grow { flex: 1; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: transparent; border: 0; color: var(--ink); position: relative;
}
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.danger { color: var(--danger); }
.spinner { width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────────── Formularios ───────────── */
.input, .select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 0; resize: vertical; }
.input:focus, .select:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px var(--green-50); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--danger); background: #FFFBFB; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2344544C' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.select--sm, .input--sm { min-height: 40px; padding-block: 6px; font-size: .92rem; }
.input--xs { min-height: 36px; padding: 4px 8px; width: 104px; text-align: right; font-size: .92rem; }
.input--xs.is-low { border-color: var(--danger); color: var(--danger); font-weight: 700; }
.input--emoji { width: 64px; text-align: center; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-weight: 700; font-size: .95rem; }
.field--compact > span { font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.req { color: var(--coral-600); }
.hint { color: var(--muted); font-size: .82rem; }
.error { color: var(--danger); font-size: .85rem; font-weight: 700; min-height: 0; }
.error:empty { display: none; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.form-error { background: var(--danger-bg); color: var(--danger); padding: 12px 14px; border-radius: 12px; font-weight: 700; margin: 0 0 12px; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon > .input { padding-left: 36px; }

.check, .radio { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; font-size: .95rem; }
.check input, .radio input { width: 20px; height: 20px; accent-color: var(--green-700); margin: 0; flex-shrink: 0; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 44px; height: 26px; border-radius: 99px; background: var(--sand); position: relative; transition: background .2s; flex-shrink: 0; }
.switch__track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.switch input:checked + .switch__track { background: var(--green-700); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--coral-500); outline-offset: 2px; }

/* ───────────── Badges, precio, stock ───────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 900; line-height: 1.3; font-style: normal; }
.badge--sale { background: var(--coral-500); color: #fff; }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--muted { background: var(--ink); color: #fff; }
.badge--lg { font-size: 1rem; padding: 6px 14px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.price__now { font-size: 1.25rem; font-weight: 900; color: var(--ink); }
.price__old { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.price--lg .price__now { font-size: 2rem; }
.price--lg .price__old { font-size: 1.05rem; }
.price__saving { color: var(--coral-700); font-weight: 800; font-size: .88rem; margin: 2px 0 0; }
.stock { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; font-weight: 700; }
.stock--ok { color: var(--ok); }
.stock--low { color: var(--warn); }
.stock--out { color: var(--danger); }
.pill { background: var(--coral-500); color: #fff; border-radius: 99px; font-size: .75rem; padding: 1px 7px; font-weight: 900; }

/* ───────────── Selector de cantidad ───────────── */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; height: 46px; flex-shrink: 0; }
.qty__btn { width: 40px; height: 100%; border: 0; background: none; display: grid; place-items: center; color: var(--ink); border-radius: 999px; }
.qty__btn:hover:not(:disabled) { background: var(--green-50); color: var(--green-700); }
.qty__btn:disabled { opacity: .3; cursor: not-allowed; }
.qty__input { width: 38px; border: 0; text-align: center; font-weight: 800; background: transparent; -moz-appearance: textfield; padding: 0; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 40px; }
.qty--sm .qty__btn { width: 34px; }
.qty--sm .qty__input { width: 30px; }
.qty--lg { height: 54px; }
.qty--lg .qty__btn { width: 46px; }

/* ───────────── Header ───────────── */
.announce { background: var(--green-800); color: #fff; font-size: .85rem; text-align: center; }
.announce p { margin: 0; padding: 7px 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 559px) { .announce__extra { display: none; } }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; gap: 8px; height: var(--header-h); }
.header__burger { margin-left: -8px; }
.header__actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--green-700); color: #fff; display: grid; place-items: center; transform: rotate(-8deg); }
.logo__text { display: flex; flex-direction: column; font-size: 1.3rem; line-height: 1; letter-spacing: -.02em; }
.logo__text small { font-size: .68rem; text-transform: uppercase; letter-spacing: .2em; color: var(--coral-600); font-weight: 900; margin-top: 3px; }
.logo--light, .logo--light:hover { color: #fff; }
.logo--light .logo__mark { background: #fff; color: var(--green-700); }
.cart-btn__count {
  position: absolute; top: 3px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--coral-500); color: #fff; border-radius: 99px; font-size: .72rem; font-weight: 900;
  display: grid; place-items: center; border: 2px solid #fff;
}
.cart-btn__count[hidden] { display: none; }
.cart-btn__count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.search { position: relative; flex: 1; max-width: 520px; margin-inline: auto; display: none; }
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: flex; }
.search__input { width: 100%; height: 46px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); padding: 0 16px 0 42px; font-size: 1rem; }
.search__input:focus { outline: none; border-color: var(--green-600); background: #fff; box-shadow: 0 0 0 4px var(--green-50); }
.search__suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 6px; z-index: 60; max-height: 70vh; overflow: auto; }
.suggest__item { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; color: var(--ink); }
.suggest__item:hover, .suggest__item:focus { background: var(--green-50); color: var(--ink); }
.suggest__item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.suggest__item span { display: flex; flex-direction: column; min-width: 0; }
.suggest__item strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__item small { color: var(--muted); }
.suggest__all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-weight: 800; border-top: 1px solid var(--line-2); margin-top: 4px; }
.suggest__empty { padding: 14px; margin: 0; color: var(--muted); }

.header.search-open .search { display: block; position: absolute; left: 0; right: 0; top: calc(100% - 1px); max-width: none; padding: 10px 16px 12px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.header.search-open .search__icon { left: 30px; }
.header.search-open .search__suggest { left: 16px; right: 16px; }
.header__bar { position: relative; }

.nav { display: none; border-top: 1px solid var(--line-2); }
.nav__list { list-style: none; margin: 0 auto; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav__link { display: block; padding: 11px 14px; font-weight: 700; color: var(--ink-2); border-bottom: 3px solid transparent; white-space: nowrap; }
.nav__link:hover { color: var(--green-700); }
.nav__link.is-active { color: var(--green-700); border-bottom-color: var(--green-700); }
.nav__link--hot { color: var(--coral-600); }

@media (min-width: 900px) {
  .header__burger, .header__search-toggle { display: none; }
  .search { display: block; }
  .nav { display: block; }
  .header__bar { gap: 24px; height: 72px; }
}

.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(17, 30, 25, .45); opacity: 0; transition: opacity .25s; }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 340px); background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 16px; transform: translateX(-100%); transition: transform .25s var(--ease); overflow-y: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__list { list-style: none; margin: 0; padding: 0; flex: 1; }
.drawer__list a { display: block; padding: 14px 8px; font-size: 1.1rem; font-weight: 800; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.drawer__list a.is-active { color: var(--green-700); }

/* ───────────── Hero ───────────── */
.hero { background: radial-gradient(1200px 500px at 85% 10%, var(--green-50), transparent 60%), linear-gradient(180deg, var(--cream), #fff); overflow: hidden; }
.hero__inner { display: grid; gap: 28px; padding-block: 28px 40px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; line-height: 1.05; }
.hl { color: var(--green-700); position: relative; white-space: nowrap; }
.hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: .02em; height: .28em; background: rgba(255, 185, 48, .45); z-index: -1; border-radius: 4px; }
.hero__sub { font-size: 1.12rem; color: var(--ink-2); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero__cta .btn { flex: 1 1 180px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ink-2); font-weight: 700; font-size: .9rem; }
.hero__trust li { display: flex; align-items: center; gap: 6px; }
.hero__trust .icon { color: var(--green-700); }
.hero__media { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.hero__blob { position: absolute; inset: 6% 2% 0 8%; background: var(--green-700); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; transform: rotate(-6deg); }
.hero__img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 42% 58% 50% 50% / 50% 46% 54% 50%; border: 6px solid #fff; box-shadow: var(--shadow-lg); }
.hero__float { position: absolute; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-weight: 900; display: flex; flex-direction: column; line-height: 1.2; font-size: 1.05rem; }
.hero__float span { font-size: .78rem; color: var(--muted); font-weight: 700; }
.hero__float--a { left: -4px; bottom: 12%; }
.hero__float--b { right: 0; top: 10%; flex-direction: row; gap: 6px; align-items: baseline; }
@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1.1fr .9fr; padding-block: 56px 72px; gap: 48px; }
  .hero__cta .btn { flex: 0 0 auto; }
}

/* ───────────── Categorías ───────────── */
.cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px) { .cats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cats { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.cat { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; display: block; background: var(--beige); isolation: isolate; box-shadow: var(--shadow-sm); }
.cat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); z-index: -2; }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(17, 40, 30, .78)); z-index: -1; }
.cat:hover img { transform: scale(1.07); }
.cat__label { position: absolute; left: 12px; right: 12px; bottom: 12px; color: #fff; font-weight: 900; font-size: 1.05rem; line-height: 1.15; display: flex; flex-direction: column; gap: 4px; }
.cat__emoji { font-size: 1.6rem; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); }
.cat--offer::after { background: linear-gradient(180deg, rgba(255, 107, 61, .15) 20%, rgba(210, 74, 31, .9)); }

/* ───────────── Por mascota ───────────── */
.pets { display: grid; gap: 16px; }
@media (min-width: 760px) { .pets { grid-template-columns: 1fr 1fr; } }
.pet { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; isolation: isolate; color: #fff; }
.pet img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.pet::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.pet--dog::after { background: linear-gradient(90deg, rgba(23, 90, 68, .92), rgba(23, 90, 68, .25) 70%); }
.pet--cat::after { background: linear-gradient(90deg, rgba(160, 72, 30, .9), rgba(160, 72, 30, .2) 70%); }
.pet:hover img { transform: scale(1.05); }
.pet__copy { padding: 24px; }
.pet__copy h3 { font-size: 1.7rem; margin: 6px 0 4px; color: #fff; }
.pet__copy p { opacity: .92; margin-bottom: 14px; }
.pet__emoji { font-size: 2rem; }
.pet:hover { color: #fff; }
@media (min-width: 760px) { .pet { min-height: 320px; } .pet__copy { padding: 32px; } }

/* ───────────── Tarjetas de producto ───────────── */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1080px) { .grid-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.results .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1080px) { .results .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s var(--ease), border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.card__media { position: relative; display: block; aspect-ratio: 1; background: var(--cream); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.card__body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__brand { margin: 0; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--green-700); }
.card__title { font-size: .98rem; margin: 0; font-weight: 800; line-height: 1.25; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--green-700); }
.card__desc { margin: 0; font-size: .84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__price { margin-top: auto; padding-top: 4px; }
.card__variant { margin-top: 2px; }
.card__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.card__actions .qty { align-self: stretch; justify-content: space-between; }
.card__actions .btn { min-height: 42px; padding-inline: 12px; }
.card__details { display: inline-flex; align-items: center; gap: 2px; font-size: .85rem; font-weight: 700; align-self: center; padding: 4px; }
@media (max-width: 380px) { .card__desc { display: none; } .price__now { font-size: 1.1rem; } }
@media (min-width: 560px) {
  .card__body { padding: 14px 16px 16px; }
  .card__actions { flex-direction: row; }
  .card__actions .qty { align-self: auto; }
  .card__actions .btn { flex: 1; }
}

/* ───────────── Promo ───────────── */
.promo { display: grid; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, var(--coral-500), #FF8F4A); color: #fff; }
.promo__copy { padding: 28px 24px; }
.promo__copy h1, .promo__copy h2 { color: #fff; font-size: clamp(2rem, 6vw, 3rem); font-weight: 900; letter-spacing: -.02em; }
.promo__tag { display: inline-block; background: rgba(255, 255, 255, .2); padding: 6px 12px; border-radius: 99px; font-weight: 900; font-size: .85rem; letter-spacing: .04em; }
.promo__media img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; max-height: 340px; }
@media (min-width: 760px) {
  .promo { grid-template-columns: 1.2fr .8fr; }
  .promo__copy { padding: 44px; align-self: center; }
  .promo__media img { max-height: none; }
}
.countdown { display: flex; gap: 8px; margin: 18px 0 22px; }
.countdown span { background: rgba(255, 255, 255, .95); color: var(--coral-700); border-radius: 12px; padding: 8px 10px; min-width: 60px; text-align: center; display: flex; flex-direction: column; line-height: 1.1; }
.countdown b { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .7rem; font-weight: 800; text-transform: uppercase; color: var(--ink-2); }
.mini-banners { display: grid; gap: 12px; margin: 20px 0 28px; }
@media (min-width: 700px) { .mini-banners { grid-template-columns: repeat(3, 1fr); } }
.mini-banner { border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; }
.mini-banner strong { font-size: 1.1rem; }
.mini-banner span { color: var(--ink-2); font-size: .92rem; }
.mini-banner--green { background: var(--green-50); }
.mini-banner--cream { background: var(--beige); }
.mini-banner--coral { background: var(--coral-50); }

/* ───────────── Beneficios y reseñas ───────────── */
.benefits { list-style: none; margin: 0; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; background: var(--cream); border-radius: var(--radius-lg); }
@media (min-width: 900px) { .benefits { grid-template-columns: repeat(4, 1fr); padding: 28px 32px; } }
.benefits li { display: flex; gap: 12px; align-items: flex-start; }
.benefits .icon { color: var(--green-700); }
.benefits strong { display: block; font-size: .98rem; }
.benefits span { font-size: .85rem; color: var(--muted); }
.reviews { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 760px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.review__stars { color: var(--yellow); letter-spacing: 2px; font-size: 1.1rem; }
.review blockquote { margin: 8px 0 12px; color: var(--ink-2); }
.review figcaption { font-size: .9rem; color: var(--muted); }

/* ───────────── Breadcrumbs ───────────── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: '›'; margin-right: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green-700); }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────────── Catálogo ───────────── */
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; }
.catalog-head h1 { margin: 0; }
.catalog-head p { margin: 0; }
.catalog { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 960px) { .catalog { grid-template-columns: 260px 1fr; align-items: start; } }
.filters { background: #fff; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__head h2 { margin: 0; font-size: 1.2rem; }
.fgroup { border: 0; padding: 16px 0; margin: 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
.fgroup legend { font-weight: 900; font-size: .95rem; padding: 0; margin-bottom: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip span, .chip-btn, .chip-link { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: .9rem; background: #fff; cursor: pointer; color: var(--ink); min-height: 38px; }
.chip input:checked + span, .chip-link.is-active { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--coral-500); outline-offset: 2px; }
.chip-btn { font-size: .8rem; padding: 6px 10px; min-height: 32px; }
.chip-btn:hover, .chip-link:hover { border-color: var(--green-600); }
.chip-link b { font-weight: 900; }
.chips--wrap { margin-top: 10px; }
.radio-list, .check-list { display: flex; flex-direction: column; }
.check-list { max-height: 260px; overflow: auto; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs .input { min-height: 42px; }
.filters__foot { display: none; }
.filters__close, .filters-backdrop { display: none; }
.toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar__sort { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; margin-left: auto; }
.toolbar__sort span { white-space: nowrap; color: var(--ink-2); }
.toolbar__sort .select { min-height: 42px; width: auto; }
@media (max-width: 479px) { .toolbar__sort span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .toolbar__sort .select { max-width: 190px; } }
.toolbar--offers .chips { flex-wrap: nowrap; overflow-x: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.active-filters:empty { display: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--green-50); color: var(--green-800); border: 0; border-radius: 99px; padding: 6px 10px 6px 12px; font-weight: 700; font-size: .85rem; }
.tag:hover { background: var(--green-100); }

@media (max-width: 959px) {
  .filters { position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; max-height: 88vh; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; transform: translateY(105%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  .filters__head { padding: 16px 16px 8px; }
  .filters__body { overflow-y: auto; padding: 0 16px; flex: 1; }
  .filters__foot { display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
  .filters__foot .btn { flex: 1; }
  .filters__close { display: inline-grid; }
  .catalog.filters-open .filters { transform: none; }
  .catalog.filters-open .filters-backdrop { display: block; position: fixed; inset: 0; background: rgba(17, 30, 25, .45); z-index: 94; }
}
@media (min-width: 960px) {
  .toolbar__filters { display: none; }
  .filters { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; padding-right: 8px; }
}

/* ───────────── Ficha de producto ───────────── */
.pdp { display: grid; gap: 24px; }
@media (min-width: 860px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; } }
.gallery__main { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream); aspect-ratio: 1; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main .badge { position: absolute; top: 16px; left: 16px; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; padding: 0; border: 2px solid transparent; background: var(--cream); flex-shrink: 0; opacity: .7; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--green-700); opacity: 1; }
@media (min-width: 860px) { .gallery { position: sticky; top: 140px; } }
.pdp__brand { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.pdp__title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 6px 0 8px; }
.pdp__short { color: var(--ink-2); font-size: 1.05rem; }
.pdp__meta { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.pdp__meta li { background: var(--cream); border-radius: 99px; padding: 5px 12px; font-size: .85rem; font-weight: 700; }
.pdp__meta span { color: var(--muted); font-weight: 600; margin-right: 4px; }
.pdp__buy { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.pdp__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp__perks { list-style: none; padding: 12px 0 0; margin: 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.pdp__perks li { display: flex; gap: 8px; align-items: center; }
.pdp__perks .icon { color: var(--green-700); }
.in-cart { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; font-size: .82rem; color: var(--green-700); font-weight: 700; }
.variants { border: 0; padding: 0; margin: 0; }
.variants legend { font-weight: 800; margin-bottom: 8px; }
.variants__list { display: flex; flex-wrap: wrap; gap: 8px; }
.variant { position: relative; }
.variant input { position: absolute; opacity: 0; }
.variant span { display: flex; flex-direction: column; align-items: center; padding: 10px 16px; border: 2px solid var(--line); border-radius: 14px; font-weight: 800; cursor: pointer; min-width: 88px; line-height: 1.25; }
.variant small { font-weight: 600; color: var(--muted); font-size: .8rem; }
.variant input:checked + span { border-color: var(--green-700); background: var(--green-50); }
.variant input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.variant input:focus-visible + span { outline: 3px solid var(--coral-500); outline-offset: 2px; }

.tabs { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.tabs__list { display: flex; overflow-x: auto; background: var(--cream); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tab { border: 0; background: none; padding: 14px 18px; font-weight: 800; color: var(--ink-2); white-space: nowrap; border-bottom: 3px solid transparent; }
.tab.is-active { color: var(--green-700); border-bottom-color: var(--green-700); background: #fff; }
.tabs__panel { padding: 20px; max-width: 820px; }
.tabs__panel p { margin: 0; color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: #fff; background: var(--green-700); border-radius: 50%; padding: 2px; margin-top: 2px; }
.specs { margin: 0; display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.specs dt { font-weight: 800; color: var(--ink-2); }
.specs dd { margin: 0; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; transform: translateY(110%); transition: transform .25s var(--ease); box-shadow: 0 -8px 24px rgba(0, 0, 0, .06); }
.sticky-buy.is-visible { transform: none; }
.sticky-buy div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-buy small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy strong { font-size: 1.15rem; }
@media (min-width: 860px) { .sticky-buy { display: none; } }

/* ───────────── Carrito ───────────── */
.cart-layout { display: grid; gap: 24px; margin-top: 12px; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 380px; align-items: start; } }
.cart-lines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.line { display: grid; grid-template-columns: 84px 1fr auto; grid-template-areas: 'img info remove' 'img qty total'; gap: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; align-items: center; }
.line__img { grid-area: img; align-self: start; }
.line__img img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
.line__info { grid-area: info; min-width: 0; }
.line__brand { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; color: var(--green-700); }
.line__name { font-size: 1rem; margin: 2px 0; }
.line__name a { color: var(--ink); }
.line__variant { display: inline-block; margin: 0 0 2px; background: var(--cream); padding: 1px 8px; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.line__unit { margin: 0; font-size: .85rem; color: var(--muted); }
.line__unit s { margin-left: 4px; }
.line__warn { margin: 2px 0 0; font-size: .78rem; color: var(--warn); font-weight: 700; }
.line__qty { grid-area: qty; }
.line__total { grid-area: total; margin: 0; font-weight: 900; font-size: 1.1rem; text-align: right; }
.line__remove { grid-area: remove; align-self: start; justify-self: end; color: var(--muted); }
@media (min-width: 640px) {
  .line { grid-template-columns: 96px 1fr auto 110px 44px; grid-template-areas: 'img info qty total remove'; padding: 14px 16px; }
  .line__img img { width: 96px; height: 96px; }
  .line__remove { align-self: center; }
}
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; flex-wrap: wrap; gap: 12px; }
.freebar { background: var(--green-50); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.freebar p { margin: 0 0 8px; font-size: .95rem; }
.freebar__track { height: 8px; background: #fff; border-radius: 99px; overflow: hidden; }
.freebar__track span { display: block; height: 100%; background: var(--green-700); border-radius: 99px; transition: width .4s var(--ease); }

.summary { background: var(--cream); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.summary h2 { margin: 0; font-size: 1.3rem; }
@media (min-width: 960px) { .summary { position: sticky; top: 140px; } }
.summary__secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .82rem; color: var(--muted); margin: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 12px; padding: 4px; border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 9px; font-weight: 800; font-size: .92rem; cursor: pointer; }
.seg input:checked + span { background: var(--green-700); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--coral-500); }
.ship-calc { display: flex; flex-direction: column; gap: 10px; }
.ship-calc__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ship-calc__fields .select { min-height: 42px; font-size: .9rem; padding-left: 10px; }
.ship-calc p { margin: 0; }
.totals { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--ink-2); }
.totals dt small { color: var(--muted); }
.totals dd { margin: 0; font-weight: 800; text-align: right; }
.totals__discount dd { color: var(--coral-700); }
.totals__total { border-top: 2px dashed var(--sand); padding-top: 12px; margin-top: 4px; font-size: 1.3rem; }
.totals__total dt { color: var(--ink); font-weight: 900; }
.totals__total dd { font-weight: 900; }
.totals__saving { display: flex; align-items: center; gap: 6px; background: var(--coral-50); color: var(--coral-700); padding: 8px 12px; border-radius: 10px; font-weight: 800; font-size: .88rem; margin: 0; }
.coupon__form { display: flex; gap: 8px; }
.coupon__form .input { min-height: 44px; }
.coupon__form .btn { min-height: 44px; padding-inline: 16px; }
.coupon p { margin: 6px 0 0; }
.coupon__applied { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--green-800); background: var(--green-50); padding: 8px 12px; border-radius: 10px; }

/* ───────────── Empty ───────────── */
.empty { text-align: center; padding: 56px 16px; max-width: 460px; margin: 0 auto; }
.empty__emoji { font-size: 4rem; margin-bottom: 8px; }
.empty p { color: var(--muted); }

/* ───────────── Checkout ───────────── */
.steps { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 8px; font-weight: 800; font-size: .85rem; color: var(--muted); overflow-x: auto; }
.steps li { display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 99px; background: var(--line-2); white-space: nowrap; }
.steps .done { background: var(--green-50); color: var(--green-700); }
.steps .current { background: var(--green-700); color: #fff; }
.checkout { display: grid; gap: 20px; }
@media (min-width: 960px) { .checkout { grid-template-columns: 1fr 380px; align-items: start; } }
.checkout__main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; min-width: 0; }
.panel > h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 16px; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--green-700); color: #fff; display: inline-grid; place-items: center; font-size: .95rem; flex-shrink: 0; }
.options { display: grid; gap: 10px; margin-bottom: 16px; }
@media (min-width: 560px) { .options { grid-template-columns: 1fr 1fr; } }
.option { position: relative; }
.option input { position: absolute; opacity: 0; }
.option__body { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; height: 100%; transition: border-color .15s, background .15s; }
.option__body > span { display: flex; flex-direction: column; gap: 2px; }
.option__body small { color: var(--muted); font-size: .84rem; }
.option__body .icon { color: var(--green-700); margin-top: 2px; }
.option__emoji { font-size: 1.4rem; line-height: 1; }
.option input:checked + .option__body { border-color: var(--green-700); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-700); }
.option input:focus-visible + .option__body { outline: 3px solid var(--coral-500); outline-offset: 2px; }
.option.is-disabled .option__body { opacity: .45; cursor: not-allowed; }
.options--pay { margin-bottom: 8px; }
.pickup-info { display: flex; gap: 10px; background: var(--cream); padding: 14px; border-radius: 14px; margin: 0; }
.demo-note { margin: 12px 0 0; }
.mini-lines { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.mini-lines li { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; position: relative; font-size: .9rem; }
.mini-lines img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; background: #fff; }
.mini-lines__qty { position: absolute; left: 36px; top: -6px; background: var(--ink); color: #fff; border-radius: 99px; min-width: 20px; height: 20px; font-size: .72rem; font-weight: 900; display: grid; place-items: center; padding: 0 5px; }
.mini-lines__name { display: flex; flex-direction: column; font-weight: 700; min-width: 0; line-height: 1.25; }
.mini-lines__name small { color: var(--muted); font-weight: 600; }
.checkout__summary .mini-lines { max-height: 280px; overflow: auto; padding-top: 6px; }

/* ───────────── Confirmación ───────────── */
.confirm__hero { text-align: center; background: linear-gradient(180deg, var(--green-50), #fff); border-radius: var(--radius-lg); padding: 36px 16px; margin-bottom: 20px; }
.confetti { width: 72px; height: 72px; border-radius: 50%; background: var(--green-700); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 0 0 0 10px var(--green-100); animation: pop .6s var(--ease); }
@keyframes pop { 0% { transform: scale(.3) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.confirm__hero p { color: var(--ink-2); max-width: 540px; margin-inline: auto; }
.confirm__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.confirm__grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .confirm__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.order-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 20px; }
.order-meta dt { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.order-meta dd { margin: 2px 0 0; font-weight: 800; }
.order-number { font-size: 1.5rem; color: var(--green-700); font-weight: 900 !important; }
.tracker { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(5, 1fr); font-size: .72rem; font-weight: 800; color: var(--muted); text-align: center; position: relative; }
.tracker li { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.tracker li::before { content: ''; position: absolute; top: 11px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.tracker li:first-child::before { display: none; }
.tracker li.done::before, .tracker li.current::before { background: var(--green-700); }
.tracker__dot { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; position: relative; z-index: 1; color: #fff; }
.tracker .done .tracker__dot, .tracker .current .tracker__dot { background: var(--green-700); border-color: var(--green-700); }
.tracker .current { color: var(--green-700); }
.notice { background: var(--warn-bg); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.notice h3 { font-size: 1rem; }
.bank { margin: 0 0 10px; display: grid; gap: 4px; }
.bank div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.bank dt { color: var(--ink-2); }
.bank dd { margin: 0; font-weight: 800; }

/* Estados de pedido */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--amber { background: #FFF4DB; color: #8A5300; }
.status--blue { background: #E6F0FF; color: #1D4FA8; }
.status--violet { background: #F0E9FF; color: #5B35A8; }
.status--teal { background: #E0F5F4; color: #0E6B67; }
.status--green { background: var(--green-50); color: var(--green-800); }
.status--red { background: var(--danger-bg); color: var(--danger); }

/* ───────────── Contacto ───────────── */
.contact { display: grid; gap: 20px; }
@media (min-width: 860px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact__cards { display: grid; gap: 12px; }
@media (min-width: 560px) { .contact__cards { grid-template-columns: 1fr 1fr; } }
.contact-card { display: flex; gap: 12px; align-items: flex-start; background: var(--cream); border-radius: var(--radius); padding: 18px; color: var(--ink); }
.contact-card:hover { color: var(--ink); }
.contact-card .icon { color: var(--green-700); }
.contact-card div { display: flex; flex-direction: column; min-width: 0; }
.contact-card span { color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.contact-card small { color: var(--muted); }
.contact-card--wa { background: #E8F9EF; }
.contact-card--wa .icon { color: #25D366; }
.contact form { display: flex; flex-direction: column; gap: 14px; }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 12px 0; }
.faq p { color: var(--ink-2); }

/* ───────────── Toast y WhatsApp ───────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff;
  padding: 12px 14px 12px 12px; border-radius: 14px; box-shadow: var(--shadow-lg); width: max-content; max-width: calc(100vw - 32px);
  transition: transform .3s var(--ease); font-weight: 700;
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast__icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--green-600); flex-shrink: 0; font-weight: 900; }
.toast--error .toast__icon { background: var(--danger); }
.toast__action { color: #9FE3C3; font-weight: 900; margin-left: 6px; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.toast__action:hover { color: #fff; }
.wa-fab { position: fixed; right: 16px; bottom: 16px; z-index: 45; display: flex; align-items: center; gap: 8px; background: #25D366; color: #fff; border-radius: 99px; padding: 14px; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); transition: transform .2s var(--ease); }
.wa-fab:hover { color: #fff; transform: translateY(-3px) scale(1.03); }
.wa-fab__label { display: none; font-weight: 800; padding-right: 6px; }
@media (min-width: 760px) { .wa-fab { right: 24px; bottom: 24px; padding: 14px 18px 14px 14px; } .wa-fab__label { display: inline; } }
body:has(.sticky-buy.is-visible) .wa-fab { bottom: 86px; }
body:has(.sticky-buy.is-visible) .toast { bottom: 90px; }
body.is-admin .wa-fab { display: none; }

/* ───────────── Footer ───────────── */
.footer { background: var(--green-900); color: rgba(255, 255, 255, .8); margin-top: 24px; }
body.is-admin .footer { display: none; }
.footer__grid { display: grid; gap: 28px; padding-block: 44px 28px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; } .footer__brand { grid-column: auto; } .footer__grid > div:last-child { grid-column: auto; } }
.footer__grid > div:last-child { grid-column: 1 / -1; }
@media (min-width: 860px) { .footer__grid > div:last-child { grid-column: auto; } }
.footer h3 { color: #fff; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: rgba(255, 255, 255, .85); }
.footer a:hover { color: #fff; }
.footer__brand p { margin: 14px 0; max-width: 340px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-weight: 900; font-size: .85rem; }
.footer__contact li { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
.footer__contact .icon { margin-top: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px 90px; font-size: .85rem; }
.footer__bottom p { margin: 0; }
@media (min-width: 760px) { .footer__bottom { padding-bottom: 18px; } }

/* ───────────── Admin ───────────── */
body.is-admin { background: #F6F4EF; }
body.is-admin .announce, body.is-admin .nav { display: none; }
.admin { display: grid; min-height: calc(100vh - 64px); }
@media (min-width: 900px) { .admin { grid-template-columns: 230px 1fr; } }
.admin__nav { background: var(--green-900); color: #fff; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.admin__brand { font-weight: 900; display: flex; align-items: center; gap: 8px; margin: 4px 8px 8px; }
.admin__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; }
.admin__nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: rgba(255, 255, 255, .8); font-weight: 700; white-space: nowrap; }
.admin__nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin__nav a.is-active { background: #fff; color: var(--green-800); }
.admin__back { margin-top: auto; font-size: .9rem; display: none !important; }
@media (min-width: 900px) {
  .admin__nav { position: sticky; top: 72px; height: calc(100vh - 72px); padding: 20px 14px; }
  .admin__nav ul { flex-direction: column; }
  .admin__back { display: flex !important; }
}
.admin__main { padding: 16px; min-width: 0; }
@media (min-width: 900px) { .admin__main { padding: 24px 32px 48px; } }
.admin__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.admin__head h1 { margin: 0; }
.admin__head p { margin: 0; }
.admin__head p::first-letter { text-transform: uppercase; }
.demo-banner { background: var(--warn-bg); color: #6B4500; padding: 8px 14px; border-radius: 10px; font-size: .85rem; margin-bottom: 16px; }
.demo-banner .link-btn { color: #6B4500; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1300px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1500px) { .kpis { grid-template-columns: repeat(7, 1fr); } }
.kpi { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); min-width: 0; }
.kpi__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.kpi--warn .kpi__icon { background: var(--warn-bg); color: var(--warn); }
.kpi--danger .kpi__icon { background: var(--danger-bg); color: var(--danger); }
.kpi > div { min-width: 0; }
.kpi--ig .kpi__icon { background: #FCE8F1; color: #A3195B; }
.kpis--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1100px) { .kpis--4 { grid-template-columns: repeat(4, 1fr); } }
.delta { font-size: .75rem; font-weight: 800; margin-left: 4px; }
.delta--up { color: var(--ok); }
.delta--down { color: var(--danger); }
.admin__head h1 { display: flex; align-items: center; gap: 10px; }
.kpi__label { margin: 0; font-size: .8rem; color: var(--muted); font-weight: 700; }
.kpi__value { margin: 2px 0; font-size: 1.35rem; font-weight: 900; line-height: 1.15; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kpi__sub { margin: 0; font-size: .78rem; color: var(--muted); }
.admin-grid { display: grid; gap: 16px; }
@media (min-width: 1000px) { .admin-grid { grid-template-columns: repeat(3, 1fr); } .panel--wide { grid-column: span 3; } }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.panel__head h2 { margin: 0; }
.chart { position: relative; }
.chart svg { width: 100%; height: 220px; display: block; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart__axis { font-size: 11px; fill: var(--muted); font-family: var(--font); font-weight: 700; }
.chart__bar { fill: var(--green-600); }
.chart__bar--hl { fill: var(--green-800); }
.chart__hit { fill: transparent; }
.chart__hit.is-hover { fill: rgba(31, 111, 84, .07); }
.chart__tip { position: absolute; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: .8rem; font-weight: 700; pointer-events: none; white-space: nowrap; z-index: 2; }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hbars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .88rem; }
.hbars__label { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbars__value { font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hbars__track { grid-column: 1 / -1; height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.hbars__fill { display: block; height: 100%; background: var(--green-600); border-radius: 0 4px 4px 0; }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.status-list a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.status-list a:hover { background: var(--cream); }
.low-stock { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.low-stock li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.low-stock img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.low-stock span { display: flex; flex-direction: column; font-weight: 700; min-width: 0; }
.low-stock small { color: var(--muted); font-weight: 600; }
.admin-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.admin-toolbar .input { max-width: 320px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; background: var(--cream); white-space: nowrap; }
.table td { padding: 10px 14px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions .icon-btn { width: 36px; height: 36px; }
.cell-product { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.cell-product img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.cell-product span { display: flex; flex-direction: column; }
.cell-product small { color: var(--muted); }
.status-select { width: auto; font-weight: 800; border-width: 0; padding-left: 12px; border-radius: 99px; }
.status-select--amber { background-color: #FFF4DB; color: #8A5300; }
.status-select--blue { background-color: #E6F0FF; color: #1D4FA8; }
.status-select--violet { background-color: #F0E9FF; color: #5B35A8; }
.status-select--teal { background-color: #E0F5F4; color: #0E6B67; }
.status-select--green { background-color: var(--green-50); color: var(--green-800); }
.status-select--red { background-color: var(--danger-bg); color: var(--danger); }
.inline-form { display: flex; gap: 12px; align-items: flex-end; margin-bottom: 16px; flex-wrap: wrap; }
.inline-form .grow { flex: 1; min-width: 180px; }
.modal { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); }
.modal--lg { width: min(820px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(17, 30, 25, .5); }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal__head h2 { margin: 0; font-size: 1.2rem; }
.modal__body { padding: 20px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: #fff; }
.two-col { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.history { list-style: none; padding: 0; display: grid; gap: 6px; }
.upload { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--green-700); cursor: pointer; margin-top: 6px; }
.img-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.img-preview img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }

/* ───────────── Instagram en la web ───────────── */
.footer__ig { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .08); padding: 10px 14px; border-radius: 14px; margin-bottom: 14px; }
.footer__ig span { display: flex; flex-direction: column; line-height: 1.25; font-size: .9rem; }
.footer__ig strong { color: #fff; }
.ig-strip { display: grid; gap: 24px; background: var(--beige); border-radius: var(--radius-lg); padding: 24px; align-items: center; }
.ig-strip h2 { margin-bottom: .4em; }
.ig-strip .eyebrow { display: flex; align-items: center; gap: 6px; }
.ig-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ig-strip__grid a { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.ig-strip__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.ig-strip__grid a:hover img { transform: scale(1.06); }
@media (min-width: 860px) { .ig-strip { grid-template-columns: .9fr 1.1fr; padding: 36px; gap: 40px; } }
.confirm__ig { margin: 18px auto 0; font-size: .95rem; }
.source { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.source--instagram { background: #FCE8F1; color: #A3195B; }

/* ───────────── Link en bio ───────────── */
body.is-links .announce, body.is-links .nav, body.is-links .footer, body.is-links .wa-fab, body.is-links .header { display: none; }
body.is-links { background: linear-gradient(180deg, var(--green-50), var(--cream) 40%, #fff); }
.linkbio { max-width: 480px; margin: 0 auto; padding: 32px 16px 40px; }
.linkbio__head { text-align: center; margin-bottom: 20px; }
.linkbio__avatar { width: 104px; height: 104px; margin: 0 auto 14px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; box-shadow: 0 0 0 4px #fff, var(--shadow); position: relative; }
.linkbio__avatar::before { content: ''; position: absolute; width: 64px; height: 64px; border-radius: 18px; background: var(--green-700); transform: rotate(-8deg); }
.linkbio__avatar .icon { position: relative; color: #fff; width: 38px; height: 38px; }
.linkbio__head h1 { font-size: 1.6rem; margin-bottom: .3em; }
.linkbio__head h1 span { color: var(--coral-600); }
.linkbio__head p { color: var(--ink-2); margin-bottom: .6em; }
.linkbio__coupon { display: inline-block; background: #fff; border: 1.5px dashed var(--coral-500); border-radius: 12px; padding: 6px 12px; font-weight: 700; font-size: .9rem; }
.linkbio__list { display: grid; gap: 10px; }
.lb-btn { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .15s var(--ease), border-color .15s; min-height: 64px; }
.lb-btn:hover { color: var(--ink); border-color: var(--green-600); transform: translateY(-2px); }
.lb-btn__emoji { font-size: 1.5rem; width: 36px; text-align: center; }
.lb-btn__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lb-btn__text small { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-btn .icon { color: var(--muted); }
.lb-btn--primary { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.lb-btn--primary:hover { color: #fff; background: var(--green-800); }
.lb-btn--primary small, .lb-btn--primary .icon { color: rgba(255, 255, 255, .8); }
.linkbio__offers { margin-top: 28px; }
.linkbio__offers h2 { font-size: 1.15rem; }
.linkbio__scroller { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.lb-prod { flex: 0 0 140px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; color: var(--ink); position: relative; display: flex; flex-direction: column; gap: 4px; font-size: .82rem; }
.lb-prod img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.lb-prod .badge { position: absolute; top: 12px; left: 12px; }
.lb-prod strong { line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-prod span:last-child { font-weight: 900; color: var(--green-800); }
.linkbio__foot { display: flex; justify-content: center; gap: 18px; margin-top: 24px; font-weight: 700; font-size: .9rem; }
.linkbio__foot a { display: inline-flex; align-items: center; gap: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
