/* Shared UX/UI layer. Page palettes and photography stay in their own stylesheets. */
:root{--ux-blue:#315095;--ux-sky:#0073ba;--ux-text:#263548;--ux-header-height:116px;--ux-ease:cubic-bezier(.22,1,.36,1)}
html{scroll-padding-top:calc(var(--ux-measured-header-height,var(--ux-header-height)) + 18px)}
body{overflow-x:clip}
a{color:inherit;text-decoration:none}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #0073ba;outline-offset:4px}
.hero a:focus-visible,.site-footer a:focus-visible,footer a:focus-visible{outline-color:#a2d9ff}
.ux-skip{position:fixed;top:10px;left:16px;z-index:1000;padding:12px 18px;background:#fff;color:#163f83;font-weight:700;transform:translateY(-180%)}
.ux-skip:focus{transform:none}
.proposal-return,.return{position:relative;display:block;top:auto;left:auto;padding:9px max(5vw,20px);min-height:40px;background:#edf2f8;color:#315095;font-size:14px;line-height:1.5;font-weight:700;z-index:1}
body>header{position:sticky;top:0;z-index:50;margin:0;height:var(--ux-header-height);min-height:var(--ux-header-height);background:#fff;border-bottom:1px solid #dce4ed;box-shadow:0 4px 20px #193b6806}
body>header.nav,body[data-design="serena"]>header{padding-inline:max(5vw,24px)}
.site-header .nav-wrap{width:min(1280px,calc(100% - 96px))}
body[data-design]>header>a:first-child,body[data-design] .site-header .brand{display:flex;align-items:center;justify-content:flex-start;flex:0 0 auto;width:270px;height:100%;padding:14px 10px;margin:0}
body[data-design]>header>a:first-child img,body[data-design] .site-header .brand-logo{display:block;width:250px;height:86px;max-width:100%;object-fit:contain;object-position:left center}
body>header nav{display:flex;align-items:center;gap:clamp(18px,2.4vw,34px);font-size:16px}
body>header nav>a{display:inline-flex;align-items:center;min-height:46px;font-size:16px;font-weight:700;transition:color .2s,background-color .2s}
body>header nav>a:not(.button):not(.nav-cta):hover{color:#0073ba}
body>header nav>.nav-cta{padding:12px 20px;background:#315095;color:#fff;border-radius:4px}
body>header nav>a[aria-current="location"]:not(.button):not(.nav-cta){color:#0073ba;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:8px}
body>header .header-link{font-size:16px;min-height:46px;display:flex;align-items:center}
.ux-menu-toggle{display:none;align-items:center;justify-content:center;gap:9px;padding:10px 13px;min-height:46px;border:1px solid #cbd8e6;background:#fff;color:#315095;font-family:inherit;font-size:15px;font-weight:700;cursor:pointer}
.ux-menu-toggle svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round}
.ux-menu-toggle[aria-expanded="true"]{background:#edf3fa;border-color:#315095}
.hero{position:relative}
/* Root scroll padding already supplies the measured header offset. */
.hero .quote-app,.hero [id="cotizador"]{scroll-margin-top:0}
.hero .hero-grid{width:min(1280px,calc(100% - 96px));padding-top:32px;padding-bottom:38px;gap:40px}
body[data-design="activa"] .hero{padding:32px max(5vw,24px) 56px;gap:40px;min-height:0}
body[data-design="serena"] .hero{padding:0 max(5vw,24px)}
body[data-design="serena"] .hero-main{padding:32px 0 40px;gap:40px}
.hero .hero-quick-quote,.hero .quick-box{border-radius:8px;overflow:hidden;border:1px solid #dce5ef;box-shadow:0 20px 55px #051b3b24;margin:0}
.hero .hero-copy{width:100%;max-width:none;padding:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);column-gap:clamp(30px,6vw,92px);align-items:center}
.hero .hero-copy .eyebrow{grid-column:1/-1;margin:0 0 16px;font-size:14px;line-height:1.6;letter-spacing:.1em}
.hero .hero-copy h1{grid-column:1;grid-row:2/4;margin:0;font-size:clamp(44px,5.2vw,72px);line-height:1.08;letter-spacing:-.055em;max-width:100%;text-wrap:balance}
.hero .hero-copy>p:not(.eyebrow){grid-column:2;grid-row:2;max-width:540px;margin:0;font-size:18px;line-height:1.75;letter-spacing:0}
.hero .hero-copy .hero-actions,.hero .hero-copy .hero-proof{grid-column:2;grid-row:3;margin:18px 0 0;gap:16px;flex-wrap:wrap}
.hero .hero-copy .hero-proof strong{display:none}
.hero .hero-copy .hero-proof span{font-size:15px}
body[data-design="activa"] .hero-copy h1{font-size:clamp(46px,5.5vw,78px);max-width:700px}
body[data-design="activa"] .hero-copy h1 em{font-weight:500}
body[data-design="serena"] .hero-copy{padding:10px 0 8px;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
body[data-design="serena"] .hero-copy h1{font-size:clamp(43px,5vw,68px)}
.hero-bottom,.hero-topline{font-size:13px;letter-spacing:.1em;min-height:54px;height:auto;padding-top:15px;padding-bottom:15px}
.hero .hero-topline{display:none}
.scroll-line{display:none}
.hero:before{animation:none!important}
.ticker{font-size:15px;padding:17px 24px;line-height:1.65;letter-spacing:.05em}
.section-heading h2,.intro h2,.products h2,.solutions h2,.about-copy h2{text-wrap:balance;letter-spacing:-.045em;line-height:1.12}
.service-card,.solution-grid a,.product-list a{transition:transform .25s var(--ux-ease),box-shadow .25s,background-color .25s,color .25s;animation:none;border-radius:4px}
.service-card:hover,.solution-grid a:hover{transform:translateY(-5px);box-shadow:0 14px 24px #163f831a}
.service-card p{font-size:16px;line-height:1.65}
.service-card h3{font-size:22px;line-height:1.25}
.service-number,.solution-grid span{font-size:13px;letter-spacing:.06em;line-height:1.6}
.service-grid{gap:16px}
.solution-grid{gap:14px;background:transparent;border:0}
.solution-grid a{min-height:185px;padding:26px}
.solution-grid b{font-size:23px;line-height:1.3}
.product-list a{min-height:108px;gap:15px}
.product-list b{font-size:20px;line-height:1.4}
.product-list small{font-size:15px;line-height:1.6;color:#52637a}
.product-list span{font-size:14px;color:#52637a}
.section-intro,.about-copy>p:not(.eyebrow),.products-head>p:last-child{font-size:18px;line-height:1.8;color:#526176}
.company-list div{font-size:14px;line-height:2}
.company-list>span{font-size:13px;line-height:1.6;color:#526176}
.trust-grid strong{font-size:17px;line-height:1.5}.trust-grid span{font-size:15px;line-height:1.6}
.story-card,.photo-story-content,.calm-story-copy{border-radius:6px}
.story-card>p:not(.story-kicker),.photo-story-content>p:not(.eyebrow),.calm-story-copy p{font-size:18px;line-height:1.75}
.story-steps li b{font-size:16px;line-height:1.5}
.story-link,.photo-story-content .cta,.calm-story-copy>a{min-height:48px;align-items:center}
.story-photo img,.photo-story>img,.calm-story>img{will-change:auto}
.lead-copy h2{letter-spacing:-.04em;text-wrap:balance}
footer,.footer-bottom{font-size:14px;line-height:1.7}
/* The page stays readable before JS. Only observed, nearby elements may animate. */
html.reveal-enabled [data-reveal],html.reveal-enabled .section,html.reveal-enabled .trust-strip,html.reveal-enabled .contact-section,html.reveal-enabled .story-card,html.reveal-enabled .service-card,html.reveal-enabled .solution-grid a,html.reveal-enabled .product-list a{opacity:1;transform:none;animation:none}

@media(min-width:961px){body[data-design="serena"] .products{grid-template-columns:.8fr 1.2fr;gap:6%}.hero .hero-actions .text-link{font-size:15px}}
@media(max-width:960px){
 :root{--ux-header-height:100px}
 body>header.nav,body[data-design="serena"]>header{padding-inline:24px}
 .site-header .nav-wrap{width:calc(100% - 48px)}
 body[data-design]>header>a:first-child,body[data-design] .site-header .brand{width:234px;padding:12px 0}
 body[data-design]>header>a:first-child img,body[data-design] .site-header .brand-logo{width:230px;height:76px}
 body>header .header-link{display:none}
 .ux-menu-toggle{display:inline-flex}
 body>header .menu-toggle:not(.ux-menu-toggle){display:none}
 body>header nav,.site-header .main-nav,.js-enabled .main-nav{display:flex;position:static;flex-wrap:wrap;gap:12px;font-size:15px}
 html.ux-ready body>header nav,html.ux-ready .site-header .main-nav{display:none;position:absolute;top:100%;left:0;right:0;max-height:calc(100dvh - var(--ux-header-height));overflow-y:auto;align-items:stretch;flex-direction:column;gap:0;padding:14px 24px 22px;background:#fff;border-bottom:1px solid #dce4ed;box-shadow:0 16px 22px #1a35551c}
 html.ux-ready body>header nav.is-open,html.ux-ready .site-header .main-nav.is-open{display:flex}
 body>header nav>a,body>header.nav nav>a:not(.nav-cta){display:flex;min-height:50px;padding:12px 10px;border-bottom:1px solid #e6edf4;font-size:16px}
 body>header nav>.button,body>header nav>.nav-cta{margin-top:10px;justify-content:center;background:#315095;color:#fff;border-radius:4px}
 .hero .hero-grid{width:calc(100% - 48px)}
 .hero .hero-copy,.hero .hero-main .hero-copy{column-gap:32px}
 .hero .hero-copy h1{font-size:clamp(40px,5.6vw,58px)}
 .hero .hero-copy>p:not(.eyebrow){font-size:17px}
 .service-card h3{font-size:20px}
 .hero .hero-copy .hero-actions{flex-direction:column;align-items:flex-start}
}
@media(max-width:640px){
 :root{--ux-header-height:94px}
 .proposal-return,.return{font-size:13px;padding-inline:20px;min-height:38px}
 body>header.nav,body[data-design="serena"]>header{padding-inline:20px}
 .site-header .nav-wrap{width:calc(100% - 40px)}
 body[data-design]>header>a:first-child,body[data-design] .site-header .brand{width:min(205px,59vw);padding:12px 0}
 body[data-design]>header>a:first-child img,body[data-design] .site-header .brand-logo{width:205px;height:70px}
 .ux-menu-toggle{padding:10px;gap:7px;font-size:14px}
 .hero .hero-grid{width:calc(100% - 32px);padding:22px 0 30px;gap:30px}
 body[data-design="activa"] .hero{padding:22px 16px 34px;gap:30px}
 body[data-design="serena"] .hero{padding:0 16px}
 body[data-design="serena"] .hero-main{padding:22px 0 30px;gap:30px}
 .hero .hero-copy,.hero .hero-main .hero-copy{display:block;padding:0 4px}
 .hero .hero-copy .eyebrow{font-size:12px;letter-spacing:.07em;margin-bottom:14px}
 .hero .hero-copy h1,body[data-design="activa"] .hero-copy h1,body[data-design="serena"] .hero-copy h1{font-size:clamp(38px,10vw,54px);line-height:1.12;margin-bottom:18px;letter-spacing:-.045em}
 .hero .hero-copy>p:not(.eyebrow){font-size:17px;line-height:1.75}
 .hero .hero-copy .hero-actions{gap:17px}
 .hero-bottom{font-size:11px;letter-spacing:.06em;gap:9px;flex-wrap:wrap}
 .hero-bottom .since{display:none}
 .service-grid,.solution-grid{grid-template-columns:1fr;gap:13px}
 .service-card{min-height:220px;padding:25px}
 .service-card h3{font-size:24px;margin-top:48px}
 .service-card p{font-size:17px;max-width:85%}
 .service-icon{width:44px;height:44px;top:22px;right:22px}.service-icon svg{width:30px;height:30px}
 .service-number,.solution-grid span{font-size:13px}
 .solution-grid a{min-height:160px;padding:24px}
 .solution-grid b{font-size:24px}
 .product-list a{grid-template-columns:28px minmax(0,1fr) 22px;gap:8px;padding:20px 0;min-height:112px}
 .product-list a b{font-size:20px;grid-column:2}.product-list a small{grid-column:2;grid-row:2;font-size:15px}
 .product-list a i{grid-column:3;grid-row:1/3}.product-list a span{grid-row:1/3}
 .photo-story,.calm-story,.scroll-story{min-height:600px}
 .photo-story-content,.calm-story-copy,.story-card{padding:28px 23px}
 .story-card>p:not(.story-kicker),.photo-story-content>p:not(.eyebrow),.calm-story-copy p{font-size:17px}
 .story-kicker,.photo-story-content .eyebrow,.calm-story-copy>span{font-size:12px;letter-spacing:.07em;line-height:1.7}
 .photo-story-content h2,.calm-story-copy h2,.story-card h2{font-size:38px;line-height:1.12}
 .trust-grid{column-gap:10px}.trust-grid strong{font-size:16px}.trust-grid span{font-size:14px}
 .company-list div{font-size:14px}.about-copy>p:not(.eyebrow){font-size:17px}
 footer{gap:18px}.footer-top>p{font-size:14px}.footer-bottom{flex-direction:column;gap:8px;font-size:13px}.footer-bottom span:last-child{text-align:left}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation:none!important;transition:none!important}.ux-reveal.ux-pending{opacity:1!important;transform:none!important}.story-photo img,.photo-story>img,.calm-story>img{transform:none!important}}

/* El enlace de vuelta ya aporta su propia franja: no duplicar el margen legacy. */
body[data-design]>header{margin-top:0;margin-bottom:0}

body[data-design='activa'] .hero-copy h1 em{color:#b8e0fa}

/* Movimiento de lectura: entradas escalonadas, capas fotográficas y zoom ambiental. */
.ux-reveal{--ux-enter-x:0px;--ux-enter-y:32px;--ux-enter-scale:1;transition:opacity .78s var(--ux-ease),transform .9s var(--ux-ease);transition-delay:calc(var(--ux-order,0)*95ms)}
.ux-enter-card{--ux-enter-y:40px;--ux-enter-scale:.975}
.ux-enter-row{--ux-enter-x:30px;--ux-enter-y:8px}
.ux-enter-story{--ux-enter-x:-35px;--ux-enter-y:28px;--ux-enter-scale:.985}
body[data-design='activa'] .ux-enter-story{--ux-enter-x:40px}
body[data-design='serena'] .ux-enter-story{--ux-enter-x:0px;--ux-enter-y:42px}
.ux-reveal.ux-pending{opacity:0!important;transform:translate3d(var(--ux-enter-x),var(--ux-enter-y),0) scale(var(--ux-enter-scale))!important}
.ux-reveal.ux-visible{opacity:1;transform:none}
.ux-reveal:focus-within{opacity:1!important;transform:none!important;transition-delay:0s}
body[data-design]>header::after{content:'';position:absolute;bottom:-1px;left:0;width:100%;height:3px;background:linear-gradient(90deg,#315095,#00a0d2);transform:scaleX(var(--ux-reading-progress,0));transform-origin:left;pointer-events:none}
.scroll-story .story-photo img,.photo-story>img[data-parallax],.calm-story>img[data-parallax]{position:absolute;left:0;top:-112px;bottom:auto;width:100%;height:calc(100% + 224px);max-height:none;object-fit:cover;transform:translate3d(0,var(--ux-photo-y,0px),0) scale(1.025);transition:none;will-change:auto}
.ux-scene-visible .story-photo img,.ux-scene-visible>img[data-parallax]{will-change:transform}
body[data-design='cercana'] .hero-slide.is-active{top:-100px;left:0;width:100%;height:calc(100% + 200px);animation:ux-ambient-image 22s ease-in-out infinite alternate;animation-play-state:paused;transition:opacity 1s}
body[data-design='activa'] .hero::before{inset:-100px 0;animation:ux-ambient-image 24s ease-in-out infinite alternate!important;animation-play-state:paused!important;will-change:auto}
body[data-design='cercana'] .hero.ux-scene-visible .hero-slide.is-active,body[data-design='activa'] .hero.ux-scene-visible::before{animation-play-state:running!important}
html.ux-page-hidden body[data-design] .hero .hero-slide.is-active,html.ux-page-hidden body[data-design] .hero::before{animation-play-state:paused!important}
@keyframes ux-ambient-image{from{transform:translate3d(0,var(--ux-hero-y,0px),0) scale(1.015)}to{transform:translate3d(0,var(--ux-hero-y,0px),0) scale(1.065)}}
@media(max-width:760px){.ux-reveal{--ux-enter-y:25px;transition-duration:.65s,.75s;transition-delay:calc(var(--ux-order,0)*55ms)}.ux-enter-row{--ux-enter-x:18px}.ux-enter-story{--ux-enter-x:0px;--ux-enter-y:30px}.scroll-story .story-photo img,.photo-story>img[data-parallax],.calm-story>img[data-parallax]{top:-55px;height:calc(100% + 110px)}body[data-design='activa'] .hero::before{animation-duration:30s!important}}
@media(prefers-reduced-motion:reduce){.ux-reveal,.ux-reveal.ux-pending{opacity:1!important;transform:none!important;transition:none!important}body[data-design]>header::after{display:none}.scroll-story .story-photo img,.photo-story>img[data-parallax],.calm-story>img[data-parallax],body[data-design='cercana'] .hero-slide.is-active,body[data-design='activa'] .hero::before{animation:none!important;transform:none!important;will-change:auto}}

.ux-reveal.ux-settled{transition-delay:0ms}
.ux-reveal.ux-visible:is(.service-card,.solution-grid a):hover{transform:translateY(-5px);transition-delay:0ms;transition-duration:.25s}

