/* Codetec — modo noche. Se carga al final. El modo día es el diseño base; esto sólo reasigna superficies y tintas claras.
   Truco: en modo noche --navy-2 (tinta de títulos, trazos y líneas) pasa a ser claro, y los rellenos que SÍ deben seguir oscuros se fijan abajo. */
html[data-theme=dark]{
  color-scheme:dark;
  --paper:#070c1e;--white:#0d1530;--ink:#e3e9f9;--muted:#a1adcc;--line:rgba(255,255,255,.14);
  --navy-2:#e6ecfb;--hair:rgba(255,255,255,.16);
  --card:#0d1632;--card-2:#111c3f;
}
html[data-theme=dark] body{background:var(--paper);color:var(--ink)}
html[data-theme=dark] .sec.alt{background:#0a1128}
html[data-theme=dark] .sec.dark{background:#0d1736}

/* botones */
html[data-theme=dark] .btn-line{color:#fff;border-color:rgba(255,255,255,.6)}
html[data-theme=dark] .btn-line:hover{background:#fff;color:#0a1330}
html[data-theme=dark] .page-head .btn-line:hover,html[data-theme=dark] .sec.dark .btn-line:hover{color:#0a1330}

/* rellenos que deben seguir oscuros (antes usaban --navy-2 como fondo) */
html[data-theme=dark] .marquee.mono,
html[data-theme=dark] .alliance,
html[data-theme=dark] .side-ico{background:#13214b;color:#fff}
html[data-theme=dark] .alliance{border:1px solid var(--hair)}
html[data-theme=dark] .mega{background:#0b1536}
html[data-theme=dark] .tab[aria-selected=true]{background:none;color:#fff}
html[data-theme=dark] .ind-list button[aria-selected=true],
html[data-theme=dark] .chip-r input:checked+span{background:var(--y);color:#111;border-color:var(--y)}
html[data-theme=dark] .ind-list button:hover{background:rgba(255,255,255,.07)}
html[data-theme=dark] .svc-ico,html[data-theme=dark] .side-ico{color:var(--y)}
html[data-theme=dark] .zone-sys a>.ico:first-child{color:var(--y);border-color:rgba(251,201,19,.7)}
html[data-theme=dark] .svc-ico{border-color:rgba(251,201,19,.7)}

/* superficies claras → oscuras */
html[data-theme=dark] .card.svc:hover,
html[data-theme=dark] .zone-sys a:hover{background:rgba(255,255,255,.06)}
html[data-theme=dark] .tab{color:#9aa7c8}
html[data-theme=dark] .floor{background:linear-gradient(90deg,transparent calc(100% - 1px),var(--hair) 0) 0 0/42px 100%,rgba(255,255,255,.035)}
html[data-theme=dark] .floor:hover{background:rgba(251,201,19,.16)}
html[data-theme=dark] .floor[aria-pressed=true]{background:var(--y);color:#111;box-shadow:inset 6px 0 0 #101d41}
html[data-theme=dark] .chips a:hover{background:rgba(251,201,19,.14);border-color:var(--y)}
html[data-theme=dark] .tags li{background:transparent;color:var(--ink)}
html[data-theme=dark] .note{background:rgba(251,201,19,.1);border-color:rgba(251,201,19,.4);color:var(--ink)}
html[data-theme=dark] .note.note-sec{background:rgba(79,134,232,.12);border-color:rgba(79,134,232,.4)}
html[data-theme=dark] .sent{background:rgba(46,160,90,.14);border-color:rgba(46,160,90,.5)}
html[data-theme=dark] .sent code{background:rgba(255,255,255,.1);color:#fff}
html[data-theme=dark] .proj-nums b{background:linear-gradient(135deg,#fff,#7aa5f0);-webkit-background-clip:text;background-clip:text;color:transparent}

/* formularios */
html[data-theme=dark] .form input,html[data-theme=dark] .form select,html[data-theme=dark] .form textarea{background:rgba(255,255,255,.06);color:#fff;border-bottom-color:rgba(255,255,255,.4)}
html[data-theme=dark] .form input::placeholder,html[data-theme=dark] .form textarea::placeholder{color:rgba(255,255,255,.4)}
html[data-theme=dark] .form input:focus,html[data-theme=dark] .form select:focus,html[data-theme=dark] .form textarea:focus{background:rgba(255,255,255,.1);border-bottom-color:var(--y)}
html[data-theme=dark] .form select option{background:#0d1530;color:#fff}
html[data-theme=dark] .chip-r span{background:transparent;border-color:rgba(255,255,255,.3);color:var(--ink)}
html[data-theme=dark] .form-card{background:var(--card);border-color:var(--hair)}
html[data-theme=dark] .form [aria-invalid=true]{border-color:#ff6b5a}
html[data-theme=dark] ::selection{background:var(--y);color:#111}


/* cubos decorativos: en noche se ven con más luz */
html[data-theme=dark] .sec.alt::after{opacity:.16;filter:none}

/* tarjetas genéricas y paneles con fondo propio */
html[data-theme=dark] .box,html[data-theme=dark] .faq details{color:var(--ink)}
html[data-theme=dark] details[open] summary{color:var(--y)}
html[data-theme=dark] .faq details p{color:var(--muted)}
html[data-theme=dark] img.proj-photo{filter:brightness(.88)}

/* cabecera y menú: ya son oscuros; en noche se funden con el fondo */
html[data-theme=dark] .site-header{background:rgba(5,9,24,.94);border-bottom-color:rgba(255,255,255,.12)}

/* barra de progreso y selección */
html[data-theme=dark] .progress i{box-shadow:0 0 12px rgba(251,201,19,.9)}

/* cambio día/noche: círculo que crece desde el botón */
html.theme-vt::view-transition-old(root){animation:none;mix-blend-mode:normal}
html.theme-vt::view-transition-new(root){animation:ctThemeFade .9s cubic-bezier(.4,0,.2,1) both;mix-blend-mode:normal}
@keyframes ctThemeFade{from{opacity:0}to{opacity:1}}
html.theme-vt::view-transition-old(root){z-index:1}
html.theme-vt::view-transition-new(root){z-index:2}

/* Logos: sin placas ni fondo, un solo tono plano (como mixen.mx). Día: tinta oscura · Noche: blanco. */
.bw-grid{background:transparent;border-top:1px solid var(--navy-2)}
.bw-grid li{border-right-color:var(--hair);border-bottom-color:var(--hair);background:transparent}
.bw-grid li.on{background:transparent}
.logo-grid{background:transparent;gap:0;border:0;border-top:1px solid var(--navy-2);border-left:1px solid var(--hair)}
.logo-grid li{background:transparent;border-right:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.logo-grid li:hover{background:rgba(251,201,19,.1)}
.logo-grid li.nolg span{color:var(--navy-2)}
.bw-grid img,.logo-grid img{filter:grayscale(1) contrast(1.3) brightness(.85);mix-blend-mode:multiply;opacity:.7;transition:opacity .6s}
.bw-grid li.on img,.logo-grid li:hover img{filter:grayscale(1) contrast(1.3) brightness(.85);opacity:1}
html[data-theme=dark] .bw-grid img,html[data-theme=dark] .logo-grid img{filter:grayscale(1) invert(1) contrast(1.25);mix-blend-mode:screen;opacity:.72}
html[data-theme=dark] .bw-grid li.on img,html[data-theme=dark] .logo-grid li:hover img{filter:grayscale(1) invert(1) contrast(1.25);opacity:1}
/* menú (siempre oscuro) */
.mo-chip{background:transparent}
.mo-chip img{filter:grayscale(1) invert(1) contrast(1.25);mix-blend-mode:screen;opacity:.85}

/* Menos aire muerto: secciones más compactas */
.sec{padding:clamp(44px,6vw,84px) 0}
.sec-head{margin-bottom:clamp(22px,3.4vw,40px)}
.cov{grid-template-columns:1fr 1.25fr;gap:clamp(24px,3vw,44px)}
.cmap{max-height:460px}
.clip-band{min-height:min(72vh,620px)}
.clip-band-in{padding-bottom:clamp(30px,6vw,90px)}
.film{height:330vh}
.proj-vid{min-height:clamp(340px,38vw,540px)}
.vmosaic ul{height:clamp(340px,56vh,540px)}
@media(max-width:760px){.film{height:290vh}}

/* La franja de marcas de la home siempre es oscura: logos blancos planos, aunque el sitio esté en modo día */
.brand-wall .bw-grid{border-top:1px solid var(--y)}
.brand-wall .bw-grid li{border-right-color:rgba(255,255,255,.14);border-bottom-color:rgba(255,255,255,.14)}
.brand-wall .bw-grid img{filter:grayscale(1) invert(1) contrast(1.25);mix-blend-mode:screen;opacity:.7}
.brand-wall .bw-grid li.on img{filter:grayscale(1) invert(1) contrast(1.25);opacity:1}

/* ===== DÍA: cabecera y pie claros (los héroes con foto/video y las bandas de cine siguen siendo oscuros) ===== */
html[data-theme=light] .site-header{background:rgba(251,249,243,.94)!important;color:#0b1433;border-bottom:1px solid rgba(11,20,51,.12)!important}
html[data-theme=light] .site-header .brand .bw,html[data-theme=light] .foot-v2 .fu-brand .bw{filter:brightness(0)}
html[data-theme=light] .nav a.nav-top,html[data-theme=light] .has-mega>.nav-top{color:#0b1433!important}
html[data-theme=light] .bar .theme-btn,html[data-theme=light] .bar .lang{color:#0b1433;border-color:rgba(11,20,51,.28)!important}
html[data-theme=light] .bar .theme-btn:hover,html[data-theme=light] .bar .lang:hover{background:rgba(11,20,51,.07);color:#0b1433;border-color:rgba(11,20,51,.5)!important}
html[data-theme=light] .menu-btn{color:#0b1433;border-color:rgba(11,20,51,.28)}
html[data-theme=light] .menu-btn i,html[data-theme=light] .menu-btn .mb2 i{background:#0b1433}
html[data-theme=light] .site-header .brand{color:#0b1433}

html[data-theme=light] .site-footer.foot-v2{background:#efece3!important;color:#4a5578;border-top:3px solid var(--y)!important}
html[data-theme=light] .site-footer.foot-v2::before,html[data-theme=light] .site-footer.foot-v2 .net-foot{display:none}
html[data-theme=light] .foot-v2 .fv-lead h2{color:#0b1433}
html[data-theme=light] .foot-v2 .fv-lead>p{color:#4a5578}
html[data-theme=light] .foot-v2 .foot-h{color:#0b1433;border-bottom-color:rgba(11,20,51,.16)}
html[data-theme=light] .foot-v2 .foot-h span{color:#a77d00}
html[data-theme=light] .foot-v2 .fu-col a,html[data-theme=light] .foot-v2 .fv-links a{color:#2c365a}
html[data-theme=light] .foot-v2 .fu-col a:hover,html[data-theme=light] .foot-v2 .fv-links a:hover{color:#a77d00}
html[data-theme=light] .foot-v2 .fv-links .social a{border-color:rgba(11,20,51,.26);color:#2c365a}
html[data-theme=light] .foot-v2 .fv-links .social a:hover{border-color:#a77d00;color:#a77d00}
html[data-theme=light] .foot-v2 .fv-sign{border-top-color:rgba(11,20,51,.16)}
html[data-theme=light] .foot-v2 .fv-legal,html[data-theme=light] .foot-v2 .fv-legal a{color:#4a5578}
html[data-theme=light] .foot-v2 .fv-legal a:hover{color:#a77d00}
html[data-theme=light] .foot-v2 .fv-legal .made b{color:#0b1433;border-bottom-color:rgba(167,125,0,.6)}

/* Contacto v2 — modo noche */
html[data-theme=dark] .form .fs-h{color:#e8edfb}
html[data-theme=dark] .form .fs-h::before{color:var(--y)}
html[data-theme=dark] .form label{color:#aab6dd}
html[data-theme=dark] .form input,html[data-theme=dark] .form select,html[data-theme=dark] .form textarea{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.2);border-bottom-color:rgba(255,255,255,.45);color:#fff}
html[data-theme=dark] .form input:focus,html[data-theme=dark] .form select:focus,html[data-theme=dark] .form textarea:focus{background:rgba(251,201,19,.08);border-color:var(--y);border-bottom-color:var(--y)}
html[data-theme=dark] .chip-r span{border-color:rgba(255,255,255,.3);color:#e8edfb}
html[data-theme=dark] .chip-r input:checked+span{background:var(--y);border-color:var(--y);color:#111}
html[data-theme=dark] .form option{color:#111}

/* Sin numerales en secciones, formularios ni tarjetas */
.sec-head::before{display:none!important}
.sec-head,.sec-fit .sec-head{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)!important}
.sec-head h2{grid-column:1!important}
.sec-head .lead{grid-column:2!important}
.sec-head .sweep{grid-column:1/-1!important}
.sec-head:not(:has(.lead)) h2{grid-column:1/-1!important}
@media(max-width:900px){.sec-head,.sec-fit .sec-head{grid-template-columns:1fr!important}.sec-head .lead,.sec-head h2,.sec-head .sweep{grid-column:1!important}}
.form .fs-h::before{display:none!important}
.sv-list li{min-height:0;padding-top:20px}
.sv-list li::before{content:"";width:8px;height:8px;background:var(--y);display:block}
.sv-cards li{padding-top:24px}
.zl-tab{grid-template-columns:minmax(0,1fr) 18px!important}
.ss-item{grid-template-columns:minmax(0,1fr) 20px!important}
.mo-a{grid-template-columns:minmax(0,1fr) auto!important}
.ind2-row{grid-template-columns:minmax(0,1fr) auto!important}
@media(max-width:700px){.ss-item{grid-template-columns:1fr!important}.mo-a{grid-template-columns:1fr!important}.ind2-row{grid-template-columns:1fr!important}}
.film-caps .cap:not(.final)::before{content:""!important;display:block!important;width:46px;height:2px;padding:0;background:var(--y);margin:0 0 1.2em!important}
.ct-steps::before{display:none}
.ct-steps li{grid-template-columns:14px 1fr!important;gap:14px;align-items:start}
.ct-steps b{width:8px!important;height:8px!important;border:0!important;background:var(--y)!important;margin-top:.55em}

/* ===== Ligero y ágil: transiciones cortas, sin animaciones decorativas continuas ===== */
.fx:not(.rm) .rv{transform:translateY(8px)!important;transition:opacity .4s ease,transform .4s ease!important}
.fx:not(.rm) .rv.in{transform:none!important}
.ss-panel:not([hidden]),.fx:not(.rm) .zone-panel:not([hidden]) h3,.fx:not(.rm) .zone-panel:not([hidden])>p,.fx:not(.rm) .zone-panel:not([hidden]) .zone-vid,.fx:not(.rm) .zone-panel:not([hidden]) .zone-body,.zl-panel{animation-duration:.3s!important}
.zl-grid li{animation-duration:.3s!important;animation-delay:calc(var(--k) * .04s)!important}
.fx:not(.rm) .zone-panel:not([hidden]) .zone-sys li{animation-duration:.3s!important}
.btn,.tab,.ss-item,.steps button,.floor,.ind2-tabs button,.zc-b a,.chips a,.card,.ind-grid a,.zl-tab,.zl-grid a,.chip-r span,.mg-i,.sv-list li{transition-duration:.2s!important}
.clip .tx,.clip .tx::after,.clip .wash,.clip-band .clip-full.on video,.sec::before,.cta-band::before,.site-footer::before,.sec.alt::before,.sec-head .sweep,.clip-band-in h2 em,.hero h1 em .w>span,.page-head h1 em,.net .nl,.net .nh,.vb-tick span,.sv-rings g:first-child{animation:none!important}
.clip .tx,.clip .wash{display:none}
.sec-head .sweep{background:var(--y)!important}
.fx:not(.rm) .ticks li,.fx:not(.rm) .tags li,.fx:not(.rm) details,.fx:not(.rm) .sec.dark.has-aurora{animation:none!important}
.cur,.cur-dot{display:none!important}
.sec-head.in-view .sweep{transition:width .5s ease!important}

/* ===== Home: cada sección a pantalla completa ===== */
#explorar,#sistemas,#campo,#metodo,#proyecto,#sectores,#cobertura{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box}
.field-mosaic{grid-template-rows:repeat(2,clamp(190px,calc((100svh - 330px) / 2),380px))!important}

section:has(>.bgfx)>*:not(.bgfx){position:relative;z-index:1}

/* ===== Industrias por familias ===== */
.ind-fam{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(22px,3vw,44px) clamp(28px,4vw,64px);align-content:center}
.if-stack{display:grid;gap:clamp(22px,3vw,40px);align-content:start}
.if-col h3{display:flex;align-items:center;gap:12px;margin:0 0 10px;font:700 .72rem/1 var(--f-m,monospace);letter-spacing:.18em;text-transform:uppercase;color:var(--y)}
.if-col h3::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.2)}
.if-col ul{list-style:none;margin:0;padding:0}
.if-col a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;margin:0 -12px;border-left:2px solid transparent;color:#fff;text-decoration:none;font:600 clamp(.98rem,1.2vw,1.12rem)/1.2 var(--f-d);transition:background .2s,border-color .2s,padding .2s}
.if-col a svg{width:16px;height:16px;color:var(--y);opacity:0;transform:translateX(-6px);transition:opacity .2s,transform .2s}
.if-col a:hover,.if-col a:focus-visible{background:linear-gradient(90deg,rgba(251,201,19,.16),transparent);border-left-color:var(--y);padding-left:18px}
.if-col a:hover svg,.if-col a:focus-visible svg{opacity:1;transform:none}
.if-col li+li a{border-top:1px solid rgba(255,255,255,.08)}
@media(max-width:700px){.ind-fam{grid-template-columns:1fr}}

/* ===== Proyecto: cifras en tarjetas de cristal ===== */
.proj-nums{border-top:0!important;gap:14px!important}
.proj-nums div{border:1px solid rgba(255,255,255,.14)!important;border-top:2px solid var(--y)!important;background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.02))!important;box-shadow:0 18px 40px -24px rgba(0,0,0,.6)}
.proj-nums div:last-child{border-right:1px solid rgba(255,255,255,.14)!important}
.proj-dia{box-shadow:0 30px 70px -30px rgba(0,0,0,.7),inset 0 0 80px rgba(58,107,255,.12)}
html[data-theme=light] .proj-nums div{border-color:rgba(13,27,62,.12)!important;background:rgba(255,255,255,.7)!important}

/* Pie: aparición en cascada con efecto (más marcada y ágil) */
.fx:not(.rm) .ft-rv{transform:translateY(34px) scale(.98)!important;filter:blur(5px);transition:opacity .7s ease var(--fd,0s),transform .8s cubic-bezier(.2,.8,.2,1) var(--fd,0s),filter .7s ease var(--fd,0s)!important}
.fx:not(.rm) .ft-in .ft-rv{transform:none!important;filter:none}
.foot-h{position:relative}
.foot-h::after{content:"";position:absolute;left:0;bottom:-1px;height:2px;width:0;background:var(--y);transition:width .9s ease .3s}
.ft-in .foot-h::after{width:44px}

canvas.aurora{opacity:.72}

/* ===== Fondos vivos v3: 3 colores por sección que se funden y se mueven por el espacio (solo transform/opacity) ===== */
section:has(>.bgfx){position:relative;overflow:hidden;isolation:isolate}
.bgfx{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden;--c1:#2f6bff;--c2:#19d3c5;--c3:#fbc913}
.bgfx:not(.on){display:none}
.bgfx b{position:absolute;left:50%;top:50%;width:150vmax;height:150vmax;margin:-75vmax 0 0 -75vmax;border-radius:0;will-change:transform,opacity}
.bgfx b:nth-child(n+3){display:none}
.bgfx b:nth-child(1){background:
 radial-gradient(ellipse 34% 30% at 28% 34%,color-mix(in srgb,var(--c1) 58%,transparent) 0,color-mix(in srgb,var(--c1) 40%,transparent) 28%,color-mix(in srgb,var(--c1) 17%,transparent) 55%,color-mix(in srgb,var(--c1) 4%,transparent) 80%,transparent 100%),
 radial-gradient(ellipse 34% 30% at 72% 40%,color-mix(in srgb,var(--c2) 52%,transparent) 0,color-mix(in srgb,var(--c2) 36%,transparent) 28%,color-mix(in srgb,var(--c2) 15%,transparent) 55%,color-mix(in srgb,var(--c2) 4%,transparent) 80%,transparent 100%),
 radial-gradient(ellipse 36% 30% at 52% 74%,color-mix(in srgb,var(--c3) 46%,transparent) 0,color-mix(in srgb,var(--c3) 32%,transparent) 28%,color-mix(in srgb,var(--c3) 13%,transparent) 55%,color-mix(in srgb,var(--c3) 3%,transparent) 80%,transparent 100%);
 animation:bgrot 150s linear infinite,bgfa 34s ease-in-out infinite alternate}
.bgfx b:nth-child(2){background:
 radial-gradient(ellipse 34% 30% at 70% 30%,color-mix(in srgb,var(--c1) 50%,transparent) 0,color-mix(in srgb,var(--c1) 34%,transparent) 28%,color-mix(in srgb,var(--c1) 14%,transparent) 55%,color-mix(in srgb,var(--c1) 3%,transparent) 80%,transparent 100%),
 radial-gradient(ellipse 34% 30% at 30% 62%,color-mix(in srgb,var(--c3) 52%,transparent) 0,color-mix(in srgb,var(--c3) 36%,transparent) 28%,color-mix(in srgb,var(--c3) 15%,transparent) 55%,color-mix(in srgb,var(--c3) 4%,transparent) 80%,transparent 100%),
 radial-gradient(ellipse 36% 30% at 78% 72%,color-mix(in srgb,var(--c2) 50%,transparent) 0,color-mix(in srgb,var(--c2) 34%,transparent) 28%,color-mix(in srgb,var(--c2) 14%,transparent) 55%,color-mix(in srgb,var(--c2) 3%,transparent) 80%,transparent 100%);
 animation:bgrot2 210s linear infinite,bgfb 34s ease-in-out infinite alternate}
@keyframes bgrot{to{transform:rotate(360deg)}}
@keyframes bgrot2{to{transform:rotate(-360deg)}}
@keyframes bgfa{from{opacity:.95}to{opacity:.35}}
@keyframes bgfb{from{opacity:.3}to{opacity:.95}}
.rm .bgfx b{animation:none;opacity:.7}
.bgfx{opacity:.8}
html[data-theme=light] .bgfx{opacity:.42}
.bgfx[data-pal=explorar]{--c1:#2f6bff;--c2:#19d3c5;--c3:#fbc913}
.bgfx[data-pal=sistemas]{--c1:#19d3c5;--c2:#2f6bff;--c3:#fbc913}
.bgfx[data-pal=campo]{--c1:#fbc913;--c2:#2f6bff;--c3:#19d3c5}
.bgfx[data-pal=proyecto]{--c1:#2f6bff;--c2:#19d3c5;--c3:#6f8dff}
.bgfx[data-pal=sectores]{--c1:#2f6bff;--c2:#fbc913;--c3:#19d3c5}

/* ===== Texturas: solo dos, muy tenues (puntos finos y retícula), alternadas ===== */
:root{--txr:13 27 62}
html[data-theme=dark]{--txr:255 255 255}
.sec::after,.cta-band::after,.site-footer::after{content:"";display:block!important;position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:1;filter:none;
 -webkit-mask-image:radial-gradient(ellipse 85% 95% at var(--tx-at,70% 30%),#000 0,rgba(0,0,0,.5) 50%,transparent 100%);mask-image:radial-gradient(ellipse 85% 95% at var(--tx-at,70% 30%),#000 0,rgba(0,0,0,.5) 50%,transparent 100%)}
.cta-band,.site-footer{isolation:isolate}
/* puntos finos */
.sec:nth-of-type(odd)::after,.cta-band::after,.site-footer::after,#explorar::after,#campo::after,#sectores::after{--tx-at:78% 25%;background:radial-gradient(rgb(var(--txr)/.17) 1px,transparent 1.5px) 0 0/30px 30px}
/* retícula */
.sec:nth-of-type(even)::after,#sistemas::after,#proyecto::after,#metodo::after{--tx-at:22% 72%;background:linear-gradient(rgb(var(--txr)/.05) 1px,transparent 1px) 0 0/48px 48px,linear-gradient(90deg,rgb(var(--txr)/.05) 1px,transparent 1px) 0 0/48px 48px}
.sec>.wrap,.cta-band>.wrap,.site-footer>.wrap{position:relative;z-index:1}
html[data-theme=light] .sec::after,html[data-theme=light] .cta-band::after{opacity:.7}

/* Cobertura: textura completa en toda la sección (puntos + retícula, sin desvanecer) */
.sec-cov::after{z-index:0!important;-webkit-mask-image:none!important;mask-image:none!important;opacity:1!important;
 background:radial-gradient(rgb(var(--txr)/.3) 1.3px,transparent 1.8px) 0 0/28px 28px,linear-gradient(rgb(var(--txr)/.06) 1px,transparent 1px) 0 0/56px 56px,linear-gradient(90deg,rgb(var(--txr)/.06) 1px,transparent 1px) 0 0/56px 56px!important}

/* ===== Texturas v3: solo sutiles y nunca en secciones seguidas ===== */
.sec::after,.cta-band::after{display:none!important}
.sec:nth-of-type(4n+2)::after,#explorar::after,#proyecto::after,.site-footer::after{display:block!important;--tx-at:78% 25%;background:radial-gradient(rgb(var(--txr)/.1) 1px,transparent 1.5px) 0 0/30px 30px!important}
.sec:nth-of-type(4n)::after,#campo::after{display:block!important;--tx-at:22% 72%;background:linear-gradient(rgb(var(--txr)/.04) 1px,transparent 1px) 0 0/56px 56px,linear-gradient(90deg,rgb(var(--txr)/.04) 1px,transparent 1px) 0 0/56px 56px!important}
.sec-cov::after{display:block!important;background:radial-gradient(rgb(var(--txr)/.1) 1px,transparent 1.5px) 0 0/30px 30px!important}
#sistemas::after,#metodo::after,#sectores::after{display:none!important}
html[data-theme=light] .sec::after{opacity:.6}
.sec.sec-cov::after{background:radial-gradient(rgb(var(--txr)/.09) 1px,transparent 1.5px) 0 0/30px 30px!important}
.site-footer::after{display:none!important}

/* ===== Paleta v2: DÍA = azul tenue con acentos fuertes · NOCHE = azul intenso con acentos claros ===== */
html[data-theme=light]{--navy:#2b4486;--navy-3:#3a5aa6;--y:#ffbd00;--y-d:#e29e00;--blue:#1c52e6}
html[data-theme=light] .hero{background:linear-gradient(165deg,#3a58a6,#27407f)!important}
html[data-theme=light] .hero-bg{background:radial-gradient(60% 70% at 78% 45%,rgba(120,170,255,.45),transparent 70%),radial-gradient(45% 55% at 12% 90%,rgba(255,189,0,.18),transparent 70%),linear-gradient(180deg,#3a58a6,#2b4486)!important}
html[data-theme=light] .page-head{background:#2f4a8e!important}
html[data-theme=light] .brand-wall,html[data-theme=light] .vmosaic{background:#2a4283!important}
html[data-theme=light] .sec.dark{background:#30508f!important}
html[data-theme=light] .svc-stage,html[data-theme=light] .zl{background:#27407f!important}
html[data-theme=light] .zl-stage{background:radial-gradient(60% 80% at 80% 10%,rgba(130,180,255,.5),transparent 70%),linear-gradient(160deg,#37559f,#253d7b)!important}
html[data-theme=light] .step-body,html[data-theme=light] .proj-dia{background-color:#27407f!important}
html[data-theme=light] .has-aurora>canvas:not(.hero-canvas):not(.net){filter:saturate(.7) brightness(1.55) contrast(.9)}
html[data-theme=light] .btn-y{box-shadow:0 10px 26px -10px rgba(255,189,0,.9)}

html[data-theme=dark]{--paper:#040b33;--white:#081552;--card:#091554;--card-2:#0d1c6a;--y:#ffe27a;--y-d:#ffd54a;--blue:#7aa2ff}
html[data-theme=dark] .sec.alt{background:#061146!important}
html[data-theme=dark] .hero{background:linear-gradient(180deg,#050f48,#0a1f86)!important}
html[data-theme=dark] .hero-bg{background:radial-gradient(60% 70% at 78% 45%,rgba(70,120,255,.55),transparent 70%),radial-gradient(45% 55% at 12% 90%,rgba(255,226,122,.14),transparent 70%),linear-gradient(180deg,#050f48,#0a1f86)!important}
html[data-theme=dark] .page-head{background:#0a1c78!important}
html[data-theme=dark] .brand-wall,html[data-theme=dark] .vmosaic{background:#07166a!important}
html[data-theme=dark] .sec.dark{background:#0a1d78!important}
html[data-theme=dark] .svc-stage,html[data-theme=dark] .zl{background:#071a68!important}
html[data-theme=dark] .zl-stage{background:radial-gradient(60% 80% at 80% 10%,rgba(70,120,255,.65),transparent 70%),linear-gradient(160deg,#0d2aa0,#06145c)!important}
html[data-theme=dark] .step-body,html[data-theme=dark] .proj-dia{background-color:#07186a!important}
html[data-theme=dark] .has-aurora>canvas:not(.hero-canvas):not(.net){filter:saturate(1.45) brightness(1.2)}

/* ===== Móvil v2 (corrección de UI/UX) ===== */
@media(max-width:900px){
  #explorar,#sistemas,#campo,#metodo,#proyecto,#sectores,#cobertura{min-height:0!important;padding:56px 0!important}
  .proj{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto!important;gap:22px!important}
  .proj-copy,.proj-nums,.proj-dia,.proj-ph{grid-column:1!important;grid-row:auto!important;width:100%}
  .proj-copy h2{font-size:clamp(1.6rem,7vw,2.1rem)}
  .proj-nums{grid-template-columns:1fr!important;gap:10px!important}
  .proj-nums div{display:flex!important;align-items:baseline;gap:14px;padding:14px 16px!important}
  .proj-nums b{font-size:1.9rem!important;margin:0!important;padding:0!important;flex:0 0 auto;min-width:3.2ch}
  .proj-nums div:nth-child(3) b{font-size:1.15rem!important}
  .proj-nums span{font-size:.9rem}
  .cov{grid-template-columns:minmax(0,1fr)!important;gap:22px!important}
  .cmap-wrap{width:100%}.cmap{width:100%;height:auto;min-height:0!important}
  .hero .stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important;padding-right:0!important}
  .hero .stats div{padding:14px 10px!important;min-width:0;border-right:1px solid rgba(255,255,255,.14)!important}
  .hero .stats div:last-child{border-right:0!important}
  .hero .stats b{font-size:1.7rem!important}
  .hero .stats em,.hero .stats span{font-size:.72rem!important;line-height:1.3}
  .hero .rotator{margin:1em 0 1.2em}
  .bw-grid{grid-template-columns:repeat(3,1fr)!important}
  .bw-grid li:nth-child(n){border-right:1px solid rgba(255,255,255,.14)!important}.bw-grid li:nth-child(3n){border-right:0!important}
  .brand-wall{padding:30px 0}
  .clip-band.r .clip-band-in{margin-left:0!important;text-align:left!important}
  .clip-band.r .clip-band-in .lead{margin-left:0!important}
  .clip-band{min-height:56vh!important;padding:64px 0!important}
  .clip-band-in h2,.clip-break .clip-band-in h2{font-size:clamp(1.8rem,8vw,2.4rem)!important;max-width:none!important}
  .zl-tabs{flex-wrap:wrap!important;overflow:visible!important}
  .zl-tab{flex:1 1 46%!important;padding:12px 14px!important;font-size:.9rem}
  .zl-stage{min-height:0!important}
  .ss-list{flex-wrap:wrap!important;overflow:visible!important}
  .ss-list li{flex:1 1 46%!important}
  .ss-item{white-space:normal!important;padding:12px 14px!important;font-size:.92rem}
  .ss-view{min-height:0!important}
  .field-mosaic{grid-auto-rows:140px!important}
  .ft-rv,.ft-in .ft-rv{opacity:1!important;transform:none!important;filter:none!important;transition:none!important}
}
@media(max-width:520px){
  .ind-fam{gap:26px}
  .if-col ul{display:flex;flex-wrap:wrap;gap:8px}
  .if-col li+li a{border-top:0}
  .if-col a{margin:0;padding:9px 14px;border:1px solid rgba(255,255,255,.22);border-left-width:1px;border-radius:999px;font-size:.9rem;background:rgba(255,255,255,.05)}
  .if-col a svg{display:none}
  .city-tiles{grid-template-columns:repeat(2,1fr)}
}
.hero-cta-m{display:none!important}
@media(max-width:900px){
  .hero-cta-m{display:flex!important;flex-wrap:wrap;gap:12px;margin:0 0 26px}
  .hero-cta-m .btn{flex:1 1 auto;justify-content:center}
  .hero-visual{margin-top:0}
}
html[data-theme=dark] .site-header{background:rgba(4,11,51,.94)!important;border-bottom-color:rgba(122,162,255,.22)!important}
html[data-theme=light] .hero .btn-line,html[data-theme=light] .page-head .btn-line,html[data-theme=light] .sec.dark .btn-line{color:#fff;border-color:rgba(255,255,255,.7)}
html[data-theme=light] .hero .btn-line:hover,html[data-theme=light] .page-head .btn-line:hover,html[data-theme=light] .sec.dark .btn-line:hover{background:#fff;color:#27407f}
html[data-theme=light] .sec-ind{background:linear-gradient(135deg,#34549a,#27407f)!important}
html[data-theme=light] .zt-lead,html[data-theme=light] .svc-art{background-image:radial-gradient(70% 90% at 70% 20%,rgba(140,185,255,.5),transparent 70%),linear-gradient(160deg,#37559f,#253d7b)!important}
html[data-theme=dark] .sec-ind{background:linear-gradient(135deg,#061454,#0b2394)!important}
html[data-theme=dark] .zt-lead,html[data-theme=dark] .svc-art{background-image:radial-gradient(70% 90% at 70% 20%,rgba(80,130,255,.65),transparent 70%),linear-gradient(160deg,#0d2aa0,#06145c)!important}
@media(max-width:900px){.ss-view,.sec-fit .ss-view{min-height:380px!important}.zl-stage{min-height:400px!important}.svc-stage{min-height:0!important;height:auto!important}}
@media(max-width:1000px){.foot-v2 .fv-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:30px 22px!important}.foot-v2 .fu-col .foot-h{margin-bottom:.9em!important;padding-bottom:.7em!important}.foot-v2 .fu-col a{padding:.35em 0!important;font-size:.92rem}}
@media(max-width:380px){.foot-v2 .fv-links{grid-template-columns:1fr!important}}
@media(max-width:1000px){.foot-v2 .fv-main{grid-template-columns:minmax(0,1fr)!important;padding-block:48px 28px!important;gap:34px!important}.fv-lead h2{max-width:none!important;font-size:clamp(1.8rem,8vw,2.4rem)!important}.fv-lead{gap:14px!important}}
@media(max-width:960px){
  .mo-links>li{grid-template-columns:minmax(0,1fr) 46px!important}
  .mo-a{min-width:0}.mo-a b{font-size:clamp(1.3rem,6.2vw,2rem)!important;overflow-wrap:anywhere}
  .mo-a em{white-space:normal}
}
/* Cobertura: textura única en toda la sección (el mapa ya no trae la suya) */
.sec.sec-cov::after{display:block!important;z-index:0!important;-webkit-mask-image:none!important;mask-image:none!important;opacity:1!important;background:radial-gradient(rgb(var(--txr)/.1) 1px,transparent 1.5px) 0 0/30px 30px!important}
/* Índice de servicios: sin tarjetas huérfanas (4 en línea, 5 = 3+2 repartidas, 6 = 3+3, 2 = 2) */
@media(min-width:1000px){
  .grid-cards.three.n4{grid-template-columns:repeat(4,minmax(0,1fr))}
  .grid-cards.three.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-cards.three.n5{grid-template-columns:repeat(6,minmax(0,1fr))}
  .grid-cards.three.n5>*{grid-column:span 2}
  .grid-cards.three.n5>*:nth-child(4){grid-column:2/span 2}
  .grid-cards.three.n5>*:nth-child(5){grid-column:4/span 2}
  .grid-cards.three.n5{border-left:0}
  .grid-cards.three.n5>*:nth-child(1),.grid-cards.three.n5>*:nth-child(4){border-left:1px solid var(--hair)}
}
@media(min-width:641px) and (max-width:999px){
  .grid-cards.three.n2,.grid-cards.three.n4,.grid-cards.three.n5,.grid-cards.three.n6{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-cards.three.n5>*:last-child{grid-column:1/-1}
}
/* Correo siempre en un solo renglón */
.foot-v2 .fu-col a[href^="mailto:"],.site-footer a[href^="mailto:"]{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;font-size:clamp(.74rem,.95vw,.88rem)!important;letter-spacing:0}
@media(min-width:1001px){.foot-v2 .fv-links{grid-template-columns:minmax(0,1.2fr) minmax(0,1.2fr) minmax(0,1fr) max-content!important}}
/* Logo 3D del hero: detrás del texto y de las cifras, solo dentro del hero */
.hero .hero-canvas{z-index:1!important;pointer-events:none}
.sec.sec-cov{--txr:255 255 255}

/* Formulario: cierre (nota de seguridad + aviso + envío) */
.form .note{margin:0;padding:14px 16px;gap:12px;align-items:flex-start;border-radius:2px;font-size:.88rem;line-height:1.55}
.form .note .ico{width:18px;height:18px;margin-top:.15em}
.form .note-sec{background:transparent;border:0;border-left:2px solid var(--y);padding:2px 0 2px 16px;opacity:.85}
html[data-theme=dark] .form .note-sec{background:transparent;border-color:var(--y)}
.form .check{display:flex!important;align-items:center;gap:14px;padding:16px 18px;border:1px solid rgba(13,27,62,.16);background:rgba(13,27,62,.025);cursor:pointer;margin:0}
html[data-theme=dark] .form .check{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.04)}
.form .check input{appearance:none;-webkit-appearance:none;flex:none;width:22px;height:22px;min-height:0;padding:0;margin:0;border:1.5px solid rgba(13,27,62,.5);border-radius:0;background:transparent;display:grid;place-content:center;cursor:pointer;transition:background .25s,border-color .25s}
html[data-theme=dark] .form .check input{border-color:rgba(255,255,255,.6)}
.form .check input::after{content:"";width:11px;height:6px;border-left:2.5px solid #0d1b3e;border-bottom:2.5px solid #0d1b3e;transform:rotate(-45deg) translate(1px,-1px);opacity:0;transition:opacity .2s}
.form .check input:checked{background:var(--y);border-color:var(--y)}
.form .check input:checked::after{opacity:1}
.form .check input:focus-visible{outline:2px solid var(--y);outline-offset:3px}
.form .check span{font-size:.92rem;line-height:1.45}
.form .check a{text-decoration:underline;text-underline-offset:3px}
.form .form-actions{margin-top:6px}

/* ===== Móvil: sin animaciones 3D; solo los datos ===== */
@media(max-width:899px){
  .hero .hero-canvas,.hero .hero-visual{display:none!important}
  .hero{min-height:0!important}
  .hero .hero-in{min-height:0!important;padding-top:48px!important;padding-bottom:28px!important;display:block!important}
  .hero .hero-copy{max-width:none!important}
  .film.mstatic{height:auto!important;background:#050b1f}
  .film.mstatic .film-stage{position:relative!important;height:auto!important;overflow:visible!important;padding:56px 0 48px;background:#050b1f}
  .film.mstatic .film-canvas,.film.mstatic .film-vignette,.film.mstatic .film-leak,.film.mstatic .film-grain,.film.mstatic .film-flash,.film.mstatic .film-hint,.film.mstatic .film-pre,.film.mstatic .film-post,.film.mstatic .film-veil{display:none!important}
  .film.mstatic .film-caps{position:static!important;display:grid;gap:0;padding:0 20px;max-width:640px;margin:0 auto}
  .film.mstatic .cap,.film.mstatic .cap.final{position:static!important;opacity:1!important;visibility:visible!important;transform:none!important;filter:none!important;max-width:none!important;margin:0!important;padding:28px 0!important;text-align:left!important;border-top:1px solid rgba(255,255,255,.14)}
  .film.mstatic .cap:first-child{border-top:0}
  .film.mstatic .cap-k{justify-content:flex-start!important}
  .film.mstatic .cap-k::before{width:28px;box-shadow:none}
  .film.mstatic .cap.final .cap-k::after{display:none}
  .film.mstatic .cap h2,.film.mstatic .cap.final h2{font-size:clamp(1.4rem,6vw,1.8rem);line-height:1.15;text-shadow:none;margin:0 0 .5em}
  .film.mstatic .cap-p,.film.mstatic .cap.final .cap-p{font-size:1rem;margin:0;text-shadow:none;max-width:none}
  .film.mstatic .cap.final .btn{margin-top:1.2em;pointer-events:auto}
}
/* Móvil: márgenes laterales correctos en bandas con video */
@media(max-width:899px){
  .clip-band .clip-band-in,.clip-band.r .clip-band-in,.clip-break .clip-band-in{width:100%!important;max-width:none!important;margin:0!important;padding-left:20px!important;padding-right:20px!important;box-sizing:border-box}
  .clip-band .clip-band-in .lead{max-width:none!important}
}

/* ===== Método en móvil: despegable ===== */
@media(max-width:899px){
  .process.acc{display:block!important}
  .process.acc .step-body{display:none!important}
  .process.acc .steps{display:grid;gap:10px}
  .process.acc .steps li{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.03)}
  .process.acc .steps button{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:18px!important;border:0!important;border-left:2px solid transparent!important;border-radius:0;font:600 1.02rem/1.3 var(--f-d);color:#fff}
  .process.acc .steps button[aria-selected=true]{background:rgba(251,201,19,.1)!important;border-left-color:var(--y)!important}
  .process.acc .steps button::after{display:none}
  .process.acc .steps .chev{flex:none;width:9px;height:9px;border-right:2px solid var(--y);border-bottom:2px solid var(--y);transform:rotate(45deg) translate(-2px,-2px);transition:transform .35s ease}
  .process.acc .steps button[aria-selected=true] .chev{transform:rotate(-135deg) translate(-2px,-2px)}
  .process.acc .steps li>[data-body]:not([hidden]){display:block!important;padding:4px 18px 20px 20px;border-left:2px solid var(--y);background:#0a1330}
  .process.acc [data-body] .sb-main{display:block!important}
  .process.acc [data-body] .sb-txt{max-width:none}
  .process.acc [data-body] .sb-main h3,.process.acc [data-body] .sb-n,.process.acc [data-body] .sb-prog{display:none!important}
  .process.acc [data-body] .sb-d{margin:14px 0 18px;max-width:none;font-size:.98rem}
  .process.acc [data-body] .sb-t{padding:0 0 10px!important}
  .process.acc [data-body] .sb-out ul{display:grid!important;grid-template-columns:1fr!important;gap:8px}
  .process.acc [data-body] .sb-out li{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:14px!important;min-height:0!important;padding:12px 14px!important}
  .process.acc [data-body] .sb-out li b{font:500 .98rem/1.3 var(--f-b)}
  .process.acc [data-body] .sb-k{width:28px;height:28px}
}

/* ===== Zonas y sistemas en móvil: despegables ===== */
.chev{display:none}
@media(max-width:899px){
  .zl.acc .zl-tabs,.svc-stage.acc .ss-acc{display:grid!important;gap:10px;grid-template-columns:minmax(0,1fr)!important;flex-wrap:nowrap!important;overflow:visible!important;border:0!important;background:none!important}
  .zl.acc .zl-stage{display:none!important}
  .zl.acc .zl-tab,.svc-stage.acc .ss-acc>.tab{display:flex!important;justify-content:space-between;align-items:center;gap:14px;width:100%;flex:none!important;padding:18px!important;margin:0;border:1px solid rgba(255,255,255,.16)!important;border-left:2px solid transparent!important;border-radius:0!important;background:rgba(255,255,255,.04)!important;color:#fff!important;font:600 1.02rem/1.3 var(--f-d)!important;text-align:left;clip-path:none!important;min-height:0}
  .zl.acc .zl-tab[aria-selected=true],.svc-stage.acc .ss-acc>.tab[aria-selected=true]{background:rgba(251,201,19,.1)!important;border-left-color:var(--y)!important}
  .zl.acc .zl-tab>svg{display:none}
  .zl.acc .zl-tab::after,.zl.acc .zl-tab::before,.svc-stage.acc .ss-acc>.tab::before,.svc-stage.acc .ss-acc>.tab::after{display:none!important}
  .zl.acc .chev,.svc-stage.acc .chev{display:block;flex:none;width:9px;height:9px;border-right:2px solid var(--y);border-bottom:2px solid var(--y);transform:rotate(45deg) translate(-2px,-2px);transition:transform .35s ease}
  .zl.acc [aria-selected=true] .chev,.svc-stage.acc [aria-selected=true] .chev{transform:rotate(-135deg) translate(-2px,-2px)}
  /* cuerpo de zona */
  .zl.acc .zl-panel:not([hidden]){display:block!important;margin:-10px 0 0;padding:20px 20px 22px;border:1px solid rgba(255,255,255,.16);border-top:0;border-left:2px solid var(--y);background:#0a1330;min-height:0!important}
  .zl.acc .zl-head h3{font-size:1.2rem;margin:0 0 6px}
  .zl.acc .zl-head p{margin:0 0 16px;font-size:.96rem;line-height:1.5}
  .zl.acc .zl-grid{display:grid!important;grid-template-columns:1fr!important;gap:8px;margin:0 0 18px;padding:0;list-style:none}
  .zl.acc .zl-grid a{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.03);min-height:0}
  .zl.acc .zl-grid b{font:500 .98rem/1.3 var(--f-b)}
  .zl.acc .zl-panel .btn{width:100%;justify-content:center}
  /* cuerpo de grupo de sistemas */
  .svc-stage.acc .ss-sub:not([hidden]){display:grid!important;gap:8px;margin:-10px 0 0;padding:16px 16px 18px;list-style:none;border:1px solid rgba(255,255,255,.16);border-top:0;border-left:2px solid var(--y);background:#0a1330}
  .svc-stage.acc .ss-sub li{margin:0;padding:0;border:0!important;list-style:none}
  .svc-stage.acc .ss-sub .ss-item{display:flex!important;justify-content:space-between;align-items:center;gap:12px;width:100%;padding:14px!important;border:1px solid rgba(255,255,255,.14)!important;background:rgba(255,255,255,.03)!important;color:#fff!important;font:500 .98rem/1.3 var(--f-b)!important;text-decoration:none;white-space:normal!important;min-height:0}
  .svc-stage.acc .ss-sub .ss-item b{font:inherit}
  .svc-stage.acc .ss-sub .ss-item svg{flex:none;color:var(--y)}
}
@media(max-width:899px){
  .zl.acc .zl-grid li{margin:0;padding:0;border:0!important;min-height:0!important;width:auto!important}
  .zl.acc .zl-grid a{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;text-align:left!important;gap:14px!important;padding:12px 14px!important;min-height:0!important;height:auto!important;aspect-ratio:auto!important}
  .zl.acc .zl-grid .zl-i{flex:none;width:36px!important;height:36px!important;margin:0!important}
  .zl.acc .zl-grid b{flex:1;text-align:left}
}
@media(max-width:899px){
  .svc-stage.acc{display:block!important;clip-path:none!important;border:0!important;background:none!important;padding:0!important;box-shadow:none!important;min-height:0!important}
  .svc-stage.acc::before,.svc-stage.acc::after{display:none!important}
  .svc-stage.acc .ss-sub .ss-item svg{opacity:1!important;width:18px;height:18px}
}

/* ===== Pie en móvil: contacto primero, enlaces en despegables ===== */
@media(max-width:899px){
  .foot-v2 .fv-links.acc{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .foot-v2 .fv-links.acc .fu-col{order:2;margin:0;padding:0}
  .foot-v2 .fv-links.acc .fu-col:last-child{order:1;display:grid;gap:10px;margin-bottom:8px}
  .foot-v2 .fv-links.acc .fu-col:last-child .foot-h{margin:0 0 4px!important;padding:0 0 10px!important}
  .foot-v2 .fv-links.acc .fu-col:last-child>a{display:flex!important;align-items:center;gap:14px;padding:16px 18px;border:1px solid rgba(128,140,180,.38);font-size:1rem!important;white-space:nowrap}
  .foot-v2 .fv-links.acc .fu-col:last-child>a svg{flex:none;width:20px;height:20px;color:var(--y)}
  .foot-v2 .fv-links.acc .social{display:flex;gap:10px;margin:6px 0 0}
  .foot-v2 .fv-links.acc .social a{flex:1;justify-content:center;height:52px;padding:0;border:1px solid rgba(128,140,180,.38)}
  .foot-v2 .foot-acc{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0!important;padding:18px!important;background:transparent;border:1px solid rgba(128,140,180,.38)!important;border-left:2px solid transparent!important;font:600 .82rem/1 var(--f-m,monospace);letter-spacing:.16em;text-transform:uppercase;color:inherit;text-align:left;cursor:pointer}
  .foot-v2 .foot-acc::after{display:none!important}
  .foot-v2 .foot-acc[aria-expanded=true]{border-left-color:var(--y)!important}
  .foot-v2 .foot-acc .chev{display:block;flex:none;width:9px;height:9px;border-right:2px solid var(--y);border-bottom:2px solid var(--y);transform:rotate(45deg) translate(-2px,-2px);transition:transform .35s ease}
  .foot-v2 .foot-acc[aria-expanded=true] .chev{transform:rotate(-135deg) translate(-2px,-2px)}
  html[data-theme=light] .foot-v2 .foot-acc .chev{border-color:#a77d00}
  .foot-v2 .fu-body:not([hidden]){display:grid;border:1px solid rgba(128,140,180,.38);border-top:0;padding:6px 18px 10px}
  .foot-v2 .fu-body a{display:block;padding:13px 0;border-top:1px solid rgba(128,140,180,.22);font-size:.98rem!important;line-height:1.35}
  .foot-v2 .fu-body a:first-child{border-top:0}
}

/* ===== Menú móvil rediseñado: lista limpia, texto normal, flecha y pie ordenado ===== */
@media(max-width:960px){
  .menu-ov{overflow-y:auto;-webkit-overflow-scrolling:touch}
  .mo-main{align-items:flex-start;padding-block:8px 18px}
  .mo-links>li{border-bottom:1px solid rgba(255,255,255,.12)}
  .mo-links>li:first-child{border-top:0}
  .mo-a{display:block;padding:16px 0 15px!important}
  .mo-a b{display:block;font:600 1.3rem/1.2 var(--f-d);letter-spacing:0;text-transform:none;text-wrap:wrap}
  .mo-a em{display:block;margin:5px 0 0;font:400 .86rem/1.3 var(--f-b);letter-spacing:0;text-transform:none;color:rgba(255,255,255,.55);white-space:normal}
  .mo-a[aria-current=page] b::after{width:.3em;height:.3em;margin-left:.45em;vertical-align:.08em}
  .mo-links li.active .mo-a{padding-left:16px!important}
  .mo-links li.active .mo-a::before{top:12px;bottom:12px;width:3px}
  .mo-tg{width:48px;height:48px;border:0!important;background:transparent!important;color:var(--y)!important;position:relative}
  .mo-tg .ico{display:none}
  .mo-tg::after{content:"";width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-2px,-2px);transition:transform .35s ease}
  .mo-links li.active .mo-tg::after{transform:rotate(-135deg) translate(-2px,-2px)}
  .mo-panel{margin:0 0 20px;padding:6px 0 6px 18px;border-left:2px solid var(--y)}
  .mo-lead{font-size:.98rem;line-height:1.5;margin:0 0 1.1em}
  .mo-gh{margin:0 0 .4em}
  .mo-grp a{padding:.6em 0;font-size:.98rem}
  .mo-all{width:100%;justify-content:center}
  /* pie: contacto en filas, luego tema + idioma, y el botón de cotizar a todo el ancho */
  .mo-foot{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;padding:16px 0 22px}
  .mo-foot .mo-ph,.mo-foot .mo-ml{grid-column:1/-1;order:0!important;flex:none;padding:12px 14px;border:1px solid rgba(255,255,255,.16);font-size:.95rem}
  .mo-foot .mo-sp{display:none}
  .mo-foot .theme-btn,.mo-foot .lang{height:48px;width:100%;justify-content:center;order:1}
  .mo-foot .btn{grid-column:1/-1;order:2;height:54px;justify-content:center;font-size:1rem}
}
@media(max-width:960px){.mo-a b{font-size:1.3rem!important;overflow-wrap:normal!important}.mo-a em{font-size:.86rem!important}.mo-links>li{grid-template-columns:minmax(0,1fr) 48px!important}}

/* ===== Móvil: tarjetas de sistemas compactas (icono + texto en fila) ===== */
@media(max-width:700px){
  .grid-cards .card.svc{display:grid!important;grid-template-columns:64px minmax(0,1fr);gap:16px;align-items:start;padding:16px!important;min-height:0}
  .grid-cards .card.svc .svc-vid{width:64px!important;height:64px!important;min-height:0!important;aspect-ratio:1;flex:none}
  .grid-cards .card.svc .svc-art{width:100%;height:100%;min-height:0!important;aspect-ratio:auto!important;display:grid;place-items:center}
  .grid-cards .card.svc .svc-art .ico{width:30px!important;height:30px!important}
  .grid-cards .card.svc .svc-art::before,.grid-cards .card.svc .svc-art::after{display:none!important}
  .grid-cards .card.svc .svc-tx{padding:0!important;min-width:0}
  .grid-cards .card.svc h3{font-size:1.05rem;margin:0 0 4px}
  .grid-cards .card.svc p{font-size:.9rem;line-height:1.45;margin:0 0 8px}
  .grid-cards.three,.grid-cards.three.n2,.grid-cards.three.n4,.grid-cards.three.n5{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
}

/* ===== Móvil: página de servicio compacta ===== */
@media(max-width:899px){
  .sv-art{aspect-ratio:16/10!important;max-height:250px!important}
  .sv-art .sv-big{top:40%!important;width:84px!important}
  .sv-side{margin-top:6px}
  .sv-list{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .sv-list li{min-height:0!important;padding:14px 16px 16px!important;gap:8px!important}
  .sv-cards{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
  .sv-cards li{grid-template-columns:46px minmax(0,1fr);align-items:center;gap:16px!important;padding:16px!important}
  .sv-cards li p{margin:0;font-size:.98rem;line-height:1.4}
}

/* Menú: la barra con la cruz siempre visible, aunque se desplace la lista */
.menu-ov .mo-bar{position:sticky!important;top:0;z-index:5;background:#060b1d;padding-block:10px;flex:none}
.menu-ov .mo-close{width:48px;height:48px}

/* Asistente: botón de cerrar con área táctil de 44 px */

/* ===== Industrias en móvil: selector + filas compactas ===== */
.ind-sel{display:none}
@media(max-width:899px){
  .ind2-tabs.m-hide{display:none!important}
  .ind-sel{display:grid;gap:8px;margin:0 0 22px}
  .ind-sel span{font:600 .74rem/1 var(--f-m,monospace);letter-spacing:.16em;text-transform:uppercase;color:#4a5578}
  html[data-theme=dark] .ind-sel span{color:#aab6dd}
  .ind-sel select{width:100%;height:56px;padding:0 48px 0 18px;border:1px solid rgba(13,27,62,.3);border-left:2px solid var(--y);border-radius:0;background-color:rgba(13,27,62,.04);color:inherit;font:600 1.05rem var(--f-d);appearance:none;-webkit-appearance:none;background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(-45deg,transparent 50%,currentColor 50%);background-position:calc(100% - 24px) 50%,calc(100% - 18px) 50%;background-size:6px 6px;background-repeat:no-repeat}
  html[data-theme=dark] .ind-sel select{border-color:rgba(255,255,255,.22);border-left-color:var(--y);background-color:rgba(255,255,255,.05);color:#fff}
  html[data-theme=dark] .ind-sel select option{background:#0d1530;color:#fff}
  .ind2-h{margin-bottom:16px}
  .ind2-rows{display:grid;gap:10px}
  .ind2-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;align-items:start!important;align-content:start!important;padding:20px 20px 18px!important;min-height:0!important}
  .ind2-row .sa-row,.ind2-row .svc-art{position:absolute!important;inset:0!important;z-index:-1;display:block}
  .ind2-row .sa-row svg,.ind2-row .svc-art svg{position:absolute;right:18px;top:18px;width:44px!important;height:44px!important;margin:0!important;opacity:.28!important}
  .ind2-row .r-t{display:grid;gap:8px;min-width:0;padding-right:56px}
  .ind2-row .r-t b{font:600 1.12rem/1.25 var(--f-d)}
  .ind2-row .r-t em{margin:0!important;font:400 .94rem/1.5 var(--f-b);font-style:normal}
  .ind2-row .r-go{opacity:1!important;font-size:.76rem;padding-top:4px}
}

/* ===== Proyecto en cifras (móvil): textos con aire, cifras en filas alineadas ===== */
@media(max-width:899px){
  #proyecto .proj{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
  #proyecto .proj-copy h2{font-size:clamp(1.6rem,7vw,2rem);line-height:1.15;margin:0 0 16px}
  #proyecto .proj-copy p{margin:0 0 14px;font-size:1rem;line-height:1.6}
  #proyecto .proj-copy .fine{margin:18px 0 0;font-size:.88rem;opacity:.8}
  #proyecto .proj-nums{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;border-top:0!important;align-self:auto}
  #proyecto .proj-nums div{display:grid!important;grid-template-columns:minmax(0,118px) minmax(0,1fr);align-items:center;gap:6px 16px;padding:16px 18px!important;border:1px solid rgba(128,140,180,.32)!important;border-top:2px solid var(--y)!important}
  #proyecto .proj-nums b{font-size:1.9rem!important;line-height:1;padding:0!important;margin:0!important;white-space:nowrap}
  #proyecto .proj-nums div:nth-child(3) b{font-size:1.05rem!important;line-height:1.2;white-space:normal}
  #proyecto .proj-nums span{font-size:.92rem;line-height:1.35}
  #proyecto .proj-dia{grid-column:1!important;grid-row:auto!important;padding:18px!important}
}

/* ===== Menú móvil compacto: solo enlaces, sin desplegables, cabe en una pantalla ===== */
@media(max-width:960px){
  .mo-tg,.mo-panel,.mo-links>li.active .mo-panel{display:none!important}
  .mo-a em{display:none!important}
  .mo-main{align-items:flex-start;padding-block:4px 8px;flex:1 1 auto}
  .mo-links>li{display:block!important;border-bottom:1px solid rgba(255,255,255,.12)}
  .mo-a{display:flex!important;align-items:center;justify-content:space-between;padding:0!important;min-height:54px}
  .mo-a b{font:600 1.25rem/1.2 var(--f-d)!important}
  .mo-a::after{content:"";flex:none;width:9px;height:9px;margin-right:6px;border-top:2px solid var(--y);border-right:2px solid var(--y);transform:rotate(45deg)}
  .mo-links li.active .mo-a{padding-left:0!important}
  .mo-links li.active .mo-a::before{display:none}
  .mo-links .mo-a[aria-current=page] b{color:var(--y)}
  .mo-foot{display:grid!important;grid-template-columns:48px 48px minmax(0,1fr);gap:8px;padding:14px 0 18px}
  .mo-foot .mo-ph,.mo-foot .mo-ml{grid-column:1/-1;padding:10px 14px;font-size:.9rem}
  .mo-foot .theme-btn,.mo-foot .lang{width:48px;height:48px;padding:0;order:1}
  .mo-foot .btn{grid-column:3;order:2;height:48px;font-size:.95rem}
}

/* Rendimiento: sin desenfoques gigantes ni animaciones permanentes a pantalla completa */
.ambient i{filter:none!important;animation:none!important;will-change:auto!important;opacity:.22}
.film-grain{animation:none!important;inset:0!important}
.fx:not(.rm) .hero .ph::after,.fx:not(.rm) .floors::after{animation:none!important}
.fx:not(.rm) .cta-band{animation:none!important;background-size:100% 100%!important}
@media (max-width:899px){.ambient{display:none!important}.film-grain,.clip .tx{display:none!important}}

/* Móvil: navegación estable (sin desplazamiento suave forzado ni transformaciones al aparecer) */
@media (max-width:899px){
  html{scroll-behavior:auto}
  .fx:not(.rm) .rv2{transform:none}
  .fx:not(.rm) .rv2.rvs{transition:opacity .8s ease var(--rd,0s)}
}

/* Móvil: la línea rotatoria reserva siempre dos renglones; si no, cada palabra larga cambia la altura de la portada y el scroll "salta" */
@media (max-width:899px){
  .hero .rotator{line-height:1.5;row-gap:.1em;align-content:flex-start;min-height:3.1em}
  .hero .r-word{min-width:0;overflow-wrap:anywhere}
}

/* Menú móvil a pantalla completa: barra, lista y pie ocupan todo el ancho y el alto (sin cajas desalineadas) */
@media (max-width:960px){
  .menu-ov{height:100vh;height:100dvh;max-width:100vw}
  .menu-ov .wrap{width:100%!important;max-width:none!important;margin:0!important;box-sizing:border-box}
  .menu-ov .mo-bar{position:relative!important;top:auto!important;background:transparent!important;padding:calc(env(safe-area-inset-top,0px) + 10px) 20px 10px!important;min-height:0}
  .menu-ov .mo-main{padding:0 20px;flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;min-height:0}
  .menu-ov .mo-links{margin:0;width:100%}
  .menu-ov .mo-links>li>.mo-a{min-height:clamp(54px,8.4vh,70px)}
  .menu-ov .mo-foot{padding:14px 20px calc(env(safe-area-inset-bottom,0px) + 20px)!important;background:linear-gradient(0deg,rgba(6,11,29,.9),rgba(6,11,29,0))}
}
html.theme-fade *,html.theme-fade *::before,html.theme-fade *::after{transition:background-color .9s ease,color .9s ease,border-color .9s ease,fill .9s ease,stroke .9s ease,box-shadow .9s ease!important}

/* Cuadros con borde: contorno siempre cerrado (sin esquina cortada que rompa la línea) */
.mo-close,.theme-btn,.menu-btn,.svc-ico,.alliance,.sv-art,.side-ph.sv-art{clip-path:none!important}
.mo-close,.theme-btn,.menu-btn,.menu-ov .lang,.bar .lang{border-radius:0}

/* =====================================================================
   PALETA FINAL — DÍA: azul clarito con acentos oscuros · NOCHE: lo inverso
   (sin crema, sin lavados amarillos/rosas; el amarillo queda solo en botones y trazos)
   ===================================================================== */
html[data-theme=light]{
  --paper:#e8f0fc;--white:#f5f9ff;--card:#f5f9ff;--card-2:#eaf1fc;--line:#c9d8ef;--hair:rgba(16,29,69,.14);
  --ink:#0d1838;--muted:#48587e;
  --navy:#0d1a42;--navy-2:#13234f;--navy-3:#1d3270;--blue:#2457d6;--y:#ffbd00;--y-d:#e29e00;--txr:16 29 69;
}
html[data-theme=light] body{background:var(--paper)}
html[data-theme=light] .sec.alt,html[data-theme=light] .ct-form,html[data-theme=light] .tags li{background:#dce8fa!important}
html[data-theme=light] .sec.alt{background:#dce8fa!important}
html[data-theme=light] .ct-form{background:#f5f9ff!important}
html[data-theme=light] .note{background:#e1ecfc;border-color:#b9cdee}
html[data-theme=light] .chips a:hover,html[data-theme=light] .ind-list button:hover{background:#dce8fa}
html[data-theme=light] .site-header{background:rgba(232,240,252,.94)!important;border-bottom:1px solid rgba(16,29,69,.12)!important}
html[data-theme=light] .site-footer.foot-v2{background:#d6e4f9!important;border-top:3px solid var(--y)!important}
/* acentos oscuros */
html[data-theme=light] .hero{background:linear-gradient(165deg,#10204f,#0a1534)!important}
html[data-theme=light] .hero-bg{background:radial-gradient(60% 70% at 78% 45%,rgba(70,120,235,.38),transparent 70%),radial-gradient(45% 55% at 12% 90%,rgba(120,170,255,.16),transparent 70%)!important}
html[data-theme=light] .page-head{background:#0f1f4c!important}
html[data-theme=light] .brand-wall,html[data-theme=light] .vmosaic{background:#0d1a42!important}
html[data-theme=light] .sec.dark{background:#0f1f4c!important}
html[data-theme=light] .svc-stage,html[data-theme=light] .zl{background:#0c1838!important}
html[data-theme=light] .zl-stage{background:radial-gradient(60% 80% at 80% 10%,rgba(70,120,235,.4),transparent 70%),linear-gradient(160deg,#14275c,#0a1534)!important}
html[data-theme=light] .step-body,html[data-theme=light] .proj-dia{background-color:#0c1838!important}
html[data-theme=light] .sec-ind{background:linear-gradient(135deg,#13245a,#0b1738)!important}
html[data-theme=light] .zt-lead,html[data-theme=light] .svc-art{background-image:radial-gradient(70% 90% at 70% 20%,rgba(80,130,240,.4),transparent 70%),linear-gradient(160deg,#14275c,#0a1534)!important}
html[data-theme=light] .has-aurora>canvas:not(.hero-canvas):not(.net){filter:saturate(.55) brightness(.9)}
html[data-theme=light] .proj-nums div{background:rgba(245,249,255,.85)!important;border-color:rgba(16,29,69,.14)!important}
/* sin lavados cálidos: luces y fondos animados solo en azul */
.ambient i:nth-child(1){background:radial-gradient(circle,rgba(79,134,255,.28),transparent 65%)!important}
.ambient i:nth-child(2){background:radial-gradient(circle,rgba(130,180,255,.26),transparent 65%)!important}
html[data-theme=light] .bgfx{--c1:#3a6bff!important;--c2:#7fb2ff!important;--c3:#a9c8ff!important;opacity:.35}
html[data-theme=dark] .bgfx{--c1:#2f6bff!important;--c2:#5b93ff!important;--c3:#9ec1ff!important}

/* NOCHE: azul marino profundo, acentos claros */
html[data-theme=dark]{
  --paper:#060d24;--white:#0d1736;--card:#0f1b40;--card-2:#13224d;--hair:rgba(190,215,255,.16);--line:rgba(190,215,255,.16);
  --ink:#e6eeff;--muted:#a3b4d9;--navy-2:#e6eeff;--y:#ffd34d;--y-d:#ffc21a;--blue:#9ec1ff;
}
html[data-theme=dark] body{background:var(--paper)}
html[data-theme=dark] .sec.alt{background:#0a1431!important}
html[data-theme=dark] .site-header{background:rgba(6,13,36,.94)!important;border-bottom-color:rgba(190,215,255,.18)!important}
html[data-theme=dark] .hero{background:linear-gradient(180deg,#0a1840,#0d2257)!important}
html[data-theme=dark] .hero-bg{background:radial-gradient(60% 70% at 78% 45%,rgba(110,160,255,.4),transparent 70%),radial-gradient(45% 55% at 12% 90%,rgba(158,193,255,.14),transparent 70%)!important}
html[data-theme=dark] .page-head{background:#0c1c4a!important}
html[data-theme=dark] .brand-wall,html[data-theme=dark] .vmosaic{background:#091536!important}
html[data-theme=dark] .sec.dark{background:#0c1c4a!important}
html[data-theme=dark] .svc-stage,html[data-theme=dark] .zl{background:#0a1740!important}
html[data-theme=dark] .zl-stage{background:radial-gradient(60% 80% at 80% 10%,rgba(110,160,255,.42),transparent 70%),linear-gradient(160deg,#13296a,#0a1740)!important}
html[data-theme=dark] .step-body,html[data-theme=dark] .proj-dia{background-color:#0a1740!important}
html[data-theme=dark] .sec-ind{background:linear-gradient(135deg,#0c1c4a,#12297a)!important}
html[data-theme=dark] .zt-lead,html[data-theme=dark] .svc-art{background-image:radial-gradient(70% 90% at 70% 20%,rgba(110,160,255,.42),transparent 70%),linear-gradient(160deg,#13296a,#0a1740)!important}
html[data-theme=dark] .has-aurora>canvas:not(.hero-canvas):not(.net){filter:saturate(.8) brightness(1)}
/* lavado de fondo de cada sección: solo tonos azules */
.sec::before{background:radial-gradient(38% 42% at 16% 28%,rgba(70,125,245,.16),transparent 70%),radial-gradient(36% 42% at 84% 72%,rgba(120,175,255,.16),transparent 70%)!important}

/* Fondo del menú: el resplandor no se repite (evita la franja/costura en el borde izquierdo) */
.mo-bg{animation:none!important;background-size:64px 64px,64px 64px,100% 100%,100% 100%!important;background-repeat:repeat,repeat,no-repeat,no-repeat!important;background-position:0 0!important}

/* Móvil: cuadros del pie cerrados por la izquierda y teléfono/correo con más aire respecto al borde */
@media (max-width:899px){
  .foot-v2 .foot-acc{border:1px solid rgba(128,140,180,.38)!important;padding:18px 22px!important}
  .foot-v2 .foot-acc[aria-expanded=true]{border-color:var(--y)!important;border-bottom-color:rgba(128,140,180,.38)!important}
  .foot-v2 .fu-body:not([hidden]){padding:6px 22px 10px}
  .foot-v2 .fv-links.acc .fu-col:last-child>a{padding:16px 22px;gap:16px}
  .menu-ov .mo-foot .mo-ph,.menu-ov .mo-foot .mo-ml{padding:14px 22px!important;gap:16px!important}
}
@media (max-width:899px){
  .foot-v2 .fv-links a[href^="tel"],.foot-v2 .fv-links a[href^="mailto"]{padding:16px 22px!important;gap:16px!important}
}

/* Móvil: muro de marcas del inicio en 4 filas de 3 logos */
@media (max-width:899px){
  .brand-wall .bw-grid{grid-template-columns:repeat(3,1fr)}
  .brand-wall .bw-grid li:nth-child(n+13){display:none}
  .brand-wall .bw-grid li:nth-child(n){border-right:1px solid var(--hair)}
  .brand-wall .bw-grid li:nth-child(3n){border-right:0}
}
.bgfx.idle,.bgfx.idle b{animation-play-state:paused!important}

/* ===== Menú: apertura y cierre con estilo (cortina + entrada escalonada) ===== */
.menu-ov{opacity:1!important;clip-path:inset(0 0 100% 0);transition:clip-path .7s cubic-bezier(.77,0,.18,1),visibility 0s .7s!important}
.menu-ov.open{clip-path:inset(0 0 0 0);transition:clip-path .7s cubic-bezier(.77,0,.18,1),visibility 0s!important}
.menu-ov .mo-links>li,.menu-ov .mo-foot>*,.menu-ov .mo-bar>*{opacity:0;transform:translateY(16px);transition:opacity .25s ease,transform .25s ease}
.menu-ov.open .mo-links>li,.menu-ov.open .mo-foot>*,.menu-ov.open .mo-bar>*{opacity:1;transform:none;transition:opacity .7s ease var(--md,.3s),transform .8s cubic-bezier(.2,.8,.2,1) var(--md,.3s)}
.menu-ov .mo-bar>*{--md:.25s}
.menu-ov .mo-links>li:nth-child(1){--md:.34s}.menu-ov .mo-links>li:nth-child(2){--md:.40s}.menu-ov .mo-links>li:nth-child(3){--md:.46s}
.menu-ov .mo-links>li:nth-child(4){--md:.52s}.menu-ov .mo-links>li:nth-child(5){--md:.58s}.menu-ov .mo-links>li:nth-child(6){--md:.64s}
.menu-ov .mo-links>li:nth-child(7){--md:.70s}.menu-ov .mo-links>li:nth-child(8){--md:.76s}
.menu-ov .mo-foot>*{--md:.78s}
.menu-ov.open .mo-close{animation:moXin .8s cubic-bezier(.2,.8,.2,1) .3s both}
@keyframes moXin{from{opacity:0;transform:rotate(-90deg) scale(.6)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.menu-ov,.menu-ov.open{clip-path:none;transition:none!important}.menu-ov .mo-links>li,.menu-ov .mo-foot>*,.menu-ov .mo-bar>*{opacity:1;transform:none;transition:none}.menu-ov:not(.open){visibility:hidden}}

/* ===== Inicio · sectores: botones uniformes en móvil ===== */
@media (max-width:899px){
  #sectores .if-col ul{display:grid!important;grid-template-columns:1fr 1fr;gap:10px;margin:0;padding:0;list-style:none}
  #sectores .if-col li{margin:0}
  #sectores .if-col li:last-child:nth-child(odd){grid-column:1/-1}
  #sectores .if-col li a{display:flex!important;align-items:center;justify-content:space-between;gap:10px;min-height:58px;height:100%;padding:12px 14px!important;border:1px solid rgba(190,215,255,.3)!important;border-radius:0!important;background:rgba(255,255,255,.04)!important;font-size:.9rem}
  #sectores .if-col li a b{font-weight:600;line-height:1.25;text-align:left}
  #sectores .if-col li a svg{display:block!important;flex:none;width:16px;height:16px;color:var(--y)}
}

/* ===== Menú móvil · versión final: más aire, sin cortinas ni barridos (estable en iOS) ===== */
@media (max-width:960px){
  /* apertura: simple fundido de la capa; sin clip-path ni rotaciones que dejan trazos a medias en Safari */
  .menu-ov{clip-path:none!important;opacity:0!important;transition:opacity .45s ease,visibility 0s .45s!important}
  .menu-ov.open{opacity:1!important;transition:opacity .45s ease,visibility 0s!important}
  .mo-bg::after{display:none!important}
  .mo-cube{animation:none!important;opacity:.08;transform:rotate(-8deg)}

  /* barra superior: marca y cruz con holgura, sin transformaciones sobre cajas con borde */
  .menu-ov .mo-bar{padding:calc(env(safe-area-inset-top,0px) + 18px) 24px 14px!important;min-height:84px}
  .menu-ov .mo-bar>*{transform:none!important;transition:opacity .6s ease .15s!important}
  .menu-ov:not(.open) .mo-bar>*{opacity:0}
  .menu-ov.open .mo-bar>*{opacity:1}
  .menu-ov.open .mo-close{animation:none!important}
  .menu-ov .mo-close{box-sizing:border-box;width:52px;height:52px;border:1px solid rgba(255,255,255,.34);border-radius:0;background:transparent;color:#fff;-webkit-tap-highlight-color:transparent}
  .menu-ov .mo-close:hover,.menu-ov .mo-close:active{background:transparent;color:#fff;border-color:rgba(255,255,255,.34)}
  .menu-ov .mo-close span{left:15px;right:15px;height:2px;margin-top:-1px;background:#fff}
  .menu-ov .mo-close span:nth-child(1){transform:rotate(45deg) scaleX(0)}
  .menu-ov .mo-close span:nth-child(2){transform:rotate(-45deg) scaleX(0)}
  .menu-ov.open .mo-close span:nth-child(1){transform:rotate(45deg) scaleX(1);transition:transform .5s cubic-bezier(.2,.8,.2,1) .35s}
  .menu-ov.open .mo-close span:nth-child(2){transform:rotate(-45deg) scaleX(1);transition:transform .5s cubic-bezier(.2,.8,.2,1) .5s}
  .menu-ov:not(.open) .mo-close span{transition:transform .2s ease}

  /* lista: una sola línea fina entre enlaces, filas altas y respiradero */
  .menu-ov .mo-main{padding:6px 24px 18px;justify-content:flex-start}
  .menu-ov .mo-links>li{border:0!important}
  .menu-ov .mo-links>li+li{border-top:1px solid rgba(255,255,255,.1)!important}
  .menu-ov .mo-links>li>.mo-a{min-height:clamp(58px,8.6vh,72px);padding:0 4px!important}
  .menu-ov .mo-a b{font:600 1.4rem/1.2 var(--f-d)!important;letter-spacing:0}
  .menu-ov .mo-a::after{margin-right:4px;width:10px;height:10px}
  .menu-ov .mo-links>li{transform:translateY(10px);transition:opacity .25s ease,transform .25s ease}
  .menu-ov.open .mo-links>li{transform:none;transition:opacity .8s ease var(--md,.3s),transform .9s cubic-bezier(.2,.8,.2,1) var(--md,.3s)}

  /* pie: contacto en dos cajas separadas, luego tema + idioma + cotizar */
  .menu-ov .mo-foot{grid-template-columns:54px 54px minmax(0,1fr)!important;gap:12px!important;padding:22px 24px calc(env(safe-area-inset-bottom,0px) + 26px)!important;border-top:1px solid rgba(255,255,255,.1);background:linear-gradient(0deg,rgba(6,11,29,.92),rgba(6,11,29,.4))}
  .menu-ov .mo-foot>*{transform:none!important}
  .menu-ov .mo-foot .mo-ph,.menu-ov .mo-foot .mo-ml{padding:16px 22px!important;border:1px solid rgba(255,255,255,.2);font-size:.92rem;min-height:54px;box-sizing:border-box}
  .menu-ov .mo-foot .theme-btn,.menu-ov .mo-foot .lang{width:54px;height:54px;box-sizing:border-box;border:1px solid rgba(255,255,255,.24)}
  .menu-ov .mo-foot .btn{height:54px;font-size:.98rem}
}
@media (max-width:960px){
  .menu-ov .mo-close:focus:not(:focus-visible){outline:none}
  .menu-ov .mo-close:focus-visible{outline:2px solid var(--y);outline-offset:3px}
}
@media (max-width:960px){
  .menu-ov .mo-main{flex:none!important;min-height:auto}
  .menu-ov .mo-links>li>.mo-a{min-height:clamp(54px,7.2vh,66px)}
  .menu-ov .mo-foot{margin-top:auto;flex:none;padding-top:18px!important}
  .menu-ov .mo-bar{min-height:78px}
}
@media (max-width:960px){.menu-ov .mo-foot{background:none!important}}

/* Menú móvil: cabe en la pantalla visible de Safari (barra flotante inferior) sin recortar los botones */
@media (max-width:960px){
  .menu-ov .mo-bar{min-height:70px;padding:calc(env(safe-area-inset-top,0px) + 12px) 24px 10px!important}
  .menu-ov .mo-close{width:48px;height:48px}
  .menu-ov .mo-main{padding:2px 24px 10px}
  .menu-ov .mo-links>li>.mo-a{min-height:clamp(52px,6.6vh,64px);min-height:clamp(52px,6.6dvh,64px)}
  .menu-ov .mo-foot{padding:14px 24px calc(env(safe-area-inset-bottom,0px) + 16px)!important;gap:10px!important}
  .menu-ov .mo-foot .mo-ph,.menu-ov .mo-foot .mo-ml{padding:12px 20px!important;min-height:48px}
  .menu-ov .mo-foot .theme-btn,.menu-ov .mo-foot .lang{width:50px;height:50px}
  .menu-ov .mo-foot{grid-template-columns:50px 50px minmax(0,1fr)!important}
  .menu-ov .mo-foot .btn{height:50px}
}
/* Menú móvil sin desplazamiento: las filas se reparten el alto disponible */
@media (max-width:960px){
  .menu-ov{overflow:hidden!important}
  .menu-ov .mo-main{flex:1 1 auto!important;min-height:0!important;display:flex;flex-direction:column;padding:2px 24px 8px}
  .menu-ov .mo-links{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0}
  .menu-ov .mo-links>li{flex:1 1 0;min-height:0;max-height:66px;display:flex!important;align-items:stretch}
  .menu-ov .mo-links>li>.mo-a{flex:1;min-height:0!important;height:auto}
  .menu-ov .mo-foot{margin-top:0}
}

/* Móvil: el recorrido en capítulos es estático; no debe solaparse con la franja de marcas ni con el bloque siguiente */
.film.mstatic{margin-bottom:0!important}
.film.mstatic+*{position:relative;z-index:1}

/* Móvil: el recorrido en capítulos no se muestra (solo vive en escritorio con la escena animada) */
@media (max-width:899px){.film{display:none!important}}

/* ===== Móvil: aparición suave y elegante (fundido lento con un leve ascenso; sin cortes) ===== */
@media (max-width:899px){
  .fx:not(.rm) .rv2{opacity:0;transform:translate3d(0,18px,0);will-change:opacity,transform}
  .fx:not(.rm) .rv2.rvs{opacity:1;transform:none;transition:opacity 1.3s cubic-bezier(.25,.6,.3,1) var(--rd,0s),transform 1.5s cubic-bezier(.22,.61,.36,1) var(--rd,0s)}
  .fx:not(.rm) .rv{opacity:0;transform:translate3d(0,14px,0)!important;transition:opacity 1.3s cubic-bezier(.25,.6,.3,1),transform 1.4s cubic-bezier(.22,.61,.36,1)!important}
  .fx:not(.rm) .rv.in{opacity:1;transform:none!important}
  /* pie: sus elementos entran en cascada suave en lugar de aparecer de golpe */
  .fx:not(.rm) .ft-rv{opacity:0!important;transform:translate3d(0,16px,0)!important;filter:none!important;transition:opacity 1.1s ease var(--fd,0s),transform 1.3s cubic-bezier(.22,.61,.36,1) var(--fd,0s)!important}
  .fx:not(.rm) .ft-in .ft-rv{opacity:1!important;transform:none!important}
}

/* ===== DÍA y NOCHE bien distintos =====
   DÍA: base casi blanca y bloques en azul de marca (vivo, claro). NOCHE: base y bloques en azul casi negro. */
html[data-theme=light]{--paper:#f3f8ff;--white:#ffffff;--card:#ffffff;--card-2:#eef4ff;--line:#cfdcf2}
html[data-theme=light] body{background:#f3f8ff}
html[data-theme=light] .sec.alt{background:#e6eefc!important}
html[data-theme=light] .ct-form{background:#ffffff!important}
html[data-theme=light] .site-header{background:rgba(255,255,255,.94)!important}
html[data-theme=light] .hero{background:linear-gradient(160deg,#2c5fdc 0%,#1e47b4 55%,#173a9a 100%)!important}
html[data-theme=light] .hero-bg{background:radial-gradient(60% 70% at 78% 45%,rgba(170,205,255,.5),transparent 70%),radial-gradient(45% 55% at 12% 90%,rgba(255,255,255,.14),transparent 70%)!important}
html[data-theme=light] .page-head{background:linear-gradient(160deg,#2a5bd7,#1b43ab)!important}
html[data-theme=light] .brand-wall,html[data-theme=light] .vmosaic{background:#1c46b2!important}
html[data-theme=light] .sec.dark{background:linear-gradient(160deg,#2552cc,#1a3f9f)!important}
html[data-theme=light] .svc-stage,html[data-theme=light] .zl{background:#17399b!important}
html[data-theme=light] .zl-stage{background:radial-gradient(60% 80% at 80% 10%,rgba(150,195,255,.5),transparent 70%),linear-gradient(160deg,#2a58cf,#173a9a)!important}
html[data-theme=light] .step-body,html[data-theme=light] .proj-dia{background-color:#17399b!important}
html[data-theme=light] .sec-ind{background:linear-gradient(135deg,#2552cc,#173a9a)!important}
html[data-theme=light] .zt-lead,html[data-theme=light] .svc-art{background-image:radial-gradient(70% 90% at 70% 20%,rgba(150,195,255,.5),transparent 70%),linear-gradient(160deg,#2a58cf,#173a9a)!important}
html[data-theme=light] .site-footer.foot-v2{background:#e2ecfc!important}

html[data-theme=dark]{--paper:#040916;--white:#09112b;--card:#0a1332;--card-2:#0d1840;--line:rgba(170,200,255,.14);--hair:rgba(170,200,255,.14)}
html[data-theme=dark] body{background:#040916}
html[data-theme=dark] .sec.alt{background:#070e26!important}
html[data-theme=dark] .site-header{background:rgba(4,9,22,.94)!important}
html[data-theme=dark] .hero{background:linear-gradient(180deg,#050b1f,#081237)!important}
html[data-theme=dark] .hero-bg{background:radial-gradient(60% 70% at 78% 45%,rgba(70,110,230,.3),transparent 70%),radial-gradient(45% 55% at 12% 90%,rgba(110,150,255,.1),transparent 70%)!important}
html[data-theme=dark] .page-head{background:#060d28!important}
html[data-theme=dark] .brand-wall,html[data-theme=dark] .vmosaic{background:#050b22!important}
html[data-theme=dark] .sec.dark{background:#060d28!important}
html[data-theme=dark] .svc-stage,html[data-theme=dark] .zl{background:#050c26!important}
html[data-theme=dark] .zl-stage{background:radial-gradient(60% 80% at 80% 10%,rgba(80,120,240,.32),transparent 70%),linear-gradient(160deg,#0b1a4d,#050c26)!important}
html[data-theme=dark] .step-body,html[data-theme=dark] .proj-dia{background-color:#050c26!important}
html[data-theme=dark] .sec-ind{background:linear-gradient(135deg,#060d28,#0a1a52)!important}
html[data-theme=dark] .zt-lead,html[data-theme=dark] .svc-art{background-image:radial-gradient(70% 90% at 70% 20%,rgba(80,120,240,.32),transparent 70%),linear-gradient(160deg,#0b1a4d,#050c26)!important}
html[data-theme=dark] .site-footer.foot-v2{background:#050b1f!important}

/* Marcas · subtítulos de cada categoría: letras en amarillo Codetec (sin recuadro) */
.grid-groups .box>h3.h4{color:var(--y)!important;font-weight:700;letter-spacing:.005em;background:none!important;padding:0!important;margin-bottom:1.1rem;text-shadow:0 0 22px rgba(255,211,77,.18)}
html[data-theme=light] .grid-groups .box>h3.h4{color:#c98700!important;text-shadow:none}
