/* ==========================================================
   V8 · Subsitios de unidad — componentes propios (se carga DESPUÉS de v8.css).
   El color de la unidad (--u) viene de <html data-unidad="ec|log|om|rental"> y
   PREDOMINA: es el acento de toda la página (--c-accent), la luz del hero, la banda
   de cifras (fondo sólido con texto tinta) y los botones. Nunca como texto sobre
   fondo claro: ahí se usa --accent-ink (oscurecido en el tema claro).
   ========================================================== */
:root[data-unidad] { --c-accent: var(--u); --on-accent: var(--c-ink); }

/* ---------- Hero de unidad ---------- */
.uhero { position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: var(--shade); }
.uhero__media { position: absolute; inset: 0; z-index: -2; }
.uhero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.uhero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 0% 100%, color-mix(in srgb, var(--u) 38%, transparent), transparent 70%),
    linear-gradient(90deg, color-mix(in srgb, var(--shade) 92%, transparent) 0%, color-mix(in srgb, var(--shade) 55%, transparent) 55%, color-mix(in srgb, var(--shade) 15%, transparent) 100%),
    linear-gradient(0deg, var(--shade) 0%, transparent 45%); }
.uhero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--u); transform-origin: left; }
.uhero__body { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--header-h) + var(--bar-h) + 3rem) var(--gutter) clamp(3rem, 8vh, 5.5rem); }
.uhero__logo { width: clamp(150px, 16vw, 210px); margin-bottom: 1.5rem; }
.uhero__kicker { display: flex; align-items: center; gap: .7em; margin: 0 0 1rem; font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--u); }
.uhero__kicker::before { content: ""; width: 2.25rem; height: 2px; background: var(--u); }
.uhero h1 { font-size: clamp(2.8rem, min(1rem + 7vw, 12svh), 8.5rem); line-height: .9; letter-spacing: -.01em; max-width: 14ch; text-shadow: 0 4px 40px rgba(0,0,0,.4); }
.uhero h1 .line { display: block; overflow: hidden; padding-bottom: .04em; }
.uhero h1 .line__in { display: inline-block; }
.uhero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 2px var(--c-white); }
.uhero__lead { max-width: 40rem; margin: 1.5rem 0 2rem; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); color: rgba(255,255,255,.88); }
.uhero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.uhero .btn--ghost { --fg: var(--c-white); }
.uhero__facts { list-style: none; margin: clamp(2rem, 5vh, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem 2rem; max-width: 60rem; }
.uhero__facts li { border-top: 1px solid rgba(255,255,255,.22); padding-top: .8rem; }
.uhero__facts strong { display: block; font: 600 clamp(1.4rem, 1rem + 1.2vw, 2.1rem)/1.05 var(--ff-title); text-transform: uppercase; }
.uhero__facts span { font-size: .85rem; color: rgba(255,255,255,.72); }
.uhero__credit { position: absolute; right: var(--gutter); bottom: 1.1rem; margin: 0; font-size: .68rem; color: rgba(255,255,255,.55); }
@media (max-width: 767px) { .uhero__credit { display: none; } }

/* ---------- Banda de color de la unidad (cifras) ---------- */
.uband { position: relative; background: var(--u); color: var(--c-ink); padding-block: clamp(3rem, 7vw, 5rem); overflow: hidden; isolation: isolate; }
.uband::before { content: attr(data-ghost); position: absolute; right: -1rem; bottom: -.18em; z-index: -1; font: 600 clamp(6rem, 22vw, 20rem)/.8 var(--ff-title); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--c-ink) 18%, transparent); white-space: nowrap; pointer-events: none; }
.uband__grid { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); margin: 0; }
.uband__grid > div { border-top: 2px solid color-mix(in srgb, var(--c-ink) 35%, transparent); padding-top: 1rem; }
.uband dt { order: 2; font-size: .92rem; font-weight: 600; line-height: 1.4; color: color-mix(in srgb, var(--c-ink) 82%, transparent); }
.uband dd { margin: 0 0 .4rem; white-space: nowrap; font: 600 clamp(2.2rem, 1.3rem + 2.4vw, 3.8rem)/.95 var(--ff-title); font-variant-numeric: tabular-nums; letter-spacing: -.01em; text-transform: uppercase; }
.uband dd small { font-size: .45em; letter-spacing: 0; }
.uband__grid > div { display: flex; flex-direction: column; }
.uband__note { margin: 1.5rem 0 0; font-size: .78rem; color: color-mix(in srgb, var(--c-ink) 70%, transparent); }

/* ---------- Intro (qué hacemos) ---------- */
.uintro__grid { display: grid; gap: 1rem 4rem; }
.uintro__text > p:not(.lead) { color: var(--fg-2); max-width: 62ch; }
@media (min-width: 1024px) { .uintro__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.chips { list-style: none; margin: 1.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .5em 1em; border-radius: 999px; font-size: .88rem; font-weight: 600; border: 1px solid color-mix(in srgb, var(--c-accent) 55%, transparent); background: color-mix(in srgb, var(--c-accent) 12%, transparent); }

/* ---------- Servicios ---------- */
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); counter-reset: svc; }
.svc { --mx: 50%; --my: 0%; position: relative; counter-increment: svc; display: flex; flex-direction: column; padding: 1.75rem 1.5rem 1.5rem; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--rule); overflow: hidden; isolation: isolate; transition: border-color .35s, transform .35s var(--ease); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c-accent) 16%, transparent), transparent 60%); opacity: 0; transition: opacity .35s; }
/* Llegada desde el asistente (#escoltas, etc.; ver v7-generativa/kb/enlaces.json): la tarjeta destino se marca un momento */
.svc:target { border-color: var(--c-accent); animation: svc-destino 1.6s var(--ease) .5s 2 both; }
@keyframes svc-destino { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-accent) 45%, transparent), 0 12px 40px color-mix(in srgb, var(--c-accent) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .svc:target { animation: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 45%, transparent); } }
.svc:hover { border-color: color-mix(in srgb, var(--c-accent) 70%, transparent); transform: translateY(-4px); }
.svc:hover::before { opacity: 1; }
.svc__n { margin: 0 0 1.25rem; font: 600 2.6rem/1 var(--ff-title); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.2px var(--accent-ink); }
.svc__n::before { content: counter(svc, decimal-leading-zero); }
.svc h3 { font-size: 1.35rem; line-height: 1.12; text-transform: uppercase; margin-bottom: .7rem; }
.svc p { margin: 0; color: var(--fg-2); font-size: .97rem; }
.svc ul { margin: .9rem 0 0; padding-left: 1.1rem; color: var(--fg-2); font-size: .92rem; }
.svc ul li { margin-bottom: .3rem; }
.svc ul li::marker { color: var(--accent-ink); }
.svc__tag { align-self: flex-start; margin-top: auto; padding-top: 1rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }

/* ---------- Proceso / etapas (línea horizontal en escritorio) ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: pr; }
.process li { counter-increment: pr; position: relative; padding: 1.25rem 1.25rem 1.25rem 4.2rem; border-radius: 18px; border: 1px solid var(--rule); background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.process li::before { content: counter(pr); position: absolute; left: 1.2rem; top: 1.2rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font: 600 1rem/1 var(--ff-title); text-transform: uppercase; background: var(--c-accent); color: var(--on-accent); }
.process strong { display: block; font: 600 1.2rem/1.2 var(--ff-title); text-transform: uppercase; margin-bottom: .35rem; }
.process span { color: var(--fg-2); font-size: .95rem; }
@media (min-width: 1024px) {
  .process { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 0; }
  .process li { padding: 3.6rem 1.5rem 0 0; border: 0; border-radius: 0; background: none; border-top: 2px solid var(--rule); }
  .process li::before { left: 0; top: -1.15rem; box-shadow: 0 0 0 6px var(--bg); }
  .process li.is-on { border-top-color: var(--c-accent); }
}

/* ---------- Bloque destacado (media + texto) ---------- */
.feature { display: grid; gap: 2rem 4rem; align-items: center; }
.feature + .feature { margin-top: clamp(3.5rem, 8vw, 6rem); }
.feature__media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c-accent); }
.feature h3 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.2rem); text-transform: uppercase; margin-bottom: 1rem; }
.feature__text > p { color: var(--fg-2); }
.feature__stats { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin: 1.5rem 0 0; }
.feature__stats div { display: flex; flex-direction: column-reverse; }
.feature__stats dt { font-size: .8rem; color: var(--fg-3); }
.feature__stats dd { margin: 0; font: 600 clamp(1.8rem, 1.2rem + 1.6vw, 2.8rem)/1 var(--ff-title); text-transform: uppercase; color: var(--accent-ink); }
@media (min-width: 1024px) {
  .feature { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .feature--rev .feature__media { order: 2; }
  .feature--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* ---------- Proyectos de referencia (carrusel con arrastre) ---------- */
.prj-rail { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: var(--side, var(--gutter)); cursor: grab; overscroll-behavior-x: contain; }
.prj-rail::-webkit-scrollbar { display: none; }
.prj-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.prj-rail ul { list-style: none; margin: 0; display: flex; gap: 1.25rem; width: max-content; padding: .5rem var(--side, var(--gutter)) 1.5rem; }
.prj { flex: none; width: min(82vw, 25rem); scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--rule); transition: border-color .3s, transform .3s var(--ease); }
.prj:hover { border-color: color-mix(in srgb, var(--c-accent) 65%, transparent); transform: translateY(-4px); }
.prj figure { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.prj figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); -webkit-user-drag: none; pointer-events: none; }
.prj:hover figure img { transform: scale(1.06); }
.prj__body { padding: 1.25rem 1.3rem 1.5rem; }
.prj__tag { display: inline-block; margin: 0 0 .7rem; padding: .25em .7em; border-radius: 999px; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--c-accent); color: var(--on-accent); }
.prj h3 { font: 600 1.25rem/1.15 var(--ff-title); text-transform: uppercase; margin-bottom: .6rem; }
.prj p { margin: 0; color: var(--fg-2); font-size: .93rem; }
.prj-controls { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.prj-controls .news-arrow { flex: none; }
.prj-controls__hint { margin: 0 0 0 .5rem; font-size: .8rem; color: var(--fg-3); }

/* ---------- Galería ---------- */
.ugallery { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(9rem, 18vw, 15rem); }
.ugallery li { position: relative; border-radius: 16px; overflow: hidden; }
.ugallery li:nth-child(5n + 1) { grid-row: span 2; }
.ugallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ugallery li:hover img { transform: scale(1.06); }
.ugallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .9rem .7rem; font-size: .8rem; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); }
@media (min-width: 900px) { .ugallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.img-note { margin: 1rem 0 0; font-size: .78rem; color: var(--fg-3); }

/* ---------- Barras de capacidad (p. ej. pisos DEX) ---------- */
.capbars { display: grid; gap: 1.25rem; margin: 0; }
.capbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem 1rem; align-items: baseline; }
.capbar dt { font: 600 1.25rem/1.1 var(--ff-title); text-transform: uppercase; }
.capbar dt small { display: block; margin-top: .2rem; font: 400 .85rem/1.4 var(--ff-text); text-transform: none; color: var(--fg-2); }
.capbar dd { margin: 0; font: 600 1.4rem/1 var(--ff-title); text-transform: uppercase; color: var(--accent-ink); white-space: nowrap; }
.capbar i { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--rule); overflow: hidden; }
.capbar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c-accent) 55%, transparent), var(--c-accent)); transform-origin: left; transform: scaleX(var(--v, 1)); transition: transform 1.2s var(--ease); }
.js .capbars:not(.is-on) .capbar b { transform: scaleX(0); }

/* ---------- Ficha (CLIM, centros) ---------- */
.ficha { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.ficha li { padding: 1.25rem 1.3rem; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--rule); border-left: 3px solid var(--c-accent); }
.ficha strong { display: block; font: 600 1.15rem/1.2 var(--ff-title); text-transform: uppercase; margin-bottom: .3rem; }
.ficha span { color: var(--fg-2); font-size: .93rem; }

/* ---------- Brochure ---------- */
.ubrochure { display: grid; gap: 0; border-radius: 24px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--rule); }
.ubrochure__media { min-height: 16rem; }
.ubrochure__media img { width: 100%; height: 100%; object-fit: cover; }
.ubrochure__body { padding: clamp(1.5rem, 4vw, 3rem); align-self: center; }
.ubrochure h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); margin-bottom: 1rem; }
.ubrochure__body > p { color: var(--fg-2); }
.ubrochure__meta { display: block; margin-top: .6rem; font-size: .8rem; color: var(--fg-3); }
@media (min-width: 900px) { .ubrochure { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* ---------- Noticias de la unidad (grilla simple con el estilo .news de v8.css) ---------- */
.unews .sl-news__list { display: grid !important; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.unews .sl-news__footer { margin-top: 1.5rem; }

/* ---------- Otras unidades ---------- */
.others__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.other { position: relative; display: flex; align-items: flex-end; min-height: 17rem; padding: 1.5rem; border-radius: 20px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; }
.other img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(.4); transition: transform .8s var(--ease), filter .5s; }
.other::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, color-mix(in srgb, var(--shade) 95%, transparent) 10%, color-mix(in srgb, var(--shade) 30%, transparent)); }
.other::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--uc); transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease); }
.other:hover img, .other:focus-visible img { transform: scale(1.06); filter: none; }
.other:hover::after, .other:focus-visible::after { transform: none; }
.other span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--uc); margin-bottom: .4rem; }
.other strong { display: block; font: 600 1.6rem/1.05 var(--ff-title); text-transform: uppercase; }
.other strong::after { content: " →"; color: var(--uc); }
/* Tarjetas con pseudo captura en vez de foto (14-10): "Sitio principal" (hero de 3 columnas) y "Asistente" (portada de V7). Decorativas (aria-hidden). */
.other:has(.other__mock)::before { background: linear-gradient(0deg, color-mix(in srgb, var(--shade) 95%, transparent) 12%, transparent 58%); }
.other__mock { position: absolute; inset: 0; z-index: -2; display: flex; flex-direction: column; background: #333; transition: transform .8s var(--ease); }
.other:hover .other__mock, .other:focus-visible .other__mock { transform: scale(1.04); }
.other .other__mock img { position: static; z-index: auto; transform: none; transition: none; }
.other__mock-head { flex: none; display: flex; align-items: center; justify-content: space-between; height: 2.1rem; padding: 0 1rem; background: var(--c-primary); }
.other .other__mock-head img { width: auto; height: .95rem; filter: none; }
.other__mock-head i { display: flex; gap: .35rem; }
.other__mock-head i::before, .other__mock-head i::after { content: ""; width: 1.4rem; height: .22rem; border-radius: 2px; background: rgba(255,255,255,.55); }
.other__mock-cols { position: relative; flex: 1; display: flex; }
.other__mock-cols > div { position: relative; flex: 1; overflow: hidden; border-right: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 -4px 0 var(--c); }
.other__mock-cols > div:nth-of-type(2) { flex: 2.4; }
.other .other__mock-cols img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.7); }
.other .other__mock-cols > div:nth-of-type(2) img { filter: none; }
.other__mock-cols b { position: absolute; top: .8rem; left: .9rem; z-index: 1; max-width: 9ch; font: 600 1.05rem/.92 var(--ff-title); text-transform: uppercase; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.other__mock--ia { align-items: center; padding: 2rem 1.25rem 0; text-align: center; background: radial-gradient(ellipse 70% 55% at 50% 30%, color-mix(in srgb, var(--c-primary) 45%, transparent), transparent 75%), #0B1D3F; }
.other__mock--ia b { font: 600 1.35rem/1 var(--ff-title); text-transform: uppercase; color: #fff; }
.other__mock--ia b em { display: block; margin-top: .2rem; font-style: normal; color: color-mix(in srgb, var(--c-primary) 45%, #fff); }
.other__mock--ia i { display: flex; align-items: center; justify-content: space-between; width: min(100%, 15rem); margin-top: 1rem; padding: .35rem .35rem .35rem .9rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(255,255,255,.07); font-size: .72rem; font-style: normal; color: rgba(255,255,255,.65); }
.other__mock--ia i::after { content: "↑"; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: .8rem; }

/* ---------- Contacto de la unidad: el formulario lleva el color de la unidad ---------- */
.contact .sl-form__type input:checked + span, .contact .sl-form__submit { background: var(--c-accent) !important; border-color: var(--c-accent) !important; color: var(--on-accent) !important; }
.contact__presets { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.contact__presets button { min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--rule); background: none; color: var(--fg); font: 600 .85rem/1 var(--ff-text); cursor: pointer; transition: border-color .2s, background-color .2s; }
.contact__presets button:hover { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 14%, transparent); }

/* Sin movimiento: hero sin zoom */
@media (prefers-reduced-motion: reduce) { .uhero__media img { transform: none; } .capbar b { transition: none; } }

/* Imagen que no es del cliente: etiqueta "Imagen referencial" (CLAUDE.md §5) */
.ugallery figure { height: 100%; }
.ref-tag { position: absolute; left: .75rem; top: .75rem; z-index: 1; padding: .25em .7em; border-radius: 999px; font-size: .68rem; font-weight: 600; letter-spacing: .04em; background: rgba(11,18,32,.75); color: #fff; }

/* ---------------------------------------------------------- Paleta del diseñador (16-10-2026)
   En cada subsitio IMPERA el color principal de su unidad (antes: azul SL / marino) y los complementarios
   (shared/css/tokens.css) dan ritmo. Referencia: brochure de Economía Circular.
   · Secciones de color (hero, bandas, servicios…): fondo = principal, texto blanco, tarjetas en el tono medio,
     velo de fotos y palabras destacadas en el tono oscuro; botones blancos con texto oscuro de la unidad.
   · Secciones claras (.tono-claro): títulos, líneas y botones en el tono oscuro de la unidad, texto gris oscuro.
   ⚠ Blanco sobre los principales queda bajo AA (EC 2,1 · LOG 1,7 · OM 2,4): decisión del diseñador (brochures).
   Para volver al azul de la portada, borrar este bloque. */
html[data-unidad="ec"] { --u-claro: var(--c-ec-claro); --u-medio: var(--c-ec-medio); --u-oscuro: var(--c-ec-oscuro); }
html[data-unidad="log"] { --u-claro: var(--c-log-claro); --u-medio: var(--c-log-medio); --u-oscuro: var(--c-log-oscuro); }
html:is([data-unidad="om"], [data-unidad="rental"]) { --u-claro: var(--c-om-claro); --u-medio: var(--c-om-medio); --u-oscuro: var(--c-om-oscuro); }
:root[data-unidad] {
  --base: var(--u); --bg: var(--u); --bg-2: var(--u-medio); --shade: var(--u-oscuro);
  --fg: #FFFFFF; --fg-2: rgba(255,255,255,.95); --fg-3: rgba(255,255,255,.88); --rule: rgba(255,255,255,.4);
  --sl-accent: #FFFFFF; --sl-on-accent: var(--u-oscuro);
  --c-accent: #FFFFFF; --on-accent: var(--u-oscuro); --accent-ink: var(--u-oscuro);
  --d-claro-titulo: var(--u-oscuro); --d-claro-linea: var(--u-oscuro);
}
[data-fondo="claro"][data-unidad] .tono-claro { --accent-ink: var(--u-oscuro); }
:root[data-unidad] .uband { background: var(--u); color: #FFFFFF; }
:root[data-unidad] .uband::before { -webkit-text-stroke-color: rgba(255,255,255,.22); }
/* Bajadas en mayúsculas (kicker) en blanco sobre el color, como "EXCEDENTES QUE SON…" del brochure; en claro, tono oscuro. */
:root[data-unidad] :is(.uhero__kicker, .kicker) { color: #FFFFFF; }
:root[data-unidad] .uhero__kicker::before { background: var(--u-claro); }
[data-fondo="claro"][data-unidad] .tono-claro .kicker { color: var(--u-oscuro); }
[data-fondo="claro"][data-unidad] .tono-claro .kicker::before { background: var(--u-oscuro); }
/* 16-10 (corrección del usuario): header, franjas y velo de la foto del hero en el PRINCIPAL exacto (#7BD0FF, etc.).
   El header era semitransparente con desenfoque y la foto lo aclaraba/oscurecía; el velo usaba el tono oscuro. */
:root[data-unidad] .site-header { background: var(--u); backdrop-filter: none; -webkit-backdrop-filter: none; }
:root[data-unidad] .uhero { --shade: var(--u); }
