/* =========================================================================
   AURYX: sistema de diseño
   Paleta de marca: navy profundo + amarillo solar como único acento.
   Verde / ámbar / rojo quedan reservados para estados funcionales
   (compatibilidad y stock), nunca para decorar.

   Radios (regla única para todo el sitio):
     controles (botones, inputs, chips de filtro) .... 8px
     superficies (tarjetas, paneles, imágenes) ....... 14px
     indicadores (badges, contador del carrito) ...... pill

     excepción: los dibujos en miniatura del dimensionador (.sz-cell, .sz-mod) usan 2-3px
     porque representan módulos, no son controles ni superficies

   Capas (z-index): header 40 · dropdowns 45 · back-to-top 50 · WhatsApp 51 · cookies 55 · toast 60
   ========================================================================= */

:root {
  --font-sans: "Archivo Variable", "Archivo", system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, monospace;

  --r-control: 8px;
  --r-surface: 14px;
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* Modo oscuro (por defecto: es la expresión principal de la marca) */
  --bg: #05080f;
  --bg-raised: #090e19;
  --surface: #0d1422;
  --surface-2: #141d30;
  --line: #1c2740;
  --line-strong: #2b3a58;
  --text: #eef1f7;
  --text-mid: #b6bfd2;
  --text-dim: #8994ad;
  --accent: #f5b301;
  --accent-hover: #ffc533;
  --accent-ink: #f5b301;      /* acento usado como color de texto */
  --on-accent: #05080f;
  --accent-soft: rgba(245, 179, 1, 0.12);
  --ok: #5cc58f;   --ok-bg: rgba(92, 197, 143, 0.13);
  --warn: #f0a24b; --warn-bg: rgba(240, 162, 75, 0.14);
  --bad: #f07a72;  --bad-bg: rgba(240, 122, 114, 0.14);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  --scrim: linear-gradient(180deg, rgba(5, 8, 15, 0) 20%, rgba(5, 8, 15, 0.92) 100%);
  color-scheme: dark;
}

/* Modo claro: se aplica por preferencia del sistema o por el toggle del header */
:root[data-theme="light"] {
  --bg: #f3f5f9;
  --bg-raised: #fafbfd;
  --surface: #fbfcfe;
  --surface-2: #e9edf4;
  --line: #d6dce7;
  --line-strong: #b9c2d3;
  --text: #121a2e;
  --text-mid: #3d4862;
  --text-dim: #5a6681;
  --accent: #f5b301;
  --accent-hover: #e0a300;
  --accent-ink: #8a5f00;
  --on-accent: #121a2e;
  --accent-soft: rgba(245, 179, 1, 0.16);
  --ok: #1d7a4c;   --ok-bg: rgba(29, 122, 76, 0.1);
  --warn: #9a5508; --warn-bg: rgba(154, 85, 8, 0.1);
  --bad: #b3332b;  --bad-bg: rgba(179, 51, 43, 0.09);
  --shadow: 0 18px 50px rgba(22, 33, 58, 0.12);
  --scrim: linear-gradient(180deg, rgba(13, 20, 36, 0) 20%, rgba(13, 20, 36, 0.88) 100%);
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: var(--accent-soft);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, input, select, textarea, label { touch-action: manipulation; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* destinos de foco programático (cambio de página / de paso): sin anillo */
main:focus, [tabindex="-1"]:focus { outline: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 70;
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  padding: 10px 16px; border-radius: var(--r-control);
  transition: top 0.15s var(--ease);
}
.skip-link:focus-visible { top: 12px; }

/* ---------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.page { padding-block: 40px 96px; }
@media (min-width: 768px) { .page { padding-block: 56px 112px; } }

.page-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 70ch; }
.page-title {
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05;
  font-weight: 750; font-stretch: 82%; letter-spacing: -0.015em;
}
.page-lead { color: var(--text-mid); font-size: 1.0625rem; max-width: 62ch; }

.page-title-sm { font-size: 1.75rem; }
/* columna de texto al lado de un formulario (Contacto, Arrepentimiento) */
.page-head-aside { margin-bottom: 0; align-content: start; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--accent); }

.muted { color: var(--text-mid); }
.dim { color: var(--text-dim); }
.small { font-size: 0.875rem; }
.xsmall { font-size: 0.8125rem; }

/* ---------------------------------------------------------------- iconos */
.ph, .ph-fill { line-height: 1; flex-shrink: 0; }

/* utilidades de espaciado (reemplazan estilos en línea) */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mt-4 { margin-top: 24px; }
.text-link { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--text); }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border-radius: var(--r-control); border: 1px solid transparent;
  font-weight: 600; font-size: 0.9375rem; line-height: 1.2; white-space: nowrap;
  cursor: pointer; user-select: none;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease), transform 0.12s var(--ease);
}
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }
.btn-primary:disabled { background: var(--surface-2); color: var(--text-mid); opacity: 1; }
.btn .ph { font-size: 1.1em; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }

.btn-secondary { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }

.btn-ghost { background: transparent; color: var(--text-mid); padding-inline: 10px; }
.btn-ghost:hover:not(:disabled) { color: var(--text); background: var(--surface-2); }

.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; white-space: normal; text-wrap: balance; text-align: center; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-control); border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}
.icon-btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.icon-btn .ph { font-size: 18px; }
.icon-btn-danger { border-color: transparent; color: var(--text-dim); }
.icon-btn-danger:hover:not(:disabled) { color: var(--bad); background: var(--bad-bg); border-color: transparent; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent-ink);
  transition: gap 0.18s var(--ease);
}
.link-arrow:hover { gap: 10px; }

/* ---------------------------------------------------------------- formularios */
.field { display: grid; gap: 8px; }
.field-label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.field-label .unit { font-family: var(--font-mono); font-weight: 400; color: var(--text-dim); font-size: 0.8125rem; }
.field-hint { font-size: 0.8125rem; color: var(--text-dim); }
.field-error { font-size: 0.8125rem; color: var(--bad); }

.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-control);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-dim); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--bad); }
.input.num-input { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 36px;
  background-color: var(--bg-raised); color: var(--text);
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.select option { background-color: var(--bg-raised); color: var(--text); }

.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper .input { width: 72px; text-align: center; }
.stepper-value { min-width: 28px; text-align: center; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 12px 0;
  background: var(--surface-2); border-radius: 999px; cursor: pointer;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent); border: 3px solid var(--bg); cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 999px; background: var(--accent);
  border: 3px solid var(--bg); cursor: pointer;
}

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.5;
}
.badge .ph-fill, .badge .ph { font-size: 13px; }
.tone-ok { background: var(--ok-bg); color: var(--ok); }
.tone-warn { background: var(--warn-bg); color: var(--warn); }
.tone-bad { background: var(--bad-bg); color: var(--bad); }

/* ---------------------------------------------------------------- precio */
.price { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-lg { font-size: 1.75rem; font-weight: 750; font-stretch: 85%; letter-spacing: -0.01em; }

/* ---------------------------------------------------------------- superficies */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface);
}
.panel-pad { padding: 20px; }
@media (min-width: 768px) { .panel-pad { padding: 28px; } }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.wordmark {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px;
  font-weight: 800; font-stretch: 62%; font-size: 1.75rem; line-height: 0.9; letter-spacing: 0.01em;
}
.wordmark::after { content: ""; width: 46%; height: 3px; border-radius: 2px; background: var(--accent); margin-left: 27%; }

.main-nav { display: none; align-items: center; gap: 4px; margin-left: 12px; }
@media (min-width: 1100px) { .main-nav { display: flex; } }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px;
  border-radius: var(--r-control); color: var(--text-mid); font-size: 0.9375rem; font-weight: 500;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--text); font-weight: 650; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-link .ph { font-size: 12px; }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.currency-btn { width: auto; padding: 0 12px; font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: 0.6875rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.menu-btn { display: inline-grid; }
@media (min-width: 1100px) { .menu-btn { display: none; } }

/* dropdowns: abren con hover y con foco por teclado */
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 8px); z-index: 45;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease), visibility 0.16s;
}
.dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
/* Productos y carrito: hover y foco. Cuenta: clic (.is-open, lo maneja app.js) y hover con mouse;
   sin :focus-within, porque el foco que deja el clic no dejaría cerrarlo. */
.dropdown:not(.account-dropdown):hover .dropdown-panel,
.dropdown:not(.account-dropdown):focus-within .dropdown-panel,
.dropdown.is-open .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .account-dropdown:hover .dropdown-panel { opacity: 1; visibility: visible; transform: translateY(0); }
}
.dropdown-panel.align-left { left: 0; min-width: 260px; padding: 8px; }
.dropdown-panel.align-right { right: 0; width: 340px; max-width: calc(100vw - 32px); }
@media (hover: none) { .cart-dropdown .dropdown-panel { display: none; } }
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-control);
  color: var(--text-mid); font-size: 0.9375rem;
}
.menu-item:hover { background: var(--surface-2); color: var(--text); }
.menu-item .ph { font-size: 18px; color: var(--accent-ink); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.cart-preview-list { padding: 8px 16px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.cart-preview-empty { padding-block: 8px; }
.cart-preview-more { padding-top: 8px; }
.cart-link { position: relative; }
.cart-preview-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 0.875rem; }
.cart-preview-row + .cart-preview-row { border-top: 1px solid var(--line); }
.cart-preview-row .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-preview-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }

/* cuenta del cliente: "Ingresar" o foto + nombre con su menú */
.login-btn .ph { font-size: 18px; }
@media (max-width: 479px) { .login-btn { padding-inline: 10px; } .login-label { display: none; } }
.account-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 5px;
  border: 1px solid var(--line); border-radius: var(--r-control); background: transparent;
  color: var(--text); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.account-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.account-btn > .ph { font-size: 12px; color: var(--text-dim); }
.account-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) { .account-name, .account-btn > .ph { display: none; } .account-btn { padding: 0 4px; } }
.account-panel { width: 230px; padding: 8px; }
.account-panel button.menu-item { width: 100%; border: 0; background: transparent; font: inherit; font-size: 0.9375rem; text-align: left; cursor: pointer; }
.avatar {
  position: relative; flex: none; display: inline-grid; place-items: center; overflow: hidden;
  width: var(--avatar-size, 32px); height: var(--avatar-size, 32px); border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 700; font-size: calc(var(--avatar-size, 32px) * 0.45); line-height: 1;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mobile-nav button {
  display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 4px;
  border: 0; border-top: 1px solid var(--line); background: transparent;
  font: inherit; font-size: 1.0625rem; font-weight: 500; color: var(--text-mid); text-align: left; cursor: pointer;
}

/* #ingresar */
.login-card { max-width: 520px; margin-inline: auto; display: grid; gap: 18px; }
/* El iframe de Google pinta un fondo blanco si su color-scheme no coincide con el de la página:
   con "light" fijo el botón oscuro queda sin el recuadro blanco en el tema oscuro. */
.gsi-slot { min-height: 44px; display: flex; align-items: center; max-width: 100%; overflow: hidden; color-scheme: light; background: transparent; }
.gsi-slot iframe { color-scheme: light; max-width: 100%; }
.login-status { display: flex; align-items: center; gap: 10px; background: var(--surface-2); }
.login-status.tone-bad { background: var(--bad-bg); }
.login-who { display: flex; align-items: center; gap: 14px; }
.login-name { font-weight: 650; }
/* #ingresar: tarjeta + foto, ocupando el alto de la pantalla debajo del header */
.auth { padding-block: 32px 72px; }
.auth-grid { display: grid; gap: 32px; align-items: stretch; }
@media (min-width: 900px) {
  .auth { padding-block: 40px 80px; }
  .auth-grid { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 48px; min-height: calc(100dvh - var(--header-h) - 120px); }
}
.auth-card { display: grid; align-content: center; gap: 28px; padding: 28px 22px; width: 100%; max-width: 480px; margin-inline: auto; }
@media (min-width: 768px) { .auth-card { padding: 44px 40px; } }
.auth-head { display: grid; gap: 10px; }
.auth-title {
  font-size: clamp(1.875rem, 3.4vw, 2.5rem); line-height: 1.05;
  font-weight: 750; font-stretch: 82%; letter-spacing: -0.015em;
}
.auth-google { display: grid; gap: 12px; }
.auth-google .gsi-slot { justify-content: center; min-height: 44px; }
.auth-google .gsi-slot > div { width: 100%; display: flex; justify-content: center; }
.auth-benefits { display: grid; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.auth-benefits li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; }
.auth-benefits .ph {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-control);
  background: var(--accent-soft); color: var(--accent-ink); font-size: 20px;
}
.auth-benefits strong { display: block; font-weight: 650; font-size: 0.9375rem; }
.auth-legal a, .auth-link { color: var(--accent-ink); font-weight: 600; }
.auth-legal a { text-decoration: underline; text-underline-offset: 3px; }
.auth-legal a:hover { color: var(--text); }
.auth-who { display: flex; align-items: center; gap: 16px; min-width: 0; }
.auth-who-text { min-width: 0; }
.auth-who-text p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-actions { display: grid; gap: 12px; }
@media (min-width: 480px) { .auth-actions { grid-template-columns: 1fr 1fr; } }
.auth-link { display: inline-flex; align-items: center; gap: 6px; justify-self: start; transition: gap 0.18s var(--ease), color 0.18s var(--ease); }
.auth-link:hover { gap: 10px; color: var(--text); }
.auth-media { display: none; position: relative; overflow: hidden; border-radius: var(--r-surface); background: var(--surface-2); }
@media (min-width: 900px) { .auth-media { display: block; } }
.auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--bg) 45%, transparent)); pointer-events: none; }
.form-status a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* menú móvil */
.mobile-nav { border-top: 1px solid var(--line); padding-block: 12px 20px; }
/* moneda y tema dentro del menú, solo en pantallas muy angostas (en el header no entran) */
.mobile-nav-prefs { display: none; }
@media (max-width: 359px) {
  .mobile-nav-prefs { display: block; }
  .header-actions .currency-btn, .header-actions [data-action="theme-toggle"] { display: none; }
  .header-row { gap: 12px; }
  .header-actions { gap: 6px; }
}
@media (min-width: 1100px) { .mobile-nav { display: none !important; } }
.mobile-nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 0 4px; font-size: 1.0625rem; font-weight: 500; color: var(--text-mid);
}
.mobile-nav a + a { border-top: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--text); font-weight: 650; }
.mobile-nav a[aria-current="page"]::after { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }

/* =========================================================================
   HOME
   ========================================================================= */
.hero { padding-block: 32px 56px; }
@media (min-width: 900px) { .hero { padding-block: 40px 64px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; } }
.hero-copy { display: grid; gap: 22px; }
.hero-title {
  font-size: clamp(2.375rem, 4.2vw, 3.75rem); line-height: 1.02; font-weight: 780; font-stretch: 75%;
  letter-spacing: -0.02em; max-width: 20ch;
}
.hero-title em { font-style: normal; color: var(--accent-ink); }
.hero-sub { font-size: 1.125rem; color: var(--text-mid); max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-media {
  position: relative; border-radius: var(--r-surface); overflow: hidden;
  aspect-ratio: 4 / 5; max-height: min(620px, calc(100dvh - var(--header-h) - 96px)); width: 100%; background: var(--surface-2);
}
@media (max-width: 899px) { .hero-media { aspect-ratio: 4 / 3; } }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* dimensionador FV+BESS */
.sizer-shell {
  border-radius: var(--r-surface); border: 1px solid var(--line); background: var(--surface);
  background-image: radial-gradient(90% 60% at 0% 0%, var(--accent-soft), transparent 55%);
  padding: 16px; display: grid; gap: 24px;
}
@media (min-width: 768px) { .sizer-shell { padding: 28px; } }
.sizer-foot { margin-top: 14px; }

.tool-switch { display: grid; gap: 8px; margin-bottom: 28px; }
@media (min-width: 640px) { .tool-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; } }
.tool-switch-link {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--bg-raised);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.tool-switch-link .ph { font-size: 22px; color: var(--text-dim); margin-top: 1px; }
.tool-switch-link span { display: grid; gap: 2px; }
.tool-switch-link strong { font-weight: 650; }
.tool-switch-link small { font-size: 0.8125rem; color: var(--text-dim); }
.tool-switch-link:hover { border-color: var(--text-dim); }
.tool-switch-link[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); }
.tool-switch-link[aria-current="page"] .ph { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .tool-switch-link { transition: none; } }

.sz-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sz-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: calc(var(--r-control) + 4px); background: var(--bg-raised); border: 1px solid var(--line); max-width: 100%; }
.sz-tab {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border: 0; border-radius: var(--r-control); background: transparent; color: var(--text-mid);
  font-weight: 600; font-size: 0.9375rem; cursor: pointer; white-space: nowrap;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), transform 0.12s var(--ease);
}
.sz-tab .ph { font-size: 18px; }
.sz-tab:hover { color: var(--text); }
.sz-tab[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.sz-tab:active, .sz-seg-btn:active { transform: scale(0.98); }

.sz-grid { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .sz-grid { grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
}
.sz-inputs { display: grid; gap: 20px; align-content: start; min-width: 0; }
.sz-row { display: grid; gap: 16px; }
@media (min-width: 560px) {
  .sz-row { grid-template-columns: 1fr 1fr; align-items: start; }
  }
.sz-group { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.sz-group legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-size: 1rem; font-weight: 700; font-stretch: 88%; }

.sz-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.sz-seg-wide { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) { .sz-seg-wide { grid-template-columns: repeat(3, 1fr); } }
.sz-seg-btn {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; text-align: left;
  border-radius: var(--r-control); border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--text);
  cursor: pointer; transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), transform 0.12s var(--ease);
}
.sz-seg-btn .ph { font-size: 20px; color: var(--text-dim); }
.sz-seg-btn span { display: grid; gap: 1px; }
.sz-seg-btn strong { font-size: 0.9375rem; font-weight: 600; }
.sz-seg-btn small { font-size: 0.8125rem; color: var(--text-dim); }
.sz-seg-btn:hover { border-color: var(--text-dim); }
.sz-seg-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.sz-seg-btn[aria-pressed="true"] .ph { color: var(--accent-ink); }
.sz-seg-wide .sz-seg-btn { align-items: flex-start; }
.sz-seg-wide .sz-seg-btn .ph { margin-top: 1px; }

.sz-out {
  display: grid; gap: 18px; min-width: 0; padding: 20px;
  border-radius: var(--r-surface); background: var(--bg-raised); border: 1px solid var(--line);
}
@media (min-width: 768px) { .sz-out { padding: 24px; } }
.sz-out-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sz-out-head h2 { font-size: 0.875rem; font-weight: 600; color: var(--text-dim); }
.sz-figure { display: grid; gap: 2px; }
.sz-kwp {
  display: inline-flex; align-items: baseline; gap: 8px; color: var(--accent-ink);
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 650;
  font-size: clamp(2.25rem, 4vw, 2.75rem); line-height: 1.05;
}
.sz-kwp small { font-size: 1rem; font-weight: 500; color: var(--text-mid); }
.sz-gen { font-size: 0.9375rem; color: var(--text-mid); font-variant-numeric: tabular-nums; }
.sz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.sz-stats div { padding: 10px 12px; border-radius: var(--r-control); background: var(--surface); border: 1px solid var(--line); }
.sz-stats dt { font-size: 0.75rem; color: var(--text-dim); }
.sz-stats dd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.0625rem; }
.sz-stats .sz-none { font-family: var(--font-sans); font-weight: 500; color: var(--text-mid); }

.sz-checks { display: grid; gap: 8px; font-size: 0.875rem; }
.sz-checks li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-mid); }
.sz-checks .ph-fill { font-size: 18px; margin-top: 1px; }
.sz-checks .is-ok .ph-fill { color: var(--ok); }
.sz-checks .is-warn .ph-fill { color: var(--warn); }
.sz-checks .is-bad { color: var(--text); }
.sz-checks .is-bad .ph-fill { color: var(--bad); }

.sz-config, .sz-verify { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.sz-config h3, .sz-verify h3 { font-size: 0.875rem; font-weight: 600; color: var(--text-dim); }
.sz-config-block { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-control); background: var(--surface); border: 1px solid var(--line); }
.sz-config-block h4 { margin: 0; font-size: 0.9375rem; font-weight: 700; }
.sz-config-block p { font-size: 0.875rem; color: var(--text-mid); }
.sz-config-block p strong { color: var(--text); font-weight: 600; }
.sz-mppts { display: grid; gap: 8px; }
.sz-mppts li { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; align-items: center; }
.sz-mppt-name { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--text-dim); }
.sz-mppt-strings { display: grid; gap: 6px; min-width: 0; }
.sz-mppt-meta { grid-column: 2; font-size: 0.75rem; color: var(--text-dim); }
.sz-mppt-meta:empty { display: none; }
/* paneles de un string: celdas unidas por una línea (conexión en serie) */
/* cada string ocupa una sola fila: si no entra, los paneles se angostan */
.sz-cells { display: flex; flex-wrap: nowrap; gap: 3px; min-width: 0; }
.sz-cell { flex: 0 1 14px; min-width: 3px; height: 20px; border-radius: 2px; background: var(--accent-soft); border: 1px solid var(--accent); }
.sz-mod { flex: 0 0 22px; width: 22px; height: 16px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.sz-cells-more { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent-ink); }
.sz-bank { display: flex; align-items: center; gap: 10px; }
.sz-bank .sz-cells { gap: 3px; }
.sz-bank:not(.is-series) .sz-cells { flex-direction: column; flex-wrap: nowrap; }
.sz-elec { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.sz-elec dt { font-size: 0.75rem; color: var(--text-dim); }
.sz-elec dd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.875rem; font-weight: 600; }

.sz-bom { padding-top: 16px; border-top: 1px solid var(--line); }
.sz-bom h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--text-dim); margin-bottom: 10px; }
.sz-ref-tag { padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: 0.75rem; font-weight: 600; }
.sz-bom .sz-note { margin-top: 12px; }
.sz-bom ul { display: grid; gap: 12px; }
.sz-bom li { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: baseline; }
.sz-qty, .sz-price { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.sz-qty { color: var(--accent-ink); font-weight: 600; }
.sz-price { text-align: right; white-space: nowrap; }
.sz-item { display: grid; min-width: 0; }
.sz-item strong { font-weight: 600; font-size: 0.9375rem; overflow-wrap: anywhere; }
.sz-item small { font-size: 0.8125rem; color: var(--text-dim); }
.sz-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.sz-total span { font-weight: 600; }
.sz-total strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.25rem; }

.sz-note { display: flex; gap: 8px; font-size: 0.8125rem; color: var(--text-dim); }
.sz-note .ph { font-size: 16px; margin-top: 2px; }
.sz-note.is-warn { color: var(--warn); }
.sz-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sz-actions .btn { flex: 1 1 auto; }

.sz-empty { display: grid; justify-items: center; gap: 10px; padding: 40px 16px; text-align: center; color: var(--text-mid); }
.sz-empty .ph { font-size: 36px; color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) {
  .sz-tab, .sz-seg-btn { transition: none; }
}

/* categorías: carrusel con scroll-snap */
/* bandas compactas de la home: título corto + contenido, poco aire vertical */
.home-band { padding-block: 44px; border-top: 1px solid var(--line); }
.home-band:last-child { padding-bottom: 64px; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.band-title { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.15; font-weight: 750; font-stretch: 84%; letter-spacing: -0.01em; }
.band-head, .home-band > .wrap > .band-title { margin-bottom: 20px; }
.band-lead { color: var(--text-mid); font-size: 0.9375rem; margin: -12px 0 20px; }
.home-revocation { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 20px; color: var(--text-mid); }
.home-revocation a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.home-revocation a .ph { font-size: 16px; }

/* tipos de sistema: tres accesos directos al configurador */
.system-links { display: grid; gap: 12px; }
@media (min-width: 900px) { .system-links { grid-template-columns: repeat(3, 1fr); } }
.system-link {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 18px;
  border-radius: var(--r-surface); background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.system-link:hover { border-color: var(--accent); }
.system-link:active { transform: scale(0.99); }
.system-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-control); background: var(--accent-soft); color: var(--accent-ink); font-size: 22px;
}
.system-text { display: grid; gap: 4px; }
.system-text strong { font-size: 1.0625rem; font-weight: 700; }
.system-text > span { color: var(--text-mid); font-size: 0.875rem; }
.system-text .system-tag { color: var(--text-dim); font-size: 0.8125rem; }
.system-link .go { color: var(--text-dim); font-size: 18px; margin-top: 12px; transition: transform 0.18s var(--ease), color 0.18s var(--ease); }
.system-link:hover .go { transform: translateX(4px); color: var(--accent-ink); }
.snap-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
  overscroll-behavior-x: contain; scrollbar-width: thin;
}
/* en desktop, grilla: todas las categorías a la vista, sin tiles cortados */
@media (min-width: 900px) {
  .snap-row { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); overflow: visible; padding-bottom: 0; }
}
.snap-row > li { display: grid; scroll-snap-align: start; }
.cat-tile {
  display: grid; gap: 18px; align-content: space-between;
  min-height: 116px; padding: 18px; border-radius: var(--r-surface);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.cat-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.cat-tile .ph { font-size: 30px; color: var(--accent-ink); }
.cat-tile strong { display: block; font-weight: 650; }

/* reveal al entrar en viewport (solo si no se pidió movimiento reducido) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .hero-copy > * { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
  .hero-media { animation: fade 1s var(--ease) both 0.15s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }

/* =========================================================================
   TIENDA
   ========================================================================= */
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 28px; scrollbar-width: none; overscroll-behavior-x: contain; }
@media (min-width: 1024px) { .cat-tabs { flex-wrap: wrap; overflow: visible; } }
.cat-tabs::-webkit-scrollbar, .subnav-row::-webkit-scrollbar { display: none; }
.cat-tab {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  min-height: 40px; padding: 0 14px; border-radius: var(--r-control);
  border: 1px solid var(--line); color: var(--text-mid); font-size: 0.9375rem; font-weight: 500;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.cat-tab:hover { border-color: var(--line-strong); color: var(--text); }
.cat-tab[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 650; }
.cat-tab .ph { font-size: 17px; }

.store-layout { display: grid; gap: 28px; }
@media (min-width: 1024px) {
  .store-layout { grid-template-columns: 240px 1fr; gap: 40px; }
  .store-filters { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.filters-disclosure > summary {
  display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-control);
  font-weight: 600; text-align: left;
}
.filters-disclosure > summary > .ph:last-child { margin-left: auto; }
.filters-disclosure > summary::-webkit-details-marker { display: none; }
.filters-disclosure[open] > summary { margin-bottom: 16px; }
@media (min-width: 1024px) { .filters-disclosure > summary { display: none; } }
.filter-group { display: grid; gap: 10px; }
.filter-group + .filter-group { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.filter-group legend { float: left; width: 100%; padding: 0; font-size: 0.8125rem; font-weight: 650; color: var(--text-dim); margin-bottom: 10px; }
.filter-group .chip-list { clear: both; }
.filters-clear { margin-top: 20px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border-radius: var(--r-control); border: 1px solid var(--line); background: transparent;
  color: var(--text-mid); font-size: 0.875rem; cursor: pointer;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); font-weight: 600; }
.chip[aria-pressed="true"]::before { content: ""; width: 6px; height: 10px; border: solid var(--accent-ink); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.results-bar .select { width: auto; min-width: 220px; }
.sort-field { grid-auto-flow: column; align-items: center; gap: 10px; }

.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-surface); overflow: hidden;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.product-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.product-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.product-card .card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.product-card .brand { font-size: 0.8125rem; color: var(--text-dim); font-weight: 500; }
.product-card h3 { font-size: 1.0625rem; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card h3 a:focus-visible { outline: none; }
.product-card .key-spec { font-size: 0.8125rem; color: var(--text-mid); }
.product-card .card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card .card-foot .btn { position: relative; z-index: 2; }

.thumb {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden;
  background:
    radial-gradient(80% 90% at 85% 10%, var(--accent-soft), transparent 60%),
    linear-gradient(160deg, var(--surface-2), var(--bg-raised));
  color: var(--accent-ink);
}
.thumb .ph { font-size: 56px; opacity: 0.9; }
/* sin fotos, en celular la tarjeta no necesita un recuadro tan alto */
@media (max-width: 639px) { .product-card .thumb { aspect-ratio: 16 / 9; } }
.thumb img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.thumb .badge { position: absolute; top: 12px; left: 12px; }
.thumb-lg { aspect-ratio: 1 / 1; border-radius: var(--r-surface); border: 1px solid var(--line); }
.thumb-lg .ph { font-size: 96px; }

.empty {
  display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: 56px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-surface);
}
.empty .ph { font-size: 40px; color: var(--text-dim); }
.empty h2, .empty h3 { font-size: 1.25rem; font-weight: 700; }
.empty p { color: var(--text-mid); max-width: 44ch; }
.empty-narrow { max-width: 640px; margin-inline: auto; }
.hero-ctas-center { justify-content: center; }
.hero-ctas-spaced { margin-top: 24px; }

/* =========================================================================
   DETALLE DE PRODUCTO
   ========================================================================= */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--text-dim); margin-bottom: 28px; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.detail-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.detail-info { display: grid; gap: 18px; }
.detail-info h1 { font-size: clamp(1.75rem, 3vw, 2.375rem); font-weight: 750; font-stretch: 85%; line-height: 1.1; }
.detail-price .iva { text-align: left; }
.detail-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }

.spec-section { margin-top: 64px; }
.spec-section h2 { font-size: 1.5rem; font-weight: 700; font-stretch: 85%; margin-bottom: 20px; }
.key-specs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 28px; }
.key-spec-tile { padding: 18px; border-radius: var(--r-surface); background: var(--surface); border: 1px solid var(--line); }
.key-spec-tile dt { font-size: 0.8125rem; color: var(--text-dim); }
.key-spec-tile dd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 1.5rem; font-weight: 600; margin-top: 6px; overflow-wrap: anywhere; }
.spec-list { display: grid; gap: 0 40px; }
@media (min-width: 768px) { .spec-list { grid-template-columns: 1fr 1fr; } }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.spec-list dt { color: var(--text-mid); }
.spec-list dd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }

/* =========================================================================
   CONFIGURADOR
   ========================================================================= */
.cfg-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .cfg-layout { grid-template-columns: 1fr 340px; gap: 40px; }
  .cfg-summary { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.steps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 32px; scrollbar-width: none; }
.step {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; white-space: nowrap;
  min-height: 40px; padding: 0 14px 0 8px; border-radius: var(--r-control);
  border: 1px solid var(--line); background: transparent; color: var(--text-dim); font-size: 0.875rem;
}
button.step { cursor: pointer; }
button.step:hover { border-color: var(--line-strong); color: var(--text); }
.step-dot {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px;
  background: var(--surface-2); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
}
.step.is-done { color: var(--text-mid); }
.step.is-done .step-dot { background: var(--ok); color: var(--bg); }
.step[aria-current="step"] { border-color: var(--accent); color: var(--text); font-weight: 600; }
.step[aria-current="step"] .step-dot { background: var(--accent); color: var(--on-accent); }

.step-title { font-size: 1.5rem; font-weight: 700; font-stretch: 85%; margin-bottom: 6px; }
.step-lead { color: var(--text-mid); margin-bottom: 24px; max-width: 60ch; }

.option-list { display: grid; gap: 12px; }
.option-list.cols-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.option {
  position: relative; display: grid; gap: 6px; width: 100%; text-align: left; cursor: pointer;
  padding: 18px 20px; border-radius: var(--r-surface);
  background: var(--surface); border: 1.5px solid var(--line); color: var(--text);
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.option:hover:not(:disabled) { border-color: var(--line-strong); }
.option[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
/* tilde de seleccionado: círculo de acento (::before) y tilde con máscara en --on-accent (::after) */
.option[aria-pressed="true"]::before, .option[aria-pressed="true"]::after {
  content: ""; position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 999px;
}
.option[aria-pressed="true"]::before { background: var(--accent); }
.option[aria-pressed="true"]::after {
  background: var(--on-accent);
  -webkit-mask: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  mask: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.option:disabled { cursor: not-allowed; opacity: 0.55; }
.option-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-right: 32px; }
.option-name { font-weight: 650; font-size: 1.0625rem; }
.option-meta { font-size: 0.8125rem; color: var(--text-mid); }
.option-meta-text, .dd-text { font-family: var(--font-sans); }
.option-side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.option .ph-type { font-size: 28px; color: var(--accent-ink); margin-bottom: 6px; }
.option-msgs { display: grid; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--text-mid); }

.cfg-fields { display: grid; gap: 20px; margin-top: 20px; padding: 20px; border-radius: var(--r-surface); background: var(--bg-raised); border: 1px solid var(--line); }
@media (min-width: 640px) { .cfg-fields { grid-template-columns: 1fr 1fr; } }
.cfg-fields .total { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--text-mid); }

.extra-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.extra-row + .extra-row { border-top: 1px solid var(--line); }
.extra-row .name { font-weight: 550; }
.extra-info { min-width: 0; }
.extras-panel { padding-block: 6px; }
.cfg-review { display: grid; gap: 12px; }
.cfg-add { margin-top: 20px; }

.cfg-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }

.summary-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 16px; }
.summary-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.summary-stats dt { font-size: 0.75rem; color: var(--text-dim); }
.summary-stats dd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.0625rem; }
.summary-lines { display: grid; gap: 10px; padding-block: 16px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.summary-lines li { display: flex; justify-content: space-between; gap: 12px; }
.summary-lines .name { color: var(--text-mid); min-width: 0; }
.summary-lines-flush { border-top: 0; padding-top: 0; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.summary-total > .muted { white-space: nowrap; }
.summary-total-spaced { margin-bottom: 20px; }
.summary-empty { font-size: 0.875rem; color: var(--text-dim); padding-block: 8px; }

.verdict { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--r-surface); }
.verdict ul { display: grid; gap: 4px; font-size: 0.9375rem; }
.verdict-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.verdict.tone-ok, .verdict.tone-warn, .verdict.tone-bad { color: var(--text); }
.verdict.tone-ok { border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); }
.verdict.tone-warn { border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.verdict.tone-bad { border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }

/* =========================================================================
   CALCULADORAS
   ========================================================================= */
.subnav {
  position: sticky; top: var(--header-h); z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav-row { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 40px; padding: 0 14px;
  border-radius: var(--r-control); color: var(--text-mid); font-size: 0.9375rem; font-weight: 500;
}
.subnav a:hover { color: var(--text); background: var(--surface-2); }
.subnav a[aria-current="true"] { color: var(--text); background: var(--surface-2); font-weight: 650; }
.subnav .ph { color: var(--accent-ink); font-size: 18px; }

.calc-page-top { padding-top: 56px; }
.calc-page-head { margin-bottom: 28px; }
.calc-page-bottom { padding-bottom: 48px; }
.field-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.angle-input { width: 84px; text-align: center; }
.calc { padding-block: 64px; scroll-margin-top: calc(var(--header-h) + 72px); }
.calc + .calc { border-top: 1px solid var(--line); }
.calc-head { display: grid; gap: 8px; margin-bottom: 28px; max-width: 64ch; }
.calc-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 750; font-stretch: 84%; line-height: 1.1; }
.calc-grid { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .calc-grid { grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
  .calc-result { position: sticky; top: calc(var(--header-h) + 88px); }
}
.calc-inputs { display: grid; gap: 18px; align-content: start; }

.result-card { padding: 24px; border-radius: var(--r-surface); background: var(--surface); border: 1px solid var(--line); }
.result-card h3 { font-size: 0.875rem; font-weight: 600; color: var(--text-dim); margin-bottom: 14px; }
.result-main dt { font-size: 0.875rem; color: var(--text-mid); }
.result-main dd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 650; color: var(--accent-ink); line-height: 1.15; overflow-wrap: anywhere; }
.result-rest { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.result-rest div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.result-rest dt { color: var(--text-mid); }
.result-rest dd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; }

.explainer { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r-surface); background: var(--bg-raised); border: 1px solid var(--line); font-size: 0.9375rem; color: var(--text-mid); }
.explainer .ph { font-size: 22px; color: var(--accent-ink); margin-top: 1px; }
.explainer strong { color: var(--text); font-weight: 600; }

.appliance-head, .appliance-row { display: grid; gap: 8px; grid-template-columns: 1fr 1fr 40px; align-items: center; }
.appliance-head { display: none; font-size: 0.8125rem; color: var(--text-dim); font-weight: 600; padding-inline: 2px; }
.appliance-row { padding: 14px; border-radius: var(--r-surface); background: var(--surface); border: 1px solid var(--line); }
.appliance-row .name-cell { grid-column: 1 / 3; }
.appliance-row .del-cell { grid-column: 3; grid-row: 1; }
.appliance-row .mini-label { display: block; font-size: 0.75rem; color: var(--text-dim); margin-bottom: 4px; }
@media (min-width: 720px) {
  .appliance-head, .appliance-row { grid-template-columns: 2.2fr 1fr 0.8fr 1fr 40px; }
  .appliance-head { display: grid; }
  .appliance-row { padding: 0; background: none; border: 0; }
  .appliance-row .name-cell { grid-column: auto; }
  .appliance-row .del-cell { grid-column: auto; grid-row: auto; }
  .appliance-row .mini-label { display: none; }
}
.appliance-list { display: grid; gap: 10px; }

.angle-scenes { display: grid; gap: 12px; }
@media (min-width: 560px) { .angle-scenes { grid-template-columns: 1fr 1fr; } }
.scene { position: relative; height: 220px; display: grid; place-items: center; overflow: hidden; border-radius: var(--r-surface); background: var(--bg-raised); border: 1px solid var(--line); }
.scene-label { position: absolute; top: 10px; left: 12px; font-size: 0.75rem; color: var(--text-dim); }
.iso-stage { perspective: 700px; display: grid; place-items: center; height: 100%; }
.iso-world { position: relative; transform-style: preserve-3d; transform: rotateX(55deg) rotateZ(40deg); }
.iso-ground { width: 170px; height: 170px; background: linear-gradient(135deg, var(--accent-soft), transparent); border: 1px solid var(--line-strong); }
.iso-panel { position: absolute; left: 12px; bottom: 0; width: 140px; height: 90px; transform-style: preserve-3d; transform-origin: bottom center; transition: transform 0.2s var(--ease); }
.iso-face {
  width: 100%; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr);
  gap: 2px; padding: 4px; background: linear-gradient(160deg, var(--line-strong), var(--surface-2)); border: 2px solid var(--accent);
  box-shadow: var(--shadow);
}
.iso-face > span { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
@media (prefers-reduced-motion: reduce) { .iso-panel { transition: none; } }

/* =========================================================================
   CARRITO
   ========================================================================= */
.cart-layout { display: grid; gap: 28px; }
@media (min-width: 960px) {
  .cart-layout { grid-template-columns: 1fr 360px; gap: 40px; }
  .cart-aside { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.cart-group + .cart-group { margin-top: 32px; }
.cart-group-title { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 650; margin-bottom: 12px; }
.cart-group-title .ph { color: var(--accent-ink); font-size: 18px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr; gap: 14px 16px; align-items: center; padding: 16px; border-radius: var(--r-surface); background: var(--surface); border: 1px solid var(--line); }
.cart-line + .cart-line { margin-top: 10px; }
.cart-line .thumb { aspect-ratio: 1; border-radius: var(--r-control); }
.cart-line .thumb .ph { font-size: 28px; }
.cart-line .info { min-width: 0; }
.cart-line .info a { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line .info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cart-line .controls { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 640px) {
  .cart-line { grid-template-columns: 64px 1fr auto; }
  .cart-line .controls { grid-column: auto; gap: 20px; }
}
.cart-aside .rows { display: grid; gap: 10px; margin-bottom: 16px; font-size: 0.9375rem; }
.cart-aside .rows div { display: flex; justify-content: space-between; gap: 12px; }
.cart-aside .rows dt { color: var(--text-mid); }
.checkout-alt-form { margin-top: 6px; }
.cart-note { margin-top: 12px; }
.order-legacy { max-width: 720px; }

/* =========================================================================
   INFO / CONTACTO
   ========================================================================= */
.info-hero { border-radius: var(--r-surface); overflow: hidden; aspect-ratio: 21 / 9; margin-bottom: 48px; background: var(--surface-2); }
.info-hero img { width: 100%; height: 100%; object-fit: cover; }
.prose { display: grid; gap: 18px; max-width: 68ch; color: var(--text-mid); font-size: 1.0625rem; }
.prose h2 { color: var(--text); font-size: 1.5rem; font-weight: 700; font-stretch: 85%; margin-top: 24px; }
.prose strong { color: var(--text); }
.info-cols { display: grid; gap: 48px; }
@media (min-width: 960px) { .info-cols { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
.fact-list { display: grid; gap: 12px; align-content: start; }
.fact { padding: 20px; border-radius: var(--r-surface); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
.fact .ph { font-size: 24px; color: var(--accent-ink); }
.fact strong { font-weight: 650; }
.fact p { font-size: 0.9375rem; color: var(--text-mid); }

.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; align-items: start; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-status { padding: 14px 16px; border-radius: var(--r-control); font-size: 0.9375rem; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px 40px; margin-top: 24px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-grid p { color: var(--text-mid); font-size: 0.9375rem; max-width: 34ch; margin-top: 16px; }
.footer-col h2 { font-size: 0.875rem; font-weight: 650; margin-bottom: 12px; }
.footer-col a { display: block; padding: 6px 0; color: var(--text-mid); font-size: 0.9375rem; }
.footer-col a:hover { color: var(--text); }
.footer-base {
  display: grid; gap: 8px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--text-dim);
}
.footer-base strong { color: var(--text-mid); font-weight: 600; }
.footer-consumer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 8px; }
.footer-revocation {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--accent); border-radius: var(--r-control); background: var(--accent-soft);
  color: var(--text); font-size: 0.9375rem; font-weight: 650;
  transition: background-color 0.18s var(--ease);
}
.footer-revocation .ph { color: var(--accent-ink); font-size: 18px; }
.footer-revocation:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.footer-complaints { color: var(--text-mid); text-decoration: underline; text-underline-offset: 3px; }
.footer-complaints:hover { color: var(--text); }
.data-fiscal { display: inline-flex; align-items: center; gap: 8px; color: var(--text-mid); }
.data-fiscal img { width: 48px; height: auto; border-radius: 4px; }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.footer-legal a, .footer-legal .link-btn { color: var(--text-mid); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.footer-legal a:hover, .footer-legal .link-btn:hover { color: var(--text); }
.footer-seller a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   FLOTANTES: toast + volver arriba
   ========================================================================= */
.toast-region { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px; border-radius: var(--r-surface);
  background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-size: 0.9375rem;
}
.toast .ph-fill { font-size: 20px; color: var(--accent); }
:root[data-theme="light"] .toast .ph-fill { color: var(--accent-ink); }
.toast .msg { flex: 1; min-width: 0; }
.toast .toast-close { border: 0; color: inherit; }
.toast .btn { min-height: 36px; padding: 6px 12px; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }
.toast .btn:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: rise 0.35s var(--ease) both; } }

.back-to-top {
  position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 50;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s, border-color 0.15s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { border-color: var(--accent); }
.back-to-top .ph { font-size: 18px; }

.boot { display: grid; gap: 16px; padding-block: 64px; }
.skeleton { border-radius: var(--r-surface); background: var(--surface); position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .skeleton::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 6%, transparent), transparent);
    animation: shimmer 1.4s infinite;
  }
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* Movimiento reducido: regla global (transiciones y animaciones instantáneas) y sin desplazamientos al hover */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important;
  }
  .btn:active:not(:disabled), .system-link:active, .sz-tab:active, .sz-seg-btn:active { transform: none; }
  .product-card:hover, .cat-tile:hover, .wa-fab:hover, .system-link:hover .go { transform: none; }
}

/* =========================================================================
   IVA, aviso técnico, proceso, WhatsApp, estado de carga, legales
   ========================================================================= */
.iva { display: block; font-size: 0.75rem; font-weight: 500; font-stretch: 100%; letter-spacing: 0; color: var(--text-dim); text-align: right; margin-top: 2px; }

.tech-note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 32px; padding: 14px 16px;
  border-radius: var(--r-surface); border: 1px solid var(--line); background: var(--surface);
  color: var(--text-mid); font-size: 0.875rem; line-height: 1.55;
}
.tech-note .ph { font-size: 20px; flex: none; margin-top: 1px; color: var(--accent-ink); }
.tech-note strong { color: var(--text); }
.tech-note-spaced { margin-top: 40px; }
.verdict + .tech-note, .tech-note:first-child { margin-top: 0; }

.process { padding-block: 72px; border-top: 1px solid var(--line); }
.process-steps { list-style: none; display: grid; gap: 12px; padding: 0; margin: 0; counter-reset: none; }
@media (min-width: 768px) { .process-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process-steps { grid-template-columns: repeat(4, 1fr); } }
.process-steps li {
  display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: var(--r-surface);
  background: var(--surface); border: 1px solid var(--line);
}
.process-num {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-mono); font-weight: 700; font-size: 0.875rem;
}
.process-steps h3 { display: flex; align-items: flex-start; gap: 8px; font-size: 1.0625rem; font-weight: 650; margin-bottom: 6px; }
.process-steps h3 .ph { font-size: 20px; color: var(--accent-ink); }
.process-steps p { color: var(--text-mid); font-size: 0.9375rem; }
.process-compact { padding-block: 0; border-top: 0; margin-top: 48px; }
.process-steps-tight li { padding: 16px 18px; gap: 10px; }
.process-steps-tight h3 { font-size: 1rem; margin-bottom: 4px; }
.process-steps-tight p { font-size: 0.875rem; }
@media (min-width: 900px) { .process-steps-tight { grid-template-columns: repeat(4, 1fr); } }
.process-title { font-size: 1.25rem; font-weight: 700; font-stretch: 85%; margin-bottom: 16px; }

.wa-fab {
  position: fixed; right: calc(16px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 51;
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 999px;
  /* verde de marca de WhatsApp: única excepción a la paleta, igual en los dos temas */
  background: #25d366; color: #05210f; box-shadow: var(--shadow);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab .ph-fill { font-size: 28px; }
/* en celular, el FAB más chico y aire al final de la página para que no tape el pie */
@media (max-width: 639px) {
  .wa-fab { width: 48px; height: 48px; }
  .wa-fab .ph-fill { font-size: 26px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) { .toast-region { bottom: calc(84px + env(safe-area-inset-bottom)); } }

.boot-msg { display: flex; align-items: center; gap: 10px; color: var(--text-mid); font-size: 0.9375rem; }
.spinner {
  width: 18px; height: 18px; border-radius: 999px; flex: none;
  border: 2px solid var(--line-strong); border-top-color: var(--accent);
}
@media (prefers-reduced-motion: no-preference) { .spinner { animation: spin 0.8s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }


.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal a.link-arrow { text-decoration: none; }
.legal h2:first-child { margin-top: 0; }
.legal-list { display: grid; gap: 10px; padding-left: 1.25em; list-style: disc; }
.legal-list li::marker { color: var(--accent-ink); }
/* links dentro de texto chico o atenuado: subrayados para que se distingan */
.xsmall.dim a:not(.btn), p.muted a:not(.btn):not(.link-arrow) { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Checkout, advertencias de calculadoras y honeypot del formulario ---------- */
.checkout-form { display: grid; gap: 12px; margin-bottom: 16px; }
.checkout-title { font-size: 1rem; margin: 0; }
.checkout-alt { border-top: 1px solid var(--line); padding-top: 14px; }
.calc-warnings:empty { display: none; }
.calc-warnings { margin-top: 12px; }
.calc-warn-list { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--r-surface); background: var(--warn-bg); color: var(--text); font-size: 0.875rem; list-style: none; margin: 0; }
.calc-warn-list li { display: flex; gap: 8px; align-items: flex-start; }
.calc-warn-list i { color: var(--warn); margin-top: 2px; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.tone-text-ok { color: var(--ok); } .tone-text-warn { color: var(--warn); } .tone-text-bad { color: var(--bad); }

/* ---------- Checkout con cuenta, Mis pedidos, detalle del pedido y Mis datos ---------- */
.select[aria-invalid="true"] { border-color: var(--bad); }
.tone-muted { background: var(--surface-2); color: var(--text-mid); }
.checkout-login { display: grid; gap: 12px; margin-bottom: 16px; }
.checkout-who { display: flex; align-items: center; gap: 10px; }
.checkout-who p { min-width: 0; overflow-wrap: anywhere; }
.link-btn { border: 0; padding: 0; background: none; font: inherit; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice-group legend { grid-column: 1 / -1; }
.choice {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; min-height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--r-control); background: var(--bg-raised); cursor: pointer;
}
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { margin-top: 3px; accent-color: var(--accent); }
.choice span { display: grid; gap: 1px; }
.choice strong { font-size: 0.9375rem; font-weight: 600; }
.choice small { font-size: 0.8125rem; color: var(--text-dim); }
.form-row-tight { gap: 12px; grid-template-columns: 1fr 1fr; }
.checkout-billing summary { cursor: pointer; font-size: 0.875rem; color: var(--text-mid); padding-block: 4px; }
.checkout-billing summary:hover { color: var(--text); }
.checkout-billing-body { display: grid; gap: 12px; padding-top: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; cursor: pointer; min-height: 32px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Pantallas táctiles: todo lo que se toca mide al menos 44 px */
@media (pointer: coarse) {
  .chip, .btn-sm, .cat-tab, .subnav a, .step, .sz-tab { min-height: 44px; }
  .check { min-height: 44px; }
  .check input { width: 22px; height: 22px; }
  .link-btn { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-legal a, .footer-complaints, .footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-col a { display: flex; padding-block: 0; }
}

.order-code { font-size: clamp(1.75rem, 6vw, 2.75rem); letter-spacing: 0.04em; }
.order-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .order-grid { grid-template-columns: 1fr 1fr; } .order-grid .order-status { grid-column: 1 / -1; } }
.order-status { display: grid; gap: 14px; justify-items: start; }
.order-status .summary-title { display: flex; align-items: center; gap: 8px; margin: 0; }
.order-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.order-facts div { display: grid; gap: 4px; }
.order-facts dt { font-size: 0.75rem; color: var(--text-dim); }
.order-subtitle { font-size: 0.9375rem; font-weight: 650; margin-top: 16px; }
.order-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.order-card { padding: 16px 18px; display: grid; gap: 10px; }
.order-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.order-card-code { font-size: 1.125rem; font-weight: 700; color: var(--text); }
.order-card-code:hover { text-decoration: underline; text-underline-offset: 3px; }
.order-card-summary { color: var(--text-mid); font-size: 0.9375rem; overflow-wrap: anywhere; }
.order-card-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.order-card-pair { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.order-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.account-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .account-grid { grid-template-columns: 320px 1fr; } }
.account-card { margin-inline: 0; }
.account-form { max-width: 640px; }
.account-fieldset { display: grid; gap: 14px; }

/* ---------- Aviso de cookies (lo inserta app.js en #cookie-root) ----------
   Fijo abajo a la izquierda: deja libres el botón de WhatsApp y el de volver arriba (derecha). */
.cookie-banner {
  position: fixed; z-index: 55;
  left: calc(16px + env(safe-area-inset-left)); bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(16px + 52px + 12px + env(safe-area-inset-right));
  max-width: 520px; display: grid; gap: 14px; padding: 16px 18px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: var(--r-surface); box-shadow: var(--shadow); font-size: 0.875rem;
}
.cookie-text { color: var(--text-mid); }
.cookie-text strong { display: block; color: var(--text); font-size: 0.9375rem; margin-bottom: 4px; }
.cookie-text a { color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cookie-actions .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .cookie-actions .btn { flex: 0 0 auto; } }
@media (prefers-reduced-motion: no-preference) { .cookie-banner { animation: rise 0.35s var(--ease) both; } }

.calc-footnote { margin-top: 12px; }
