/* Bios Computer, prototipo v3. Tokens del spec §6. Móvil primero: 640, 768 y 1024 px. */

/* Integral CF solo para precios (kit web de Bios; confirmar que la licencia cubre uso web). */
@font-face { font-family: "Integral CF"; src: url("../fonts/IntegralCF-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Integral CF"; src: url("../fonts/IntegralCF-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --blue: #009DE1;
  --blue-700: #0077B6;
  --blue-800: #00669C;
  --navy: #0A2540;
  --ink: #0E1726;
  --ink-2: #344054;
  --muted: #667085;
  --line: #E4E7EC;
  --surface: #F6F7F9;
  --white: #FFFFFF;
  --ok: #067647;
  --ok-bg: #ECFDF3;
  --wa: #25D366;
  --wa-hover: #1FBE5B;
  --wa-ink: #0E1726;
  --sky: #E3F3FB;
  --wa-tint: #F2FCF6;
  --line-strong: #98A2B3;
  --danger: #B42318;
  --field: #E8F3FC;
  --tile-1: #E3F3FB;
  --tile-2: #BFE3F7;
  --tile-3: #66C2EA;
  --tile-4: #0077B6;
  --tile-5: #0A2540;
  --field-line: #BFE0F6;
  --danger-bg: #FEF3F2;

  --grad: linear-gradient(100deg, var(--blue-700), var(--navy));
  --grad-text: linear-gradient(90deg, var(--blue), var(--navy));

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-price: "Integral CF", "Poppins", system-ui, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --shadow-hover: 0 10px 26px rgb(10 37 64 / 0.20);
  --shadow-pop: 0 16px 40px rgb(14 23 38 / 0.12);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: 16px;
  --section: 48px;
  --masthead: 64px;
}

/* Degradado uniforme: interpolado en oklab donde el navegador lo admite. */
@supports (background: linear-gradient(in oklab 90deg, red, blue)) {
  :root {
    --grad: linear-gradient(in oklab 100deg, var(--blue-700), var(--navy));
    --grad-text: linear-gradient(in oklab 90deg, var(--blue), var(--navy));
  }
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 32px; --section: 64px; --masthead: 88px; }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--masthead) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 0.9375rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; }
[hidden] { display: none !important; }
main:focus { outline: none; }

/* Maquetación */
.wrap { width: 100%; max-width: calc(1320px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wide { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 100; padding: 8px 16px; border-radius: var(--radius-sm); background: var(--navy); color: var(--white); transform: translateY(-160%); }
.skip:focus { transform: none; }

/* Tipografía */
.h1 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
.h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; color: var(--navy); }
.h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
.eyebrow { font-size: 0.75rem; font-weight: 600; line-height: 1.4; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-700); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--blue-700); }
.link:hover { color: var(--blue-800); text-decoration: underline; text-underline-offset: 3px; }
code { font-size: 0.875em; }

/* Iconos */
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--fill { fill: currentColor; stroke: none; }

/* Botones y campos */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font-size: 0.9375rem; font-weight: 500; line-height: 1.2; white-space: nowrap; touch-action: manipulation; transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--blue-700); color: var(--white); }
.btn--primary:hover { background: var(--blue-800); }
.btn--outline { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink-2); }
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--surface); }
.btn--lg { min-height: 52px; padding: 14px 22px; font-size: 1rem; }
.btn--wa .icon { color: var(--wa); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.field { display: grid; align-content: start; gap: 6px; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-size: 1rem; font-weight: 400; color: var(--ink); }
.field input:focus-visible, .field select:focus-visible { border-color: var(--blue-700); outline-offset: 0; }
.field input[readonly] { background: var(--surface); }
.field small { font-size: 0.8125rem; font-weight: 400; color: var(--muted); }

/* Franja superior */
.topbar { background: var(--navy); color: rgb(255 255 255 / 0.85); font-size: 0.75rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar__stores { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; }
.topbar__aside { display: none; align-items: center; gap: 24px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.topbar a:hover { color: var(--white); }
@media (min-width: 768px) {
  .topbar { font-size: 0.8125rem; }
  .topbar__stores { column-gap: 24px; }
  .topbar__aside { display: flex; }
}

/* Barra principal */
.masthead { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--line); }
.masthead__inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; min-height: var(--masthead); }
.masthead__logo { flex: none; margin-right: auto; padding-block: 8px; }
.masthead__logo img { width: auto; height: 34px; }
.masthead__toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); }
.masthead__toggle:hover { background: var(--surface); }
.masthead__actions { display: none; }
.search { position: relative; display: none; align-items: center; }
.masthead.is-searching .search { display: flex; order: 5; flex-basis: 100%; margin-bottom: 12px; }
.search input { width: 100%; height: 48px; padding: 0 56px 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: 1rem; appearance: none; }
.search input::placeholder { color: var(--muted); }
.search input:focus-visible { border-color: var(--blue-700); outline-offset: 0; background: var(--white); }
.search button { position: absolute; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--blue-700); color: var(--white); }
.search button:hover { background: var(--blue-800); }
@media (min-width: 1024px) {
  .masthead__inner { flex-wrap: nowrap; column-gap: 32px; }
  .masthead__logo { margin-right: 0; }
  .masthead__logo img { height: 44px; }
  .masthead__toggle { display: none; }
  .search { display: flex; flex: 1; max-width: 640px; }
  .masthead__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
  .masthead__actions > a:not(.btn) { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; min-width: 96px; padding: 6px 8px; border-radius: var(--radius-sm); font-size: 0.75rem; font-weight: 500; color: var(--ink-2); }
  .masthead__actions > a:not(.btn):hover { background: var(--surface); color: var(--blue-700); }
  .masthead__actions .btn { margin-left: 8px; }
}

/* Categorías y marcas */
.catnav { background: var(--white); border-bottom: 1px solid var(--line); }
.catnav__inner { display: flex; align-items: center; gap: 12px; min-height: 52px; overflow-x: auto; scrollbar-width: none; }
.catnav__inner::-webkit-scrollbar { display: none; }
.catnav__list { display: flex; flex: none; align-items: center; }
.catnav__link { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; background: none; font-size: 0.9375rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.catnav__link:hover { color: var(--blue-700); }
.catnav__link[aria-current="page"]::after, .catnav__link[data-current]::after { content: ""; position: absolute; right: 12px; bottom: 4px; left: 12px; height: 2px; border-radius: 2px; background: var(--blue-700); }
.catnav__group { position: relative; }
.catnav__group > button { display: none; }
.catnav__menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 45; display: grid; min-width: 240px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-pop); transform-origin: top left; animation: menu-in 180ms var(--ease-out); }
.catnav__menu a { padding: 10px 12px; border-radius: 8px; color: var(--ink-2); }
.catnav__menu a:hover { background: var(--surface); color: var(--ink); }
.brands { display: flex; flex: none; align-items: center; padding-left: 12px; border-left: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: var(--ink); opacity: 0.65; transition: opacity 150ms ease; }
.brand:hover, .brand:focus-visible { opacity: 1; }
.brand svg { fill: currentColor; }
.brand span { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
@media (min-width: 1024px) {
  .catnav__inner { overflow: visible; }
  .catnav__group > button { display: inline-flex; }
  .catnav__group > .catnav__link--mobile { display: none; }
}
@media (min-width: 1200px) {
  .catnav__inner { justify-content: space-between; }
}

/* Panel lateral (menú móvil y filtros) */
.drawer { position: fixed; inset: 0 auto 0 0; width: min(88vw, 380px); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--white); color: var(--ink); overflow-y: auto; }
.drawer--right { inset: 0 0 0 auto; }
.drawer::backdrop { background: rgb(14 23 38 / 0.45); }
.drawer[open] { animation: drawer-left 280ms var(--ease-drawer); }
.drawer--right[open] { animation-name: drawer-right; }
.drawer__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); background: var(--white); }
.drawer__section { padding: 16px; border-bottom: 1px solid var(--line); }
.drawer__title { margin-bottom: 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.drawer__section a { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 1rem; }
.drawer__sub { padding-left: 16px; }
.drawer__sub a { min-height: 40px; font-size: 0.9375rem; color: var(--ink-2); }
.drawer__brands { display: flex; flex-wrap: wrap; gap: 4px; }
@keyframes drawer-left { from { transform: translateX(-100%); } }
@keyframes drawer-right { from { transform: translateX(100%); } }

/* Pie */
.footer { margin-top: var(--section); background: var(--navy); color: rgb(255 255 255 / 0.85); font-size: 0.875rem; }
/* Si la página ya termina en una sección gris, el pie va pegado: sin franja blanca en medio. */
main:has(> .section--surface:last-child) + .footer { margin-top: 0; }
.footer__inner { display: grid; gap: 32px; padding-block: 48px; }
.footer__logo { display: inline-block; padding: 12px 16px; border-radius: var(--radius); background: var(--white); }
.footer__logo img { width: auto; height: 40px; }
.footer__brand p { max-width: 36ch; margin-block: 16px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 0.2); border-radius: var(--radius-sm); color: var(--white); }
.footer__social a:hover { border-color: var(--white); }
.footer__title { margin-bottom: 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.footer li + li { margin-top: 8px; }
.footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer__hours { margin-top: 16px; }
.footer__hours b { display: block; font-weight: 500; color: var(--white); }
.footer__hours span { display: block; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 20px 88px; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.8125rem; }
@media (min-width: 768px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer__base { padding-bottom: 20px; }
}

/* WhatsApp flotante */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 56px; height: 56px; padding: 0 16px; border-radius: 999px; background: var(--wa); color: var(--wa-ink); font-weight: 600; box-shadow: 0 6px 16px rgb(14 23 38 / 0.2); transition: transform 160ms var(--ease-out), background-color 150ms ease; animation: float-in 500ms 600ms var(--ease-out) both; }
.wa-float span { display: none; }
.wa-float:hover { background: var(--wa-hover); }
.wa-float:active { transform: scale(0.95); }
.wa-float .icon { width: 26px; height: 26px; }
@keyframes float-in { from { opacity: 0; transform: translateY(16px) scale(0.9); } }
@media (min-width: 768px) {
  .wa-float span { display: inline; }
  .wa-float { padding: 0 20px 0 16px; }
}
@media (min-width: 1024px) {
  .wa-float { right: 24px; bottom: 24px; }
}

/* Secciones, rejilla y tarjeta de producto */
.section { padding-block: var(--section); }
.section--surface { background: var(--surface); }
.section:not(.section--surface) + .section:not(.section--surface) { padding-top: 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section__sub { margin-top: 4px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}
.grid > li { min-width: 0; }
.card { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.card__media { padding: 12px; }
.card__media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 0 14px 14px; }
.card__brand { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card__title { display: -webkit-box; overflow: hidden; font-size: 0.9375rem; font-weight: 500; line-height: 1.35; color: var(--ink); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card__title a:focus-visible { outline: none; }
.card__title a:focus-visible::after { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.card__specs { display: -webkit-box; overflow: hidden; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card__price { margin-top: auto; padding-top: 8px; font-size: 1.0625rem; color: var(--navy); }
.card__media { overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card__media img { transition: transform 400ms var(--ease-out); }
.card__actions { position: relative; z-index: 1; padding: 0 14px 14px; }
/* El botón se acorta según el ancho de la tarjeta, no de la pantalla: sirve igual en móvil y en la banda de CPU. */
.card { container-type: inline-size; }
@container (max-width: 220px) {
  .card__actions { padding: 0 10px 10px; }
  .card__actions .btn { gap: 6px; padding-inline: 10px; font-size: 0.875rem; }
  .card__cta-extra { display: none; }
}
.stock { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--ok); }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.75rem; font-weight: 500; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
  .card:hover .card__title { color: var(--blue-700); }
}

/* Avisos y migas de pan */
.notice { display: grid; justify-items: start; gap: 16px; padding-block: 48px; }
.notice p { max-width: 60ch; color: var(--ink-2); }
.notice .grid { width: 100%; margin-top: 16px; }
.crumbs { padding-block: 16px; font-size: 0.8125rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--line-strong); }
.crumbs a:hover { color: var(--blue-700); }
.crumbs [aria-current] { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .brand, .wa-float { transition: none; }
  .drawer[open], .catnav__menu { animation: none; }
}

/* Portada: carrusel mixto */
.hero { padding-top: 16px; }
.hero__track { position: relative; display: grid; grid-auto-columns: 100%; grid-auto-flow: column; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.hero__track::-webkit-scrollbar { display: none; }
.slide { min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.slide--laptop { display: grid; align-content: start; gap: 16px; padding: 20px; }
.slide__media { order: -1; display: grid; place-items: center; }
.slide__media img { width: 100%; max-width: 360px; max-height: 240px; aspect-ratio: 1; object-fit: contain; }
.slide__text { display: flex; flex-direction: column; min-width: 0; }
.slide__title { margin-top: 6px; font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.slide__title a { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide__buy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 16px; }
.slide__price { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--navy); }
.slide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 16px; }
.slide--banner a, .slide--banner picture { display: block; height: 100%; }
.slide--banner img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 768px) {
  .slide--laptop { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 32px; padding: 32px; }
  .slide__media { order: 0; }
  .slide__media img { max-width: 480px; max-height: none; }
}
@media (min-width: 1024px) {
  .hero { padding-top: 24px; }
  .slide--laptop { gap: 56px; min-height: 480px; padding: 40px 56px; }
}
.hero__controls { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.hero__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); transition: transform 160ms var(--ease-out), border-color 150ms ease; }
.hero__btn:hover { border-color: var(--ink-2); }
.hero__btn:active { transform: scale(0.95); }
.hero__dots { display: flex; align-items: center; }
.hero__dots button { position: relative; width: 24px; height: 44px; border: 0; background: none; }
.hero__dots button::before { content: ""; position: absolute; top: 50%; left: 50%; width: 20px; height: 8px; margin: -4px 0 0 -10px; border-radius: 999px; background: var(--line); transform: scaleX(0.4); transition: transform 200ms var(--ease-out), background-color 200ms ease; }
.hero__dots button[aria-current="true"]::before { background: var(--blue-700); transform: none; }

/* Ficha de especificaciones (carrusel y producto) */
.specs { border-top: 1px solid var(--line); }
.specs > div { display: grid; grid-template-columns: minmax(112px, 40%) minmax(0, 1fr); gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 0.875rem; font-weight: 600; line-height: 1.5; color: var(--navy); }
.specs dd { font-size: 0.9375rem; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.specs--hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; margin-top: 12px; border-top: 0; }
.specs--hero > div { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 6px; }
.specs--hero dt { font-size: 0.8125rem; }
.specs--hero dd { font-size: 0.875rem; }
@media (min-width: 768px) {
  .specs--hero { grid-template-columns: minmax(0, 1fr); margin-top: 20px; border-top: 1px solid var(--line); }
  .specs--hero > div { grid-template-columns: minmax(136px, 36%) minmax(0, 1fr); gap: 16px; padding-block: 8px; }
  .specs--hero dt { font-size: 0.8125rem; }
  .specs--hero dd { font-size: 0.9375rem; }
}

/* Franja de servicios */
.services { margin-top: 24px; border-block: 1px solid var(--line); background: var(--surface); }
.services__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-block: 20px; }
.services__list li { display: flex; align-items: flex-start; gap: 12px; }
.services__list .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--blue-700); }
.services__title { font-size: 0.875rem; font-weight: 600; line-height: 1.35; color: var(--navy); }
.services__text { font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }
@media (min-width: 1024px) {
  .services__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-block: 24px; }
}

/* Categorías */
.section__title { margin-bottom: 24px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.tile { display: grid; gap: 2px; height: 100%; padding: 12px 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color 150ms ease; }
.tile__media { display: block; margin-bottom: 10px; }
.tile__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.tiles > li:last-child:nth-child(odd) .tile__media img { aspect-ratio: 16 / 7; }
.tile__name { font-size: 1rem; font-weight: 600; color: var(--navy); }
.tile__count { font-size: 0.8125rem; color: var(--muted); }
@media (min-width: 768px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .tiles > li:last-child:nth-child(odd) { grid-column: auto; }
  .tiles > li:last-child:nth-child(odd) .tile__media img { aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) {
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
}
@media (hover: hover) and (pointer: fine) {
  .tile:hover { border-color: var(--blue-700); }
}

/* Banda de CPU refurbished: único fondo con degradado, texto blanco en todo el recorrido */
.band { padding-block: var(--section); background-color: var(--navy); background-image: var(--grad); color: var(--white); }
.band__inner { display: grid; gap: 32px; }
.band .h2 { color: var(--white); }
.band__eyebrow { color: var(--white); }
.band__intro > p { margin-top: 12px; }
.band__points { display: grid; gap: 8px; margin-block: 20px 24px; }
.band__points li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.grid--band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.band .card { color: var(--ink); }
@media (min-width: 1024px) {
  .band__inner { grid-template-columns: minmax(260px, 1fr) minmax(0, 3fr); align-items: center; gap: 48px; }
  .grid--band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tira continua de accesorios */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 90s) linear infinite; }
.marquee__list { display: flex; gap: 16px; padding: 4px 16px 4px 0; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.mini { display: grid; grid-template-rows: auto 1fr auto; gap: 4px; width: 184px; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.mini img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.mini__title { display: -webkit-box; overflow: hidden; font-size: 0.8125rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mini__price { font-size: 0.8125rem; color: var(--navy); }
.mini:hover .mini__title { color: var(--blue-700); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sucursales */
.stores { display: grid; gap: 16px; }
.store { display: grid; align-content: start; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); scroll-margin-top: calc(var(--masthead) + 16px); }
.store__map { height: 220px; background: var(--surface); }
.store__map iframe { display: block; width: 100%; height: 100%; border: 0; }
.store__body { display: grid; align-content: start; gap: 12px; padding: 24px; }
.store__name { font-size: 1.25rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
.store__name span { display: block; font-size: 0.875rem; font-weight: 400; color: var(--muted); }
.store__line { display: flex; gap: 8px; color: var(--ink-2); }
.store__line .icon { margin-top: 4px; color: var(--blue-700); }
.store__line a:hover { color: var(--blue-700); }
.store__hours { font-size: 0.875rem; }
.store__hours li { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; border-bottom: 1px solid var(--line); }
.store__hours li span:first-child { color: var(--muted); }
.store__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
@media (min-width: 768px) {
  .stores { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

/* Taller y financiamiento en la portada */
.duo { display: grid; gap: 16px; }
.duo__card { display: grid; align-content: start; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.duo__card p { color: var(--ink-2); }
.duo__card .btn { justify-self: start; }
@media (min-width: 768px) {
  .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; }
  .marquee__list[aria-hidden="true"] { display: none; }
  .hero__btn, .hero__dots button::before, .tile { transition: none; }
}

/* Listado */
.listing-intro { display: grid; gap: 12px; max-width: 54rem; margin: 8px 0 28px; }
.listing-intro__lead { color: var(--ink-2); }
.listing-intro__facts { margin-top: 4px; }
.listing-intro__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
@media (min-width: 768px) {
  .listing-intro__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
.listing__head { display: grid; gap: 16px; margin-bottom: 20px; }
.listing__count { margin-top: 4px; color: var(--muted); }
.listing__tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.select { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--muted); }
.select select { min-height: 44px; padding: 8px 40px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; font-size: 1rem; color: var(--ink); appearance: none; }
.listing__body { display: grid; gap: 24px; }
.filters--aside { display: none; }
.filters__group { min-width: 0; margin: 0; padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--line); }
.filters__group + .filters__group { padding-top: 16px; }
.filters__group legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.check { display: flex; clear: left; align-items: center; gap: 10px; min-height: 44px; font-size: 0.9375rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue-700); }
.check__count { margin-left: auto; font-size: 0.8125rem; color: var(--muted); }
.drawer__body { padding: 8px 16px 16px; }
.drawer__foot { position: sticky; bottom: 0; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--white); }
.drawer__foot .btn { width: 100%; }
.empty { display: grid; justify-items: start; gap: 12px; padding-block: 8px 24px; }
.empty .grid { width: 100%; }
.empty__title { margin-top: 24px; }
@media (min-width: 1024px) {
  .listing__head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .listing__filters-btn { display: none; }
  .listing__body { grid-template-columns: 264px minmax(0, 1fr); align-items: start; gap: 32px; }
  .filters--aside { position: sticky; top: calc(var(--masthead) + 16px); display: block; max-height: calc(100dvh - var(--masthead) - 32px); overflow-y: auto; padding-right: 8px; }
  .grid--listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Ficha de producto */
.product__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.gallery { display: grid; align-content: start; gap: 12px; min-width: 0; }
.gallery__main { display: block; width: 100%; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: zoom-in; }
.gallery__main img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery__thumbs button { width: 72px; height: 72px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.gallery__thumbs button[aria-pressed="true"] { outline: 2px solid var(--blue-700); outline-offset: -2px; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product__info { display: grid; align-content: start; gap: 16px; min-width: 0; }
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.product__sku { margin-left: auto; font-size: 0.75rem; color: var(--muted); }
.product__title { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
.product__summary { font-size: 0.9375rem; font-weight: 500; line-height: 1.55; color: var(--ink-2); }
.product__ref { font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }
.buybox { display: grid; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.product__price { margin-bottom: 4px; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: 1.1; }
.buybox__pay { font-size: 0.8125rem; text-align: center; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8125rem; font-weight: 500; }
.chip--yes { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.chip--no { background: var(--surface); color: var(--muted); }
.assurances { display: grid; gap: 12px; }
.assurances li { display: flex; gap: 12px; }
.assurances .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--blue-700); }
.assurances b { display: block; font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.assurances span { font-size: 0.8125rem; color: var(--muted); }
@media (min-width: 640px) {
  .assurances { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .product__top { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 48px; }
  .gallery { position: sticky; top: calc(var(--masthead) + 16px); }
}

/* Cómo comprar: son pasos reales en orden, por eso van numerados */
.howto { margin-top: var(--section); }
.howto__steps { display: grid; gap: 16px; margin-top: 24px; counter-reset: paso; }
.howto__steps > li { display: grid; align-content: start; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); counter-increment: paso; }
.howto__steps > li::before { content: counter(paso); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 600; }
.howto__steps h3 { font-size: 1.0625rem; font-weight: 600; color: var(--navy); }
.howto__steps p { color: var(--ink-2); }
@media (min-width: 768px) {
  .howto__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* Pestañas de la ficha: el indicador se desliza con transform y el panel entra con un leve desplazamiento */
.tabs { margin-top: var(--section); }
.tabs__list { position: relative; display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { flex: none; min-height: 52px; padding: 0 16px; border: 0; background: none; font-size: 0.9375rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color 150ms ease; }
.tabs__tab:hover, .tabs__tab[aria-selected="true"] { color: var(--navy); }
.tabs__tab:focus-visible { outline-offset: -4px; }
.tabs__indicator { position: absolute; bottom: 0; left: 0; width: 100px; height: 3px; border-radius: 3px; background: var(--blue-700); transform-origin: left; transition: transform 320ms var(--ease-out); }
.tabs__panel { padding-top: 24px; }
.tabs__panel:focus-visible { outline-offset: 4px; }
.tabs__panel:not([hidden]) { animation: panel-in 320ms var(--ease-out); }
.tabs__panel .specs { max-width: 820px; }
.tabs__panel .howto__steps { margin-top: 0; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.warranty { display: flex; gap: 16px; max-width: 720px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.warranty__icon { width: 32px; height: 32px; color: var(--blue-700); }
.warranty p { margin-top: 8px; color: var(--ink-2); }
.warranty__actions { margin-top: 16px; }
.warranty__actions .btn { justify-self: start; }

/* Carta de garantía refurbished */
.policy { display: grid; gap: 16px; max-width: 48rem; margin: 0; padding: 0; list-style: none; }
.policy__section { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.policy__section h2 { margin-bottom: 8px; }
.policy__section p, .policy__section li { color: var(--ink-2); }
.policy__section ul { display: grid; gap: 6px; padding-left: 18px; list-style: disc; }
.policy__notes { max-width: 48rem; margin-top: 24px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.policy__notes ul { display: grid; gap: 8px; margin-top: 8px; padding-left: 18px; list-style: disc; color: var(--ink-2); }
.policy__thanks { max-width: 48rem; margin-top: 20px; color: var(--ink-2); }
.policy__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Preguntas frecuentes */
.faq__list { max-width: 820px; border-top: 1px solid var(--line); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding-block: 12px; font-weight: 500; cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .icon { transition: transform 200ms var(--ease-out); }
.faq__list details[open] summary .icon { transform: rotate(180deg); }
.faq__list details[open] p { animation: panel-in 260ms var(--ease-out); }
.faq__list details p { max-width: 65ch; padding-bottom: 16px; color: var(--ink-2); }
.related { margin-top: var(--section); }

/* Imagen ampliada */
.lightbox { width: min(92vw, 960px); max-height: 92dvh; padding: 16px; border: 0; border-radius: var(--radius); background: var(--white); }
.lightbox::backdrop { background: rgb(14 23 38 / 0.6); }
.lightbox[open] { animation: lightbox-in 200ms var(--ease-out); }
.lightbox__close { margin-left: auto; background: var(--surface); }
.lightbox img { width: 100%; max-height: calc(92dvh - 92px); object-fit: contain; }
@keyframes lightbox-in { from { opacity: 0; transform: scale(0.98); } }

@media (prefers-reduced-motion: reduce) {
  .faq__list summary .icon, .tabs__indicator { transition: none; }
  .lightbox[open], .tabs__panel:not([hidden]), .faq__list details[open] p { animation: none; }
}

/* Páginas de servicio */
.page-head { padding-block: 16px 24px; }
.page-head .h1 { margin-top: 8px; }
.page-head > p:not(.eyebrow) { max-width: 60ch; margin-top: 12px; font-size: 1rem; color: var(--ink-2); }
.page-note { margin-top: 24px; color: var(--muted); }
.section__title + .howto__steps { margin-top: 0; }
@media (min-width: 1024px) {
  .howto__steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Taller */
.track-card { display: grid; gap: 16px; max-width: 760px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.track-form { display: grid; gap: 12px; }
.track__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.timeline { display: grid; margin-block: 16px; }
.timeline li { position: relative; display: grid; gap: 2px; padding: 0 0 20px 32px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 0; width: 16px; height: 16px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); }
.timeline li::after { content: ""; position: absolute; top: 24px; bottom: 0; left: 7px; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline .is-done { color: var(--ink-2); }
.timeline .is-done::before { border-color: var(--ok); background: var(--ok); }
.timeline .is-current { font-weight: 600; color: var(--ink); }
.timeline .is-current::before { border-width: 5px; border-color: var(--blue-700); }
.timeline__date { font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
.badge--ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.track { display: grid; gap: 12px; }
.track__customer { font-size: 0.875rem; color: var(--muted); }
.track__meta { border-top: 1px solid var(--line); }
.track__meta > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.track__meta dt { font-size: 0.8125rem; color: var(--muted); }
.track__meta dd { font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.track__trouble { font-size: 0.875rem; color: var(--ink-2); }
.track__price { margin-top: 4px; }
.track--empty .btn { justify-self: start; }
.info-grid { display: grid; gap: 16px; }
.info-card { display: grid; align-content: start; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.info-card h3 { font-size: 1.0625rem; font-weight: 600; color: var(--navy); }
.info-card p { color: var(--ink-2); }
.policies__title { margin-top: 32px; }
.policies { display: grid; gap: 8px; max-width: 70ch; margin-top: 12px; padding-left: 20px; list-style: disc; color: var(--ink-2); }
@media (min-width: 640px) {
  .track-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
}
@media (min-width: 768px) {
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 1024px) {
  .info-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Financiamiento */
.loan { display: grid; gap: 24px; }
.loan__aside { display: grid; align-content: start; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.loan__reqs { display: grid; gap: 8px; }
.loan__reqs li { display: flex; gap: 8px; color: var(--ink-2); }
.loan__reqs .icon { margin-top: 4px; color: var(--ok); }
.loan__label { margin: 8px 0; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.loan__form { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.stepper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.stepper li { display: grid; align-content: start; gap: 6px; font-size: 0.75rem; font-weight: 500; line-height: 1.3; color: var(--muted); }
.stepper li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.stepper .is-done::before, .stepper [aria-current="step"]::before { background: var(--blue-700); }
.stepper [aria-current="step"] { color: var(--ink); }
.loan__step { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.loan__step legend { padding: 0; }
.loan__fields { display: grid; gap: 16px; }
.loan__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.review > div { display: grid; grid-template-columns: minmax(120px, 40%) minmax(0, 1fr); gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.review dt { color: var(--muted); }
.review dd { overflow-wrap: anywhere; }
.alert { padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink-2); }
@media (min-width: 640px) {
  .loan__form { padding: 32px; }
  .loan__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loan__fields .field--full { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .loan { grid-template-columns: 320px minmax(0, 1fr); align-items: start; gap: 48px; }
  .loan__aside { position: sticky; top: calc(var(--masthead) + 16px); }
}

/* Precios en Integral CF */
.price { font-family: var(--font-price); font-weight: 800; letter-spacing: 0.01em; font-synthesis: none; }

/* WhatsApp como acción principal */
.btn--whatsapp { background: var(--wa); color: var(--wa-ink); font-weight: 600; }
.btn--whatsapp:hover { background: var(--wa-hover); }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; flex: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); transition: background-color 150ms ease, transform 160ms var(--ease-out); }
.icon-btn:hover { background: var(--surface); }
.icon-btn:active { transform: scale(0.95); }

/* Selector de sucursal para WhatsApp */
.wa-chooser { width: min(92vw, 440px); max-width: none; padding: 0; border: 0; border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-pop); }
.wa-chooser::backdrop { background: rgb(14 23 38 / 0.5); }
.wa-chooser[open] { animation: chooser-in 260ms var(--ease-out); }
.wa-chooser[open]::backdrop { animation: fade-in 260ms ease; }
.wa-chooser__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 12px 4px 24px; }
.wa-chooser__note { margin-top: 4px; font-size: 0.875rem; color: var(--muted); }
.wa-chooser__list { display: grid; gap: 10px; padding: 12px 24px 24px; }
.wa-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon text chevron" "icon tag chevron"; align-items: center; column-gap: 14px; row-gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); }
.wa-option:hover { border-color: var(--wa); background: var(--wa-tint); }
.wa-option:active { transform: scale(0.98); }
.wa-option.is-suggested { border-color: var(--wa); }
.wa-option__icon { grid-area: icon; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: var(--wa); color: var(--wa-ink); }
.wa-option__text { grid-area: text; display: grid; }
.wa-option__city { font-weight: 600; color: var(--navy); }
.wa-option__place { font-size: 0.8125rem; color: var(--muted); }
.wa-option__tag { grid-area: tag; justify-self: start; padding: 2px 8px; border-radius: 999px; background: var(--ok-bg); font-size: 0.75rem; font-weight: 600; color: var(--ok); }
.wa-option__chevron { grid-area: chevron; color: var(--muted); }
@keyframes chooser-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }

/* Banners de temporada estilo Amazon: se editan en data/promos.json */
.promos { padding-top: 24px; }
.promos__wrap { position: relative; }
.promos__track { display: grid; grid-auto-columns: minmax(260px, 82%); grid-auto-flow: column; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.promos__track::-webkit-scrollbar { display: none; }
.promo { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 430px; padding: 20px; border-radius: 20px; scroll-snap-align: start; transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out); }
.promo--navy { background: var(--navy); color: var(--white); }
.promo--blue { background: var(--blue-700); color: var(--white); }
.promo--grad { background-color: var(--navy); background-image: var(--grad); color: var(--white); }
.promo--sky { background: var(--sky); color: var(--navy); }
.promo--white { border: 1px solid var(--line); background: var(--white); color: var(--navy); }
.promo__eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.promo__title { font-size: 1.625rem; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.promo__tiles { display: grid; flex: 1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.promo--single .promo__tiles { grid-template-columns: minmax(0, 1fr); }
.promo__tile { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 0; padding: 10px 10px 30px; border-radius: 12px; background: var(--white); }
.promo__tile img { width: 100%; height: 100%; max-height: 110px; object-fit: contain; transition: transform 400ms var(--ease-out); }
.promo--single .promo__tile img { max-height: 210px; }
.promo__price { position: absolute; bottom: 8px; left: 8px; padding: 4px 8px; border-radius: 6px; background: var(--navy); color: var(--white); font-size: 0.6875rem; }
.promo--navy .promo__price, .promo--grad .promo__price { background: var(--blue-700); }
.promo--single .promo__price { padding: 6px 10px; font-size: 0.9375rem; }
.promo--white .promo__tile { border: 1px solid var(--line); }
.promo__name { font-size: 0.875rem; font-weight: 500; }
.promo__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; }
.promo--sky .promo__cta { color: var(--navy); }
.promo--white .promo__cta { color: var(--blue-700); }
.promo__badge { position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 999px; background: var(--white); color: var(--navy); font-size: 0.75rem; font-weight: 700; }
.promos__btn { position: absolute; top: 50%; z-index: 2; display: none; place-items: center; width: 44px; height: 64px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); box-shadow: var(--shadow-hover); transform: translateY(-50%); transition: opacity 150ms ease; }
.promos__btn--prev { left: calc(var(--gutter) - 14px); }
.promos__btn--next { right: calc(var(--gutter) - 14px); }
.promos__btn:disabled { opacity: 0; pointer-events: none; }
@media (min-width: 640px) {
  .promos__track { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (min-width: 1024px) {
  .promos { padding-top: 32px; }
  .promos__track { grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; }
  .promos__btn { display: grid; }
}
@media (hover: hover) and (pointer: fine) {
  .promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
  .promo:hover .promo__tile img { transform: scale(1.05); }
  .card:hover .card__media img { transform: scale(1.04); }
}

/* Asesoría por WhatsApp */
.advice { padding-bottom: var(--section); }
.advice + .section { padding-top: 0; }
.advice__box { display: grid; justify-items: center; gap: 12px; padding: 40px 24px; border-radius: 24px; background: var(--navy); color: var(--white); text-align: center; }
.advice__box .h2 { color: var(--white); }
.advice__box p:not(.eyebrow) { max-width: 52ch; color: rgb(255 255 255 / 0.9); }
.advice__eyebrow { color: var(--blue); }
.advice__box .btn { margin-top: 8px; }
@media (min-width: 1024px) {
  .advice__box { padding: 56px; }
}

/* Entrada de secciones y tarjetas (backwards: sin fijar estilos al terminar, así el hover sigue animando) */
[data-reveal]:not(.is-revealed) { opacity: 0; }
@media print {
  [data-reveal]:not(.is-revealed) { opacity: 1; }
}
[data-reveal].is-revealed { animation: reveal 700ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } }

/* Diapositiva que entra: texto escalonado y foto que crece un poco */
.slide--laptop .slide__text > *, .slide--laptop .slide__media img { transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-out); }
.slide--laptop:not(.is-active) .slide__text > * { opacity: 0; transform: translateX(24px); }
.slide--laptop:not(.is-active) .slide__media img { opacity: 0; transform: scale(0.94); }
.slide--laptop.is-active .slide__text > :nth-child(2) { transition-delay: 60ms; }
.slide--laptop.is-active .slide__text > :nth-child(3) { transition-delay: 120ms; }
.slide--laptop.is-active .slide__text > :nth-child(4) { transition-delay: 180ms; }
.slide--laptop.is-active .slide__text > :nth-child(5) { transition-delay: 240ms; }
.slide--laptop.is-active .slide__media img { transition-delay: 80ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal]:not(.is-revealed) { opacity: 1; }
  [data-reveal].is-revealed { animation: none; }
  .slide--laptop:not(.is-active) .slide__text > *, .slide--laptop:not(.is-active) .slide__media img { opacity: 1; transform: none; }
  .slide--laptop .slide__text > *, .slide--laptop .slide__media img { transition: none; }
  .wa-float, .wa-chooser[open], .wa-chooser[open]::backdrop { animation: none; }
  .promo, .promo__tile img, .card__media img, .wa-option, .icon-btn { transition: none; }
}

/* ================= Ronda 3 y 4 ================= */

/* Carga: esqueletos que ocupan el sitio del contenido real y fotos que entran con un fundido */
.skeleton { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, rgb(255 255 255 / 0), rgb(255 255 255 / 0.7), rgb(255 255 255 / 0)); animation: shimmer 1.4s infinite; }
.skeleton--media { aspect-ratio: 1; margin-bottom: 4px; }
.skeleton--line { height: 12px; }
.skeleton--title { height: 32px; margin-bottom: 8px; }
.skeleton--cta { height: 44px; margin-top: 8px; border-radius: var(--radius-sm); }
.skeleton--hero { height: 240px; margin-bottom: 24px; border-radius: var(--radius); }
.skeleton--gallery { aspect-ratio: 1; border-radius: var(--radius); }
.skeleton--box { height: 180px; border-radius: var(--radius); }
.card--ghost { display: grid; gap: 8px; height: 100%; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.chrome-skeleton__top { height: 40px; background: var(--navy); }
.chrome-skeleton__bar { display: flex; align-items: center; gap: 16px; height: var(--masthead); border-bottom: 1px solid var(--line); }
.chrome-skeleton__logo { width: 148px; height: 40px; }
.chrome-skeleton__search { flex: 1; max-width: 360px; height: 44px; }
.chrome-skeleton__pill { width: 132px; height: 44px; margin-left: auto; border-radius: 999px; }
.loading-row { display: flex; align-items: center; justify-content: center; gap: 10px; padding-block: 24px; font-size: 0.875rem; color: var(--muted); }
.loading-row .icon { color: var(--blue-700); }
.loading-row__dots { display: inline-flex; gap: 4px; }
.loading-row__dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--blue-700); animation: dot 1.2s infinite; }
.loading-row__dots i:nth-child(2) { animation-delay: 0.15s; }
.loading-row__dots i:nth-child(3) { animation-delay: 0.3s; }
.more { display: grid; }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes dot { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }
/* La foto aparece cuando termina de bajar, no antes: nada de saltos ni marcos vacíos. */
.js img[loading="lazy"], .js .gallery__main img { transition: opacity 400ms var(--ease-out); }
.js img[loading="lazy"]:not(.is-loaded) { opacity: 0; }
@media print { .js img[loading="lazy"]:not(.is-loaded) { opacity: 1; } }

/* Buscador más pequeño, pegado al logo y con interruptor para esconderlo */
.masthead__search-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink); }
.masthead__search-toggle:hover { background: var(--surface); }
@media (min-width: 1024px) {
  .search { flex: 1 1 340px; max-width: 340px; }
  .masthead__inner { column-gap: 12px; }
  .masthead__search-toggle { margin-left: 0; }
  .masthead__actions { margin-left: auto; }
}

/* Marca con selector de tipo de equipo */
.brand-pick { position: relative; }
.brand-pick .brand[aria-expanded="true"] { opacity: 1; }
.brand__menu { right: 0; left: auto; min-width: 232px; }
.brand__menu-title { padding: 4px 12px 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.brand__menu a { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.brand__menu .icon { color: var(--blue-700); }
.brand__count { margin-left: auto; font-size: 0.8125rem; color: var(--muted); }
.topbar__hours { display: none; align-items: center; gap: 6px; }
@media (min-width: 1200px) { .topbar__hours { display: inline-flex; } }

/* Diapositivas de promoción: fondo propio según el banner y foto que rota */
.slide--promo { display: grid; align-content: center; gap: 20px; padding: 28px 24px; border-radius: var(--radius); }
.slide--promo .slide__title { color: inherit; }
.slide--promo .eyebrow { color: inherit; opacity: 0.85; }
.slide__lead { max-width: 52ch; font-size: 0.9375rem; line-height: 1.6; opacity: 0.9; }
.slide--navy { background: var(--navy); color: var(--white); }
.slide--grad { background: var(--grad); color: var(--white); }
.slide--sky { background: var(--sky); color: var(--navy); }
.slide--sky .btn--light { background: var(--navy); color: var(--white); }
.slide--sky .btn--light:hover { background: var(--ink); }
.slide__media--shot { position: relative; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 16px; border-radius: var(--radius); background: var(--white); }
.slide__media--shot img { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: contain; }
.slide__tag { display: grid; gap: 2px; justify-items: center; text-align: center; color: var(--ink); }
.slide__tag b { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.slide__tag .price { font-size: 1.125rem; }
@media (min-width: 768px) {
  .slide--promo { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); align-items: center; gap: 32px; padding: 40px; }
}

/* Listado: panel de filtros más estrecho y plegable */
.listing__collapse { display: none; }
.btn--ghost { border: 1px solid transparent; background: var(--surface); color: var(--ink-2); }
.btn--ghost:hover { background: var(--line); }
@media (min-width: 1024px) {
  .listing__collapse { display: inline-flex; }
  .listing__body { grid-template-columns: 224px minmax(0, 1fr); gap: 24px; }
  .listing__body.is-collapsed { grid-template-columns: minmax(0, 1fr); }
  .listing__body.is-collapsed .filters--aside { display: none; }
  .listing__body.is-collapsed .grid--listing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Ficha: especificaciones a la vista y equipos parecidos debajo, todo en la columna izquierda */
.product__main { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 24px; min-width: 0; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.panel__title { margin-bottom: 4px; }
.specs--full > div { grid-template-columns: minmax(0, 1fr); }
.gallery__note { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); font-size: 0.875rem; color: var(--ink-2); }
.product__main .tabs, .product__main .related { margin-top: 0; }
.product__main .related .section__title { margin-bottom: 4px; }
@media (min-width: 640px) {
  .specs--full > div { grid-template-columns: 200px minmax(0, 1fr); }
  .grid--related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .gallery { position: static; }
  .product__info { position: sticky; top: calc(var(--masthead) + 16px); }
  .gallery__main img { max-height: 58dvh; }
}

/* Envíos por BM Cargo */
.ship { display: grid; gap: 16px; margin-top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ship__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--sky); color: var(--blue-800); }
.ship__body { display: grid; gap: 12px; }
.ship__body > p { max-width: 70ch; color: var(--ink-2); }
.ship__points { display: grid; gap: 8px; }
.ship__points li { display: flex; gap: 8px; font-size: 0.9375rem; color: var(--ink-2); }
.ship__points .icon { flex: none; margin-top: 4px; color: var(--ok); }
.ship .btn { justify-self: start; }
.store__closed { display: flex; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.store__closed .icon { flex: none; margin-top: 2px; }
@media (min-width: 768px) {
  .ship { grid-template-columns: auto minmax(0, 1fr); gap: 20px; padding: 32px; }
}

/* Taller: portada de servicio */
.shop { padding-block: 8px 32px; }
.shop__inner { display: grid; gap: 24px; align-items: start; }
.shop__intro { display: grid; align-content: start; gap: 12px; }
.shop__lead { max-width: 56ch; font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.shop__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.shop__facts { display: grid; gap: 14px; margin-top: 8px; }
.shop__facts li { display: flex; gap: 12px; }
.shop__facts .icon { flex: none; width: 24px; height: 24px; margin-top: 2px; color: var(--blue-700); }
.shop__facts b { display: block; font-size: 0.9375rem; font-weight: 600; color: var(--navy); }
.shop__facts span { font-size: 0.875rem; color: var(--muted); }
.info-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--sky); color: var(--blue-800); }
.info-card__icon .icon { width: 22px; height: 22px; }
.policies__box { max-width: 720px; margin-top: 32px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.policies__box .policies { margin-top: 12px; }
.policies__hours { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
@media (min-width: 768px) {
  .info-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .shop__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; }
  .info-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Financiamiento: pasos numerados, campos con aviso y barra inferior */
.loan__step-count { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-700); }
.loan__step-note { margin-bottom: 4px; color: var(--muted); }
.loan__foot { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.loan__note { font-size: 0.8125rem; color: var(--muted); }
.loan__nav { display: flex; flex-wrap: wrap; gap: 10px; }
.loan__nav .btn { flex: 1 1 auto; justify-content: center; }
.field.is-invalid input, .field.is-invalid select { border-color: var(--danger); background: var(--danger-bg); }
.field__error { color: var(--danger); }
.pick-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.pick-card img { width: 84px; height: 84px; object-fit: contain; }
.pick-card__brand { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pick-card__title { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
.pick-card__specs { font-size: 0.8125rem; color: var(--muted); }
.pick-card__price { margin-top: 4px; font-size: 1.125rem; }
@media (min-width: 640px) {
  .loan__foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .loan__nav .btn { flex: none; }
}

/* Garantías por tipo de artículo */
.warranty-groups { display: grid; gap: 16px; }
.warranty-card { display: grid; align-content: start; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.warranty-card .warranty__icon { width: 28px; height: 28px; }
.warranty-card__term { font-size: 1.0625rem; font-weight: 600; color: var(--blue-800); }
.warranty-card__notes { display: grid; gap: 6px; padding-left: 18px; list-style: disc; color: var(--ink-2); }
.warranty-list { border-top: 1px solid var(--line); }
.warranty-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.warranty-list dt { font-weight: 500; color: var(--ink); }
.warranty-list dd { font-size: 0.875rem; font-weight: 600; color: var(--blue-800); white-space: nowrap; }
@media (min-width: 768px) {
  .warranty-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .warranty-list { columns: 2; column-gap: 40px; }
  .warranty-list > div { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after, .loading-row__dots i { animation: none; }
  .js img[loading="lazy"] { transition: none; }
}

/* Pasos numerados y unidos por una línea: se ve de un vistazo cuánto falta */
.stepper { gap: 0; counter-reset: paso; }
.stepper li { position: relative; justify-items: center; padding-top: 40px; text-align: center; }
.stepper li::before { counter-increment: paso; content: counter(paso); position: absolute; top: 0; left: 50%; display: grid; place-items: center; width: 32px; height: 32px; border: 2px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); font-size: 0.8125rem; font-weight: 600; transform: translateX(-50%); transition: background 200ms ease, border-color 200ms ease, color 200ms ease; }
.stepper li::after { content: ""; position: absolute; top: 15px; right: calc(-50% + 22px); left: calc(50% + 22px); height: 2px; background: var(--line); }
.stepper li:last-child::after { display: none; }
.stepper .is-done::before { border-color: var(--blue-700); background: var(--blue-700); color: var(--white); }
.stepper .is-done::after { background: var(--blue-700); }
.stepper [aria-current="step"]::before { border-color: var(--blue-700); background: var(--white); color: var(--blue-700); }
@media (prefers-reduced-motion: reduce) { .stepper li::before { transition: none; } }

/* Equipo recién entrado desde Odoo: todavía sin foto, pero se compra igual */
.card__media { position: relative; }
.card__pending { position: absolute; bottom: 8px; left: 50%; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--blue-800); font-size: 0.6875rem; font-weight: 600; white-space: nowrap; transform: translateX(-50%); }
.slide--promo .slide__text { gap: 14px; }
.slide--promo .slide__title { margin-top: 0; }
.slide__text .eyebrow { display: flex; align-items: center; gap: 6px; }
.slide__text .eyebrow .icon { flex: none; }

/* Al recargar: barra de progreso arriba y entrada suave del contenido */
.pageload { position: fixed; top: 0; right: 0; left: 0; z-index: 90; height: 3px; pointer-events: none; }
.pageload span { display: block; width: 8%; height: 100%; background: var(--grad); animation: load-bar 1.8s var(--ease-out) forwards; }
.pageload.is-done span { width: 100%; animation: none; transition: width 200ms ease; }
.pageload.is-done { animation: load-out 300ms 200ms forwards; }
body.is-ready main { animation: page-in 380ms var(--ease-out); }
@keyframes load-bar { from { width: 8%; } to { width: 86%; } }
@keyframes load-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; } }

/* Campos por rellenar con un azul muy claro, para que se vean de un golpe */
.field input, .field select, .field textarea { background: var(--field); }
.field input:focus-visible, .field select:focus-visible { background: var(--white); box-shadow: 0 0 0 3px rgb(0 119 182 / 0.16); }
.field input[readonly] { background: var(--surface); }
.field.is-invalid input, .field.is-invalid select { background: var(--danger-bg); }

/* Lo que se puede pulsar se levanta con una sombra azul oscura al pasar el cursor */
@media (hover: hover) and (pointer: fine) {
  .tile:hover, .mini:hover, .store:hover, .promo__tile:hover { box-shadow: var(--shadow-hover); }
  .card:hover { border-color: rgb(0 157 225 / 0.45); }
  .tile:hover, .mini:hover { transform: translateY(-2px); }
  .tile, .mini, .store, .promo__tile { transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
  .wa-option:hover, .catnav__menu a:hover, .brand__menu a:hover { box-shadow: var(--shadow-hover); }
}

@media (prefers-reduced-motion: reduce) {
  .pageload span, .pageload.is-done, body.is-ready main { animation: none; }
  .tile, .mini, .store, .promo__tile { transition: none; }
}

/* Nombre tal cual está en Odoo: sirve para buscar el equipo en el inventario */
.card__ref { margin-top: 2px; font-size: 0.6875rem; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }

/* ================= Ronda 6 ================= */

/* Al recargar, la barra baja por el lado izquierdo y el contenido entra desde arriba */
.pageload { top: 0; right: auto; bottom: 0; left: 0; width: 3px; height: auto; }
.pageload span { width: 100%; height: 8%; animation: load-down 1.8s var(--ease-out) forwards; }
.pageload.is-done span { width: 100%; height: 100%; animation: none; transition: height 200ms ease; }
@keyframes load-down { from { height: 8%; } to { height: 86%; } }
body.is-ready main { animation: page-down 420ms var(--ease-out); }
@keyframes page-down { from { opacity: 0; clip-path: inset(0 0 12% 0); transform: translateY(-6px); } }

/* Cambio de página suave donde el navegador lo admite */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: fade-out 160ms ease-out both; }
  ::view-transition-new(root) { animation: page-down 360ms var(--ease-out) both; }
}
@keyframes fade-out { to { opacity: 0; } }

/* Buscador: una sola pieza, más ancho y con halo azul */
.search input { padding-right: 64px; border-radius: 999px; box-shadow: 0 1px 2px rgb(10 37 64 / 0.06), 0 0 0 3px rgb(0 157 225 / 0.10); transition: box-shadow 200ms var(--ease-out), background 200ms ease; }
.search input:hover { box-shadow: 0 1px 2px rgb(10 37 64 / 0.08), 0 0 0 4px rgb(0 157 225 / 0.16); }
.search input:focus-visible { background: var(--white); box-shadow: 0 1px 2px rgb(10 37 64 / 0.08), 0 0 0 4px rgb(0 119 182 / 0.22); }
.search button { right: 6px; width: 40px; height: 40px; border-radius: 999px; }
@media (min-width: 1024px) {
  .search { flex: 1 1 520px; max-width: 520px; }
}

/* Compra por categoría: una escala de azules, de más claro a más intenso */
.tile__go { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 500; color: var(--blue-700); }
.tile__go .icon { transition: transform 200ms var(--ease-out); }
.tile:hover .tile__go .icon { transform: translateX(3px); }

/* Nombre de Odoo: la parte descriptiva se lee, la configuración queda en gris fino */
.card__brand { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-2); }
.card__ref { font-size: 0.75rem; }
.card__ref-name { font-weight: 500; color: var(--muted); }
.card__ref-tail { font-weight: 300; color: var(--muted); }

/* Banners de temporada: sitio para que se levanten sin cortarse */
.promos__track { padding-block: 10px 14px; }
.promos__wrap { overflow: visible; }

/* Traslado entre sucursales */
.transfer { display: grid; gap: 16px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sky); }
.transfer__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-sm); background: var(--white); color: var(--blue-800); }
.transfer__body p { max-width: 62ch; margin-top: 6px; color: var(--ink-2); }
.transfer .h2 { font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); }
@media (min-width: 900px) {
  .transfer { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; padding: 28px 32px; }
}

/* Envíos por BM Cargo, centrado en la portada */
.ship--center { justify-items: center; max-width: 880px; margin-inline: auto; text-align: center; }
.ship--center .ship__body { justify-items: center; }
.ship--center .ship__points li { text-align: left; }
.ship--center .btn { justify-self: center; }
@media (min-width: 768px) {
  .ship--center { grid-template-columns: minmax(0, 1fr); }
  .ship--center .ship__points { justify-content: center; }
}

/* La caja de compra ya no se queda pegada al bajar */
@media (min-width: 1024px) {
  .product__info { position: static; }
}

/* Filtros: el panel se abre y se cierra con movimiento */
.filters--aside { transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
.listing__body.is-collapsed .filters--aside { display: block; opacity: 0; transform: translateX(-12px); pointer-events: none; position: absolute; visibility: hidden; }
.listing__body { position: relative; transition: grid-template-columns 260ms var(--ease-out); }
.listing__collapse .icon { transition: transform 240ms var(--ease-out); }
.listing__collapse[aria-expanded="false"] .icon { transform: rotate(180deg); }

/* Mientras entra la siguiente tanda, los huecos se ven */
.more { display: grid; gap: 16px; margin-top: 16px; }
.more[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pageload span, body.is-ready main, .filters--aside, .listing__body, .tile__go .icon { animation: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
.buybox__note { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); font-size: 0.875rem; color: var(--ink-2); }
.buybox__note .icon { flex: none; color: var(--blue-700); }
.alert--warn { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }

/* Escaparate de apertura: varias laptops con su precio sobre fondo limpio */
.slide--showcase { display: grid; align-content: center; gap: 24px; padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(180deg, var(--white), var(--sky)); }
.slide--showcase .slide__title { color: var(--navy); }
.slide--showcase .slide__lead { max-width: 46ch; color: var(--ink-2); }
.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.showcase a { display: grid; justify-items: center; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.showcase img { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: contain; }
.showcase__name { font-size: 0.8125rem; font-weight: 500; line-height: 1.3; text-align: center; color: var(--ink-2); }
.showcase__price { font-size: 1rem; color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .showcase a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
}
@media (min-width: 768px) {
  .slide--showcase { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 40px; padding: 40px; }
  .showcase { gap: 16px; }
}

/* Flechas sobre el banner, que asoman al acercar el cursor */
.hero { position: relative; }
.hero__nav { position: absolute; top: 50%; z-index: 3; display: none; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 999px; background: rgb(255 255 255 / 0.92); color: var(--navy); opacity: 0; transform: translateY(-50%); transition: opacity 200ms var(--ease-out), background 150ms ease; }
.hero__nav--prev { left: 8px; }
.hero__nav--next { right: 8px; }
.hero:hover .hero__nav, .hero:focus-within .hero__nav { opacity: 1; }
.hero__nav:hover { background: var(--white); box-shadow: var(--shadow-hover); }
@media (min-width: 1024px) {
  .hero__nav { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase a, .hero__nav { transition: none; }
}

/* Taller: qué entra y qué no, en dos columnas con color propio */
.scope { display: grid; gap: 16px; }
.scope__col { display: grid; align-content: start; gap: 12px; padding: 24px; border-radius: var(--radius); }
.scope__col--yes { border: 1px solid transparent; background: var(--ok-bg); }
.scope__col--no { border: 1px solid var(--line); background: var(--surface); }
.scope__tag { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.scope__col--yes .scope__tag { color: var(--ok); }
.scope__col--no .scope__tag { color: var(--muted); }
.scope ul { display: grid; gap: 10px; }
.scope li { display: flex; gap: 10px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.scope li .icon { flex: none; margin-top: 4px; }
.scope__col--yes li .icon { color: var(--ok); }
.scope__col--no li .icon { color: var(--muted); }
.scope__note { font-size: 0.8125rem; color: var(--muted); }
@media (min-width: 768px) {
  .scope { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
}
.field input, .field select, .field textarea { border-color: var(--field-line); }
.field input:hover, .field select:hover { border-color: var(--blue); }

/* ================= Ronda 7 ================= */

/* Logo un poco más grande */
.masthead__logo img { height: 40px; }
@media (min-width: 1024px) {
  .masthead__logo img { height: 52px; }
}

/* Mosaico de categorías: el color va en un bloque sólido, no detrás de la foto */
.tile { overflow: hidden; padding: 0; align-content: space-between; gap: 0; }
.tile__media { margin-bottom: 0; padding: 14px 14px 10px; background: var(--white); }
.tile__foot { display: grid; gap: 2px; padding: 12px 14px; background: var(--tone, var(--sky)); }
.tile__name { color: var(--tone-ink, var(--navy)); }
.tile__go { color: var(--tone-ink, var(--blue-700)); opacity: 0.85; }
.tiles > li:nth-child(1) .tile { --tone: var(--tile-1); }
.tiles > li:nth-child(2) .tile { --tone: var(--tile-2); }
.tiles > li:nth-child(3) .tile { --tone: var(--tile-3); }
.tiles > li:nth-child(4) .tile { --tone: var(--tile-4); --tone-ink: var(--white); }
.tiles > li:nth-child(5) .tile { --tone: var(--tile-5); --tone-ink: var(--white); }

/* Accesos por tipo de equipo, en lugar de los logos de marca */
.quick { display: none; flex: none; align-items: center; gap: 2px; padding-left: 12px; border-left: 1px solid var(--line); }
.quick__link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background 150ms ease, color 150ms ease; }
.quick__link .icon { width: 20px; height: 20px; color: var(--blue-700); }
.quick__link:hover { background: var(--sky); color: var(--navy); }
@media (min-width: 1200px) {
  .quick { display: flex; }
}

/* Buscador: caja propia, más ancha, con sombra que invita a pulsar */
.masthead__search { position: relative; display: none; flex: 1 1 560px; max-width: 620px; align-items: center; gap: 8px; }
.masthead.is-searching .masthead__search { display: flex; order: 5; flex-basis: 100%; margin-bottom: 12px; }
.search { flex: 1; display: flex; }
.search input { height: 50px; cursor: text; }
.finder-btn { position: relative; display: grid; flex: none; place-items: center; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); box-shadow: 0 1px 2px rgb(10 37 64 / 0.06); transition: box-shadow 200ms var(--ease-out), border-color 150ms ease; }
.finder-btn:hover, .finder-btn[aria-expanded="true"] { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(0 157 225 / 0.16); }
.finder-btn__bolt { position: absolute; right: 4px; bottom: 4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; background: var(--blue-700); color: var(--white); }
.finder-btn__bolt .icon { width: 11px; height: 11px; }
@media (min-width: 640px) {
  .masthead__search { display: flex; flex-basis: 320px; }
  .masthead__search-toggle { display: none; }
}
@media (min-width: 900px) {
  .masthead__search { flex-basis: 560px; }
}
/* Paneles bajo el buscador: sugerencias y buscador guiado */
.suggest, .finder { position: absolute; top: calc(100% + 10px); right: 0; left: 0; z-index: 50; max-height: min(70dvh, 560px); overflow-y: auto; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-pop); animation: menu-in 180ms var(--ease-out); }
.suggest__block + .suggest__block { margin-top: 14px; }
.suggest__title, .finder__row-title { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.finder__row-title span { font-size: 0.75rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); }
.suggest__chips, .finder__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; color: var(--ink-2); }
.chip-link span { font-size: 0.75rem; color: var(--muted); }
.chip-link:hover { border-color: var(--blue); background: var(--sky); color: var(--navy); }
.chip-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 0.875rem; color: var(--ink-2); transition: background 150ms ease, border-color 150ms ease, color 150ms ease; }
.chip-toggle span { font-size: 0.75rem; color: var(--muted); }
.chip-toggle:hover { border-color: var(--blue); }
.chip-toggle.is-on { border-color: var(--blue-700); background: var(--blue-700); color: var(--white); }
.chip-toggle.is-on span { color: rgb(255 255 255 / 0.8); }
.mini-rows { display: grid; gap: 4px; }
.mini-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px; border-radius: var(--radius-sm); }
.mini-row:hover { background: var(--surface); }
.mini-row img { width: 56px; height: 56px; object-fit: contain; }
.mini-row__text { display: grid; gap: 2px; min-width: 0; }
.mini-row__text b { font-size: 0.875rem; font-weight: 600; color: var(--navy); }
.mini-row__text span { font-size: 0.75rem; color: var(--muted); overflow-wrap: anywhere; }
.mini-row__price { font-size: 0.9375rem; }
.finder__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.finder__title { display: flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 600; color: var(--navy); }
.finder__title .icon { color: var(--blue-700); }
.finder__note { font-size: 0.8125rem; color: var(--muted); }
.finder__rows { display: grid; gap: 14px; }
.finder__foot { display: grid; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.finder__items { display: grid; gap: 4px; }
.finder__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.btn--disabled { pointer-events: none; opacity: 0.5; }
@media (min-width: 768px) {
  .finder { width: min(760px, calc(100vw - 32px)); right: 0; left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .suggest, .finder { animation: none; }
  .quick__link, .finder-btn, .chip-toggle { transition: none; }
}
.masthead__search-toggle { color: var(--muted); }
.masthead__search-toggle:hover { color: var(--ink); }

/* Buscador guiado: tipo de equipo arriba y orden abajo, para mirar sin escribir */
.finder__types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.type-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); transition: background 150ms ease, border-color 150ms ease, color 150ms ease; }
.type-chip .icon { color: var(--blue-700); }
.type-chip span { font-size: 0.75rem; color: var(--muted); }
.type-chip:hover { border-color: var(--blue); }
.type-chip.is-on { border-color: var(--navy); background: var(--navy); color: var(--white); }
.type-chip.is-on .icon { color: var(--white); }
.type-chip.is-on span { color: rgb(255 255 255 / 0.75); }
.finder__sort { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.finder__sort-label { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.finder__sort-label .icon { color: var(--blue-700); }
@media (prefers-reduced-motion: reduce) { .type-chip { transition: none; } }

/* Muchas fotos de Odoo vienen sobre fondo oscuro: redondeadas parecen una tarjeta, no un fallo */
.slide__media img, .card__media img, .showcase img, .gallery__main img, .mini img, .pick-card img { border-radius: var(--radius-sm); }
.slide--laptop .slide__media img { border-radius: var(--radius); }
.suggest__all { margin-top: 10px; }
.suggest__empty { padding: 4px 2px 8px; color: var(--muted); }

/* La foto y su recuadro comparten fondo: sin costura y sin rectangulo negro suelto */
.slide__media { border-radius: var(--radius); }
.slide--laptop .slide__media img { border-radius: 0; }
.showcase a[style*="--foto"] img { background: var(--foto); border-radius: var(--radius-sm); }
.card__media img { border-radius: 0; }

/* El menú de una categoría enseña sus marcas con cuántos equipos hay de cada una */
.catnav__menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.catnav__menu a span { color: var(--muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

/* El numero compartido dice que opcion marcar, y las fotos de los banners son clicables */
.store__opt { display: inline-block; margin-left: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--blue-700); }
.footer__note { display: block; margin-top: 2px; font-size: 0.8125rem; color: rgb(255 255 255 / 0.72); }
.promo__tile > a { display: block; height: 100%; border-radius: inherit; color: inherit; }
.promo__tile > a:hover img { transform: scale(1.04); }
.promo__tile img { transition: transform 240ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .promo__tile img { transition: none; } }

/* Fuera de las fotos, el banner entero lleva a su categoria: el enlace de fondo tapa el texto,
   y las fotos y el boton quedan por encima para que cada uno lleve a lo suyo */
.promo__all { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.promo__cta, .promo__badge { position: relative; z-index: 2; }
.promo__tiles { position: relative; z-index: 3; }
/* La referencia de inventario va pegada al nombre, no al final de la tarjeta */
.card__ref { margin: 2px 0 6px; }

/* Formulario de financiamiento: todas las filas con el mismo pulso */
.loan__fields { align-items: start; }
.field input[type="date"] { min-height: 48px; height: 48px; }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.55; }
.field input[type="date"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* En movil la columna del producto no puede pasarse del ancho de la pantalla: las pestanas
   («Como comprar», «Garantia»...) la estiraban y la foto se salia de su recuadro */
.tabs, .tabs__list, .panel, .gallery { min-width: 0; }
.product__ref { margin-top: -4px; }

/* En movil, lo primero despues de la foto es el nombre con su precio y el boton de comprar:
   antes quedaban debajo de las especificaciones, las pestanas y los parecidos */
@media (max-width: 1023px) {
  .product__main { display: contents; }
  .product__main > .gallery { order: 1; }
  .product__top > .product__info { order: 2; }
  .product__main > .panel { order: 3; }
  .product__main > .tabs { order: 4; }
  .product__main > .related { order: 5; }
}

/* Resultado de rastreo de taller */

/* La marca del equipo manda en la ficha: es lo primero que busca quien compra */
.product__meta .eyebrow { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.06em; }

/* Mascota de las pantallas de error: sale de assets/img/mascota.svg, un solo archivo para todas */
.mascota { display: block; width: clamp(120px, 26vw, 176px); height: auto; margin-bottom: 8px; }
.mascota--perdida { animation: mascota-flota 3.2s var(--ease-out) infinite; }
.mascota--agotado, .mascota--vacio, .mascota--sincatalogo { animation: mascota-asoma 520ms var(--ease-out) both; }
@keyframes mascota-flota { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes mascota-asoma { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mascota { animation: none; } }

/* Ventanas de error: centradas, con la salida a mano */
.wrap.notice { justify-items: center; max-width: calc(640px + 2 * var(--gutter)); text-align: center; }
.wrap.notice p { max-width: 52ch; }
.notice__acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.notice__codigo { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.empty .mascota { margin-inline: auto; }

/* Al pulsar el campo de fecha se nota que el calendario viene en camino */
.field input[type="date"].is-picking { animation: abre-calendario 460ms var(--ease-out); }
@keyframes abre-calendario {
  0% { box-shadow: 0 0 0 0 rgb(0 157 225 / 0.5); }
  100% { box-shadow: 0 0 0 12px rgb(0 157 225 / 0); }
}
.field input[type="date"].is-picking::-webkit-calendar-picker-indicator { opacity: 1; transform: scale(1.15); }
@media (prefers-reduced-motion: reduce) { .field input[type="date"].is-picking { animation: none; } }
