/* ==========================================================================
   base.css — núcleo premium-web-experience (neutral de marca)
   Requiere tokens.css cargado ANTES. No contiene colores literales de marca:
   la identidad vive en tokens.css y en el CSS de composición del proyecto.
   Orden de carga:  tokens.css → base.css → styles.css (composición propia)
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
::selection { background: var(--brand); color: var(--on-brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-xs); }
body.is-locked { overflow: hidden; }

.sr-only { position: absolute; 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: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r); font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }

/* Iconos de línea (sprite <symbol>): un grosor base, ajustado por tamaño */
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 15px; height: 15px; stroke-width: 2.5; }
.i--lg { width: 32px; height: 32px; stroke-width: 1.5; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-style: var(--display-style);
  font-variation-settings: var(--display-settings);
  letter-spacing: var(--display-tracking);
  line-height: var(--display-leading);
  text-wrap: balance;
}
.h-hero { font-size: var(--fs-hero); }
.h-2 { font-size: var(--fs-h2); }
.h-3 { font-size: var(--fs-h3); line-height: 1.12; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-meta); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); flex: none; }
.eyebrow--plain::before { display: none; }
.on-inverse .eyebrow, .section--inverse .eyebrow { color: var(--on-inverse-2); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); text-wrap: pretty; max-width: 60ch; }
.muted-text { color: var(--ink-3); }
.nowrap { white-space: nowrap; } /* palabra estilizada + puntuación: nunca separarlas */
.num { font-variant-numeric: tabular-nums; }
.accent-text { color: var(--brand); }

/* ---------- Secciones ---------- */
.section { padding-block: var(--section-y); }
.section--muted { background: var(--muted); }
.section--inverse { background: var(--inverse); color: var(--on-inverse); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: var(--head-gap); }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }
.section__title { font-size: var(--fs-h2); }
.section__lead { max-width: 420px; color: var(--ink-3); font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.section--inverse .section__lead, .on-inverse .section__lead { color: var(--on-inverse-2); }

/* ---------- Botones ---------- */
.btn {
  --h: 44px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px;
  border-radius: var(--r);
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  white-space: nowrap; user-select: none;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1), box-shadow var(--dur-1), border-color var(--dur-1), transform .12s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .i { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.btn:hover .i:last-child:not(:first-child) { transform: translateX(2px); }
.btn--sm { --h: 36px; padding: 0 12px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn--lg { --h: 52px; padding: 0 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--sh-btn); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ink { background: var(--ink); color: var(--bg); box-shadow: var(--sh-btn); }
.btn--ink:hover { background: var(--ink-2); }
.btn--outline { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong), inset 0 -2px 0 rgba(0,0,0,.04), var(--sh-xs); }
.btn--outline:hover { background: var(--muted); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--muted); }
.btn--on-inverse { background: var(--on-inverse); color: var(--inverse); box-shadow: var(--sh-btn); }
.btn--on-inverse:hover { background: color-mix(in srgb, var(--on-inverse) 88%, var(--inverse)); }
.btn--outline-inverse { color: var(--on-inverse); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-inverse) 24%, transparent); }
.btn--outline-inverse:hover { background: color-mix(in srgb, var(--on-inverse) 7%, transparent); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-done { background: var(--ok) !important; color: #fff !important; }

.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); color: var(--ink-2); transition: background-color var(--dur-1), color var(--dur-1); }
.icon-btn:hover { background: var(--muted); color: var(--ink); }
.icon-btn .i { width: 20px; height: 20px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease-out); padding-bottom: 2px; }
.text-link:hover { background-size: 100% 1.5px; }

/* ---------- Badges, pills, chips ---------- */
.badge-group { display: inline-flex; align-items: center; gap: 10px; padding: 4px 12px 4px 4px; margin-bottom: 24px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--sh-xs); font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: box-shadow .2s; }
.badge-group:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--sh-sm); }
.badge-group__tag { display: inline-flex; align-items: center; gap: 7px; height: 26px; white-space: nowrap; flex: none; padding: 0 10px; border-radius: var(--r-pill); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-soft-border); color: var(--brand-text); font-weight: 600; font-size: 12.5px; }
.badge-group .i { width: 15px; height: 15px; color: var(--ink-3); transition: transform .2s var(--ease); }
.badge-group:hover .i { transform: translateX(2px); }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-4); flex: none; }
.is-open .live-dot, .live-dot--on { background: var(--ok); }
.is-open .live-dot::after, .live-dot--on::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: inherit; opacity: .35; animation: ping 2s var(--ease) infinite; }
.is-closed .live-dot { background: var(--danger); }
@keyframes ping { 0% { transform: scale(.6); opacity: .5; } 80%, 100% { transform: scale(2.2); opacity: 0; } }

.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 14px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--sh-xs); font-size: 14px; font-weight: 550; transition: box-shadow .2s, transform .2s var(--ease); }
.chip .i { color: var(--brand); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--sh-md); transform: translateY(-1px); }

/* ---------- Superficies ---------- */
.card { position: relative; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--sh-xs); }
.card--hover { transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.card--hover:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--sh-lg); transform: translateY(-2px); }
.card--inverse { background: var(--inverse-2); color: var(--on-inverse); box-shadow: inset 0 0 0 1px var(--inverse-border); }
.media { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--muted-2); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-4) var(--ease-out); }
.zoom-on-hover:hover .media > img, a:hover > .media > img { transform: scale(1.05); }
.media__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 45%, rgba(var(--shadow-rgb),.42) 100%); }
.glass { background: color-mix(in srgb, var(--surface) 86%, transparent); -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%); box-shadow: 0 0 0 1px color-mix(in srgb, var(--surface) 55%, transparent), var(--sh-lg); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 16px; font-size: 14px; line-height: 1.25; }
.float-card strong { display: block; font-weight: 650; }
.float-card small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.icon-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--muted); box-shadow: inset 0 0 0 1px var(--border); color: var(--ink-2); flex: none; }
.icon-tile--brand { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand-soft-border); color: var(--brand-text); }
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(var(--shadow-rgb),.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(var(--shadow-rgb),.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.header.is-scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--surface) 88%, transparent); }
.header__row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.nav { display: flex; gap: 2px; margin-inline: auto; }
.nav a { position: relative; padding: 8px 12px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color var(--dur-1), background-color var(--dur-1); }
.nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--brand); }
.header__actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 70; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }
html:not(.motion) .scroll-progress { display: none; }

/* ---------- Capas: overlay, drawer, sheet, dialog, toast ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(var(--shadow-rgb),.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s var(--ease); }
.overlay.is-open { opacity: 1; }
.drawer, .sheet { position: fixed; inset: 0 0 0 auto; z-index: 90; display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--sh-xl); transform: translateX(100%); transition: transform var(--dur-3) var(--ease-out); }
.drawer { width: min(380px, 88vw); }
.sheet { width: min(460px, 100vw); }
.drawer.is-open, .sheet.is-open { transform: none; }
.drawer__head, .sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--border); }
.drawer__nav { display: flex; flex-direction: column; padding: 10px 12px; overflow-y: auto; }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; padding: 15px 10px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 21px; letter-spacing: var(--display-tracking); border-bottom: 1px solid var(--border); }
.drawer__nav a .i { color: var(--ink-4); }
.drawer__foot, .sheet__foot { margin-top: auto; display: grid; gap: 10px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px 22px; }
.dialog { position: fixed; z-index: 100; inset: 50% auto auto 50%; width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: var(--surface); border-radius: var(--r-2xl); box-shadow: var(--sh-xl), 0 0 0 1px var(--border); transform: translate(-50%, -48%) scale(.98); opacity: 0; transition: transform .3s var(--ease-out), opacity .2s; }
.dialog.is-open { transform: translate(-50%, -50%); opacity: 1; }
.toast-region { position: fixed; z-index: 120; right: 20px; bottom: 20px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 300px; max-width: 440px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: 0 0 0 1px var(--border), var(--sh-xl); transform: translateY(16px) scale(.98); opacity: 0; transition: transform .35s var(--ease-out), opacity .2s; }
.toast.is-open { transform: none; opacity: 1; }
.toast__icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.toast__text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.toast__text strong { font-size: 14px; font-weight: 650; }
.toast__text span { font-size: 13px; color: var(--ink-3); }

/* ---------- Controles ---------- */
.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--muted-2); box-shadow: inset 0 0 0 1px rgba(var(--shadow-rgb),.04); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 550; color: var(--ink-3); white-space: nowrap; transition: color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1); }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(var(--shadow-rgb),.08), 0 0 0 1px rgba(var(--shadow-rgb),.05); }
.segmented--full { display: flex; width: 100%; }
.segmented--full button { flex: 1; }
.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.choice button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 11px 14px; border-radius: 12px; text-align: left; font-weight: 650; font-size: 15px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); transition: box-shadow var(--dur-1), background-color var(--dur-1); }
.choice button small { font-size: 12.5px; font-weight: 450; color: var(--ink-3); }
.choice button:hover { background: var(--muted); }
.choice button[aria-checked="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.choice button[aria-checked="true"] small { color: var(--brand-text); }
.choice button:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.field { display: grid; gap: 7px; }
.field label, .field__label { font-size: 14px; font-weight: 600; }
.input { width: 100%; min-height: 46px; padding: 10px 13px; border: 0; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-input), var(--sh-xs); font-size: 15px; outline: none; transition: box-shadow var(--dur-1); }
.input::placeholder { color: var(--ink-4); }
.input:focus { box-shadow: inset 0 0 0 1px var(--brand), var(--ring); }
.field.is-invalid .input { box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent); }
.field__err { display: none; font-size: 13px; color: var(--danger-700); }
.field.is-invalid .field__err { display: block; }
.stepper { display: inline-flex; align-items: center; height: 44px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-input); }
.stepper button { width: 40px; height: 100%; display: grid; place-items: center; color: var(--ink-2); border-radius: var(--r); transition: background-color var(--dur-1); }
.stepper button:hover { background: var(--muted); }
.stepper button:disabled { color: var(--ink-4); background: none; cursor: not-allowed; }
.stepper output { min-width: 44px; text-align: center; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Acordeón ---------- */
.accordion { border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); padding: 4px 24px; }
.acc + .acc { border-top: 1px solid var(--border); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 16.5px; cursor: pointer; list-style: none; transition: color var(--dur-1); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .i { color: var(--ink-3); transition: transform .25s var(--ease); }
.acc[open] summary .i { transform: rotate(180deg); }
.acc.is-closing summary .i { transform: none; }
.acc summary:hover { color: var(--brand-text); }
.acc__body { overflow: hidden; padding: 0 32px 22px 0; color: var(--ink-3); font-size: 15px; line-height: 1.65; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 36s linear infinite; will-change: transform; }
.motion .marquee__track { animation: none; }
.marquee__group { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); padding-right: clamp(18px, 2.4vw, 36px); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Comparador antes/después ---------- */
.compare { --pos: 50%; position: relative; overflow: hidden; border-radius: var(--r-2xl); user-select: none; touch-action: pan-y; }
.compare > svg, .compare > img, .compare > picture { display: block; width: 100%; height: auto; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); pointer-events: none; }
.compare__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18-6-6 6-6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat; box-shadow: var(--sh-lg); }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare input[type="range"]:focus-visible + .compare__handle::after { box-shadow: var(--ring), var(--sh-lg); }

/* ---------- Scroll horizontal anclado ---------- */
.hscroll__track { display: flex; gap: var(--grid-gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.hscroll__track::-webkit-scrollbar { display: none; }
.hscroll__track > * { scroll-snap-align: start; flex: none; }
.hscroll.is-armed { overflow: hidden; }
.hscroll.is-armed .hscroll__track { overflow: visible; scroll-snap-type: none; }

/* ---------- Estados de motion (mejora progresiva) ---------- */
/* Ocultar SOLO cuando motion.js ha tomado el control (.motion) o el fallback (.reveal-fallback). */
.motion [data-reveal], .reveal-fallback [data-reveal] { opacity: 0; transform: translateY(16px); }
.motion--reduced [data-reveal] { transform: none; }
.reveal-fallback [data-reveal] { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal-fallback [data-reveal].is-in { opacity: 1; transform: none; }
.motion-pending [data-hero-title], .motion-pending [data-hero] { visibility: hidden; }
.split-line-mask { padding-block: .1em; margin-block: -.1em; }
.odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; line-height: 1; }
.odo__col { display: flex; flex-direction: column; }
.odo__col > span { display: block; height: 1em; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  /* motion.js usa entonces el modo "soft": solo fundidos */
}

/* ---------- Barra de acciones móvil ---------- */
.action-bar { display: none; }

/* ==========================================================================
   Responsive núcleo (los proyectos añaden sus propias reglas de composición)
   1120: nav → menú · 960: grids a 1 columna · 767: móvil · 480: compacto
   ========================================================================== */
@media (max-width: 1120px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .section__head { flex-direction: column; align-items: flex-start; }
  .section__head--center { align-items: center; }
}
@media (max-width: 767px) {
  :root { --header-h: 60px; }
  .hide-sm { display: none !important; }
  .toast-region { left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  .toast { min-width: 0; max-width: none; }
  .dialog { inset: auto 0 0 0; width: 100%; max-height: calc(100dvh - 24px); border-radius: var(--r-xl) var(--r-xl) 0 0; transform: translateY(24px); }
  .dialog.is-open { transform: none; }
  body.has-action-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .action-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--border); }
  .action-bar > * { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 12px; font-size: 14.5px; font-weight: 600; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong); }
  .action-bar > .is-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--sh-btn); }
}
@media (hover: none) { .reveal-on-hover { opacity: 1 !important; transform: none !important; } }

/* ---------- Slider (range) con relleno ---------- */
.range { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--brand) var(--p), var(--muted-2) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--muted-2); }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--brand); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px rgba(var(--shadow-rgb),.18), 0 2px 6px rgba(var(--shadow-rgb),.18); transition: transform var(--dur-1) var(--ease); }
.range::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px rgba(var(--shadow-rgb),.18), 0 2px 6px rgba(var(--shadow-rgb),.18); }
.range:hover::-webkit-slider-thumb { transform: scale(1.08); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--brand), var(--ring); }
