/* Muero de Color · hoja de estilos de la tienda
   Paleta 6 (Vibrante) con negro. Fuentes servidas desde el propio servidor. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #111111;
  --ink-2: #1E1E1E;
  --ink-3: #2A2A2A;
  --paper: #FFFFFF;
  --soft: #F5F5F3;
  --line: #E0E0DC;
  --line-strong: #8C8C8C;
  --muted: #595959;
  --on-dark-muted: #C8C8C8;
  --cyan: #00B4C5;
  --green: #1EAE4E;
  --orange: #FF9A1F;
  --coral: #FF5B4A;
  --indigo: #2B2D7C;
  --ok: #157A3A;
  --ok-bg: #E8F6EC;
  --error: #B3261E;
  --error-bg: #FCECEA;
  --info-bg: #EEF0FA;
  --focus: #2B2D7C;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Jakarta", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
address { font-style: normal; }
code { background: var(--soft); padding: .1em .35em; border-radius: 4px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.site-header :focus-visible, .topbar :focus-visible, .hero :focus-visible, .section--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--cyan); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.is-hidden { display: none !important; }
.js .js-hide { display: none !important; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.break { overflow-wrap: anywhere; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* Colores de categoría */
.c-cyan { --c: var(--cyan); }
.c-green { --c: var(--green); }
.c-orange { --c: var(--orange); }
.c-coral { --c: var(--coral); }
.c-indigo { --c: var(--indigo); }
.dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--c, var(--cyan)); margin-right: .5em; vertical-align: .05em; flex: none; }

/* Franja de cinco colores */
.stripe { display: flex; height: 5px; }
.stripe span { flex: 1; }
.stripe span:nth-child(1) { background: var(--indigo); }
.stripe span:nth-child(2) { background: var(--cyan); }
.stripe span:nth-child(3) { background: var(--green); }
.stripe span:nth-child(4) { background: var(--orange); }
.stripe span:nth-child(5) { background: var(--coral); }

/* Barra superior y cabecera */
.topbar { background: var(--ink); color: var(--on-dark-muted); font-size: .8125rem; border-bottom: 1px solid var(--ink-3); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 34px; }
.topbar__text { margin: 0; }
.topbar__links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.topbar a { color: var(--on-dark-muted); text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }

.site-header { background: var(--ink); color: #fff; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: flex-end; gap: 10px; color: #fff; text-decoration: none; flex: none; }
.brand .logo-mark { width: 40px; height: 37px; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1; }
.search { flex: 1; display: flex; max-width: 520px; margin-left: auto; }
.search input { flex: 1; min-width: 0; height: 44px; border: 1px solid #5A5A5A; border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--ink-2); color: #fff; padding: 0 14px; font: inherit; }
.search input::placeholder { color: #A8A8A8; }
.search__btn { width: 48px; height: 44px; border: 1px solid #5A5A5A; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--ink-3); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search__btn svg { width: 20px; height: 20px; }
.search--page { display: block; max-width: 640px; margin-bottom: 2rem; }
.search--page label { display: block; font-weight: 600; margin-bottom: 6px; }
.search__row { display: flex; gap: 8px; }
.search__row input { flex: 1; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 0 14px; font: inherit; }
.header-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header-actions a { color: #fff; text-decoration: none; font-weight: 600; font-size: .9375rem; padding: 10px 2px; }
.header-actions a:hover { text-decoration: underline; }
.header-actions__quote { border: 1px solid #fff; border-radius: 999px; padding: 9px 16px !important; }
.cart-link { display: inline-flex; align-items: center; gap: 8px; }
.cart-link__count { background: var(--coral); color: var(--ink); border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: .8125rem; font-weight: 800; padding: 0 6px; }

.catnav { background: var(--ink); border-top: 1px solid var(--ink-3); }
.catnav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: thin; }
.catnav__list a { display: block; color: #E6E6E6; text-decoration: none; padding: 12px 12px; white-space: nowrap; font-size: .9375rem; font-weight: 500; border-bottom: 3px solid transparent; }
.catnav__list a:hover { color: #fff; border-bottom-color: #fff; }
.catnav__list a[aria-current="page"] { color: #fff; border-bottom-color: var(--cyan); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 2px solid var(--ink);
  background: var(--ink); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:hover { background: var(--ink-3); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--coral); border-color: var(--coral); color: var(--ink); }
.btn--accent:hover { background: #FF7466; border-color: #FF7466; }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: var(--soft); }
.btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn--danger { background: var(--error); border-color: var(--error); }
.link-btn { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Avisos */
.flashes { margin-top: 20px; }
.notice { border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 16px; border-left: 5px solid var(--ink); background: var(--soft); }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice--ok { background: var(--ok-bg); border-left-color: var(--ok); }
.notice--error { background: var(--error-bg); border-left-color: var(--error); }
.notice--info { background: var(--info-bg); border-left-color: var(--indigo); }
.notice__title { font-size: 1.1rem; }
.notice a { font-weight: 600; }

/* Portada */
.hero { background: var(--ink); color: #fff; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; padding-top: 64px; padding-bottom: 72px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 16ch; }
.hero__lead { font-size: 1.15rem; color: #E0E0E0; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8125rem; font-weight: 700; color: var(--cyan); margin-bottom: 14px; }
.eyebrow--dark { color: var(--muted); }
.hero__quick { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 24px; }
.hero__quick-title { font-size: 1.15rem; margin-bottom: 12px; }
.hero__quick ul { list-style: none; margin: 0; padding: 0; }
.hero__quick li + li { border-top: 1px solid var(--ink-3); }
.hero__quick a { display: flex; align-items: center; color: #fff; text-decoration: none; padding: 12px 4px; font-weight: 600; }
.hero__quick a:hover { color: var(--cyan); }
.hero__quick .arrow { margin-left: auto; }

.section { padding: 64px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark p { color: #E0E0E0; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.section__head h1, .section__head h2 { margin: 0; }
.section__head form { margin: 0; }

.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cat-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px 30px; background: var(--paper); transition: box-shadow .15s ease, transform .15s ease; }
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card__spine { position: absolute; left: 0; top: 16px; bottom: 16px; width: 8px; border-radius: 0 4px 4px 0; background: var(--c); }
.cat-card h3 { margin-bottom: 6px; }
.cat-card h3 a { text-decoration: none; }
.cat-card h3 a::after { content: ""; position: absolute; inset: 0; }
.cat-card p { color: var(--muted); margin: 0; font-size: .9375rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard__media { aspect-ratio: 4 / 3; background: var(--c, var(--cyan)); display: grid; place-items: center; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.spines { display: flex; align-items: flex-end; gap: 8px; height: 46%; }
.spines i { display: block; width: 18px; border-radius: 4px; background: #fff; }
.spines i:nth-child(1) { height: 56%; opacity: .55; }
.spines i:nth-child(2) { height: 70%; opacity: .7; }
.spines i:nth-child(3) { height: 82%; opacity: .82; }
.spines i:nth-child(4) { height: 93%; opacity: .92; }
.spines i:nth-child(5) { height: 100%; transform: rotate(14deg); transform-origin: bottom right; }
.pcard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pcard__cat { font-size: .8125rem; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.pcard__title { font-size: 1.1rem; margin: 0 0 6px; }
.pcard__title a { text-decoration: none; }
.pcard__title a::after { content: ""; position: absolute; inset: 0; }
.pcard__summary { font-size: .9375rem; color: var(--muted); margin-bottom: 12px; }
.pcard__price { margin: auto 0 0; font-weight: 700; }

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.steps li { border-top: 4px solid var(--ink); padding-top: 16px; }
.steps li:nth-child(1) { border-color: var(--cyan); }
.steps li:nth-child(2) { border-color: var(--green); }
.steps li:nth-child(3) { border-color: var(--orange); }
.steps li:nth-child(4) { border-color: var(--coral); }
.steps__n { font-family: var(--font-display); font-weight: 800; font-size: 2rem; line-height: 1; display: block; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

.b2b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 12px 0 12px 34px; border-bottom: 1px solid var(--ink-3); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 17px; width: 18px; height: 10px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

/* Páginas */
.page { padding-top: 28px; padding-bottom: 72px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 65ch; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.catalog-group { margin-top: 48px; }
.catalog-group h2 { display: flex; align-items: center; }
.cta-box { margin-top: 48px; background: var(--soft); border-radius: var(--radius); padding: 28px; border-left: 6px solid var(--coral); }
.prose { max-width: 820px; }
.prose h2 { margin-top: 1.6em; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 48px; align-items: start; }
.side-card { background: var(--soft); border-radius: var(--radius); padding: 24px; position: sticky; top: 20px; }
.side-card h2 { font-size: 1.15rem; }
.big-link { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; text-decoration: none; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 28px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { border-bottom-color: var(--coral); }

/* Formularios */
.form { max-width: 820px; }
.field { margin-bottom: 18px; }
.field label, .field > .label { display: block; font-weight: 600; margin-bottom: 6px; }
input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="password"], input[type="search"]:not(#q-top), input[type="file"], select, textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; font: inherit; color: var(--ink); background: var(--paper);
}
input[type="file"] { padding: 9px; }
textarea { min-height: 96px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field__help { font-size: .875rem; color: var(--muted); margin: 6px 0 0; }
.field__error { font-size: .9rem; color: var(--error); font-weight: 600; margin: 6px 0 0; }
.field__error::before { content: "⚠ "; }
.formblock { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.formblock legend, .optgroup legend { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; padding: 0; margin-bottom: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.span-2 { grid-column: span 2; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 18px; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.check--error label { color: var(--error); }

/* Opciones tipo píldora (radios accesibles) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { position: relative; }
.chip input, .qty-list input[type="radio"], .speed input, .pay input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip label { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-weight: 500; background: var(--paper); }
.chip label:hover { border-color: var(--ink); }
.chip input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + label, .qty-list input:focus-visible + label, .speed input:focus-visible + label, .pay input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Configurador */
.product-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.product-head__img { border-radius: var(--radius); width: 220px; height: auto; }
.configurator { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; margin-top: 12px; }
.optgroup { border: 0; border-top: 1px solid var(--line); padding: 22px 0 6px; margin: 0; min-width: 0; }
.optgroup legend { float: left; width: 100%; }
.optgroup legend + * { clear: both; }
.dims { display: flex; align-items: flex-end; gap: 12px; }
.dims .field { flex: 1; margin-bottom: 0; }
.dims__x { padding-bottom: 12px; font-weight: 700; }
.qty-list { list-style: none; margin: 0 0 8px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty-list li { position: relative; border-top: 1px solid var(--line); }
.qty-list li:first-child { border-top: 0; }
.qty-list label { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; align-items: center; padding: 12px 16px 12px 44px; cursor: pointer; min-height: 48px; }
.qty-list label::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--paper); }
.qty-list input:checked + label { background: var(--soft); }
.qty-list input:checked + label::before { border: 6px solid var(--ink); }
.qty-list label:hover { background: var(--soft); }
.qty-list__q { font-weight: 600; }
.qty-list__price { font-weight: 700; text-align: right; }
.qty-list__unit { color: var(--muted); text-align: right; font-size: .9rem; }
.qty-list__custom { display: flex; align-items: center; gap: 12px; padding-right: 12px; }
.qty-list__custom label:first-of-type { flex: 1; display: block; }
.qty-list__custom input[type="number"] { width: 160px; min-height: 40px; }
.speeds { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.speed { position: relative; }
.speed label, .pay label { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; height: 100%; background: var(--paper); }
.speed input:checked + label, .pay input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--soft); }
.speed__name { font-weight: 700; }
.speed__days, .speed__pct { font-size: .9rem; color: var(--muted); }

.pricebox { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.configurator__aside, .cart__summary, .checkout__aside { position: sticky; top: 20px; }
.pricebox__title { font-size: 1.2rem; }
.pricebox__rows { margin: 0 0 18px; }
.pricebox__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.pricebox__rows dt { color: var(--muted); }
.pricebox__rows dd { margin: 0; font-weight: 600; text-align: right; }
.pricebox__net { font-size: 1.15rem; }
.pricebox__total { border-bottom: 0 !important; padding-top: 12px !important; }
.pricebox__total dt { color: var(--ink); font-weight: 700; }
.pricebox__total dd { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.pricebox .btn + .btn { margin-top: 10px; }
.pricebox__note { font-size: .875rem; color: var(--muted); margin: 12px 0 0; }
.is-updating [data-k] { opacity: .5; transition: opacity .1s; }
.product-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.specs { padding-left: 1.1rem; }

/* Carrito y compra */
.checkout-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; font-size: .9rem; }
.checkout-steps li { padding: 6px 14px; border-radius: 999px; background: var(--soft); color: var(--muted); font-weight: 600; }
.checkout-steps li[aria-current="step"] { background: var(--ink); color: #fff; }
.cart, .checkout, .order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.cart-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; background: var(--paper); }
.cart-item__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; }
.order-layout .cart-item__head { grid-template-columns: minmax(0, 1fr) auto; }
.cart-item__spine { width: 8px; border-radius: 4px; background: var(--c); }
.cart-item__title { font-size: 1.15rem; margin-bottom: 6px; }
.cart-item__summary { list-style: none; padding: 0; margin: 0 0 8px; font-size: .9375rem; }
.cart-item__price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cart-item__price strong { font-size: 1.15rem; }
.cart-item__file { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cart-item__file summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.file-ok { color: var(--ok); margin: 0 0 6px; }
.file-missing { color: var(--error); font-weight: 600; margin: 0 0 6px; }
.upload-form { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: end; }
.upload-form .btn { justify-self: start; margin-bottom: 18px; }
.mini-items { list-style: none; padding: 0; margin: 0 0 12px; }
.mini-items li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.paylist { display: grid; gap: 10px; }
.pay { position: relative; }
.pay label span { color: var(--muted); font-size: .9375rem; }

.tracker { display: flex; list-style: none; padding: 0; margin: 8px 0 28px; counter-reset: st; }
.tracker li { flex: 1; position: relative; padding: 30px 6px 0; text-align: center; font-size: .875rem; color: var(--muted); }
.tracker li::before { content: ""; position: absolute; top: 6px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line-strong); z-index: 1; }
.tracker li::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.tracker li:first-child::after { display: none; }
.tracker .is-done, .tracker .is-current { color: var(--ink); font-weight: 600; }
.tracker .is-done::before { background: var(--green); border-color: var(--green); }
.tracker .is-done::after, .tracker .is-current::after { background: var(--green); }
.tracker .is-current::before { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0,180,197,.35); }
.history { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.history li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; }
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--soft); font-weight: 700; white-space: nowrap; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table .num { text-align: right; white-space: nowrap; }
.table caption:not(.visually-hidden) { text-align: left; font-weight: 700; padding: 0 0 8px; }
.table form { margin: 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 700; background: var(--soft); border: 1px solid var(--line); white-space: nowrap; }
.badge--pendiente_pago, .badge--nuevo { background: #FFF1DE; border-color: #F5C98A; }
.badge--pendiente_archivos { background: #FCECEA; border-color: #F2B3AD; }
.badge--revision_archivos, .badge--en_estudio { background: #EEF0FA; border-color: #BFC3E8; }
.badge--en_produccion, .badge--enviado { background: #E3F7F9; border-color: #9FDDE4; }
.badge--entregado, .badge--aceptado, .badge--paid { background: var(--ok-bg); border-color: #A8DDB9; }
.badge--cancelado, .badge--rechazado, .badge--failed { background: #EFEFEF; color: #444; }

/* Pie */
.site-footer { background: var(--ink); color: var(--on-dark-muted); margin-top: 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.site-footer a { color: #E6E6E6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer__lead { margin: 14px 0; }
.brand--footer .logo-mark { width: 34px; height: 31px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--ink-3); padding-top: 18px; padding-bottom: 28px; font-size: .875rem; }
.site-footer__bottom p { margin: 0; }

/* Instalador */
.install { background: var(--soft); }
.install main { padding: 40px 20px; }
.checklist { list-style: none; padding: 0; }
.checklist .ok { color: var(--ok); }
.checklist .fail { color: var(--error); font-weight: 700; }

/* Barra fija de precio en móvil (duplica visualmente el resumen; los lectores de pantalla usan el resumen) */
.mobilebar { display: none; }
@media (max-width: 1020px) {
  .mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .mobilebar__price strong { font-family: var(--font-display); font-size: 1.3rem; display: block; line-height: 1.1; }
  .configurator ~ .product-info { padding-bottom: 80px; }
}

/* Adaptación a pantallas pequeñas */
@media (max-width: 1020px) {
  .configurator, .cart, .checkout, .order-layout { grid-template-columns: minmax(0, 1fr); }
  .configurator__aside, .cart__summary, .checkout__aside { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .site-header__inner { flex-wrap: wrap; gap: 12px 16px; padding-top: 12px; padding-bottom: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .header-actions { margin-left: auto; gap: 12px; }
  .header-actions__quote { display: none; }
  .hero__inner, .b2b, .split, .product-info { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero__inner { padding-top: 40px; padding-bottom: 48px; }
  .topbar__text { display: none; }
  .side-card { position: static; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .upload-form { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .qty-list label { grid-template-columns: 1fr auto; }
  .qty-list__unit { display: none; }
  .qty-list__custom { flex-wrap: wrap; padding-bottom: 10px; }
  .qty-list__custom input[type="number"] { margin-left: 44px; width: calc(100% - 56px); }
  .qty-list__custom label::before { top: 24px; }
  .cart-item__head { grid-template-columns: auto minmax(0, 1fr); }
  .cart-item__price { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .tracker li { font-size: .75rem; }
  .product-head { flex-direction: column; }
  .section { padding: 44px 0; }
  .brand__name { font-size: 1.15rem; }
  .topbar__links { gap: 12px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .site-header, .site-footer, .btn, .upload-form, details { display: none !important; }
}
