/* Kimie Global storefront
   Shape system: buttons and inputs 10px, cards and panels 16px, chips and badges full pill.
   One accent (pine). Light and dark via tokens. */

:root {
  --bg: #F6F7F6;
  --surface: #FFFFFF;
  --surface-2: #EEF1EF;
  --well: #F1F3F2;
  --ink: #121715;
  --ink-2: #47524D;
  --ink-3: #66716B;
  --line: #DDE2DF;
  --line-strong: #C9D0CC;
  --accent: #72B822;
  --accent-hover: #5F9E18;
  --accent-ink: #FFFFFF;
  --accent-soft: #F1F9E8;
  --accent-blue: #008CD7;
  --accent-blue-hover: #0076B7;
  --accent-blue-soft: #E8F5FD;
  --danger: #A33A2C;
  --danger-soft: #FBECE9;
  --warn: #8A5A00;
  --warn-soft: #FDF3DC;
  --accent-text: #3F7A0E;
  --accent-fill: #457F10;
  --accent-fill-hover: #3A6C0C;
  --dna-1: #72B822;
  --dna-2: #008CD7;
  --dna-3: #84CC16;
  --dna-4: #38BDF8;
  --shadow: 0 1px 2px rgb(18 32 27 / .05), 0 8px 24px -12px rgb(18 32 27 / .14);
  --shadow-lg: 0 24px 64px -24px rgb(18 32 27 / .35);

  --font: "Schibsted Grotesk", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-control: 10px;
  --r-panel: 16px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --z-header: 20;
  --z-overlay: 40;
  --z-drawer: 50;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1312;
    --surface: #161B19;
    --surface-2: #1D2421;
    --well: #DCE1DE;
    --ink: #E7ECE9;
    --ink-2: #AAB4AF;
    --ink-3: #8A958F;
    --line: #27302C;
    --line-strong: #34403B;
    --accent: #84CC16;
    --accent-hover: #A3E635;
    --accent-ink: #0A1406;
    --accent-soft: rgb(132 204 22 / .15);
    --accent-blue: #38BDF8;
    --accent-blue-hover: #7DD3FC;
    --accent-blue-soft: rgb(56 189 248 / .15);
    --danger: #E58A7C;
    --danger-soft: rgb(229 138 124 / .14);
    --warn: #F2C14E;
    --warn-soft: rgb(242 193 78 / .14);
    --accent-text: #A3E635;
    --accent-fill: #84CC16;
    --accent-fill-hover: #A3E635;
    --dna-1: #84CC16;
    --dna-2: #0284C7;
    --dna-3: #65A30D;
    --dna-4: #0369A1;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px -12px rgb(0 0 0 / .5);
    --shadow-lg: 0 24px 64px -24px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: var(--r-control);
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 16px;
}

@media (min-width: 768px) {
  .wrap {
    padding-inline: 32px;
  }
}

.num {
  font-variant-numeric: tabular-nums;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--r-control);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, transform .16s var(--ease-out);
}

.btn:active {
  transform: scale(.97);
}

.btn .ph {
  font-size: 18px;
}

.btn-primary {
  background: var(--accent-fill);
  color: var(--accent-ink);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.btn-block {
  width: 100%;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 4px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .18s ease;
}

.btn-link .ph {
  font-size: 18px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-control);
  color: var(--ink-2);
  font-size: 20px;
  transition: background-color .18s ease, transform .16s var(--ease-out);
}

.icon-btn:active {
  transform: scale(.94);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:not(:disabled):hover {
    background: var(--accent-fill-hover);
  }

  .btn-secondary:hover {
    border-color: var(--ink-3);
  }

  .btn-link:hover {
    color: var(--ink);
  }

  .icon-btn:hover {
    background: var(--surface-2);
    color: var(--ink);
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 0 0 1px var(--line);
}

.brand-name {
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.brand-name span {
  color: var(--ink-3);
  font-weight: 500;
}

.brand-full-logo {
  height: 38px;
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain;
}

.search {
  position: relative;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-size: 18px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 38px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-control);
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

@media (min-width: 768px) {
  .search-input {
    font-size: 14px;
  }
}

.search-input::placeholder {
  color: var(--ink-3);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.search-kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  pointer-events: none;
}

.search-input:focus+.search-kbd,
.search-input:not(:placeholder-shown)+.search-kbd {
  opacity: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.select {
  height: 40px;
  padding: 0 28px 0 10px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2366716B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

.select option {
  background: var(--surface);
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .select:hover {
    background-color: var(--surface-2);
  }
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px 0 12px;
  margin-left: 4px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-control);
  font-size: 13px;
  font-weight: 500;
  transition: transform .16s var(--ease-out), opacity .18s ease;
}

.cart-btn .ph {
  font-size: 18px;
}

.cart-btn:active {
  transform: scale(.97);
}

.cart-btn-total {
  font-variant-numeric: tabular-nums;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border: 2px solid var(--bg);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: transform .2s var(--ease-out), opacity .2s ease;
}

.cart-badge[data-count="0"] {
  transform: scale(.5);
  opacity: 0;
}

.cart-badge.bump {
  animation: bump .3s var(--ease-out);
}

@keyframes bump {
  40% {
    transform: scale(1.2);
  }
}

@media (max-width: 899px) {
  .header-row {
    grid-template-columns: auto auto;
    height: auto;
    padding-block: 10px;
    row-gap: 10px;
  }

  .header-actions {
    justify-self: end;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }

  .search-kbd {
    display: none;
  }
}

@media (max-width: 479px) {
  .cart-btn-total {
    display: none;
  }

  .cart-btn {
    padding: 0 12px;
  }

  .brand-name span {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: 56px;
  padding-bottom: 8px;
}

.hero>.wrap {
  position: relative;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* lighter behind the copy, fuller behind the photos, fades out at the bottom */
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .35) 0%, rgb(0 0 0 / .55) 35%, #000 70%), linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgb(0 0 0 / .35) 0%, rgb(0 0 0 / .55) 35%, #000 70%), linear-gradient(180deg, #000 70%, transparent);
  mask-composite: intersect;
}

.hero-dna {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  -webkit-mask-image: linear-gradient(90deg, rgb(0 0 0 / .28) 0%, rgb(0 0 0 / .4) 38%, #000 66%), linear-gradient(180deg, #000 72%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgb(0 0 0 / .28) 0%, rgb(0 0 0 / .4) 38%, #000 66%), linear-gradient(180deg, #000 72%, transparent);
  mask-composite: intersect;
}

.hero-dna.ready {
  opacity: .9;
}

.hero.has-dna .hero-bg {
  opacity: .55;
}

@media (max-width: 899px) {
  .hero-bg {
    -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / .45), #000 50%, transparent);
    mask-image: linear-gradient(180deg, rgb(0 0 0 / .45), #000 50%, transparent);
  }

  .hero-dna {
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / .35) 45%, rgb(0 0 0 / .25) 70%, transparent);
    mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / .35) 45%, rgb(0 0 0 / .25) 70%, transparent);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: 48px;
}

.hero-title {
  font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 600;
  max-width: 17ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 20px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 32px;
}

.hero-visual {
  position: relative;
  aspect-ratio: 5 / 4;
}

.hero-shot {
  position: absolute;
  overflow: hidden;
  background: var(--well);
  border-radius: var(--r-panel);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.hero-shot-main {
  inset: 0 18% 8% 0;
}

.hero-shot-main img {
  object-position: 60% 55%;
  transform: scale(1.12);
}

.hero-shot-side {
  width: 40%;
  aspect-ratio: 3 / 4;
  right: 0;
  bottom: 0;
  border: 6px solid var(--bg);
  box-shadow: var(--shadow-lg);
}

.hero-shot-side img {
  object-position: 70% 55%;
  transform: scale(1.25);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 64px;
}

.fact {
  padding-block: 4px;
  padding-right: 24px;
}

.fact+.fact {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.fact dt {
  font-size: 13px;
  color: var(--ink-3);
}

.fact dd {
  margin-top: 4px;
  font-weight: 500;
  text-wrap: pretty;
}

@media (max-width: 899px) {
  .hero {
    padding-top: 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-visual {
    max-width: 520px;
    width: 100%;
  }

  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
    margin-top: 40px;
  }

  .fact:nth-child(3) {
    padding-left: 0;
    border-left: none;
  }
}

/* Entry motion */
@media (prefers-reduced-motion: no-preference) {

  .hero-copy>*,
  .hero-shot {
    animation: rise .7s var(--ease-out) both;
  }

  .hero-sub {
    animation-delay: .06s;
  }

  .hero-actions {
    animation-delay: .12s;
  }

  .hero-shot-main {
    animation-delay: .08s;
  }

  .hero-shot-side {
    animation-delay: .2s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Catalog 3D stage: floating peptide molecules behind the product grid */
.catalog-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* soft lime/blue glow; also the fallback when WebGL is unavailable */
  background:
    radial-gradient(ellipse 38% 46% at 12% 42%, rgb(0 140 215 / .07), transparent 70%),
    radial-gradient(ellipse 38% 46% at 88% 58%, rgb(114 184 34 / .08), transparent 70%);
}

.catalog-stage > .catalog {
  position: relative;
  z-index: 1;
}

.catalog-3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
  /* full strength in the side gutters, faint behind the cards, faded top/bottom */
  -webkit-mask-image:
    linear-gradient(90deg, #000 0, #000 calc(50% - 600px), rgb(0 0 0 / .16) calc(50% - 430px), rgb(0 0 0 / .16) calc(50% + 430px), #000 calc(50% + 600px), #000 100%),
    linear-gradient(180deg, transparent 0, #000 14%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, #000 0, #000 calc(50% - 600px), rgb(0 0 0 / .16) calc(50% - 430px), rgb(0 0 0 / .16) calc(50% + 430px), #000 calc(50% + 600px), #000 100%),
    linear-gradient(180deg, transparent 0, #000 14%, #000 84%, transparent 100%);
  mask-composite: intersect;
}

.catalog-3d.ready {
  opacity: 1;
}

@media (max-width: 899px) {
  .catalog-3d {
    -webkit-mask-image: linear-gradient(180deg, transparent 0, rgb(0 0 0 / .32) 12%, rgb(0 0 0 / .32) 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, rgb(0 0 0 / .32) 12%, rgb(0 0 0 / .32) 86%, transparent 100%);
  }
}

/* Catalog */
.catalog {
  padding-top: 56px;
  padding-bottom: 32px;
  scroll-margin-top: 72px;
}

.catalog:focus {
  outline: none;
}

.catalog-head {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.catalog-count {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink-3);
  margin-left: 10px;
  font-variant-numeric: tabular-nums;
}

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: -16px;
  padding-inline: 16px;
  min-width: 0;
}

.chips::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .chips {
    margin-inline: 0;
    padding-inline: 0;
  }
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .16s var(--ease-out);
}

.chip-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  transition: background-color .18s ease, color .18s ease;
}

.chip:active {
  transform: scale(.96);
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.chip.active .chip-count {
  background: color-mix(in srgb, var(--bg) 18%, transparent);
  color: var(--bg);
}

@media (hover: hover) and (pointer: fine) {
  .chip:not(.active):hover {
    border-color: var(--line-strong);
    color: var(--ink);
  }
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}

.sort-select {
  height: 38px;
  border-color: var(--line);
  background-color: var(--surface);
  color: var(--ink);
}

@media (max-width: 559px) {
  .catalog-tools { align-items: stretch; }
  .sort { width: 100%; justify-content: space-between; }
  .sort-select { flex: 1; max-width: 240px; }
}

/* Product grid: 3 columnas en escritorio, 2 en tablet, 1 en móvil */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}

.grid > .empty { grid-column: 1 / -1; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: var(--line-strong);
    box-shadow: 0 1px 2px rgb(18 32 27 / .06), 0 18px 40px -20px rgb(18 32 27 / .28);
    transform: translateY(-2px);
  }
}

.card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: var(--well);
  border-radius: 10px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform .6s var(--ease-out), filter .3s ease;
}

/* Afordancia al pasar el cursor: abre la ficha */
.card-peek {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 4px 14px -6px rgb(18 32 27 / .3);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity .2s ease, transform .3s var(--ease-out);
  pointer-events: none;
}

.card-peek .ph { font-size: 14px; }

@media (hover: hover) and (pointer: fine) {
  .card-media:hover img { transform: scale(1.035); }
  .card-media:hover .card-peek,
  .card-media:focus-visible .card-peek { opacity: 1; transform: translate(-50%, 0); }
}

/* Compartir: siempre visible (en táctil no hay hover) */
.share-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px -6px rgb(18 32 27 / .3);
  color: var(--ink-2);
  font-size: 17px;
  -webkit-tap-highlight-color: transparent;
  transition: color .18s ease, background-color .18s ease, transform .16s var(--ease-out);
}
.pv-media .share-btn { top: 12px; right: 12px; }
.share-btn:active { transform: scale(.94); }
.share-btn:focus-visible { border-radius: 999px; }
.share-btn[aria-expanded="true"] { color: var(--ink); background: var(--surface); }
@media (hover: hover) and (pointer: fine) {
  .share-btn:hover { color: var(--ink); background: var(--surface); }
}
.card.share-open { z-index: 3; }

/* Menú de redes: flota junto al botón (position fixed, lo coloca JS) */
.share-menu {
  position: fixed;
  z-index: 70;
  width: 228px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: scale(.96);
  transition: opacity .14s ease, transform .18s var(--ease-out);
}
.share-menu.open { opacity: 1; transform: none; }
.share-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s ease, transform .12s var(--ease-out);
}
.share-item .ph { font-size: 20px; flex: none; }
.share-whatsapp .ph { color: #1FA855; }
.share-facebook .ph { color: #1877F2; }
.share-instagram .ph { color: #D62976; }
.share-tiktok .ph { color: var(--ink); }
.share-copy, .share-more { color: var(--ink-2); }
.share-copy { margin-top: 6px; position: relative; }
.share-copy::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 8px;
  right: 8px;
  border-top: 1px solid var(--line);
}
.share-item:active { transform: scale(.98); }
.share-item:focus-visible { outline-offset: -2px; border-radius: 9px; background: var(--surface-2); }
.share-item.is-done, .share-item.is-done .ph { color: var(--accent-text); }
@media (hover: hover) and (pointer: fine) {
  .share-item:hover { background: var(--surface-2); }
}
.share-menu.is-hint { padding: 14px; }
.share-hint-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-text);
  font-size: 14.5px;
  font-weight: 600;
}
.share-hint-title .ph { font-size: 18px; }
.share-hint-body {
  margin: 6px 0 12px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
}
.share-hint-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: var(--r-control);
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  font-weight: 500;
  transition: transform .16s var(--ease-out), opacity .15s ease;
}
.share-hint-open:active { transform: scale(.97); }
.share-hint-open .ph { font-size: 18px; }
@media (prefers-reduced-motion: reduce) {
  .share-menu { transform: none; }
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 8px 8px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-cat {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* Estado de stock: el punto sí transmite estado real */
.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.stock::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.stock-low { color: var(--warn); }
.stock-low::before { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.stock-out { color: var(--danger); }
.stock-out::before { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }

.card-title {
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.card-title button {
  text-align: left;
  border-radius: 4px;
}

.card-summary {
  margin-top: 3px;
  font-size: 14px;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Nombre + contenido del vial: la dosis se lee de un vistazo, a la altura del nombre */
.card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title dose" "summary dose";
  column-gap: 16px;
  align-items: start;
  margin-top: 10px;
}
.card-head .card-title { grid-area: title; margin-top: 0; }
.card-head .card-summary { grid-area: summary; }
.card-dose {
  grid-area: dose;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  line-height: 1;
}
.card-dose-num {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card-dose-num small {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink-2);
}
.card-dose-note {
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
}

.card-spec {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.sizes li {
  display: inline-grid;
  place-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.sizes li.is-out {
  color: var(--ink-3);
  text-decoration: line-through;
  border-style: dashed;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: auto;
  padding-top: 18px;
}

.price {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.price-from {
  font-size: 12.5px;
  color: var(--ink-3);
}

.price-was {
  font-size: 14px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  text-decoration-thickness: 1px;
}

.price-save {
  align-self: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.card-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.card-actions.two {
  grid-template-columns: 1fr auto;
}

.card-actions .btn {
  height: 44px;
  font-size: 14.5px;
  font-weight: 600;
}

.btn.added {
  background: var(--ink);
  color: var(--bg);
}

.btn:disabled {
  background: var(--surface-2);
  color: var(--ink-3);
  cursor: not-allowed;
  transform: none;
}

.card.is-soldout .card-media img {
  filter: grayscale(1);
  opacity: .7;
}

.empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-panel);
  text-align: center;
}

.empty .ph {
  font-size: 28px;
  color: var(--ink-3);
}

.empty h3 {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 600;
}

.empty p {
  margin: 6px auto 20px;
  max-width: 42ch;
  color: var(--ink-2);
}

@media (prefers-reduced-motion: no-preference) {
  .card {
    animation: rise .5s var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 40ms);
  }
}

/* Wholesale */
.wholesale {
  padding-top: 72px;
  padding-bottom: 96px;
}

.wholesale-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: 40px;
  padding: 40px;
  background: var(--surface-2);
  border-radius: var(--r-panel);
}

.wholesale-copy p {
  margin: 12px 0 24px;
  max-width: 52ch;
  color: var(--ink-2);
  font-size: 16px;
}

.wholesale-shot {
  justify-self: end;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1;
  background: var(--well);
  border-radius: 12px;
  overflow: hidden;
}

.wholesale-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

@media (max-width: 767px) {
  .wholesale-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .wholesale-shot {
    display: none;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 40ch;
  font-size: 14px;
  color: var(--ink-3);
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 12px;
}

.footer-col li+li {
  margin-top: 8px;
}

.footer-link {
  font-size: 14px;
  color: var(--ink-2);
  text-align: left;
  transition: color .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-link:hover {
    color: var(--ink);
  }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 40px;
  padding-top: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgb(10 16 14 / .42);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}

.overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease;
}

/* Drawer */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-drawer);
  width: min(420px, 100vw);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .4s var(--ease-drawer), visibility 0s linear .4s;
}

.drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform .4s var(--ease-drawer);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 14px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  font-size: 17px;
  font-weight: 600;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 20px;
}

.drawer-foot {
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.drawer-foot[hidden] {
  display: none;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}

.sum-row+.sum-row {
  margin-top: 6px;
}

.sum-row .num {
  color: var(--ink);
}

.sum-total {
  margin: 12px 0 16px !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.drawer-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  text-wrap: pretty;
}

.drawer-note.ok {
  color: var(--accent);
}

.ship-hint {
  font-size: 12px;
  color: var(--ink-3);
}

.line-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 14px 0;
}

.line-item+.line-item {
  border-top: 1px solid var(--line);
}

.line-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  background: var(--well);
  overflow: hidden;
}

.line-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.line-item-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-item-meta {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

.line-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.line-item-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.qty button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink-2);
  transition: background-color .15s ease, transform .15s var(--ease-out);
}

.qty button:active {
  transform: scale(.9);
}

@media (hover: hover) and (pointer: fine) {
  .qty button:hover {
    background: var(--surface-2);
    color: var(--ink);
  }
}

.qty span {
  min-width: 22px;
  text-align: center;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.drawer-empty {
  padding: 64px 12px;
  text-align: center;
  color: var(--ink-2);
}

.drawer-empty .ph {
  font-size: 32px;
  color: var(--ink-3);
}

.drawer-empty h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.drawer-empty p {
  margin: 4px 0 20px;
  font-size: 14px;
}

/* Dialog */
.overlay-center {
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: var(--z-drawer);
}

.dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  transform: scale(.97) translateY(6px);
  opacity: 0;
  transition: transform .25s var(--ease-out), opacity .2s ease;
}

.overlay.open .dialog {
  transform: none;
  opacity: 1;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.sheet-head {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  padding-right: 36px;
}

.sheet-img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: var(--well);
  overflow: hidden;
}

.sheet-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.dialog h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
  text-wrap: balance;
}

.sheet-batch {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-3);
}

.spec {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.spec div {
  background: var(--surface);
  padding: 12px 14px;
  min-width: 0;
}

.spec .wide {
  grid-column: 1 / -1;
}

.spec dt {
  font-size: 12px;
  color: var(--ink-3);
}

.spec dd {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.spec dd.mono {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
}

.coa-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-2);
}

.coa-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.coa-box h3 .ph {
  font-size: 18px;
  color: var(--ink-3);
}

.coa-box p {
  margin: 6px 0 14px;
  font-size: 14px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.coa-box .btn {
  height: 38px;
  font-size: 14px;
}

.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.sheet-price {
  font-size: 22px;
  font-weight: 600;
}

.lookup p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 14px;
  padding-right: 36px;
}

.field {
  display: grid;
  gap: 6px;
  margin-top: 20px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.field input {
  height: 44px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  font-family: var(--mono);
  font-size: 16px;
  text-transform: uppercase;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  min-height: 20px;
  font-size: 13px;
  color: var(--danger);
}

@media (max-width: 479px) {
  .dialog {
    padding: 22px 18px;
  }

  .spec {
    grid-template-columns: 1fr;
  }

  .sheet-head {
    grid-template-columns: 56px 1fr;
  }

  .sheet-img {
    width: 56px;
    height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
/* ==========================================================================
   Chile shipping, flag pickers and compact brand (keep this block together)
   ========================================================================== */

/* Compact brand: isotype + live text on phones and in dark mode */
.brand-compact { display: none; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
@media (max-width: 479px) {
  .brand-full-logo { display: none; }
  .brand-compact { display: inline-flex; }
  .header-actions { gap: 2px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-full-logo { display: none; }
  :root:not([data-theme="light"]) .brand-compact { display: inline-flex; }
}

/* Ships-to indicator */
.ship-to {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px; margin-right: 6px; line-height: 18px;
  border-radius: 999px;
  background: var(--accent-soft); color: var(--ink-2);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
@media (max-width: 1179px) { .ship-to { display: none; } }

/* Flags (flag-icons) */
.fi {
  flex: none;
  width: 20px; height: 14px; line-height: 14px;
  border-radius: 3px;
  background-size: cover;
  outline: 1px solid rgb(18 32 27 / .1); outline-offset: -1px;
}
.fact dt .fi { width: 16px; height: 11px; border-radius: 2px; vertical-align: -1px; margin-right: 2px; }

/* Flag pickers */
.picker-native { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.picker { position: relative; }
.picker-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 10px;
  border-radius: var(--r-control);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: background-color .18s ease, transform .16s var(--ease-out);
}
.picker-btn:active { transform: scale(.97); }
.picker-caret { font-size: 12px; color: var(--ink-3); transition: transform .2s var(--ease-out); }
.picker.open .picker-caret { transform: rotate(180deg); }
.picker.open .picker-btn { background: var(--surface-2); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .picker-btn:hover { background: var(--surface-2); color: var(--ink); } }

.picker-list {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: var(--z-overlay);
  min-width: 272px; max-width: calc(100vw - 32px); max-height: min(60vh, 340px); overflow-y: auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  transform-origin: top right;
  opacity: 0; transform: scale(.96) translateY(-4px); visibility: hidden;
  transition: opacity .16s ease, transform .18s var(--ease-out), visibility 0s linear .18s;
}
.picker.open .picker-list { opacity: 1; transform: none; visibility: visible; transition: opacity .16s ease, transform .18s var(--ease-out); }
.picker-list:focus { outline: none; }
.picker-list:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.picker-opt {
  display: grid; grid-template-columns: 20px 1fr auto 16px; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px; color: var(--ink);
  cursor: pointer;
}
.picker-opt.is-active { background: var(--surface-2); }
.picker-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker-code { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.picker-check { font-size: 15px; color: var(--accent); opacity: 0; }
.picker-opt.is-selected .picker-check { opacity: 1; }
.picker-opt.is-selected .picker-name { font-weight: 600; }

.picker-token {
  flex: none; display: grid; place-items: center;
  width: 20px; height: 14px; border-radius: 3px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 10px; font-weight: 700; line-height: 1;
}

@media (max-width: 479px) {
  .picker-btn { padding: 0 6px; gap: 6px; }
  .picker[data-kind="language"] .picker-btn-code { display: none; }
  .picker[data-kind="currency"] .picker-btn .fi,
  .picker[data-kind="currency"] .picker-btn .picker-token { display: none; }
  .picker[data-kind="language"] .picker-list { right: -60px; }
}

/* ==========================================================================
   Footer (kf): DNA band, pitch, columns, giant wordmark
   ========================================================================== */
.site-footer.kf {
  position: relative;
  margin-top: 24px;
  padding-top: 0;
  border-top: 0;
  background: color-mix(in srgb, var(--surface-2) 70%, var(--bg));
  overflow: hidden;
}

.kf-helix {
  height: 120px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.kf-helix-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.kf-strand { fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.kf-strand-a { stroke: var(--dna-1); }
.kf-strand-b { stroke: var(--dna-2); opacity: .85; }
.kf-rung { stroke-width: 2; stroke-linecap: round; }
.kf-rung-a { stroke: var(--dna-1); }
.kf-rung-b { stroke: var(--dna-2); }
.kf-node-a { fill: var(--dna-1); }
.kf-node-b { fill: var(--dna-2); }

.kf-pitch {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 24px 64px;
  padding-top: 40px;
  padding-bottom: 48px;
}
.kf-title {
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.75rem);
  font-weight: 600; line-height: 1.06; letter-spacing: -.03em;
  max-width: 20ch; text-wrap: balance;
}
.kf-pitch-side p { max-width: 46ch; color: var(--ink-2); font-size: 16px; text-wrap: pretty; }
.kf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn-wa {
  background: #25D366;
  color: #062E16;
  font-weight: 600;
  transition: background-color .18s ease, transform .16s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn-wa:hover { background: #3ADC77; }
  .btn-primary:hover { background: var(--accent-hover); }
}

.kf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
  padding-top: 40px;
  padding-bottom: 48px;
  position: relative;
}
.kf-grid::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px; height: 1px; background: var(--line); }

.kf-brand p { margin-top: 16px; max-width: 34ch; font-size: 14.5px; color: var(--ink-2); text-wrap: pretty; }
.kf-logo { display: inline-block; border-radius: 8px; }
.kf-logo img { height: 40px; width: auto; }
.kf-mail {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px;
  font-size: 14.5px; font-weight: 500; color: var(--ink);
}
.kf-mail span {
  text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: text-decoration-color .18s ease;
}
.kf-mail .ph { font-size: 17px; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  .kf-mail:hover span { text-decoration-color: var(--accent); }
}

.kf-col h3 {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.kf-col li + li { margin-top: 10px; }
.kf-col .footer-link {
  position: relative;
  font-size: 14.5px; color: var(--ink-2); text-align: left;
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 4px; text-decoration-thickness: 1px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .kf-col .footer-link:hover { color: var(--ink); text-decoration-color: var(--accent); }
}
.kf-ship p { font-size: 14.5px; color: var(--ink-2); max-width: 32ch; text-wrap: pretty; }
.kf-sub { margin-top: 26px; }
.kf-pay { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-pay li + li { margin-top: 0; }
.kf-pay li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 9px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface);
  font-size: 13px; color: var(--ink-2); line-height: 18px;
}
.kf-pay .ph { font-size: 16px; color: var(--ink-3); }

/* Aviso de uso en investigación: tratado como rótulo de reactivo, no como alerta */
.kf-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 0.9fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 20px 40px;
  margin-bottom: 40px;
  padding: 26px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.kf-notice-mark {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 96px;
  padding: 10px 14px 9px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
}
.kf-notice-code {
  font-family: var(--mono);
  font-size: 22px; font-weight: 500; line-height: 1;
  letter-spacing: .06em;
}
.kf-notice-cap {
  padding-top: 5px;
  border-top: 1px solid currentColor;
  font-size: 10.5px; font-weight: 500; line-height: 1.2;
  white-space: nowrap;
}
.kf-notice-lead {
  max-width: 20ch;
  font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem);
  font-weight: 600; line-height: 1.2; letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.kf-notice-body {
  max-width: 62ch;
  font-size: 13.5px; line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (max-width: 1023px) {
  .kf-notice { grid-template-columns: auto minmax(0, 1fr); }
  .kf-notice-body { grid-column: 1 / -1; }
  .kf-notice-lead { max-width: none; }
}
@media (max-width: 559px) {
  .kf-notice { gap: 16px 18px; padding: 22px 0; }
  .kf-notice-mark { min-width: 84px; padding: 8px 10px 7px; }
  .kf-notice-code { font-size: 19px; }
}

/* Giant wordmark, cropped by the footer edge */
.kf-word {
  display: flex; justify-content: center;
  height: 10.2vw;
  overflow: hidden;
  pointer-events: none; user-select: none;
}
.kf-word span {
  --kw-base: color-mix(in srgb, var(--dna-1) 13%, var(--bg));
  --kw-glow: color-mix(in srgb, var(--dna-1) 46%, var(--bg));
  --kw-glow-2: color-mix(in srgb, var(--dna-2) 32%, var(--bg));
  font-size: 13.5vw; font-weight: 700; line-height: .86;
  letter-spacing: -.04em; white-space: nowrap;
  color: var(--kw-base);
}

/* Brillo que recorre la palabra: franja verde-azul (colores del ADN) sobre el tono base */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .kf-word span {
    background-image: linear-gradient(105deg,
      var(--kw-base) 0%, var(--kw-base) 40%,
      var(--kw-glow-2) 45.5%, var(--kw-glow) 50%, var(--kw-glow-2) 54.5%,
      var(--kw-base) 60%, var(--kw-base) 100%);
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  @media (prefers-reduced-motion: no-preference) {
    .kf-word span { animation: kf-shine 8s cubic-bezier(.45, 0, .2, 1) 1.2s infinite; animation-play-state: paused; }
    .kf-word.is-live span { animation-play-state: running; }
  }
}
@keyframes kf-shine {
  0% { background-position: 100% 0; }
  45%, 100% { background-position: 0% 0; }
}

.kf-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px;
  padding-top: 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom));
  position: relative;
  font-size: 13px; color: var(--ink-3);
}
.kf-bottom::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px; height: 1px; background: var(--line); }
@media (max-width: 767px) { .kf-bottom::before, .kf-grid::before { left: 16px; right: 16px; } }
.kf-up {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: border-color .18s ease, color .18s ease, transform .16s var(--ease-out);
}
.kf-up .ph { transition: transform .25s var(--ease-out); }
.kf-up:active { transform: scale(.96); }
@media (hover: hover) and (pointer: fine) {
  .kf-up:hover { color: var(--ink); border-color: var(--ink-3); }
  .kf-up:hover .ph { transform: translateY(-2px); }
}

/* Entry: columns settle in after the helix zips */
@media (prefers-reduced-motion: no-preference) {
  .kf.kf-js .kf-pitch, .kf.kf-js .kf-col, .kf.kf-js .kf-notice { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .kf.in .kf-pitch, .kf.in .kf-col, .kf.in .kf-notice { opacity: 1; transform: none; }
  .kf.in .kf-col:nth-child(1) { transition-delay: .1s; }
  .kf.in .kf-col:nth-child(2) { transition-delay: .16s; }
  .kf.in .kf-col:nth-child(3) { transition-delay: .22s; }
  .kf.in .kf-col:nth-child(4) { transition-delay: .28s; }
  .kf.in .kf-notice { transition-delay: .34s; }
}

@media (max-width: 1023px) {
  .kf-pitch { grid-template-columns: 1fr; align-items: start; }
  .kf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kf-brand { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 32px; align-items: center; }
  .kf-brand p { grid-column: 2; margin-top: 0; max-width: 52ch; }
  .kf-brand .kf-mail { grid-column: 2; margin-top: 0; }
  .kf-logo { grid-row: 1 / span 2; }
}
@media (max-width: 767px) {
  .kf-helix { height: 88px; }
  .kf-pitch { padding-top: 24px; padding-bottom: 36px; }
  .kf-actions .btn { flex: 1 1 auto; }
  .kf-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 32px; padding-bottom: 32px; }
  .kf-brand { display: block; }
  .kf-brand p { margin-top: 14px; }
  .kf-brand .kf-mail { margin-top: 14px; }
  .kf-ship { grid-column: 1 / -1; }
  .kf-word { height: 11vw; }
}

/* ==========================================================================
   Hero facts: shipping route, packaging, payment
   ========================================================================== */
.fx-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 14px;
  margin-top: 56px;
}
.fx {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 18px;
  padding: 18px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.fx-head {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 22px;
}
.fx-label { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.fx-head-icon { font-size: 18px; color: var(--ink-3); }

/* Ruta: estilo pase de embarque, SCL ─ camión ─ CHILE */
.fx-route::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 12%, transparent) 1px, transparent 1.3px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000);
  mask-image: linear-gradient(180deg, transparent 30%, #000);
  opacity: .55;
}
.fx-days {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  white-space: nowrap; font-size: 12.5px; color: var(--ink-2);
}
.fx-days strong { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.fx-route-body {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(64px, 1fr) auto;
  align-items: center;
  gap: 20px;
}
.fx-end { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fx-end-dest { text-align: right; align-items: flex-end; }
.fx-code {
  font-family: var(--mono); font-size: 32px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em;
  color: var(--ink);
}
.fx-val { font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }

.fx-path {
  position: relative;
  container-type: inline-size;
  height: 28px;
  margin-bottom: 20px;
}
.fx-line {
  position: absolute; left: 6px; right: 6px; top: 50%; height: 0;
  border-top: 2px dashed color-mix(in srgb, var(--accent) 70%, var(--ink-3));
}
.fx-line::before, .fx-line::after {
  content: ""; position: absolute; top: -5px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.fx-line::before { left: -6px; }
.fx-line::after { right: -6px; background: var(--accent); }
.fx-plane {
  position: absolute; left: 0; top: 50%;
  display: grid; place-items: center;
  width: 30px; height: 30px; margin-top: -15px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, var(--line));
  font-size: 17px; color: var(--accent);
  transform: translateX(calc(50cqw - 15px));
}
/* armado por JS: la ruta se dibuja y el camión avanza hasta la mitad */
.fx-armed .fx-line { clip-path: inset(0 100% 0 0); }
.fx-armed .fx-plane { transform: translateX(0); opacity: 0; }
.fx-armed .fx-days { opacity: 0; transform: translateY(4px); }
.fx-armed.fx-go .fx-line { clip-path: inset(0 0 0 0); transition: clip-path 1.4s cubic-bezier(.65, 0, .35, 1); }
.fx-armed.fx-go .fx-plane {
  transform: translateX(calc(50cqw - 15px)); opacity: 1;
  transition: transform 1.4s cubic-bezier(.65, 0, .35, 1), opacity .3s ease;
}
.fx-armed.fx-go .fx-days {
  opacity: 1; transform: none;
  transition: opacity .5s ease 1s, transform .6s var(--ease-out) 1s;
}

/* Embalaje */
.fx-title { font-size: 19px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.fx-sub { display: inline-flex; align-items: flex-start; gap: 6px; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.fx-sub .ph { flex: none; margin-top: 2px; font-size: 16px; color: var(--accent-blue); }
.fx-pack-body { display: flex; flex-direction: column; }

/* Pago */
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-chips li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 9px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; line-height: 18px; color: var(--ink-2);
}
.fx-chips .ph { font-size: 16px; color: var(--ink-3); }
.fx-chips .fx-chip-accent { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--ink); }
.fx-chips .fx-chip-accent .ph { color: var(--accent); }

@media (max-width: 1023px) {
  .fx-grid { grid-template-columns: 1fr 1fr; margin-top: 40px; }
  .fx-route { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
  .fx-grid { grid-template-columns: 1fr; gap: 10px; }
  .fx { padding: 16px 18px 18px; gap: 14px; }
  .fx-route-body { gap: 12px; }
  .fx-code { font-size: 24px; }
  .fx-val { font-size: 12.5px; white-space: normal; }
  .fx-title { font-size: 17px; }
}

/* ==========================================================================
   Aviso de uso en investigación (tienda y páginas legales)
   ========================================================================== */
/* Research notice: dark premium utility bar */
.research-strip {
  --rs-bg: #101614;
  --rs-ink: #F1F5F2;
  --rs-ink-2: rgb(225 233 228 / .66);
  --rs-edge: rgb(255 255 255 / .14);
  position: relative;
  background:
    radial-gradient(60% 140% at 50% 0%, rgb(255 255 255 / .06), transparent 70%),
    var(--rs-bg);
  color: var(--rs-ink-2);
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: .005em;
}
/* hairline of brand light along the bottom edge */
.research-strip::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgb(114 184 34 / .7) 32%, rgb(0 140 215 / .7) 68%, transparent 96%);
  pointer-events: none;
}
.research-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  padding-block: 9px 10px;
  text-align: center;
  text-wrap: balance;
}
.rs-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 3px 9px 3px 7px;
  border: 1px solid var(--rs-edge);
  border-radius: 999px;
  background: rgb(255 255 255 / .04);
  color: var(--rs-ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1;
}
.rs-badge .ph { font-size: 13px; color: #9BD84E; }
.research-strip strong { color: var(--rs-ink); font-weight: 600; }
.rs-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 4px 10px 4px 12px;
  border: 1px solid var(--rs-edge);
  border-radius: 999px;
  color: var(--rs-ink);
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease;
}
.rs-link .ph { font-size: 13px; transition: transform .25s var(--ease-out); }
.rs-link:focus-visible { outline: 2px solid #9BD84E; outline-offset: 2px; }
.rs-link:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .rs-link:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .28); }
  .rs-link:hover .ph { transform: translateX(2px); }
}
@media (max-width: 559px) {
  .research-strip { font-size: 12px; }
  .research-strip .wrap { gap: 6px 10px; padding-block: 8px 9px; }
  .rs-badge { display: none; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .research-strip { --rs-bg: #080B0A; }
}
:root[data-theme="dark"] .research-strip { --rs-bg: #080B0A; }

/* Declaración obligatoria antes de enviar el pedido */
.ruo-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 4px 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  background: var(--surface);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.ruo-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}
.ruo-consent a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
}
.ruo-consent:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.ruo-consent.error { border-color: var(--danger); }
@media (prefers-reduced-motion: no-preference) {
  .ruo-consent.error { animation: ruo-nudge .32s var(--ease-out); }
}
@keyframes ruo-nudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  65% { transform: translateX(3px); }
}
.ruo-consent-hint { margin: 0 0 10px; font-size: 12.5px; color: var(--ink-3); }
.ruo-consent-hint.error { color: var(--danger); font-weight: 500; }
.drawer-foot .btn.is-blocked { opacity: .5; }

/* Aviso en la ficha técnica */
.sheet-ruo {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--r-control);
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
.sheet-ruo .ph { flex: none; margin-top: 1px; font-size: 17px; color: var(--accent-blue); }
.sheet-ruo a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 2px;
  white-space: nowrap;
}

/* Separador entre el hero y el catálogo: hilo con un giro de hélice, como la banda del footer */
.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 72px;
}
.sd-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.sd-line:last-child { background: linear-gradient(90deg, var(--line-strong), transparent); }
.sd-helix { flex: none; overflow: visible; }
.sd-a, .sd-b { fill: none; stroke-width: 2; stroke-linecap: round; }
.sd-a { stroke: var(--dna-1); }
.sd-b { stroke: var(--dna-2); opacity: .85; }
.sd-rung { stroke: var(--line-strong); stroke-width: 1.5; stroke-linecap: round; }
.sd-na { fill: var(--dna-1); }
.sd-nb { fill: var(--dna-2); }
@media (max-width: 767px) {
  .section-divider { padding-top: 48px; }
}


/* ==========================================================================
   Medios de pago: Mercado Pago + tarjetas aceptadas
   Los logos van sobre fichas blancas en ambos temas (los colores de marca lo exigen).
   ========================================================================== */
.pay-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.mp-badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px 0 5px;
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgb(18 32 27 / .1), 0 1px 2px rgb(18 32 27 / .06), 0 6px 16px -10px rgb(0 80 140 / .35);
  color: #2D3277;
  white-space: nowrap;
}
.mp-mark {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #00B1EA; color: #FFFFFF;
}
.mp-mark svg { width: 18px; height: 18px; }
.mp-word { font-size: 14px; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.mp-word b { font-weight: 700; }

.pay-cards { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-tile {
  display: grid; place-items: center;
  width: 46px; height: 30px;
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgb(18 32 27 / .1), 0 1px 2px rgb(18 32 27 / .06);
}
.pay-tile svg { display: block; }
.pay-tile-amex svg { width: 24px; height: 24px; border-radius: 2px; }
.kf-col .pay-cards li + li { margin-top: 0; }
.pay-cards-sm .pay-tile { width: 38px; height: 25px; border-radius: 5px; }
.pay-cards-sm .pay-tile svg { transform: scale(.82); }

.pay-note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); text-wrap: pretty; }
.pay-note .ph { font-size: 15px; }
.pay-secure {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500; color: var(--accent);
}
.pay-secure .ph { font-size: 14px; }

/* Tarjeta del hero */
.fx-pay .pay-body { display: grid; gap: 12px; }

/* Footer */
.kf-paybox { display: grid; gap: 12px; justify-items: start; }

/* Cesta */
.drawer-pay {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin: 0 0 12px;
}
.drawer-pay-label { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); }
.drawer-pay-label .ph { font-size: 14px; }
.drawer-pay .mp-badge { height: 30px; padding-right: 10px; }
.drawer-pay .mp-mark { width: 22px; height: 22px; }
.drawer-pay .mp-mark svg { width: 15px; height: 15px; }
.drawer-pay .mp-word { font-size: 13px; }
.drawer-pay .pay-cards { margin-left: auto; }

/* ==========================================================================
   Flujo de compra: navegación, ficha de producto, pestañas, preguntas,
   aviso de producto agregado y cesta
   ========================================================================== */

body.is-locked { overflow: hidden; }

/* Navegación del header */
.header-nav { display: none; align-items: center; gap: 2px; margin-right: 6px; }
.header-nav a {
  display: inline-flex; align-items: center;
  height: 36px; padding: 0 11px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background-color .18s ease, color .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .header-nav a:hover { background: var(--surface-2); color: var(--ink); }
}
@media (min-width: 1100px) {
  .header-nav { display: flex; }
  .header-actions .ship-to { display: none; }
}

/* ---------- Ficha de producto (diálogo ancho) ---------- */
.dialog-wide {
  width: min(1040px, 100%);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.dialog-wide #dialogContent {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.dialog-wide .dialog-close {
  z-index: 2;
  top: 14px; right: 14px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 4px 12px -6px rgb(18 32 27 / .25);
  border-radius: 999px;
}

.pv {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas:
    "media main"
    "tabs tabs"
    "ruo ruo";
  column-gap: 40px;
  padding: 28px;
}

.pv-media {
  position: relative;
  grid-area: media;
  align-self: start;
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--well);
  overflow: hidden;
}
.pv-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

.pv-main { grid-area: main; min-width: 0; padding: 6px 36px 0 0; }

.pv .card-top { padding-right: 8px; }
.dialog .pv h2 {
  margin-top: 10px;
  font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.08;
}
.dialog .pv h2 .pv-dose {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pv-summary { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.pv-spec {
  display: flex; flex-wrap: wrap; gap: 4px 16px;
  margin-top: 12px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.pv-sizes { margin-top: 26px; border: 0; min-width: 0; }
.pv-sizes legend { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.size-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
}
.size-tile {
  display: grid;
  gap: 1px;
  padding: 11px 13px 12px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .16s var(--ease-out);
}
.size-tile:active { transform: scale(.98); }
.size-tile.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.size-tile[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.size-tile[aria-disabled="true"] .size-label { text-decoration: line-through; }
@media (hover: hover) and (pointer: fine) {
  .size-tile:not(.on):not([aria-disabled="true"]):hover { border-color: var(--ink-3); }
}
.size-label { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.size-price { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.size-stock { margin-top: 4px; font-size: 11.5px; }
.size-stock::before { width: 6px; height: 6px; box-shadow: none; }

.pv-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 24px; }
.pv-price .price { font-size: 32px; letter-spacing: -.03em; }
.pv-price .price-was { font-size: 16px; }
.pv-note { margin-top: 4px; font-size: 13px; color: var(--ink-3); }

.pv-buy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.pv-buy .btn { height: 50px; font-size: 15px; font-weight: 600; }

.qty-lg { height: 50px; border-radius: var(--r-control); border-color: var(--line-strong); }
.qty-lg button { width: 44px; height: 48px; border-radius: var(--r-control); font-size: 16px; }
.qty-lg button:disabled { opacity: .35; cursor: not-allowed; }
.qty-lg span { min-width: 28px; font-size: 15px; font-weight: 600; }

.pv-cartlink {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px;
  border-radius: 4px;
}
.pv-cartlink .ph { font-size: 14px; transition: transform .25s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .pv-cartlink:hover { color: var(--ink); }
  .pv-cartlink:hover .ph { transform: translateX(2px); }
}

.pv-service {
  display: grid; gap: 10px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pv-service li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.pv-service .ph { font-size: 18px; color: var(--ink-3); margin-top: 1px; }

/* Pestañas */
.pv-tabs { grid-area: tabs; min-width: 0; margin-top: 36px; }
.tablist {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tablist::-webkit-scrollbar { display: none; }
.tablist [role="tab"] {
  position: relative; flex: none;
  height: 46px; padding: 0 14px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-3);
  border-radius: 8px 8px 0 0;
  transition: color .18s ease;
}
.tablist [role="tab"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  border-radius: 2px; background: var(--ink);
  transform: scaleX(0); transition: transform .3s var(--ease-out);
}
.tablist [role="tab"][aria-selected="true"] { color: var(--ink); }
.tablist [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .tablist [role="tab"]:hover { color: var(--ink); }
}
.tabpanel { padding-top: 22px; }
.tabpanel:focus-visible { outline-offset: 6px; }
.pv-desc { max-width: 70ch; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.tabpanel .spec { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tabpanel .spec .wide { grid-column: span 2; }
.tabpanel .spec .full { grid-column: 1 / -1; }
.tabpanel .coa-box { margin-top: 0; max-width: 620px; }
.coa-box h3 .mono { font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.pv .sheet-ruo { grid-area: ruo; margin-top: 28px; }

/* ---------- Preguntas frecuentes ---------- */
.faq {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 32px 64px;
  padding-top: 88px;
  scroll-margin-top: 80px;
}
.faq-intro p { margin-top: 12px; max-width: 40ch; color: var(--ink-2); text-wrap: pretty; }
.faq-intro .btn { margin-top: 22px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 2px;
  font-size: 16px; font-weight: 500; color: var(--ink);
  cursor: pointer; list-style: none;
  border-radius: 6px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ph {
  flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-2); font-size: 14px;
  transition: transform .3s var(--ease-out), background-color .18s ease;
}
.faq-item[open] summary .ph { transform: rotate(45deg); background: var(--ink); color: var(--bg); }
.faq-item p { max-width: 68ch; padding: 0 44px 20px 2px; color: var(--ink-2); line-height: 1.65; text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] p { animation: faq-in .35s var(--ease-out); }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover .ph { background: var(--line); }
  .faq-item[open] summary:hover .ph { background: var(--ink); }
}
.inline-link {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px;
}
.tabpanel .faq-list { max-width: 760px; }
.tabpanel .faq-item summary { font-size: 15px; padding: 15px 2px; }

/* ---------- Aviso: producto agregado ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: min(460px, calc(100vw - 32px));
  padding: 8px 8px 8px 8px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 2px 4px rgb(10 16 14 / .12), 0 24px 48px -16px rgb(10 16 14 / .45);
  opacity: 0;
  transform: translate(-50%, 16px) scale(.98);
  transition: opacity .2s ease, transform .4s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast[hidden] { display: none; }
.toast-img { width: 44px; height: 44px; border-radius: 9px; background: #FFFFFF; object-fit: cover; }
.toast-text { display: grid; min-width: 0; line-height: 1.3; }
.toast-title { font-size: 13.5px; font-weight: 600; }
.toast-sub { font-size: 12.5px; color: color-mix(in srgb, var(--bg) 70%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast-action {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--bg) 14%, transparent);
  color: var(--bg);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background-color .18s ease, transform .16s var(--ease-out);
}
.toast-action:active { transform: scale(.97); }
.toast-close { width: 32px; height: 32px; color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 16px; }
.toast :focus-visible { outline-color: var(--bg); }
@media (hover: hover) and (pointer: fine) {
  .toast-action:hover { background: color-mix(in srgb, var(--bg) 22%, transparent); }
  .toast .toast-close:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); color: var(--bg); }
}
@media (max-width: 767px) {
  /* arriba en móvil: abajo vive el asistente de despacho */
  .toast { top: calc(12px + env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -16px) scale(.98); }
  .toast-close { display: none; }
}

/* ---------- Cesta ---------- */
.cart-progress {
  padding: 12px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13px;
  color: var(--ink-2);
}
.cart-progress strong { color: var(--ink); font-weight: 600; }
.cart-progress[hidden] { display: none; }
.ship-meter {
  position: relative; display: block;
  height: 4px; margin-top: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.ship-meter::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  transition: transform .6s var(--ease-out);
}
.ship-free { color: var(--accent-text); font-weight: 600; }

.line-item { grid-template-columns: 72px minmax(0, 1fr); }
.line-item-img { width: 72px; height: 72px; }
.line-item-main { min-width: 0; }
.line-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.line-item-name span { color: var(--ink-3); font-weight: 400; }
.line-remove {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; margin: -4px -6px 0 0;
  border-radius: 8px; color: var(--ink-3); font-size: 16px;
  transition: background-color .15s ease, color .15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .line-remove:hover { background: var(--danger-soft); color: var(--danger); }
}
.line-item-row { margin-top: 10px; }

/* ---------- Responsive de la ficha: hoja inferior en móvil ---------- */
@media (max-width: 899px) {
  .tabpanel .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .overlay-center:has(.dialog-wide) { place-items: end center; padding: 0; }
  .dialog-wide {
    width: 100%;
    max-height: 94dvh;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    transform: translateY(32px);
  }
  .pv {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "media" "main" "tabs" "ruo";
    padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  }
  .pv-media { position: relative; aspect-ratio: 4 / 3; max-height: 300px; width: 100%; }
  .pv-main { padding: 18px 0 0; }
  .faq { grid-template-columns: 1fr; padding-top: 64px; }
  .faq-item p { padding-right: 8px; }
}

@media (max-width: 479px) {
  .tabpanel .spec { grid-template-columns: 1fr; }
  .tabpanel .spec .wide, .tabpanel .spec .full { grid-column: auto; }
  .size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Precios en CLP: cifras proporcionales; con tabulares el punto de miles queda flotando */
.price, .price-was, .price-save, .size-price, .line-item-price, .cart-btn-total, .sum-row .num, .pv-note { font-variant-numeric: normal; }

/* ==========================================================================
   Suscripción a noticias (pie) y "Avísame cuando vuelva" (ficha)
   ========================================================================== */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.kf-news {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 20px 64px;
  padding-top: 36px;
  padding-bottom: 40px;
}
.kf-news::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px; height: 1px; background: var(--line); }
.kf-news-title {
  font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem);
  font-weight: 600; line-height: 1.15; letter-spacing: -.02em;
  text-wrap: balance;
}
.kf-news-copy p { margin-top: 8px; max-width: 44ch; font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.kf-news-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.kf-news-row input[type="email"],
.pv-notify-row input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.kf-news-row input::placeholder,
.pv-notify-row input::placeholder { color: var(--ink-3); }
.kf-news-row input:focus,
.pv-notify-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.kf-news-row input[aria-invalid="true"],
.pv-notify-row input[aria-invalid="true"] { border-color: var(--danger); }
.kf-news-row .btn { height: 48px; padding: 0 20px; font-weight: 600; }
.kf-news-row .btn:disabled,
.pv-notify-row .btn:disabled { opacity: .7; cursor: progress; }
.kf-news-msg { min-height: 0; margin-top: 10px; font-size: 14px; font-weight: 500; }
.kf-news-msg:empty { display: none; }
.kf-news-msg.is-error { color: var(--danger); }
.kf-news-msg.is-ok { display: flex; align-items: flex-start; gap: 8px; color: var(--accent-text); }
.kf-news-msg.is-ok::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M173.66 98.34a8 8 0 0 1 0 11.32l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 0ZM232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104Zm-16 0a88 88 0 1 0-88 88 88.1 88.1 0 0 0 88-88Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M173.66 98.34a8 8 0 0 1 0 11.32l-56 56a8 8 0 0 1-11.32 0l-24-24a8 8 0 0 1 11.32-11.32L112 148.69l50.34-50.35a8 8 0 0 1 11.32 0ZM232 128A104 104 0 1 1 128 24a104.11 104.11 0 0 1 104 104Zm-16 0a88 88 0 1 0-88 88 88.1 88.1 0 0 0 88-88Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kf-news-note { margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.kf-news-note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .kf-news-note a:hover { text-decoration-color: var(--accent); } }
@media (max-width: 899px) { .kf-news { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .kf-news::before { left: 16px; right: 16px; } }
@media (max-width: 419px) {
  .kf-news-row { grid-template-columns: 1fr; }
  .kf-news-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .kf.kf-js .kf-news { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .kf.in .kf-news { opacity: 1; transform: none; transition-delay: .3s; }
}

.pv-notify {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--well);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pv-notify { background: var(--surface-2); } }
:root[data-theme="dark"] .pv-notify { background: var(--surface-2); }
.pv-notify-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ink); }
.pv-notify-title .ph { font-size: 18px; color: var(--accent-text); }
.pv-notify-sub { margin: 4px 0 12px; font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
.pv-notify-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pv-notify-row .btn { height: 48px; padding: 0 18px; font-weight: 600; }
.pv-notify-msg { margin-top: 8px; font-size: 13.5px; color: var(--danger); }
.pv-notify-msg:empty { display: none; }
.pv-notify.is-done { display: flex; align-items: flex-start; gap: 10px; outline: none; background: var(--accent-soft); border-color: transparent; color: var(--ink); font-size: 14.5px; font-weight: 500; }
.pv-notify.is-done .ph { flex: none; font-size: 20px; color: var(--accent-text); }
.pv-notify-ask {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px;
  transition: color .15s ease;
}
.pv-notify-ask .ph { font-size: 17px; color: #1FA855; }
@media (hover: hover) and (pointer: fine) { .pv-notify-ask:hover { color: var(--ink); } }
@media (max-width: 419px) {
  .pv-notify-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pago en la tienda (Mercado Pago Payment Brick)
   ========================================================================== */
.drawer-or { margin: 14px 0 8px; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.btn-pay { height: 50px; font-size: 15.5px; font-weight: 600; }

.co {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: 0;
}
.co-main { padding: 32px 36px 36px; min-width: 0; }
.co-title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; padding-right: 48px; }
.co-steps { display: flex; gap: 18px; margin: 8px 0 24px; font-size: 13.5px; color: var(--ink-3); }
.co-steps .on { color: var(--ink); font-weight: 600; }
.co-steps .done { color: var(--accent-text); }

.co-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.co-form legend { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--ink); }
.co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.co-field { display: grid; gap: 6px; min-width: 0; }
.co-field.wide { grid-column: 1 / -1; }
.co-field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.co-opt { font-weight: 400; color: var(--ink-3); }
.co-field input, .co-field select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-control);
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.co-field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256'%3E%3Cpath fill='%2366716B' d='M213.7 101.7l-80 80a8 8 0 0 1-11.4 0l-80-80a8 8 0 0 1 11.4-11.4L128 164.7l74.3-74.4a8 8 0 0 1 11.4 11.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.co-field input:focus, .co-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.co-field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.co-error { min-height: 0; margin: 4px 0 12px; font-size: 14px; font-weight: 500; color: var(--danger); text-wrap: pretty; }
.co-error:empty { display: none; }
.co-next { height: 52px; font-size: 15.5px; font-weight: 600; }
.co-next:disabled { opacity: .7; cursor: progress; }

.co-shipcard {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--well);
  font-size: 14.5px;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-shipcard { background: var(--surface-2); } }
:root[data-theme="dark"] .co-shipcard { background: var(--surface-2); }
.co-shipcard-lbl { margin-bottom: 2px; font-size: 12.5px; color: var(--ink-3); }
.co-shipcard-sub { margin-top: 2px; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.co-shipcard .btn-link { height: auto; padding: 2px 4px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

.co-brick { min-height: 220px; }
.co-loading { display: flex; align-items: center; gap: 10px; padding: 24px 4px; font-size: 14.5px; color: var(--ink-2); }
.co-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent-fill); animation: co-spin .8s linear infinite; }
@keyframes co-spin { to { transform: rotate(360deg); } }
.co-secure { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); text-wrap: pretty; }
.co-secure .ph { flex: none; font-size: 15px; margin-top: 1px; }

.co-summary {
  padding: 32px 28px;
  background: var(--well);
  border-left: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .co-summary { background: var(--surface-2); } }
:root[data-theme="dark"] .co-summary { background: var(--surface-2); }
.co-sum-title { margin-bottom: 14px; font-size: 15px; font-weight: 600; }
.co-items { display: grid; gap: 12px; margin-bottom: 18px; }
.co-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14px; }
.co-item-img { position: relative; width: 52px; height: 52px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.co-item-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; mix-blend-mode: multiply; }
.co-item-img b {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--ink); color: var(--surface);
  font-size: 11.5px; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
}
.co-item-name { color: var(--ink); line-height: 1.35; }
.co-summary .sum-total { margin-bottom: 0 !important; }

.co-result { display: grid; justify-items: center; gap: 10px; padding: 12px 4px 4px; text-align: center; }
.co-result > .ph { font-size: 52px; }
.co-result.is-ok > .ph { color: var(--accent-text); }
.co-result.is-wait > .ph { color: var(--warn); }
.co-result.is-bad > .ph { color: var(--danger); }
.co-result h2 { font-size: 23px; font-weight: 600; letter-spacing: -.02em; outline: none; }
.co-result p { max-width: 42ch; color: var(--ink-2); font-size: 15px; text-wrap: pretty; }
.co-result-sub { font-size: 14px !important; color: var(--ink-3) !important; }
.co-result .btn { margin-top: 10px; }
.co-result-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.co-result-actions .btn { margin-top: 0; }

@media (max-width: 859px) {
  .co { grid-template-columns: 1fr; }
  .co-summary { order: -1; padding: 24px 20px 20px; border-left: 0; border-bottom: 1px solid var(--line); }
  .co-main { padding: 24px 20px 28px; }
  .co-title { font-size: 21px; }
  .co-items li { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .co-item-img { width: 44px; height: 44px; }
  .co-summary .co-sum-title { padding-right: 48px; }
}
@media (max-width: 479px) {
  .co-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .co-spin { animation-duration: 2s; } }
.co-field select:disabled { background-color: var(--well); color: var(--ink-3); cursor: not-allowed; opacity: 1; }
.btn-pay[hidden], .drawer-or[hidden] { display: none; }

/* Etiqueta de pasarela: Flow (Webpay) */
.mp-badge.pay-flow { color: #121715; box-shadow: 0 0 0 1px rgb(18 32 27 / .1), 0 1px 2px rgb(18 32 27 / .06), 0 6px 16px -10px rgb(18 32 27 / .3); }
.pay-flow .mp-mark { background: #457F10; }
.pay-flow .mp-mark .ph { font-size: 16px; color: #FFFFFF; }
.drawer-pay .pay-flow .mp-mark .ph { font-size: 13px; }
.pay-flow .mp-word { font-weight: 500; color: #47524D; }
.pay-flow .mp-word b { color: #121715; }

/* Espera mientras se paga en la ventana de Flow */
.co-wait { display: grid; justify-items: center; gap: 10px; padding: 28px 8px 18px; text-align: center; }
.co-wait h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
.co-wait p { max-width: 40ch; color: var(--ink-2); font-size: 15px; text-wrap: pretty; }
.co-spin-lg { width: 34px; height: 34px; border-width: 3px; margin-bottom: 6px; }
.co-wait-actions { display: grid; justify-items: center; gap: 6px; margin-top: 8px; }
.co-wait-actions .btn-link { height: 36px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
