/* Diamelab — modo oscuro (Fase 7.9.2). Se carga después de app.css.
 *
 * Principio: el modo oscuro adapta SUPERFICIES, COLORES y CONTRASTE; no toca geometría (tamaños, espaciados, posiciones).
 * Por eso este archivo no declara width/height/margin/padding/border-width/display salvo el botón del selector.
 *
 * Cómo está montado:
 *  1. app.css expone tokens (--tx-blue, --tx-navy, --bd-*) con los mismos valores que antes en claro. Aquí se redefinen para oscuro:
 *     textos azules, títulos azul marino y TODOS los bordes/separadores (así ningún separador desaparece).
 *  2. Las reglas por componente usan :where(html[data-theme="dark"]) (especificidad 0) con el MISMO selector que la regla clara: la igualan en especificidad y, al ir después, la sustituyen,
 *     pero los estados (hover, seleccionado, enfoque) de app.css siguen ganando. Nada de !important salvo para Elementor (ver sección 8).
 *  3. Fotos, miniaturas, mapas incrustados, logos y PDF conservan su fondo/colores originales.
 */

/* ============ 0. Selector Claro / Oscuro (visible en ambos modos) ============ */
.theme-toggle{display:inline-grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid rgba(var(--bd-b),.25);border-radius:50%;background:rgba(255,255,255,.7);color:var(--blue);cursor:pointer;padding:0;transition:background .25s,border-color .25s,color .25s}
.theme-toggle:hover{background:#eaf4ff;border-color:var(--blue)}
.theme-toggle:focus-visible{outline:3px solid var(--sky);outline-offset:2px}
.theme-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.theme-toggle .ic-sun{display:none}
html[data-theme="dark"] .theme-toggle .ic-sun{display:block}
html[data-theme="dark"] .theme-toggle .ic-moon{display:none}
.nav .theme-toggle{margin-left:auto}
@media (min-width:1181px){.nav .theme-toggle{margin-left:0}}

/* ============ 1. Variables semánticas (oscuro) ============ */
html[data-theme="dark"]{
  color-scheme:dark;
  /* superficies: fondo general < tarjetas < superficie secundaria */
  --bg:#0a1528;
  --surface:#10213c; --surface-rgb:16,33,60;
  --surface-2:#162b4c;
  --line:#2b4466;
  /* texto */
  --ink:#e8eefa; --muted:#a9b9d1;
  --tx-blue:#6db4ff;      /* enlaces, etiquetas y acentos de texto (antes --blue) */
  --tx-navy:#f3f7ff;      /* títulos y datos que en claro eran azul marino */
  --cy:#5fd0ff;
  --paper:#10213c;
  /* bordes y separadores: mismo reparto de transparencias que en claro, con tinte azul claro */
  --bd-n:170,200,255; --bd-b:170,200,255;
  --bd-navy:#5a86c8; --bd-blue:#6db4ff;   /* acento fuerte (en claro es el azul marino de los bordes superiores de tarjetas) */
  --bd-cfd9e6:#3d5a85; --bd-c5d3e4:#3d5a85; --bd-d6e2f0:#36517a; --bd-dbe5f3:#2b4466; --bd-e7eef7:#233a5c; --bd-eef3f9:#233a5c;
}
html[data-theme="dark"] ::selection{background:#2a5fa8;color:#fff}

/* ============ 2. Encabezado y pie ============ */
/* Logotipo (0.5.12): en oscuro, encabezado y pie usan logo-dark.png (mismo logo, solo el azul oscuro aclarado; sin pastilla ni filtro). En claro sigue logo.png. */
html[data-theme="dark"] .logo-l{display:none}
html[data-theme="dark"] .logo-d{display:block}
:where(html[data-theme="dark"]) .theme-toggle{background:rgba(var(--surface-rgb),.8);border-color:var(--line);color:#ffd36b}
:where(html[data-theme="dark"]) .theme-toggle:hover{background:var(--surface-2);border-color:var(--tx-blue)}
:where(html[data-theme="dark"]) .nav.scrolled{background:rgba(var(--surface-rgb),.86);box-shadow:0 6px 30px rgba(0,0,0,.35)}
:where(html[data-theme="dark"]) .burger span{background:var(--ink)}
:where(html[data-theme="dark"]) .nav .dd-menu{background:rgba(var(--surface-rgb),.98)}
:where(html[data-theme="dark"]) .nav .dd-menu a:hover,
:where(html[data-theme="dark"]) .nav .dd-menu a:focus-visible{background:rgba(109,180,255,.12)}
@media (max-width:1180px){
  :where(html[data-theme="dark"]) .nav{background:rgba(var(--surface-rgb),.94)}
  :where(html[data-theme="dark"]) .nav nav#menu{background:var(--surface)}
  :where(html[data-theme="dark"]) .nav .dd-menu{background:var(--surface-2)}
}

/* ============ 3. Tarjetas y paneles (superficie) ============ */
:where(html[data-theme="dark"]) .card,
:where(html[data-theme="dark"]) .brands,
:where(html[data-theme="dark"]) .checks li,
:where(html[data-theme="dark"]) .mvc,
:where(html[data-theme="dark"]) .pil,
:where(html[data-theme="dark"]) .catalog .prod,
:where(html[data-theme="dark"]) .bcard,
:where(html[data-theme="dark"]) .sv,
:where(html[data-theme="dark"]) .ctype,
:where(html[data-theme="dark"]) .form,
:where(html[data-theme="dark"]) .home .stage,
:where(html[data-theme="dark"]) .corp .c-white,
:where(html[data-theme="dark"]) .pg-home .h-stage,
:where(html[data-theme="dark"]) .pg-con .k-form,
:where(html[data-theme="dark"]) .pg-home .h-facts li,
:where(html[data-theme="dark"]) .dl-region .h-fact,
:where(html[data-theme="dark"]) .mn-item,
:where(html[data-theme="dark"]) .mn-empty,
:where(html[data-theme="dark"]) .pg-bio .bio-split>div,
:where(html[data-theme="dark"]) .pg-rea .rea-panel,
:where(html[data-theme="dark"]) .pg-rea .rea-empty,
:where(html[data-theme="dark"]) .rq-lines li,
:where(html[data-theme="dark"]) .pg-eq .catalog .prod,
:where(html[data-theme="dark"]) .mm-card,
:where(html[data-theme="dark"]) .mm-empty,
:where(html[data-theme="dark"]) .pg-bio .bio-cards li,
:where(html[data-theme="dark"]) .pg-rea .rea-fam li,
:where(html[data-theme="dark"]) .pg-rea .rea-card,
:where(html[data-theme="dark"]) .pg-bio .bio-cards>.e-con,
:where(html[data-theme="dark"]) .pg-bio .bio-services .bio-cards li,
:where(html[data-theme="dark"]) .pg-bio .bio-services .bio-cards>.e-con{background:var(--surface)}
:where(html[data-theme="dark"]) .pil:nth-child(even){background:linear-gradient(120deg,var(--surface),var(--surface-2))}
:where(html[data-theme="dark"]) .soft{background:linear-gradient(180deg,var(--surface-2),var(--bg))}
:where(html[data-theme="dark"]) .chip,
:where(html[data-theme="dark"]) .mclose{background:rgba(var(--surface-rgb),.88)}
:where(html[data-theme="dark"]) .mstats>div,
:where(html[data-theme="dark"]) .mm-thumb{background:var(--surface-2)}
:where(html[data-theme="dark"]) .note{background:var(--surface-2);color:var(--ink)}
:where(html[data-theme="dark"]) .pg-sol .s-map li::before{background:var(--surface)}
/* Contenedores de fotografía de producto (hero de Nosotros, Servicio técnico, etc.): algunas fotos traen fondo blanco propio, así que la placa se conserva clara */
:where(html[data-theme="dark"]) .corp .c-fig{background:#fff}
:where(html[data-theme="dark"]) .corp .c-fig figcaption{color:#5b6b80}
/* Tarjeta con barra inferior azul marino (Inicio): la barra se mantiene más profunda que la tarjeta */
:where(html[data-theme="dark"]) .home .stage figcaption,
:where(html[data-theme="dark"]) .pg-home .h-stage figcaption{background:#0a2a5e}

/* ============ 4. Modales ============ */
/* Los diálogos llevan clase propia con fondo blanco (dialog.cmp-dlg, dialog.mm-dlg…): aquí sí hace falta especificidad real. */
html[data-theme="dark"] dialog{background:var(--surface);color:var(--ink);box-shadow:0 40px 120px rgba(0,0,0,.6)}
:where(html[data-theme="dark"]) dialog::backdrop{background:rgba(3,10,24,.78)}
:where(html[data-theme="dark"]) .rec-dlg{background:var(--surface)}
:where(html[data-theme="dark"]) .cmp-dlg .cmp-corner,
:where(html[data-theme="dark"]) .cmp-dlg tbody th,
:where(html[data-theme="dark"]) .cmp-dlg .cmp-r-nm th,
:where(html[data-theme="dark"]) .cmp-dlg .cmp-r-nm td{background:var(--surface)}
:where(html[data-theme="dark"]) .cmp-dlg tbody tr.diff td,
:where(html[data-theme="dark"]) .cmp-dlg tbody tr.diff th{background:var(--surface-2)}
:where(html[data-theme="dark"]) .cmp-dlg .cmp-bw[data-more]::after{background:linear-gradient(90deg,rgba(var(--surface-rgb),0),var(--surface) 90%)}
:where(html[data-theme="dark"]) .cmp-dlg .cmp-x{background:var(--surface-2)}
:where(html[data-theme="dark"]) .cmp-dlg .cmp-x:hover{background:#1d3a66}
:where(html[data-theme="dark"]) .cmp-dlg .cmp-sw input{background:#3a5276}
@media (max-width:560px){:where(html[data-theme="dark"]) .cmp-dlg .cmp-top{background:var(--surface)}}
:where(html[data-theme="dark"]) .mclose:hover{background:var(--surface-2)}
:where(html[data-theme="dark"]) .mm-pdf-s{background:#3a3f45}
:where(html[data-theme="dark"]) .mm-x{background:rgba(3,10,24,.85)}
html[data-theme="dark"] .mm-dlg::backdrop{background:rgba(3,10,24,.78)}

/* ============ 5. Botones, chips, pestañas y filtros ============ */
/* Base (reposo): superficie. Los estados de app.css (:hover, .on, [aria-pressed=true], :focus-visible) conservan su especificidad y siguen ganando. */
:where(html[data-theme="dark"]) .pills span,
:where(html[data-theme="dark"]) .filters button,
:where(html[data-theme="dark"]) .as-opt,
:where(html[data-theme="dark"]) .mn-alt,
:where(html[data-theme="dark"]) .mm-pager a,
:where(html[data-theme="dark"]) .mm-lib .mn-act .btn.mn-alt,
:where(html[data-theme="dark"]) .mmodels button,
:where(html[data-theme="dark"]) .cmp-dlg .cmp-chip{background:var(--surface)}
:where(html[data-theme="dark"]) .pg-home .h-path li:not(:last-child) .n,
:where(html[data-theme="dark"]) .dl-region .h-step:not(:last-child) .n{background:var(--surface)}
/* Primera fase del esquema de Soluciones: el azul marino se mantiene distinguible del fondo */
:where(html[data-theme="dark"]) .pg-sol .s-phases li:first-child{background:#0a2a5e}
:where(html[data-theme="dark"]) .pg-eq .filters button{background:none}
:where(html[data-theme="dark"]) .mmodels button:hover,
:where(html[data-theme="dark"]) .cmp-dlg .cmp-chip:hover,
:where(html[data-theme="dark"]) .mm-lib .mn-act .btn.mn-alt:hover,
:where(html[data-theme="dark"]) .cat-search-x:hover{background:var(--surface-2)}
:where(html[data-theme="dark"]) .btn-ghost{box-shadow:inset 0 0 0 2px rgba(109,180,255,.45)}
:where(html[data-theme="dark"]) .home main .btn-ghost,
:where(html[data-theme="dark"]) .corp .btn-ghost{box-shadow:inset 0 0 0 1.5px rgba(109,180,255,.5)}
:where(html[data-theme="dark"]) .home main .btn-ghost:hover,
:where(html[data-theme="dark"]) .corp .btn-ghost:hover{background:rgba(109,180,255,.1)}
/* Botones blancos sobre bandas azul marino: siguen blancos con texto azul/azul marino, como en claro */
:where(html[data-theme="dark"]) .btn-light,
:where(html[data-theme="dark"]) .home main .btn-light{color:#004AAD}
:where(html[data-theme="dark"]) .corp .c-cta .btn,
:where(html[data-theme="dark"]) .pg-eq .cmp-card .btn{background:#fff;color:#06214d}
/* Etiquetas con tinte azul */
:where(html[data-theme="dark"]) .rec-tag,
:where(html[data-theme="dark"]) .mn-tag,
:where(html[data-theme="dark"]) .mm-tags span,
:where(html[data-theme="dark"]) .pg-bio .bio-ico{background:rgba(109,180,255,.14)}
:where(html[data-theme="dark"]) .as-opt.is-chosen:disabled{background:rgba(109,180,255,.12)}
:where(html[data-theme="dark"]) .as-av{border-color:var(--surface)}
:where(html[data-theme="dark"]) .as-uic{background:rgba(109,180,255,.14)}
:where(html[data-theme="dark"]) .tag{background:rgba(56,182,255,.16)}
:where(html[data-theme="dark"]) .mm-tabs [role=tab]{color:var(--muted)}
:where(html[data-theme="dark"]) .mm-tabs [role=tab]:hover{color:var(--tx-blue)}
:where(html[data-theme="dark"]) .mm-tabs [role=tab][aria-selected=true]{color:var(--tx-navy)}

/* ============ 6. Formularios y campos ============ */
:where(html[data-theme="dark"]) input,
:where(html[data-theme="dark"]) select,
:where(html[data-theme="dark"]) textarea{color:var(--ink)}
:where(html[data-theme="dark"]) .pg-con .k-form input,
:where(html[data-theme="dark"]) .pg-con .k-form select,
:where(html[data-theme="dark"]) .pg-con .k-form textarea,
:where(html[data-theme="dark"]) .mn-f input,
:where(html[data-theme="dark"]) .mn-f select,
:where(html[data-theme="dark"]) .mm-f input,
:where(html[data-theme="dark"]) .mm-f select,
:where(html[data-theme="dark"]) .pg-rea input,
:where(html[data-theme="dark"]) .pg-rea select,
:where(html[data-theme="dark"]) .rec-dlg select,
:where(html[data-theme="dark"]) .cat-search-box input{background:var(--surface)}
:where(html[data-theme="dark"]) .cat-area select{background-color:var(--surface);color:inherit;border-color:var(--line)}
:where(html[data-theme="dark"]) .cat-area-l,:where(html[data-theme="dark"]) .catalog .prod p.area-match{color:var(--sky)}
:where(html[data-theme="dark"]) ::placeholder{color:#8396b3;opacity:1}
:where(html[data-theme="dark"]) .dc-ok{background:#12351f;color:#a7f0c0}
:where(html[data-theme="dark"]) .dc-bad{background:#431714;color:#ffb4ab}
:where(html[data-theme="dark"]) .k-form .req{color:#ff9d93}

/* ============ 7. Texto con degradado, fondos de efecto y logos de marca ============ */
:where(html[data-theme="dark"]) em{background:linear-gradient(90deg,#6db4ff,#38B6FF);-webkit-background-clip:text;background-clip:text;color:transparent}
:where(html[data-theme="dark"]) .orb{opacity:.18}
:where(html[data-theme="dark"]) .grid-bg{opacity:.5}
/* Logos de marca sueltos (página Marcas): sobre una placa clara dibujada con box-shadow (sin cambiar tamaños) para conservar sus colores */
/* Mosaicos de logos de marca: conservan fondo claro (los logos no se alteran), algo atenuado para no deslumbrar */
:where(html[data-theme="dark"]) .pg-home .h-logos li,
:where(html[data-theme="dark"]) .dl-region .h-logo{background:#d9e3f2}
:where(html[data-theme="dark"]) .pg-home .h-logos li:hover,
:where(html[data-theme="dark"]) .dl-region .h-logo:hover{background:#fff}

/* ============ 8. Elementor Free ============
   Algunas páginas (p. ej. Inicio) guardan colores fijos en el CSS por elemento de Elementor (#0c1a2e, #5b6b80, #004aad, fondos #fff).
   No se modifican los datos de Elementor: aquí se adaptan solo en oscuro, por clases del tema (no por ID de página, que cambia entre sitios).
   !important es imprescindible: Elementor emite selectores por ID con especificidad mayor. */
html[data-theme="dark"] .elementor .e-con.c-white,
html[data-theme="dark"] .elementor .e-con.h-stage{background-color:var(--surface)!important}
html[data-theme="dark"] .elementor .elementor-widget-heading .elementor-heading-title{color:var(--ink)!important}
html[data-theme="dark"] .elementor .c-eyebrow .elementor-heading-title{color:var(--tx-blue)!important}
html[data-theme="dark"] .elementor .c-navy .c-eyebrow .elementor-heading-title{color:#19c3e6!important}
html[data-theme="dark"] .elementor .elementor-widget-text-editor.c-lead{color:var(--muted)!important}
/* Placa clara de fotografía: su pie conserva el gris original */
html[data-theme="dark"] .elementor .c-fig .elementor-heading-title{color:#5b6b80!important}
html[data-theme="dark"] .elementor .e-con.h-stage{border-color:rgba(var(--bd-b),.12)!important}
html[data-theme="dark"] .elementor .e-con.h-cap{background-color:#0a2a5e!important}
html[data-theme="dark"] .elementor .e-con.h-cap .elementor-heading-title{color:#fff!important}

/* ============ 9. Mapa ============ */
/* La cartografía (Esri Dark Gray) y los créditos Leaflet/Esri no cambian. */
:where(html[data-theme="dark"]) .pg-nos .leaflet-control-attribution{background:rgba(10,26,51,.8)}

/* V3: en oscuro, el círculo gris de la animación de confirmación (#333c45) se aclara para conservar contraste; la animación y su archivo no cambian (el trazo azul de la marca queda igual). */
html[data-theme="dark"] dialog.dl-ok .dl-ok-anim svg [stroke="rgb(51,60,69)"]{stroke:#d3dcea}

/* V3.2: la superposición de presentación toma el fondo oscuro del tema (var(--bg) ya vale #0a1528 en oscuro). */
html[data-theme="dark"] #dl-intro .dl-intro-bg{background:var(--bg)}

/* UI Glass B1.1 · modo oscuro: cristal claro tenue sobre fondo oscuro, texto claro y círculo en el azul vivo del modo oscuro (mismas formas y sombras interiores del componente) */
html[data-theme="dark"] .dl-glass-btn,html[data-theme="dark"] .dl-gb :is(.h-acts,.v-acts)>.elementor-widget-button.btn:not(.btn-ghost){color:#fff;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16);box-shadow:inset 2px -2px 1px -1px rgba(255,255,255,.9),inset -2px 2px 1px -1px rgba(255,255,255,.9),inset 6px -6px 1px -6px rgba(255,255,255,.55),inset -6px 6px 1px -6px rgba(255,255,255,.55),inset 0 0 2px rgba(0,0,0,.8),0 4px 12px rgba(0,0,0,.45)}
html[data-theme="dark"] .dl-glass-btn__icon,html[data-theme="dark"] .dl-gb :is(.h-acts,.v-acts)>.btn:not(.btn-ghost) .elementor-button::after{background-color:#2579f4}
html[data-theme="dark"] .dl-glass-btn:active,html[data-theme="dark"] .dl-gb :is(.h-acts,.v-acts)>.elementor-widget-button.btn:not(.btn-ghost):active{color:#fff}

/* UI Glass B2 · modo oscuro (primario con azul vivo; secundario y circulares con cristal claro tenue; terciario con azul claro) */
html[data-theme="dark"] .dl-gb .btn:not(.btn-ghost):not(.btn-light){color:#fff;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16);box-shadow:inset 2px -2px 1px -1px rgba(255,255,255,.9),inset -2px 2px 1px -1px rgba(255,255,255,.9),inset 6px -6px 1px -6px rgba(255,255,255,.55),inset -6px 6px 1px -6px rgba(255,255,255,.55),inset 0 0 2px rgba(0,0,0,.8),0 4px 12px rgba(0,0,0,.45)}
@media (hover:hover){html[data-theme="dark"] .dl-gb .btn:not(.btn-ghost):not(.btn-light):not(:disabled):hover{background:rgba(255,255,255,0);color:#fff}}
html[data-theme="dark"] .dl-gb .mm-lib .mn-act .btn.mn-alt{color:#fff;background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16)}
@media (hover:hover){html[data-theme="dark"] .dl-gb .mm-lib .mn-act .btn.mn-alt:hover{color:#fff;background:rgba(255,255,255,.12)}}
html[data-theme="dark"] .dl-gb .btn.btn-ghost.btn-ghost{color:#6db4ff;background:rgba(109,180,255,.06);border:1px solid rgba(109,180,255,.5);box-shadow:inset 2px -2px 1px -1px rgba(255,255,255,.45),inset -2px 2px 1px -1px rgba(255,255,255,.45),inset 0 0 2px rgba(0,0,0,.6),0 3px 10px rgba(0,0,0,.35)}
@media (hover:hover){html[data-theme="dark"] .dl-gb .btn.btn-ghost.btn-ghost:hover,html[data-theme="dark"] .dl-gb .btn.btn-ghost.btn-ghost:focus-visible{color:#6db4ff;background:rgba(109,180,255,.14)}}
html[data-theme="dark"] .dl-gb .btn.btn-ghost.light{color:#fff;border-color:rgba(255,255,255,.4)}
html[data-theme="dark"] .dl-gb .theme-toggle,html[data-theme="dark"] .dl-gb .mclose,html[data-theme="dark"] .dl-gb .cmp-dlg .cmp-x,html[data-theme="dark"] .dl-gb .rea-x{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16);box-shadow:inset 2px -2px 1px -1px rgba(255,255,255,.55),inset -2px 2px 1px -1px rgba(255,255,255,.55),inset 0 0 2px rgba(0,0,0,.6),0 4px 12px rgba(0,0,0,.4)}
@media (hover:hover){html[data-theme="dark"] .dl-gb .theme-toggle:hover,html[data-theme="dark"] .dl-gb .mclose:hover,html[data-theme="dark"] .dl-gb .cmp-dlg .cmp-x:hover,html[data-theme="dark"] .dl-gb .rea-x:hover{background:rgba(255,255,255,.12)}}
/* UI Glass B2 · modo oscuro: el secundario sobre bandas azul marino no hereda el azul vivo del primario */
html[data-theme="dark"] .dl-gb .btn.btn-light,html[data-theme="dark"] .dl-gb.corp .c-cta .btn:not(.btn-ghost),html[data-theme="dark"] .dl-gb.pg-eq .cmp-card .btn{color:#fff;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.28);box-shadow:inset 2px -2px 1px -1px rgba(255,255,255,.9),inset -2px 2px 1px -1px rgba(255,255,255,.9),inset 6px -6px 1px -6px rgba(255,255,255,.55),inset -6px 6px 1px -6px rgba(255,255,255,.55),inset 0 0 2px rgba(0,0,0,.8),0 4px 8px rgba(0,0,0,.2)}
@media (hover:hover){html[data-theme="dark"] .dl-gb .btn.btn-light:not(:disabled):hover,html[data-theme="dark"] .dl-gb.corp .c-cta .btn:not(.btn-ghost):not(:disabled):hover,html[data-theme="dark"] .dl-gb.pg-eq .cmp-card .btn:not(:disabled):hover{color:#fff;background:rgba(255,255,255,.22)}}

/* UI Glass B2.3 · modo oscuro: CTA de sección con el terciario oscuro */
html[data-theme="dark"] .dl-gb .h-sv .btn:not(.btn-light),html[data-theme="dark"] .dl-gb .n-loc .btn:not(.btn-light),html[data-theme="dark"] .dl-gb .rea-empty .btn:not(.btn-light){color:#6db4ff;background:rgba(109,180,255,.06);border:1px solid rgba(109,180,255,.5);box-shadow:inset 2px -2px 1px -1px rgba(255,255,255,.45),inset -2px 2px 1px -1px rgba(255,255,255,.45),inset 0 0 2px rgba(0,0,0,.6),0 3px 10px rgba(0,0,0,.35)}
@media (hover:hover){html[data-theme="dark"] .dl-gb .h-sv .btn:not(.btn-light):not(:disabled):hover,html[data-theme="dark"] .dl-gb .n-loc .btn:not(.btn-light):not(:disabled):hover,html[data-theme="dark"] .dl-gb .rea-empty .btn:not(.btn-light):not(:disabled):hover{color:#6db4ff;background:rgba(109,180,255,.14)}}

/* UI Glass B2.4 · modo oscuro: principal sin widget de Elementor con el círculo azul vivo del modo oscuro */
html[data-theme="dark"] .dl-gb :is(.h-acts,.v-acts) a.btn:not(.btn-ghost),html[data-theme="dark"] .dl-gb :is(.h-acts,.v-acts) button.btn:not(.btn-ghost){color:#fff;border-color:rgba(255,255,255,.16);background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%23f5f5f5' d='M779.180132 473.232045 322.354755 16.406668c-21.413706-21.413706-56.121182-21.413706-77.534887 0-21.413706 21.413706-21.413706 56.122205 0 77.534887l418.057421 418.057421L244.819868 930.057421c-21.413706 21.413706-21.413706 56.122205 0 77.534887 10.706853 10.706853 24.759917 16.059767 38.767955 16.059767s28.061103-5.353938 38.767955-16.059767L779.180132 550.767955C800.593837 529.35425 800.593837 494.64575 779.180132 473.232045z'/%3E%3C/svg%3E") no-repeat right 15px center/12px 12px,radial-gradient(circle 15px at calc(100% - 21px) 50%,#2579f4 14px,transparent 15px) no-repeat,rgba(255,255,255,.06);box-shadow:inset 2px -2px 1px -1px rgba(255,255,255,.9),inset -2px 2px 1px -1px rgba(255,255,255,.9),inset 6px -6px 1px -6px rgba(255,255,255,.55),inset -6px 6px 1px -6px rgba(255,255,255,.55),inset 0 0 2px rgba(0,0,0,.8),0 4px 12px rgba(0,0,0,.45)}
@media (hover:hover){html[data-theme="dark"] .dl-gb :is(.h-acts,.v-acts) a.btn:not(.btn-ghost):not(:disabled):hover,html[data-theme="dark"] .dl-gb :is(.h-acts,.v-acts) button.btn:not(.btn-ghost):not(:disabled):hover{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%23f5f5f5' d='M779.180132 473.232045 322.354755 16.406668c-21.413706-21.413706-56.121182-21.413706-77.534887 0-21.413706 21.413706-21.413706 56.122205 0 77.534887l418.057421 418.057421L244.819868 930.057421c-21.413706 21.413706-21.413706 56.122205 0 77.534887 10.706853 10.706853 24.759917 16.059767 38.767955 16.059767s28.061103-5.353938 38.767955-16.059767L779.180132 550.767955C800.593837 529.35425 800.593837 494.64575 779.180132 473.232045z'/%3E%3C/svg%3E") no-repeat right 15px center/12px 12px,radial-gradient(circle 15px at calc(100% - 21px) 50%,#2579f4 14px,transparent 15px) no-repeat,rgba(255,255,255,0);color:#fff}}
html[data-theme="dark"] .dl-gb :is(.h-acts,.v-acts) a.btn:not(.btn-ghost):not(:disabled):active,html[data-theme="dark"] .dl-gb :is(.h-acts,.v-acts) button.btn:not(.btn-ghost):not(:disabled):active{color:#fff}

/* UI Glass B2.5 · modo oscuro */
html[data-theme="dark"] .dl-gb.dl-gb .nav .btn:not(.btn-ghost):not(.btn-light),html[data-theme="dark"] .dl-gb.dl-gb .prod .btn:not(.btn-ghost):not(.btn-light),html[data-theme="dark"] .dl-gb.dl-gb .rea-card .btn:not(.btn-ghost):not(.btn-light),html[data-theme="dark"] .dl-gb.dl-gb .mm-filters .btn:not(.btn-ghost):not(.btn-light){color:#fff;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);box-shadow:inset 2px -2px 1px -1px rgba(255,255,255,.9),inset -2px 2px 1px -1px rgba(255,255,255,.9),inset 6px -6px 1px -6px rgba(255,255,255,.55),inset -6px 6px 1px -6px rgba(255,255,255,.55),inset 0 0 2px rgba(0,0,0,.8),0 4px 12px rgba(0,0,0,.45)}
@media (hover:hover){html[data-theme="dark"] .dl-gb.dl-gb .nav .btn:not(.btn-ghost):not(.btn-light):not(:disabled):hover,html[data-theme="dark"] .dl-gb.dl-gb .prod .btn:not(.btn-ghost):not(.btn-light):not(:disabled):hover,html[data-theme="dark"] .dl-gb.dl-gb .rea-card .btn:not(.btn-ghost):not(.btn-light):not(:disabled):hover,html[data-theme="dark"] .dl-gb.dl-gb .mm-filters .btn:not(.btn-ghost):not(.btn-light):not(:disabled):hover{background:rgba(255,255,255,0);color:#fff}}
html[data-theme="dark"] .dl-gb.dl-gb .nav .btn:not(.btn-ghost):not(.btn-light):not(:disabled):not([aria-disabled="true"]):active,html[data-theme="dark"] .dl-gb.dl-gb .prod .btn:not(.btn-ghost):not(.btn-light):not(:disabled):not([aria-disabled="true"]):active,html[data-theme="dark"] .dl-gb.dl-gb .rea-card .btn:not(.btn-ghost):not(.btn-light):not(:disabled):not([aria-disabled="true"]):active,html[data-theme="dark"] .dl-gb.dl-gb .mm-filters .btn:not(.btn-ghost):not(.btn-light):not(:disabled):not([aria-disabled="true"]):active{color:#fff}
html[data-theme="dark"] .dl-gb.dl-gb :is(.h-acts,.v-acts)>.elementor-widget-button.btn:not(.btn-ghost):not(:disabled):hover{background:rgba(255,255,255,0);color:#fff}
/* Marcas · modo oscuro: tarjeta luminosa (glass claro del 72 %) con tinta oscura, y tarjeta oscura para Hemex Health y GCMS */
html[data-theme="dark"] .pg-mar .m-row{--mc-ink:#fff;--mc-sub:#c6d3e8;--mc-link:#8fcaff;--mc-eyebrow:#8fcaff;border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.06);box-shadow:inset 2px -2px 1px -1px rgba(255,255,255,.9),inset -2px 2px 1px -1px rgba(255,255,255,.9),inset 6px -6px 1px -6px rgba(255,255,255,.55),inset -6px 6px 1px -6px rgba(255,255,255,.55),inset 0 0 2px rgba(0,0,0,.8),0 4px 12px rgba(0,0,0,.45)}
html[data-theme="dark"] .pg-mar .m-row .m-ph{border-color:rgba(255,255,255,.14)}
/* UI Glass C1 · formulario en modo oscuro */
html[data-theme="dark"] .pg-con .k-form{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.06);box-shadow:inset 2px -2px 1px -1px rgba(255,255,255,.9),inset -2px 2px 1px -1px rgba(255,255,255,.9),inset 6px -6px 1px -6px rgba(255,255,255,.55),inset -6px 6px 1px -6px rgba(255,255,255,.55),inset 0 0 2px rgba(0,0,0,.8),0 4px 12px rgba(0,0,0,.45)}
html[data-theme="dark"] .pg-con .k-form fieldset:first-of-type{border-bottom-color:rgba(255,255,255,.12)}
html[data-theme="dark"] .pg-con .k-form legend{color:#8fcaff}
html[data-theme="dark"] .pg-con .k-form label{color:#e4ecfa}
html[data-theme="dark"] .pg-con .k-form input,html[data-theme="dark"] .pg-con .k-form select,html[data-theme="dark"] .pg-con .k-form textarea{background-color:rgba(6,14,30,.55);border-color:rgba(255,255,255,.2);box-shadow:inset 0 1px 3px rgba(0,0,0,.35);color:#fff}
html[data-theme="dark"] .pg-con .k-form select{background-repeat:no-repeat;background-position:right 1rem center;background-size:16px;background-image:url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2716%27 height=%2716%27 viewBox=%270 0 16 16%27%3E%3Cpath d=%27M3 6l5 5 5-5%27 fill=%27none%27 stroke=%27%23e4ecfa%27 stroke-width=%271.8%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E")}
html[data-theme="dark"] .pg-con .k-form input:hover,html[data-theme="dark"] .pg-con .k-form select:hover,html[data-theme="dark"] .pg-con .k-form textarea:hover{border-color:rgba(143,202,255,.6)}
html[data-theme="dark"] .pg-con .k-form input:focus-visible,html[data-theme="dark"] .pg-con .k-form select:focus-visible,html[data-theme="dark"] .pg-con .k-form textarea:focus-visible{border-color:#6db4ff;background-color:rgba(6,14,30,.8);box-shadow:0 0 0 6px rgba(109,180,255,.18)}
html[data-theme="dark"] .pg-mar .m-id img.m-lg-l{display:none}
html[data-theme="dark"] .pg-mar .m-id img.m-lg-d{display:inline}
/* Multimedia M3.1 · modo oscuro */
html[data-theme="dark"] .mn-item{border-color:rgba(255,255,255,.14);box-shadow:0 6px 22px rgba(0,0,0,.35)}
html[data-theme="dark"] .mn-item:hover,html[data-theme="dark"] .mn-item:focus-within{border-color:rgba(143,202,255,.55)}
html[data-theme="dark"] .mn-cover{background:linear-gradient(135deg,#1c2842,#26345a)}
html[data-theme="dark"] .mn-pdf .pg{fill:#2e3e63;stroke:rgba(255,255,255,.3)}html[data-theme="dark"] .mn-pdf .fd{fill:#3c4f7a}html[data-theme="dark"] .mn-pdf .ln{fill:#51658f}html[data-theme="dark"] .mn-pdf .tx{fill:#8fcaff}
html[data-theme="dark"] .mm-thumb{background:radial-gradient(120% 90% at 20% 10%,#2c3d63 0,transparent 60%),linear-gradient(135deg,#111c33,#1f2e4d)}

/* Marcas · MARCAS UX-03 · modo oscuro: mismas superficies de glass que el resto del sitio; logotipos con su variante oscura (si existe), sin filtros ni fondos añadidos a los logotipos */
html[data-theme="dark"] .mx{--mx-ink:#fff;--mx-sub:#c6d3e8;--mx-link:#8fcaff;--mx-eb:#8fcaff;--mx-line:rgba(255,255,255,.16);--mx-glass:rgba(255,255,255,.06);--mx-ph:#fff;--mx-sh:inset 2px -2px 1px -1px rgba(255,255,255,.9),inset -2px 2px 1px -1px rgba(255,255,255,.9),inset 6px -6px 1px -6px rgba(255,255,255,.55),inset -6px 6px 1px -6px rgba(255,255,255,.55),inset 0 0 2px rgba(0,0,0,.8),0 4px 12px rgba(0,0,0,.45);--mx-shc:inset 2px -2px 1px -1px rgba(255,255,255,.9),inset -2px 2px 1px -1px rgba(255,255,255,.9),inset 6px -6px 1px -6px rgba(255,255,255,.55),inset -6px 6px 1px -6px rgba(255,255,255,.55),inset 0 0 2px rgba(0,0,0,.8),0 6px 12px -8px rgba(0,0,0,.7)}
html[data-theme="dark"] .mx .mx-lg-l{display:none}
html[data-theme="dark"] .mx .mx-lg-d{display:inline}
html[data-theme="dark"] .mx-arrow{background:rgba(16,33,60,.92);color:#fff;box-shadow:0 6px 18px rgba(0,0,0,.5)}
@media (hover:hover){html[data-theme="dark"] .mx-arrow:hover,html[data-theme="dark"] .mx-play:hover{border-color:rgba(143,202,255,.65)}}
html[data-theme="dark"] .mx{--mx-cardbg:#14233f}
html[data-theme="dark"] .mx-cf .mx-c.is-active{box-shadow:inset 2px -2px 1px -1px rgba(255,255,255,.9),inset -2px 2px 1px -1px rgba(255,255,255,.9),inset 6px -6px 1px -6px rgba(255,255,255,.55),inset -6px 6px 1px -6px rgba(255,255,255,.55),inset 0 0 2px rgba(0,0,0,.8),0 20px 34px -20px rgba(0,0,0,.85)}

/* V4: rechazo en oscuro: títulos y bordes de error con rojo claro (la X roja con trazo blanco ya contrasta sobre el fondo oscuro). */
html[data-theme="dark"] dialog.dl-bad h2{color:#ffb4ab}
html[data-theme="dark"] #rq-contact[data-invalid]{outline-color:#ffb4ab}
html[data-theme="dark"] .form [aria-invalid=true]:focus,html[data-theme="dark"] .pg-con .k-form [aria-invalid=true]:focus{outline-color:#ffb4ab}
html[data-theme="dark"] .form [aria-invalid=true],html[data-theme="dark"] .pg-con .k-form [aria-invalid=true]{border-color:#ff8a80}

/* V7: aviso de privacidad compacto en oscuro */
html[data-theme="dark"] .priv-compact{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.16);color:#e4ecfa;box-shadow:inset 1px -1px 0 rgba(255,255,255,.08)}
html[data-theme="dark"] .priv-compact .priv-ico,html[data-theme="dark"] .priv-compact a{color:#8fcaff}
html[data-theme="dark"] .priv-compact .priv-prev{background:#3a2f0b;color:#ffe08a}
