/* Clave Mac — tienda. Mobile-first. Blanco, negro, grises y un acento azul discreto. */
@font-face {
  font-family: 'Instrument Sans';
  src: url('/static/fonts/InstrumentSans-Variable.woff2') format('woff2');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --ink: #1C1D1F;
  --ink-2: #44494F;
  --steel: #666B72;
  --mist: #F2F3F5;
  --canvas: #F1F2F4;
  --well: #F5F6F8;
  --stage: #F5F5F7;
  --mist-2: #E8EAED;
  --line: #D9DCE0;
  --accent: #2456A6;
  --ok: #1E6E45;
  --warn: #855600;
  --err: #B3261E;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --gutter: 16px;
  --wrap: 1200px;
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 650; font-stretch: 82%; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + 1vw, 1.75rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 0.9em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.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 { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--steel); }
.small { font-size: 0.875rem; }
.ok { color: var(--ok); font-weight: 600; }
.warn { color: var(--warn); font-weight: 600; }
.strike { text-decoration: line-through; color: var(--steel); font-weight: 400; margin-right: 6px; }
main { min-height: 60vh; outline: none; }
body.canvas { background: var(--canvas); }
.ico { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }

/* ---------- Avisos de sistema ---------- */
.demo-banner, .preview-banner { background: #FFF4D6; color: #3D2B00; font-size: 0.875rem; padding: 8px var(--gutter); text-align: center; border-bottom: 1px solid #F0DCA4; }
.review-flag { background: #FFF4D6; color: #3D2B00; padding: 10px 14px; border-radius: var(--r-sm); font-size: 0.9rem; }

/* ---------- Cabecera ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--mist-2); position: sticky; top: 0; z-index: 30; }
.site-header__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 60px; }
.site-nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo__mark { width: 20px; height: 28px; color: var(--ink); flex: none; }
.logo__word { font-weight: 700; font-stretch: 78%; font-size: 1.3rem; letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.logo img { height: 36px; width: auto; }
.search { display: flex; align-items: center; min-width: 0; background: var(--mist); border-radius: 999px; padding-left: 14px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 10px 0; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.search__btn { border: 0; background: transparent; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); cursor: pointer; border-radius: 999px; }
.search__btn svg { width: 22px; height: 22px; }
.cart-link { position: relative; width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); border-radius: 999px; }
.cart-link svg { width: 26px; height: 26px; }
.cart-link__count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 700; display: grid; place-items: center; }
.site-nav ul { list-style: none; margin: 0 auto; padding-top: 0; padding-bottom: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.site-nav ul::-webkit-scrollbar { display: none; }
@media (max-width: 759px) { .site-nav ul { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); } }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink-2); text-decoration: none; white-space: nowrap; font-size: 0.95rem; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"], .site-nav a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.delivery-strip { margin: 0; background: var(--mist); text-align: center; font-size: 0.85rem; padding: 6px var(--gutter); color: var(--ink-2); font-weight: 500; }

@media (max-width: 539px) {
  .site-header__bar { grid-template-columns: auto 1fr auto; min-height: 52px; gap: 6px 12px; }
  .logo__word { font-size: 1.1rem; }
  .search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 8px; }
  .search input { padding: 8px 0; }
  .search__btn { height: 40px; }
}
@media (max-width: 359px) {
  .logo__word { font-size: 1rem; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { filter: brightness(0.93); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #33363B; }
.btn--ghost:hover { background: var(--mist); }
.btn--light { background: #fff; color: var(--ink); }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 1.05rem; }
.btn--small { min-height: 40px; padding: 0 14px; font-size: 0.9rem; border-color: var(--line); background: #fff; color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Encabezados de página ---------- */
.page-head { padding-top: 24px; padding-bottom: 8px; }
.lead { font-size: 1.075rem; color: var(--ink-2); max-width: 65ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--steel); padding-top: 14px; }
.crumbs a { color: var(--steel); }

/* ---------- Inicio ---------- */
.hero { padding-top: 24px; padding-bottom: 4px; }
.hero__title { font-size: clamp(2.2rem, 1.4rem + 4.4vw, 4.4rem); font-stretch: 75%; font-weight: 700; letter-spacing: -0.02em; line-height: 0.98; max-width: 14ch; margin-bottom: 12px; }
.hero__lead { font-size: 1.075rem; color: var(--ink-2); max-width: 58ch; margin-bottom: 20px; }
.doors { display: grid; gap: 10px; }
.door { position: relative; overflow: hidden; display: grid; gap: 6px; padding: 20px; border-radius: var(--r-lg); text-decoration: none; min-height: 250px; align-content: end; isolation: isolate; }
.door--new { background: var(--ink); color: #fff; }
.door--used { background: #fff; color: var(--ink); border: 1px solid var(--mist-2); }
.door { padding-top: 132px; }
.door__art { position: absolute; z-index: -1; top: 8px; right: 4px; width: 132px; pointer-events: none; }
.door__art svg { width: 100%; height: auto; }
.door--new .door__art { opacity: 0.95; }
.door__kicker { font-size: 0.875rem; opacity: 0.8; }
.door__title { font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3rem); font-weight: 700; font-stretch: 75%; line-height: 1; letter-spacing: -0.015em; }
.door__text { max-width: 40ch; opacity: 0.9; }
.door__cta { font-weight: 600; text-decoration: underline; text-underline-offset: 0.25em; margin-top: 4px; }
.door:hover .door__cta { text-decoration-thickness: 2px; }
@media (min-width: 720px) {
  .doors { grid-template-columns: 1fr 1fr; gap: 14px; }
  .door { min-height: 300px; padding: 28px; }
  .door__art { top: 50%; transform: translateY(-50%); right: -10px; width: 46%; max-width: 280px; }
  .door__kicker, .door__title, .door__text, .door__cta { max-width: 58%; }
}

.banners { display: grid; gap: 12px; padding-top: 16px; }
.banner { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); color: var(--ink); text-decoration: none; min-height: 140px; }
.banner img { width: 100%; height: auto; aspect-ratio: 16 / 6; object-fit: cover; }
.banner__text { display: grid; gap: 6px; padding: 16px; }
.banner__text strong { font-size: 1.4rem; font-stretch: 80%; }

.section { padding-top: 36px; padding-bottom: 8px; }
.block { background: #fff; padding-top: 18px; padding-bottom: 18px; }
.wrap.block { margin-top: 12px; }
@media (min-width: 760px) { .wrap.block { border-radius: var(--r-lg); padding: 22px 24px; margin-top: 16px; } }
.block__title { font-size: 1.15rem; font-stretch: 85%; margin-bottom: 12px; }
.section__head h2 { margin-bottom: 14px; }
.section__head > a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.section__head > a::after { content: ' →'; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section__lead { color: var(--ink-2); max-width: 65ch; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding: 14px 16px; background: var(--well); border-radius: var(--r); display: flex; gap: 12px; align-items: flex-start; }
.checklist .ico { color: var(--ink-2); margin-top: 1px; }
@media (min-width: 900px) { .checklist { grid-template-columns: repeat(3, 1fr); } }
.facts { display: grid; gap: 12px; padding-top: 24px; padding-bottom: 40px; }
.facts > div { border-top: 2px solid var(--ink); padding-top: 12px; }
.facts .ico { width: 26px; height: 26px; margin-bottom: 6px; }
.facts h3 { font-size: 1.15rem; }
@media (min-width: 800px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Tarjetas de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 339px) { .grid { grid-template-columns: 1fr; } }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid #E8EAED; border-radius: 20px; padding: 8px; transition: border-color 0.15s; }
.card:hover { border-color: #C2C7CD; }
.card__link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
/* Todas las tarjetas usan el mismo escenario cuadrado; las fotos recortadas llegan ya normalizadas. */
.card__media { position: relative; background: var(--stage); border-radius: 14px; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card__media img.is-cutout { padding: 6%; transition: transform 0.25s ease; }
.card:hover .card__media img.is-cutout { transform: scale(1.03); }
.card__body { padding: 12px 6px 6px; display: grid; gap: 4px; }
.card__title { font-size: 1.1rem; margin: 0; font-stretch: 85%; overflow-wrap: anywhere; }
.card__link:hover .card__title { text-decoration: underline; }
.card__meta { margin: 0; color: var(--steel); font-size: 0.85rem; }
.card__swatches { margin: 2px 0; display: flex; gap: 4px; }
.card__swatches .sw { width: 14px; height: 14px; }
.card__ship { margin: 0; font-size: 0.8rem; color: var(--ok); font-weight: 600; }
.card__promo { padding: 6px 4px 2px; }
.tag { display: inline-block; width: fit-content; white-space: nowrap; font-size: 0.75rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--mist-2); color: var(--ink-2); }
.tag--new_sealed { background: var(--ink); color: #fff; }
.tag--used { background: var(--mist-2); color: var(--ink); }
.price { margin: 0; font-variant-numeric: tabular-nums; }
.price__from { color: var(--steel); font-size: 0.85rem; }
.price__value { font-weight: 700; font-size: 1.05rem; }
.price--ask { color: var(--ink-2); font-weight: 600; font-size: 0.95rem; }

/* Regalo: "+" + miniatura + "De regalo" */
.gift { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; max-width: 100%; }
.gift__plus { flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: 1rem; line-height: 1; }
.gift__thumb { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--mist); display: grid; place-items: center; overflow: hidden; border: 1px solid var(--mist-2); }
.gift__thumb img, .gift__thumb svg { width: 100%; height: 100%; object-fit: contain; }
.gift__thumb--lg { width: 88px; height: 88px; }
.gift__text { display: grid; line-height: 1.2; min-width: 0; }
.gift__text strong { font-size: 0.85rem; }
.gift__text span { font-size: 0.8rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.gift:hover .gift__text strong { text-decoration: underline; }
.promo-line { margin: 0; font-size: 0.85rem; font-weight: 600; }
.gift-ph { width: 100%; height: 100%; }

/* Ilustración referencial */
.ph { margin: 0; display: grid; place-items: center; gap: 8px; width: 100%; height: 100%; padding: 12px; }
.ph svg { width: 78%; max-width: 420px; height: auto; }
.ph__cap { font-size: 0.8rem; color: var(--steel); text-align: center; }
.ph figcaption { font-size: 0.8rem; color: var(--steel); text-align: center; }
.ph--compact svg { width: 60%; }

/* ---------- Catálogo ---------- */
.catalog { display: grid; gap: 16px; padding-bottom: 40px; }
.filters { border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.filters summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; min-height: 48px; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.filters[open] summary::after { transform: rotate(-135deg); }
.filters__form { padding: 0 16px 16px; display: grid; gap: 12px; }
.filters__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { background: var(--ink); color: #fff; border-radius: 999px; font-size: 0.75rem; padding: 1px 8px; }
.results__count { color: var(--steel); font-size: 0.9rem; }
@media (min-width: 960px) {
  .catalog { grid-template-columns: 270px 1fr; align-items: start; }
  .filters { position: sticky; top: 84px; }
}
.empty { text-align: center; padding: 40px 16px; background: var(--mist); border-radius: var(--r-lg); }
.canvas .empty { background: #fff; }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; min-width: 0; align-content: start; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--steel); font-size: 0.85rem; }
.field input, .field select, .field textarea, .qty-input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid #BFC4CA; border-radius: var(--r-sm); padding: 11px 12px; min-height: 48px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .qty-input:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--err); }
.field--compact { margin-bottom: 0; }
.hint { margin: 0; font-size: 0.85rem; color: var(--steel); }
.error-text { color: var(--err); font-size: 0.875rem; margin: 0; font-weight: 600; }
.field-row { display: grid; gap: 0 12px; align-items: end; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-row--tight { grid-template-columns: 1fr 1fr; }
.field-group { margin-bottom: 16px; }
.field-group__title { margin: 0 0 6px; font-weight: 600; font-size: 0.95rem; }
.field-group .field label { font-weight: 400; color: var(--steel); font-size: 0.875rem; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; padding: 6px 0; min-height: 44px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.check--error span { color: var(--err); }
.radio { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; cursor: pointer; margin-right: 16px; }
.radio input { width: 20px; height: 20px; accent-color: var(--accent); }
.radio--card { display: flex; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 0 0 8px; }
.radio--card span { display: grid; gap: 2px; }
.radio--card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-row { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 8px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 650; font-stretch: 85%; font-size: 1.2rem; margin-bottom: 12px; padding: 0; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; margin-bottom: 16px; }
fieldset.panel > legend { float: left; width: 100%; padding: 0; }
fieldset.panel > legend + * { clear: both; }
.lbl-short { display: none; }
.sub legend { font-size: 1rem; }

.notice { border-radius: var(--r); padding: 12px 14px; margin: 0 0 14px; border-left: 4px solid var(--ink); background: var(--mist); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.notice--error { border-left-color: var(--err); background: #FCEEEE; }
.notice--warning { border-left-color: #C08A00; background: #FFF6E0; }
.notice--success { border-left-color: var(--ok); background: #EAF5EF; }
.notice--info { border-left-color: var(--accent); background: #EDF2FA; }

/* ---------- Ficha de producto ---------- */
/* Página blanca; la foto vive sobre un escenario neutro de color uniforme. */
body.pdp-page { background: var(--paper); }
.pdp { display: grid; gap: 18px; padding-top: 8px; padding-bottom: 28px; }
.pdp__info { display: grid; gap: 18px; min-width: 0; align-content: start; }
.pdp__media { min-width: 0; }
@media (max-width: 1023px) {
  .wrap.pdp { padding-left: 0; padding-right: 0; }
  .pdp__info { padding-left: var(--gutter); padding-right: var(--gutter); }
}
@media (min-width: 1024px) {
  .pdp { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 56px; align-items: start; padding-top: 16px; }
  .pdp__media { position: sticky; top: 84px; }
}
.pdp__head { display: grid; gap: 6px; }
.pdp__head .tag { margin-bottom: 4px; }
.pdp__title { font-size: clamp(2rem, 1.45rem + 2vw, 3rem); font-stretch: 80%; font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin: 0; }
.pdp__config { margin: 0; font-size: 1.1rem; color: var(--ink-2); }
.pdp__subtitle { color: var(--steel); margin: 2px 0 0; }
.pdp__price { margin: 0; padding-bottom: 18px; border-bottom: 1px solid var(--mist-2); }
.price--lg .price__value { font-size: clamp(1.8rem, 1.45rem + 1.4vw, 2.35rem); font-stretch: 85%; letter-spacing: -0.01em; }
.price__was { color: var(--steel); font-size: 0.95rem; font-weight: 500; margin-left: 6px; }
.price__note { margin: 4px 0 0; color: var(--steel); font-size: 0.875rem; }

/* Galería: escenario neutro, deslizable con puntos en celular; miniaturas y lupa en computadora */
.gallery { display: grid; gap: 10px; }
.gallery__stage { position: relative; min-width: 0; background: var(--stage); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { flex: 0 0 100%; scroll-snap-align: start; border: 0; padding: 0; background: var(--stage); cursor: zoom-in; aspect-ratio: 4 / 5; overflow: hidden; display: grid; place-items: center; }
.gallery__item { position: relative; }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform 0.12s ease-out; }
.gallery__item.is-cutout img { padding: 3%; }
.gallery__item--ph { cursor: default; }
.gallery__item--ph .ph { padding: 24px; }
.gallery__item.is-lens img { transform: scale(2.1); }
.gallery__count { position: absolute; left: 12px; bottom: 12px; margin: 0; background: rgba(255, 255, 255, 0.92); border-radius: 999px; padding: 2px 10px; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.gallery__dots { display: flex; justify-content: center; gap: 6px; margin: 0; min-height: 8px; }
.gallery__dots span { width: 7px; height: 7px; border-radius: 999px; background: #CDD1D6; }
.gallery__dots span.is-on { background: var(--ink); width: 18px; }
.gallery__thumbs { display: none; list-style: none; margin: 0; padding: 0; }
.gallery__meta { display: grid; gap: 4px; padding: 0 var(--gutter); }
.gallery__hint { margin: 0; font-size: 0.8rem; color: var(--steel); }
.hint-mouse { display: none; }
.gallery__credit { margin: 0; font-size: 0.75rem; color: var(--steel); min-height: 1em; overflow-wrap: anywhere; }
.gallery__credit a, .gallery__credits a { color: var(--steel); }
.gallery__credits { font-size: 0.8rem; color: var(--ink-2); }
.gallery__credits summary { cursor: pointer; min-height: 36px; display: inline-flex; align-items: center; gap: 8px; list-style: none; text-decoration: underline; text-underline-offset: 3px; }
.gallery__credits summary::-webkit-details-marker { display: none; }
.gallery__credits summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.gallery__credits[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.gallery__credits ol { margin: 4px 0; padding-left: 18px; }
.gallery__note { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.credits { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.credits li { display: flex; gap: 12px; align-items: center; font-size: 0.9rem; overflow-wrap: anywhere; }
.credits__img { flex: none; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--stage); }
.credits__img img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 1024px) and (hover: hover) { .hint-touch { display: none; } .hint-mouse { display: inline; } }
.gallery--empty { background: var(--stage); aspect-ratio: 4 / 5; display: grid; place-items: center; }
.gallery--empty .ph { padding: 24px; }
.gallery--empty .ph svg, .gallery__item--ph .ph svg { width: 48%; max-width: 280px; }
@media (min-width: 1024px) {
  .gallery__stage, .gallery__item, .gallery--empty { border-radius: 28px; }
  .gallery__item, .gallery--empty { aspect-ratio: 1 / 1; }
  .gallery__stage { overflow: hidden; }
  .gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
  .gallery__thumb { display: block; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--stage); border: 1.5px solid transparent; }
  .gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
  .gallery__thumb.is-on { border-color: var(--ink); }
  .gallery__thumb:hover { border-color: #9AA0A6; }
  .gallery__dots { display: none; }
  .gallery__meta { padding: 0; }
}
@media (hover: none) { .gallery__item.is-lens img { transform: none; } }

/* Selectores: color en círculos, capacidad en tarjetas con precio y stock */
.buy { display: grid; gap: 18px; }
.swatches legend, .vcards legend, .chips legend, .units legend, .qty label { font-size: 1rem; font-stretch: 100%; font-weight: 650; margin-bottom: 10px; }
.swatches legend span, .vcards legend span { font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.swatches__row { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch-opt { position: relative; display: inline-grid; }
.swatch-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-opt__dot { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; cursor: pointer; border: 2px solid transparent; }
.swatch-opt__dot svg { width: 44px; height: 44px; }
.swatch-opt input:checked + .swatch-opt__dot { border-color: var(--ink); }
.swatch-opt input:focus-visible + .swatch-opt__dot { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatch-opt:hover .swatch-opt__dot { border-color: #9AA0A6; }
.swatch-opt input:checked + .swatch-opt__dot:hover { border-color: var(--ink); }
.swatch-opt__name { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vcards__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vcard { position: relative; min-width: 0; }
.vcard input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vcard__box { display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; height: 100%; }
.vcard__box:hover { border-color: #9AA0A6; }
.vcard__cap { font-weight: 700; font-size: 1.05rem; }
.vcard__price { font-variant-numeric: tabular-nums; font-size: 0.95rem; color: var(--ink-2); }
.vcard__state { font-size: 0.8rem; font-weight: 600; }
.vcard__state--ok { color: var(--ok); } .vcard__state--warn { color: var(--warn); } .vcard__state--err { color: var(--err); } .vcard__state--muted { color: var(--steel); font-weight: 500; }
.vcard input:checked + .vcard__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.vcard input:focus-visible + .vcard__box { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (min-width: 1280px) { .vcards__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Entrega, garantía, pago y devoluciones */
.perks { display: grid; gap: 14px; }
.perks__list { list-style: none; margin: 0; padding: 4px 16px; border: 1px solid var(--mist-2); border-radius: 18px; }
.perks__list li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.perks__list li + li { border-top: 1px solid var(--mist-2); }
.perks__list .ico { color: var(--ink); margin-top: 2px; }
.perks__list li > span { display: grid; gap: 1px; min-width: 0; }
.perks__list strong { font-size: 0.95rem; }
.perks__list li > span > span { font-size: 0.875rem; color: var(--ink-2); }
.deliv { background: var(--stage); border-radius: 18px; padding: 16px; }
.deliv__title { font-size: 1rem; font-stretch: 100%; margin: 0 0 10px; }
.deliv__check { margin-bottom: 10px; }
.deliv__check .field-row { margin-bottom: 8px; }
.deliv__check select { background: #fff; }
.deliv__result { margin: 0; background: #fff; border-radius: var(--r-sm); padding: 10px 12px; font-size: 0.92rem; }
.deliv__result.is-ok { background: #EAF5EF; color: #164D31; }
.deliv__seller { margin: 8px 0 0; font-size: 0.875rem; color: var(--ink-2); }

/* Debajo de la ficha: destacados y detalles */
.pdp-more { display: grid; gap: 8px; padding-bottom: 8px; }
.pdp-sec { padding-top: 28px; border-top: 1px solid var(--mist-2); }
.pdp-sec + .pdp-sec { margin-top: 20px; }
.pdp-sec__title { font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); font-stretch: 82%; margin-bottom: 16px; }
.hl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hl li { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 18px; background: var(--stage); min-width: 0; overflow-wrap: anywhere; }
.hl .ico { width: 28px; height: 28px; color: var(--ink); }
.hl__label { display: block; font-size: 0.8rem; color: var(--steel); margin-bottom: 2px; }
@media (min-width: 760px) { .hl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hl { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 2px; }
.tabs button { flex: none; font: inherit; font-size: 0.92rem; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.tabpanel + .tabpanel { margin-top: 16px; }
.tabpanel__title { font-size: 1rem; }
.is-tabbed .tabpanel + .tabpanel { margin-top: 0; }
.is-tabbed .tabpanel__title { display: none; }
.tabpanel { max-width: 920px; }
.spec-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.spec-grid > div { padding: 12px 0; border-bottom: 1px solid var(--mist-2); min-width: 0; }
.spec-grid dt { font-size: 0.8rem; color: var(--steel); }
.spec-grid dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 359px) { .spec-grid { grid-template-columns: 1fr; } }
.rail-block--plain { margin-top: 28px; }
.rail-block--plain::before { content: ''; display: block; border-top: 1px solid var(--mist-2); margin-bottom: 28px; }

/* Carriles horizontales */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 46%); gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 760px) { .rail { grid-auto-columns: minmax(0, 31%); gap: 14px; } }
@media (min-width: 1100px) { .rail { grid-auto-columns: minmax(0, 23.5%); } }
.rail--fam { grid-auto-columns: minmax(0, 40%); }
@media (min-width: 760px) { .rail--fam { grid-auto-columns: minmax(0, 23%); } }
@media (min-width: 1100px) { .rail--fam { grid-auto-columns: minmax(0, 15.6%); } }
.rail-block { margin-top: 16px; }
.fam { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--well); color: var(--ink); text-decoration: none; min-width: 0; }
.fam__art { height: 112px; display: grid; place-items: center; margin-bottom: 6px; }
.fam__art svg, .fam__art img { height: 112px; width: auto; max-width: 100%; object-fit: contain; }
.fam__name { font-weight: 700; font-stretch: 82%; font-size: 1.1rem; line-height: 1.1; }
.fam__meta { font-size: 0.78rem; color: var(--steel); }
.fam__price { font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.fam:hover .fam__name { text-decoration: underline; }

/* Accesorios */
.acc-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.acc-tile { display: grid; justify-items: center; gap: 2px; padding: 12px 8px 14px; border-radius: 14px; background: var(--well); color: var(--ink); text-decoration: none; text-align: center; height: 100%; }
.acc-tile__art { width: 100%; max-width: 132px; }
.acc-tile__art svg { width: 100%; height: auto; }
.acc-tile__name { font-weight: 700; font-stretch: 85%; font-size: 1.05rem; }
.acc-tile__text { font-size: 0.78rem; color: var(--steel); }
.acc-tile:hover .acc-tile__name { text-decoration: underline; }
.page-head + .wrap .acc-cats { margin-top: 16px; }
.empty--acc { background: #fff; }
.empty__art { width: 132px; margin: 0 auto 8px; }
.qchips { display: flex; gap: 8px; overflow-x: auto; padding-top: 4px; padding-bottom: 12px; scrollbar-width: none; }
.qchips::-webkit-scrollbar { display: none; }
.qchips a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: 0.92rem; }
.qchips a span { font-size: 0.75rem; color: var(--steel); }
.qchips a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.qchips a[aria-current="page"] span { color: #D9DCE0; }

.chips { margin: 0; }
.chips legend { font-size: 1rem; margin-bottom: 8px; }
.chip { display: inline-flex; margin: 0 6px 8px 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff; }
.chip input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip--unavailable span { color: var(--steel); text-decoration: line-through; }
.sw { width: 18px; height: 18px; flex: none; }
.variant-meta { color: var(--ink-2); font-size: 0.9rem; min-height: 1.5em; margin: -6px 0 0; }
.qty { max-width: 140px; margin: 0; }
.promo-box { background: var(--stage); border-radius: 18px; padding: 14px 16px; margin: 0; }
.promo-box details { margin-top: 8px; font-size: 0.9rem; }
.promo-box summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
.buy__actions { display: grid; gap: 10px; margin: 0; }
.buy__actions .btn { border-radius: 999px; min-height: 54px; font-size: 1.02rem; }
@media (min-width: 480px) { .buy__actions { grid-template-columns: 1fr 1fr; } .buy__price { grid-column: 1 / -1; } }
.buy__price { display: none; }
.ask { margin: 0; }
.units { display: grid; gap: 10px; margin: 0; }
.units legend { font-size: 1.05rem; }
.unit { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.unit:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.unit__pick { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; cursor: pointer; }
.unit__pick input { width: 20px; height: 20px; accent-color: var(--accent); }
.unit__main { display: grid; gap: 4px; min-width: 0; }
.unit__title { font-weight: 600; }
.unit__facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.85rem; color: var(--ink-2); }
.unit__price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.unit__more { border-top: 1px solid var(--line); padding: 0 14px 12px; }
.unit__more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.unit__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.unit__photos .gallery__item { flex: none; border-radius: var(--r-sm); }
.battery { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.battery__bar { width: 26px; height: 12px; border: 1.5px solid var(--ink); border-radius: 3px; padding: 1px; position: relative; display: inline-block; }
.battery__bar::after { content: ''; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; background: var(--ink); border-radius: 0 1px 1px 0; }
.battery__fill { display: block; height: 100%; background: var(--ink); border-radius: 1px; width: 0; }
.battery__fill--1 { width: 10%; } .battery__fill--2 { width: 20%; } .battery__fill--3 { width: 30%; } .battery__fill--4 { width: 40%; } .battery__fill--5 { width: 50%; }
.battery__fill--6 { width: 60%; } .battery__fill--7 { width: 70%; } .battery__fill--8 { width: 80%; } .battery__fill--9 { width: 90%; } .battery__fill--10 { width: 100%; }
.specs { margin: 0; display: grid; gap: 0; }
.specs > div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--mist-2); }
.specs dt { color: var(--steel); font-size: 0.9rem; }
.specs dd { margin: 0; overflow-wrap: anywhere; }
.inspection { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: 0.875rem; }
.insp { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--mist-2); }
.insp--ok span:last-child { color: var(--ok); font-weight: 600; }
.insp--fail span:last-child { color: var(--warn); font-weight: 600; }

/* Barra de compra fija en móvil (no tapa contenido: el body reserva espacio) */
@media (max-width: 959px) {
  body.has-sticky-buy { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
  .has-sticky-buy .buy__actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; margin: 0;
    background: #FFFFFF; border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(28, 29, 31, 0.06);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 8px;
  }
  .has-sticky-buy .buy__price { display: block; grid-column: 1 / -1; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1rem; }
  .has-sticky-buy .buy__actions .btn { min-height: 48px; padding: 0 10px; font-size: 0.95rem; }
}
@media (max-width: 359px) {
  .has-sticky-buy .buy__actions .lbl-long { display: none; }
  .has-sticky-buy .buy__actions .lbl-short { display: inline; }
}

/* Zoom */
.zoom { border: 0; padding: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; background: #0E0E0F; color: #fff; }
.zoom::backdrop { background: rgba(0, 0, 0, 0.85); }
.zoom__stage { width: 100%; height: calc(100% - 44px); overflow: auto; touch-action: pinch-zoom pan-x pan-y; display: grid; place-items: center; }
.zoom__stage img { width: 100%; max-width: 1400px; height: auto; cursor: zoom-in; }
.zoom__stage.is-zoomed { place-items: start; }
.zoom__stage.is-zoomed img { width: 220%; max-width: none; cursor: zoom-out; }
.zoom__close { position: fixed; top: max(10px, env(safe-area-inset-top)); right: 10px; z-index: 2; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.zoom__hint { margin: 0; text-align: center; font-size: 0.85rem; opacity: 0.8; padding: 10px; }

/* ---------- Carrito y checkout ---------- */
.cart, .checkout, .order { padding-bottom: 48px; }
.cart__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .cart__grid { grid-template-columns: 1fr 360px; align-items: start; } .cart__summary { position: sticky; top: 84px; } }
.cart__summary { background: var(--mist); border-radius: var(--r-lg); padding: 18px; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--mist-2); }
.line__img { width: 64px; height: 64px; background: var(--mist); border-radius: var(--r-sm); overflow: hidden; display: grid; place-items: center; }
.line__img img { width: 100%; height: 100%; object-fit: contain; }
.line__body { min-width: 0; }
.line__title { margin: 0 0 2px; font-weight: 600; }
.line__title a { color: var(--ink); text-decoration: none; }
.line__meta { margin: 0 0 4px; font-size: 0.875rem; color: var(--ink-2); }
.line__promo { margin: 0; font-size: 0.85rem; font-weight: 600; }
.line__gift { margin: 4px 0; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 8px; font-size: 0.875rem; }
.line__gift .gift__plus { width: 20px; height: 20px; font-size: 0.9rem; }
.line__gift--out { color: var(--steel); text-decoration: line-through; }
.line__price { grid-column: 2; font-variant-numeric: tabular-nums; }
.line__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.line--problem { background: #FFF7F6; }
.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.qty-input { width: 76px; min-height: 40px; padding: 6px 8px; }
@media (min-width: 560px) { .line { grid-template-columns: 72px 1fr auto; } .line__img { width: 72px; height: 72px; } .line__price { grid-column: auto; text-align: right; } }
.lines .line:not(:has(.line__img)) { grid-template-columns: 1fr auto; }
.totals { margin: 12px 0 16px; display: grid; gap: 6px; font-variant-numeric: tabular-nums; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; text-align: right; }
.totals__total { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; font-size: 1.15rem; }
.totals__total dt { color: var(--ink); }
.checkout__form { display: grid; gap: 16px; }
@media (min-width: 1000px) { .checkout__form { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .checkout__summary { position: sticky; top: 84px; } }
.checkout__summary h2 { font-size: 1.3rem; }
.consents { margin: 12px 0; }
.delivery-free { font-weight: 600; background: var(--mist); padding: 8px 12px; border-radius: var(--r-sm); display: inline-block; }
.delivery-options { margin-top: 6px; }
.pay-option { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 10px; cursor: pointer; }
.pay-option input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.pay-option span { display: grid; gap: 2px; }
.pay-option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-option--off { opacity: 0.7; cursor: not-allowed; background: var(--mist); }

/* ---------- Pedido ---------- */
.status-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.status { background: var(--mist); border-radius: var(--r); padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.status__label { font-size: 0.8rem; color: var(--steel); }
.status strong { font-size: 0.95rem; overflow-wrap: anywhere; }
@media (max-width: 420px) { .status-cards { grid-template-columns: 1fr; } }
.banks { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.bank { background: var(--mist); border-radius: var(--r); padding: 12px 14px; overflow-wrap: anywhere; }
.copy { font-variant-numeric: tabular-nums; font-weight: 600; cursor: copy; }
.copy.is-copied::after { content: ' Copiado'; color: var(--ok); font-size: 0.8rem; font-weight: 600; }
.mono-ref { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.timeline { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 0.9rem; }
.timeline time { color: var(--steel); display: block; font-size: 0.8rem; }
.voucher-form { margin-top: 12px; }
.cancel-form { margin: 8px 0 16px; }

/* ---------- Páginas de texto ---------- */
.prose-page { padding-top: 24px; padding-bottom: 48px; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.contact-list { display: grid; gap: 8px; margin: 16px 0 24px; max-width: 420px; }
.provider p { margin: 0 0 4px; }
.receipt { padding-top: 24px; padding-bottom: 48px; }
.promo-section { padding: 16px 0 28px; border-bottom: 1px solid var(--line); }
.gift-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.gift-detail { display: flex; gap: 14px; align-items: flex-start; }
.error-page { padding-bottom: 60px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #E9EBEE; margin-top: 48px; padding: 36px 0 calc(24px + env(safe-area-inset-bottom)); }
.site-footer a { color: #fff; }
.site-footer .logo, .site-footer .logo__mark { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 1rem; font-stretch: 90%; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.site-footer li a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.footer-brand p { color: #C9CDD2; max-width: 40ch; }
.social { display: flex !important; gap: 12px !important; }
.libro { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border: 1px solid #fff; border-radius: var(--r); text-decoration: none; font-weight: 600; min-height: 48px; }
.libro svg { width: 26px; height: 26px; }
.footer-legal { border-top: 1px solid #3A3D42; margin-top: 24px; padding-top: 16px; font-size: 0.8rem; color: #B9BEC4; }
.footer-legal p { margin-bottom: 6px; }

/* ---------- Impresión ---------- */
@media print {
  .site-header, .site-footer, .demo-banner, .no-print, .skip { display: none !important; }
  body { font-size: 12pt; }
  .panel { border: 1px solid #999; }
}

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