/* Inserma 0.3 — industrial editorial. Original brand, progressive motion. */
:root{--ink:#111316;--paper:#f4f3ef;--red:#d70019;--line:#d6d6d2;--ease:cubic-bezier(.2,.75,.25,1)}
body{font-size:16px;background:var(--paper);color:var(--ink)}
::selection{background:var(--red);color:#fff}
.wrap,.nav-wrap{max-width:1580px;padding-left:64px;padding-right:64px}
.topline{background:#101215;color:#a4a7ae;border-bottom:1px solid #303236}
.topline .wrap{height:31px;font-size:9px;letter-spacing:.08em}.topline a{color:#d5d6da}
.header{background:#fffffff5;backdrop-filter:blur(16px);border-bottom:1px solid #d5d5d5;transition:box-shadow .3s}
.header.is-scrolled{box-shadow:0 8px 35px #0000000d}.nav-wrap{padding-top:17px;padding-bottom:17px}.brand,.brand img{width:181px;flex-basis:181px}
.header nav,.header nav ul{gap:27px;font-size:12px}.header nav a{position:relative}.header nav a:not(.nav-cta):not(li:last-child a):after{content:'';position:absolute;left:0;right:0;bottom:-7px;height:2px;background:var(--red);transform:scaleX(0);transform-origin:left;transition:transform .3s var(--ease)}
.header nav a:hover:after,.header nav .current-menu-item a:after{transform:scaleX(1)}
.header nav li:last-child a,.header .nav-cta{padding:16px 24px;font-size:12px}
.hero{position:relative;isolation:isolate;overflow:hidden;background:#111316;color:#fff;padding-top:0}
.hero:before{content:'';position:absolute;inset:0;z-index:-2;background:#15181c url('assets/industrial-hero.webp') center right/cover no-repeat;transform:scale(1.025);animation:hero-settle 2.6s var(--ease) both}
.hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#101215 0%,#101215f2 22%,#101215b5 46%,#10121512 75%),linear-gradient(0deg,#101215 0%,transparent 25%)}
.hero-grid{grid-template-columns:1.07fr 1fr;gap:35px;min-height:650px;padding-top:88px;padding-bottom:62px;align-items:center}
.hero-copy{position:relative;z-index:2;padding-bottom:0}.hero-copy h1{font-size:clamp(64px,6.2vw,96px);font-weight:550;line-height:1.02;letter-spacing:-.065em;margin-bottom:29px;max-width:770px}
.hero-copy h1 em{color:#ff334b}.hero-copy .eyebrow{font-size:10px;letter-spacing:.15em;color:#ff697a;display:flex;align-items:center;gap:12px;margin-bottom:34px}
.hero-copy .eyebrow:before{content:'';width:7px;height:7px;flex-shrink:0;background:var(--red);box-shadow:0 0 18px #d7001980}
.hero-copy p{font-size:16px;line-height:1.85;color:#c8cbd0;max-width:455px}.hero-copy .actions{margin-top:35px;gap:24px}
.button{position:relative;overflow:hidden;padding:19px 25px;font-size:12px;gap:35px;min-height:56px;transition:background .25s,transform .35s var(--ease),box-shadow .3s}
.button:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,#fff2 50%,transparent 70%);transform:translateX(-120%);transition:transform .7s var(--ease);pointer-events:none}.button:hover:after{transform:translateX(120%)}
.button:hover{box-shadow:0 12px 32px #d7001926;transform:translateY(-3px)}.button:active{transform:translateY(0) scale(.975)}
.hero .plain-link{color:#e2e4e7;border-color:#ffffff55;font-size:11px}.hero .plain-link:hover{color:#fff;border-color:#fff}
.hero-visual{position:relative;background:none;box-shadow:none;aspect-ratio:1;overflow:visible;border:1px solid #ffffff28;align-self:center;max-height:455px;margin-left:10%;margin-top:35px;transform:translateY(var(--hero-drift,0px));transition:transform .12s linear}
.hero-visual:before,.hero-visual:after{content:'';position:absolute;width:25px;height:25px;border-color:#ff334b;border-style:solid;pointer-events:none}.hero-visual:before{left:-1px;top:-1px;border-width:2px 0 0 2px}.hero-visual:after{right:-1px;bottom:-1px;border-width:0 2px 2px 0}
.hero-visual .plant-diagram,.hero-visual>.wp-block-shortcode{display:none}.visual-top{top:-30px;left:0;right:0;font:9px/1.5 Comme,sans-serif;letter-spacing:.12em;color:#cdd0d5}.visual-bottom{left:18px;right:18px;bottom:18px;padding:13px 15px;background:#111316b0;backdrop-filter:blur(12px);border:1px solid #ffffff25;color:#d1d3d9;font-size:9px;gap:15px}.visual-bottom span:last-child{font-size:7px;color:#b8bdc4}
.hero-foot{position:relative;margin-top:0;max-width:1452px;padding:24px 0 25px;border-color:#ffffff28;color:#b3b7be;font-size:11px;align-items:center}.hero-foot a{color:#fff;padding-left:26px;border-left:1px solid #ffffff38}.hero-foot>span:first-child{color:#fff}
.hero-foot>span:first-child:before{content:'30+';font-size:31px;letter-spacing:-.06em;color:#ff334b;margin-right:18px;vertical-align:middle;font-weight:600}
.section{padding-top:116px;padding-bottom:116px}.eyebrow{font-size:10px;letter-spacing:.15em;font-family:Comme,Arial,sans-serif}.intro{gap:120px;align-items:center;position:relative}.intro h2{font-size:clamp(37px,3.8vw,57px);line-height:1.12;max-width:650px}.intro .lead{font-size:22px;color:#24262c}.intro>div:last-child{padding-left:35px;border-left:1px solid #ccc}.intro p{font-size:15px}
h2{font-size:clamp(35px,3.7vw,57px);font-weight:550;line-height:1.1}.section-heading{margin-bottom:55px}.section-heading>p{font-size:15px;max-width:335px}.light-bg{background:#eaeae5}.family-list{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#ccc;border:1px solid #ccc}
.family-row{position:relative;isolation:isolate;background:var(--paper);border:0!important;min-height:225px;padding:35px 35px 32px;display:flex;gap:25px;align-items:flex-start;transition:background .4s,color .4s,transform .4s var(--ease)}
.family-row .index{font-size:12px;color:#8a8c91;width:30px}.family-row h3,.family-row .wp-block-group h3{font-size:clamp(25px,2.4vw,35px);font-weight:500;max-width:380px;line-height:1.14;margin-bottom:16px}.family-row p{font-size:13px;max-width:330px}.family-row>.card-link{align-self:flex-end;position:absolute;right:30px;bottom:25px;font-size:10px;margin:0}
.family-row>.card-link a:after{content:'';position:absolute;inset:0;z-index:2}.family-row>.card-link{position:static;margin-left:auto;font-size:0;align-self:flex-end;flex-shrink:0}.family-row>.card-link a{font-size:0}.family-row>.card-link a:before{content:'↗';font-size:30px;line-height:1;transition:transform .3s var(--ease);display:block}.family-row .arrow{position:absolute;right:25px;bottom:25px}
.family-row:hover,.family-row:focus-within{background:var(--ink);color:#fff;padding-left:35px}.family-row:hover p,.family-row:focus-within p{color:#bfc3cb}.family-row:hover .index,.family-row:focus-within .index{color:#ff4257}.family-row:hover .card-link a,.family-row:focus-within a{color:#ff4257}.family-row:hover .card-link a:before{transform:translate(4px,-4px)}
.product-row{margin-top:20px;background:var(--red);color:#fff;min-height:145px;align-items:center}.product-row p,.product-row .index{color:#ffd4d9}.product-row h3{max-width:none}.product-row>.card-link{align-self:center}.product-row:hover,.product-row:focus-within{background:#ad0014}.product-row:hover p{color:#fff}
.needs-grid{gap:22px}.needs-grid>.need-card,.needs-grid>a{padding:35px;min-height:280px;background:#fff;border-color:#dbdbd7;box-shadow:0 4px 0 #11131604;transition:transform .4s var(--ease),border-color .4s,box-shadow .4s}.needs-grid>.need-card:hover,.needs-grid>a:hover{transform:translateY(-8px);border-color:#d70019;box-shadow:0 20px 40px #1113160c}.need-card h3{font-size:29px}.need-card>span{display:block;color:var(--red);font-size:11px;margin-bottom:45px}.need-card p{font-size:13px}.need-card>.card-link{margin-top:28px;font-size:11px}
.technology{position:relative;overflow:hidden;background:#101215}.technology:before{content:'';pointer-events:none;position:absolute;inset:0;background:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px);background-size:90px 90px;mask-image:linear-gradient(transparent,#000 45%,transparent)}.technology>.wrap{position:relative}.dark .eyebrow{color:#ff6778}.dark .product-card{background:linear-gradient(145deg,#24272d,#181a1f);border:1px solid #3d414b;min-height:450px;padding:34px;overflow:hidden;transition:transform .5s var(--ease),border-color .35s,box-shadow .35s}.dark .product-card:hover,.dark .product-card:focus-within{transform:translateY(-7px);border-color:#ff4159;box-shadow:0 20px 50px #0005}.product-card h3{font-size:clamp(32px,3.4vw,52px);font-weight:500;line-height:1.1}.product-card p{font-size:13px;line-height:1.85}.product-card .status{align-self:flex-start;font-size:8px;letter-spacing:.02em;margin-bottom:32px;border:1px solid #ffffff18;background:#131519;color:#cdd1d9;max-width:100%}.product-card .card-link{margin-top:auto;padding-top:15px}.dark .product-card .card-link a{color:#f0f0f4;font-size:11px;border-bottom:1px solid #555b66;padding-bottom:8px}.dark .product-card:first-child{background:linear-gradient(145deg,#392129,#1b1b22);border-top:2px solid #d70019}
.product-signal{position:relative;height:105px;margin:0 0 28px;display:flex;align-items:center;justify-content:center;gap:11px;border-top:1px solid #ffffff0d;border-bottom:1px solid #ffffff0d;overflow:hidden}.product-signal i{display:block;width:28px;height:28px;border:1px solid #7f8798;background:#20232b;transform:rotate(-30deg) skew(25deg);box-shadow:-5px 6px 0 #101215}.product-signal i:nth-child(2){width:48px;height:48px;border-color:#ff4058;background:#7a1528;box-shadow:-7px 9px 0 #35131c}.product-signal:before,.product-signal:after{content:'';width:38px;height:1px;background:#ff4058;box-shadow:0 0 12px #d7001960}.product-card:nth-child(2) .product-signal i{transform:none;width:8px;height:20px;background:#7c8290;border:0;box-shadow:none}.product-card:nth-child(2) .product-signal i:nth-child(2){height:56px;background:#d70019}.product-card:nth-child(2) .product-signal i:nth-child(3){height:37px}.product-card:nth-child(3) .product-signal i{border-radius:50%;transform:none;background:#d70019;box-shadow:0 0 0 9px #d7001915;width:13px;height:13px;border-color:#ff4960}.product-card:nth-child(3) .product-signal{gap:35px}
.ecosystem-note{margin-top:48px;padding-top:30px}.ecosystem-note p{font-size:14px}.process{gap:120px}.process h2{font-size:55px}.process-step{padding:29px 0;gap:32px;transition:padding .3s}.process-step>span{font-size:12px;color:var(--red);min-width:25px}.process-step h3{font-size:27px;font-weight:500}.process-step p{font-size:14px;max-width:none!important}.process-step:hover{padding-left:12px}.recycle-banner{background:#dedfd7;border-top:1px solid #caccc1;padding:65px 0}.recycle-banner h2{font-size:44px}.recycle-banner .eyebrow{color:#454b43}.recycle-banner p{font-size:14px}.outline{background:transparent}.outline:hover{background:var(--ink)}
.cta{background:#d70019;position:relative;isolation:isolate;overflow:hidden;padding:105px 0}.cta:before{content:'↗';position:absolute;font:500 520px/1 Comme,sans-serif;right:2%;top:-70px;color:#ffffff0b;z-index:-1}.cta h2{font-size:clamp(40px,4.3vw,64px);font-weight:500;max-width:900px}.cta p{font-size:15px}.cta .button{box-shadow:0 8px 30px #64000a30}
footer{padding-top:80px;background:#101215}.footer-top{gap:65px}.footer-top a,.footer-top p{font-size:12px}.footer-top h2{font-size:11px;letter-spacing:.06em}.footer-top>div:first-child p{font-size:23px}.footer-bottom{font-size:10px}
.page-head{position:relative;isolation:isolate;overflow:hidden;background:#14171c!important;color:#fff;padding:90px 0}.page-head:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#101215 10%,#101215df 60%,#10121580),url('assets/industrial-hero.webp') right center/cover;opacity:.8}.page-head:before{content:'';position:absolute;bottom:0;left:0;width:22%;height:4px;background:var(--red)}.page-head h1{font-size:clamp(48px,5.8vw,84px);font-weight:500;max-width:1050px}.page-head .eyebrow{color:#ff6d80}.page-head .lead{color:#bfc4cd;font-size:18px}.page-head .status{background:#45232c;color:#ffc6cf}
.detail-layout{gap:90px;grid-template-columns:230px 1fr}.detail-layout aside{position:sticky;top:125px;align-self:start}.detail-layout aside a{font-size:13px;padding:19px 0}.capabilities article{padding:32px 0}.capabilities article>span{color:var(--red)}.capabilities h3{font-size:28px;font-weight:500}.capabilities p{font-size:15px}.callout{background:#e9e9e3;padding:36px}.cap-grid article{padding:28px;background:#fff;border:1px solid #d7d7d3}.cap-grid h3{font-size:26px}.contact-card{background:#171a20;color:#fff;border-top:3px solid var(--red);padding:40px}.contact-card p{color:#bbc0ca}.contact-card a{font-size:17px}.contact-card hr{border-color:#454951}.contact-card .eyebrow{color:#ff6378}input,textarea,select{background:#fff;border-color:#cacbc8;padding:15px}label{font-size:12px}.project-art{position:relative;overflow:hidden;background:linear-gradient(120deg,#171a20,#252a35);border-bottom:3px solid var(--red);min-height:330px}.project-art.alternate{background:#dedfd7}.roadmap details{padding:26px 0}.roadmap summary{font-size:20px}.progress-line{position:fixed;left:0;top:0;height:3px;background:#d70019;z-index:100;transform-origin:left;transform:scaleX(0);width:100%;pointer-events:none}
.motion-in{animation:arrive .85s var(--ease) both;animation-delay:var(--arrival-delay,0ms)}.hero-copy>.eyebrow{animation-delay:80ms}.hero-copy>h1{animation-delay:160ms}.hero-copy>p{animation-delay:260ms}.hero-copy>.actions{animation-delay:340ms}
.reveal-ready{opacity:0;transform:translateY(25px);transition:opacity .75s var(--ease),transform .75s var(--ease);transition-delay:var(--reveal-delay,0ms)}.reveal-ready.is-visible{opacity:1;transform:translateY(0)}
@keyframes arrive{from{opacity:0;transform:translateY(23px)}to{opacity:1;transform:translateY(0)}}@keyframes hero-settle{from{transform:scale(1.09);opacity:.65}to{transform:scale(1.025);opacity:1}}
@media(min-width:1800px){.hero-grid{min-height:730px}.hero-copy h1{font-size:105px}.hero-visual{max-height:510px}.hero-foot{max-width:1452px}}
@media(max-width:1250px){.wrap,.nav-wrap{padding-left:38px;padding-right:38px}.header nav,.header nav ul{gap:17px;font-size:10px}.hero-grid{padding-top:68px;min-height:590px;gap:20px}.hero-copy h1{font-size:76px}.hero-visual{max-height:360px;margin-left:5%}.hero-foot{margin-left:38px;margin-right:38px;padding-left:0;padding-right:0}.intro,.process{gap:65px}.family-row{padding:30px 25px;gap:15px}.family-row h3{font-size:28px}.family-row:hover{padding-left:25px}.product-card{padding:26px!important}.product-card h3{font-size:37px}.product-card .status{font-size:7px}.footer-top{gap:35px}}
@media(max-width:950px){.hero-copy h1{font-size:64px}.hero-copy p{font-size:14px}.hero-grid{min-height:550px}.hero-visual{max-height:310px}.visual-bottom{display:block;font-size:8px}.visual-bottom span{display:block}.visual-bottom span:last-child{margin-top:5px}.intro,.process{gap:40px}.intro h2,.process h2{font-size:42px}.intro .lead{font-size:19px}.family-row{min-height:225px}.family-row h3{font-size:25px}.product-card h3{font-size:30px}.product-grid{gap:12px}.product-signal{gap:7px}.product-signal:before,.product-signal:after{width:16px}.dark .product-card{min-height:470px}.section-heading>p{font-size:13px;max-width:245px}.detail-layout{gap:50px;grid-template-columns:190px 1fr}}
@media(max-width:700px){.wrap,.nav-wrap{padding-left:23px;padding-right:23px}.nav-wrap{padding-top:13px;padding-bottom:13px}.brand,.brand img{width:155px;flex-basis:155px}.header nav{background:#fff;backdrop-filter:none}.header nav ul{gap:0}.header nav li:last-child a{margin-top:12px}.topline .wrap{font-size:7px;height:27px}.hero:before{background-position:65% center}.hero:after{background:linear-gradient(180deg,#101215ee 0%,#101215dc 45%,#10121515 78%,#101215 98%),linear-gradient(90deg,#101215a0,transparent)}.hero-grid{grid-template-columns:1fr;min-height:0;padding-top:49px;padding-bottom:30px;gap:24px}.hero-copy h1{font-size:clamp(50px,12vw,75px);line-height:1.04;margin-bottom:24px}.hero-copy .eyebrow{font-size:7px;letter-spacing:.08em;margin-bottom:26px;gap:9px}.hero-copy p{font-size:14px;max-width:370px}.hero-copy .actions{display:flex;gap:18px;margin-top:27px}.hero-copy .button{font-size:10px;padding:17px}.hero .plain-link{font-size:9px;max-width:145px}.hero-visual{min-height:205px;max-height:none;aspect-ratio:1.85;margin:20px 0 0 14%;width:86%;align-self:end}.visual-top{top:-23px;font-size:7px}.visual-bottom{bottom:12px;left:12px;right:12px;padding:10px 12px;display:flex;font-size:7px}.visual-bottom span:last-child{margin:0;font-size:6px}.hero-foot{margin:0 23px;padding:19px 0 22px;display:flex;font-size:8px;gap:20px;max-width:none}.hero-foot>span:first-child{max-width:210px;line-height:1.6}.hero-foot>span:first-child:before{font-size:25px;margin-right:9px}.hero-foot a{padding-left:15px;max-width:108px}.section{padding-top:72px;padding-bottom:72px}.intro{gap:20px}.intro h2{font-size:38px}.intro>div:last-child{padding:0;border:0}.intro .lead{font-size:20px}.intro p{font-size:14px}.section-heading{margin-bottom:35px}.section-heading h2{font-size:35px}.section-heading>p{font-size:14px;max-width:none}.family-list{grid-template-columns:1fr}.family-row{padding:27px 24px;min-height:180px;gap:18px}.family-row h3,.family-row .wp-block-group h3{font-size:27px;max-width:250px}.family-row p{font-size:12px;max-width:255px}.family-row .index{font-size:10px;width:18px}.family-row>.card-link{margin:0;position:absolute;right:23px;bottom:23px;font-size:0}.family-row .card-link a{font-size:0}.family-row>.wp-block-group{max-width:calc(100% - 50px)}.family-row:hover{padding-left:24px}.product-row{min-height:190px;margin-top:14px}.product-row h3{font-size:28px!important}.needs-grid>.need-card,.needs-grid>a{min-height:255px;padding:28px}.need-card h3{font-size:28px}.need-card>span{margin-bottom:30px}.product-grid{gap:20px}.dark .product-card{min-height:400px;padding:29px!important}.product-card h3{font-size:47px}.product-card .status{font-size:8px;margin-bottom:28px;max-width:100%}.product-card p{font-size:13px}.product-signal{height:95px;margin-bottom:28px}.product-signal:before,.product-signal:after{width:42px}.product-card>.card-link{position:static;font-size:11px;margin-top:auto}.ecosystem-note p{font-size:13px}.process{gap:25px}.process h2{font-size:39px}.process-step{padding:25px 0;gap:22px}.process-step h3{font-size:24px}.process-step p{font-size:13px}.recycle-banner{padding:50px 0}.recycle-banner h2{font-size:36px}.recycle-banner p{font-size:13px}.cta{padding:70px 0}.cta h2{font-size:39px}.cta p{font-size:14px}.cta:before{font-size:350px;right:-80px;top:40px}.footer-top{gap:30px 20px}.footer-top a,.footer-top p{font-size:11px}.footer-bottom{font-size:8px}.page-head{padding:65px 0}.page-head h1{font-size:clamp(42px,10.5vw,62px)}.page-head .lead{font-size:16px}.page-head:after{background-position:65%}.detail-layout{grid-template-columns:1fr;gap:30px}.capabilities h3{font-size:25px}.capabilities p{font-size:14px}.capabilities article{padding:26px 0}.contact-card{padding:29px}.project-art{min-height:270px}.roadmap summary{font-size:17px}.roadmap summary span{font-size:7px}.reveal-ready{transform:translateY(16px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.hero:before{animation:none;transform:none}.hero-visual{transform:none!important}.reveal-ready{opacity:1;transform:none;transition:none}.motion-in{animation:none}.progress-line{display:none}*,*:before,*:after{animation:none!important;transition:none!important}}
.hero-grid>*,.product-grid>*,.family-row>.wp-block-group{min-width:0}
.hero-copy>p{width:100%}
.hero-copy .actions>.inserma-link{width:auto;max-width:100%}
.hero-foot{width:calc(100% - 128px)}
@media(max-width:1250px){.hero-foot{width:calc(100% - 76px)}}
@media(max-width:700px){.hero-foot{width:calc(100% - 46px)}.visual-bottom{display:block}.visual-bottom span:last-child{margin-top:4px}.hero-copy .actions>.inserma-link{max-width:100%}}
@media print{.reveal-ready{opacity:1;transform:none}.hero:before,.hero:after{display:none}.hero{color:#111;background:#fff}.hero p{color:#333}}

/* 0.4 — Integración total (tríptico INSVision V7) */
.turnkey{background:#101215;color:#fff;position:relative;overflow:hidden}
.turnkey>.wrap{display:grid;grid-template-columns:1fr 1.15fr;gap:90px;align-items:center}
.turnkey .eyebrow{color:#ff6778}
.turnkey h2{color:#fff;margin-bottom:26px}
.turnkey h2 .muted{color:#9a9ca3}
.turnkey-copy p:not(.eyebrow){color:#b0b1b9;font-size:16px;line-height:1.8;max-width:520px;margin:0}
.turnkey-flow{background:#17181c;border-top:3px solid var(--red);padding:34px 30px 36px}
.turnkey-bidi{display:flex;align-items:center;gap:10px;margin:0 0 30px;color:#ff6778;font-size:10px;font-weight:600;letter-spacing:.15em;text-transform:uppercase;line-height:1}
.turnkey-bidi svg{width:22px;height:13px;fill:none;stroke:currentColor;stroke-width:1.6}
.turnkey-flow ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,1fr);gap:8px;position:relative;counter-reset:paso}
.turnkey-flow ol:before{content:'';position:absolute;left:10%;right:10%;top:22px;border-top:1px solid var(--red)}
.turnkey-flow li{position:relative;text-align:center;font-size:12px;line-height:1.45;color:#b0b1b9;counter-increment:paso}
.turnkey-flow li:before{content:counter(paso,decimal-leading-zero);display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0 auto 14px;border:1px solid var(--red);background:#101215;color:#fff;font-size:12px;font-weight:600;position:relative}
.turnkey-flow li b{display:block;color:#fff;font-weight:600}
@media(max-width:1250px){.turnkey>.wrap{gap:50px}.turnkey-flow{padding:28px 20px}}
@media(max-width:950px){.turnkey>.wrap{grid-template-columns:1fr;gap:40px}}
@media(max-width:700px){.turnkey-flow{padding:26px 22px}.turnkey-flow ol{grid-template-columns:1fr;gap:14px}.turnkey-flow ol:before{left:22px;right:auto;top:22px;bottom:22px;border-top:0;border-left:1px solid var(--red)}.turnkey-flow li{display:flex;align-items:center;gap:16px;text-align:left}.turnkey-flow li:before{margin:0;flex-shrink:0}.turnkey-flow li b{display:inline;margin-right:4px}}

/* 0.4.1 — INSVision: casos de uso */
.usecases h2{margin-bottom:24px}
.usecases .lead{max-width:640px;margin-bottom:45px}
.usecases .cap-grid{margin-top:0}
.usecases .cap-grid article{min-height:150px}
.usecases .cap-grid h3{margin-bottom:12px}
@media(max-width:700px){.usecases .lead{margin-bottom:30px}.usecases .cap-grid article{min-height:0}}

/* 0.4.2 — noticias */
.inserma-post{max-width:820px;padding:80px 25px 90px}
.inserma-post h1{font-size:clamp(34px,4vw,48px);font-weight:550;line-height:1.1;letter-spacing:-.045em;margin-bottom:28px}
.inserma-post h2{font-size:clamp(24px,2.4vw,30px);font-weight:550;line-height:1.2;letter-spacing:-.03em;margin:44px 0 14px}
.inserma-post h3{font-size:21px;font-weight:600;line-height:1.25;margin:32px 0 10px}
.inserma-post p,.inserma-post li{font-size:16px;line-height:1.8;color:#3d3f45}
.inserma-post ul,.inserma-post ol{padding-left:22px;margin:0 0 22px}
.inserma-post li{margin-bottom:6px}
.inserma-post .textlink{margin-top:12px}
.wp-block-latest-posts{list-style:none;padding:0;margin:30px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.wp-block-latest-posts li{background:#fff;border:1px solid #dbdbd7;padding:26px;display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:12px}
.wp-block-latest-posts a{font-size:20px;font-weight:550;line-height:1.25;letter-spacing:-.02em}
.wp-block-latest-posts a:hover{color:var(--red)}
.wp-block-latest-posts__post-date{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#d70019}
@media(max-width:950px){.wp-block-latest-posts{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.inserma-post{padding:50px 23px 60px}.wp-block-latest-posts{grid-template-columns:1fr}}

/* 0.5 — idiomas */
.topline-end{display:flex;align-items:center;gap:18px}
.lang-switch{display:flex;gap:2px;font-size:10px;font-weight:600;letter-spacing:.1em}
.lang-switch a,.lang-switch span{padding:3px 6px;line-height:1}
.lang-switch span[aria-current]{color:#fff;background:#d70019}
.lang-switch a{color:#d5d6da}
.lang-switch a:hover{color:#fff}
@media(max-width:700px){.topline .wrap>span:first-child{display:none}.topline .wrap{justify-content:flex-end}}
.topline .wrap>.topline-end{max-width:none;overflow:visible}

/* 0.5.3 — rejilla de productos con dos tarjetas */
.product-grid:has(>.product-card:nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}
@media(max-width:700px){.product-grid:has(>.product-card:nth-child(2):last-child){grid-template-columns:1fr}}

/* ===== 0.6 — «Integración»: fondos corporativos y animación ===== */
.hero:before{background-image:url('assets/hero-conexion.webp');background-position:right center;translate:0 var(--hero-shift,0px)}
.hero .hero-visual{display:none}
.integra{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;translate:0 calc(var(--hero-shift,0px) * .6)}
.integra-wire{fill:none;stroke:none}
.integra-pulse{fill:none;stroke:#ff5a6b;stroke-width:3.5;stroke-linecap:round;stroke-dasharray:46 954;stroke-dashoffset:46;opacity:0;filter:url(#integra-glow)}
.hero.is-live .integra-pulse{animation:integra-flow 3.4s cubic-bezier(.45,.05,.55,.95) infinite;animation-delay:calc(var(--i) * .68s)}
@keyframes integra-flow{0%{stroke-dashoffset:46;opacity:0}8%{opacity:1}90%{opacity:1}100%{stroke-dashoffset:-954;opacity:0}}
.integra-hub circle{fill:#ff334b;filter:url(#integra-glow)}
.integra-hub .integra-ring{fill:none;stroke:#ff334b;stroke-width:2;opacity:0;transform-box:fill-box;transform-origin:center;filter:none}
.hero.is-live .integra-ring{animation:integra-ring 1.7s ease-out infinite}
@keyframes integra-ring{0%{opacity:.85;transform:scale(1)}100%{opacity:0;transform:scale(7)}}
.integra-node{opacity:0;transition:opacity .7s var(--ease)}
.integra-node circle{fill:#101215;stroke:#ff334b;stroke-width:2.5}
.integra-node text{font:600 16px Comme,Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;fill:#e8e9ec;paint-order:stroke;stroke:#101215;stroke-width:6px;stroke-linejoin:round}
.hero.is-live .integra-node{opacity:1;transition-delay:calc(.5s + var(--i) * .3s)}
.hero-credit{position:absolute;right:22px;bottom:86px;z-index:1;font-size:8px;letter-spacing:.14em;color:#ffffff59;pointer-events:none}
.turnkey{background:#101215 url('assets/fondo-metal.webp') right bottom/min(1500px,125%) auto no-repeat}
.turnkey:before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,#101215 32%,#101215d9 58%,#10121533 100%)}
.turnkey>.wrap{position:relative;z-index:1}
.turnkey-flow{background:#17181ccc;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.turnkey-flow li{z-index:1}
.flow-pulse{position:absolute;z-index:0;top:21px;left:10%;width:16px;height:3px;background:#ff5a6b;box-shadow:0 0 12px 2px #ff334b99;opacity:0;pointer-events:none}
.turnkey.is-live .flow-pulse.fwd{animation:flow-fwd 2.8s linear infinite}
.turnkey.is-live .flow-pulse.back{animation:flow-back 2.8s linear 1.4s infinite}
@keyframes flow-fwd{0%{left:10%;opacity:0}10%{opacity:1}90%{opacity:1}100%{left:calc(90% - 16px);opacity:0}}
@keyframes flow-back{0%{left:calc(90% - 16px);opacity:0}10%{opacity:1}90%{opacity:1}100%{left:10%;opacity:0}}
.turnkey.is-live .turnkey-flow li:before{animation:node-on 2.8s ease-in-out infinite}
.turnkey.is-live .turnkey-flow li:nth-child(2):before{animation-delay:.5s}
.turnkey.is-live .turnkey-flow li:nth-child(3):before{animation-delay:1s}
.turnkey.is-live .turnkey-flow li:nth-child(4):before{animation-delay:1.5s}
.turnkey.is-live .turnkey-flow li:nth-child(5):before{animation-delay:2s}
@keyframes node-on{0%,30%,100%{box-shadow:0 0 0 0 #ff334b00;background:#101215}12%{box-shadow:0 0 18px 2px #ff334b80;background:#3a0d14}}
.home .section.light-bg{background-color:#eaeae5;background-image:linear-gradient(90deg,#eaeae5 30%,#eaeae500 62%),url('assets/fondo-clara.webp');background-size:100% 100%,min(1150px,72%) auto;background-position:0 0,right -30px top -40px;background-repeat:no-repeat}
.page-head:after{background-image:linear-gradient(90deg,#101215 12%,#101215d6 55%,#10121540),url('assets/fondo-metal.webp')}
@media(max-width:1280px){.integra-node{display:none}}@media(max-width:950px){.hero-credit{bottom:96px}}
@media(max-width:700px){
 .flow-pulse{top:22px;left:21px;width:3px;height:16px}
 @keyframes flow-fwd{0%{top:22px;opacity:0}10%{opacity:1}90%{opacity:1}100%{top:calc(100% - 38px);opacity:0}}
 @keyframes flow-back{0%{top:calc(100% - 38px);opacity:0}10%{opacity:1}90%{opacity:1}100%{top:22px;opacity:0}}
 .turnkey.is-live .flow-pulse.fwd{animation-name:flow-fwd-v}.turnkey.is-live .flow-pulse.back{animation-name:flow-back-v}
 .home .section.light-bg{background-size:120% auto;background-position:right -80px top -20px}
}
@keyframes flow-fwd-v{0%{top:22px;left:21px;opacity:0}10%{opacity:1}90%{opacity:1}100%{top:calc(100% - 38px);left:21px;opacity:0}}
@keyframes flow-back-v{0%{top:calc(100% - 38px);left:21px;opacity:0}10%{opacity:1}90%{opacity:1}100%{top:22px;left:21px;opacity:0}}
@media(prefers-reduced-motion:reduce){.integra-node{opacity:1}.integra-pulse,.flow-pulse,.integra-ring{display:none}.hero:before,.integra{translate:none}}
@media(max-width:700px){
 .hero-credit{top:14px;bottom:auto;right:16px}
 .home .section.light-bg{background-image:linear-gradient(#eaeae5e6,#eaeae5e6),url('assets/fondo-clara.webp');background-size:auto,140% auto;background-position:0 0,right -60px top 0}
}
@media(max-width:700px){.integra-hub{display:none}.integra-pulse{stroke-width:2.5;opacity:.7}}

/* ===== 0.6.1 — contraste y animaciones ligadas al scroll ===== */
/* Texto de «Cinco formas de avanzar» sobre las cintas plateadas: placa de papel esmerilada */
.home .light-bg .section-heading>p{color:#24262c;background:#f4f3efe0;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 0 0 1px #d6d6d2;padding:14px 18px;align-self:end}

/* Línea de progreso del proceso (se rellena con el scroll donde haya soporte) */
.process .process-steps{position:relative}

@supports (animation-timeline: view()) {
 @media (prefers-reduced-motion: no-preference) {
  /* Parallax de fondos: cada capa avanza a su ritmo */
  .home .section.light-bg{animation:clara-drift linear both;animation-timeline:view()}
  @keyframes clara-drift{from{background-position:0 0,right -30px top 60px}to{background-position:0 0,right -30px top -170px}}
  .turnkey{animation:metal-drift linear both;animation-timeline:view()}
  @keyframes metal-drift{from{background-position:right -160px bottom -90px}to{background-position:right 40px bottom 60px}}
  .technology:before{animation:grid-drift linear both;animation-timeline:view()}
  @keyframes grid-drift{from{background-position:0 0,0 0}to{background-position:0 -180px,0 -180px}}
  .page-head:after{animation:head-drift linear both;animation-timeline:view();animation-range:exit 0% exit 100%}
  @keyframes head-drift{to{background-position:0 0,right center;transform:scale(1.06) translateY(30px)}}

  /* El titular del hero se aleja al bajar */
  .hero .hero-copy{animation:hero-away linear both;animation-timeline:scroll(root);animation-range:0 80vh}
  @keyframes hero-away{to{opacity:.12;transform:translateY(-70px)}}

  /* «Integración total»: el cable se tiende al entrar en pantalla */
  .turnkey-flow ol:before{transform-origin:left center;animation:cable-x linear both;animation-timeline:view();animation-range:entry 15% cover 40%}
  @keyframes cable-x{from{transform:scaleX(0)}to{transform:scaleX(1)}}
  .turnkey-copy h2{animation:rise-in linear both;animation-timeline:view();animation-range:entry 0% cover 30%}
  @keyframes rise-in{from{opacity:0;transform:translateY(50px)}to{opacity:1;transform:none}}

  /* «Cerca en cada fase»: una línea roja recorre las cuatro fases */
  .process .process-steps:before{content:'';position:absolute;left:-26px;top:0;bottom:0;width:2px;background:var(--red);transform-origin:top center;animation:cable-y linear both;animation-timeline:view();animation-range:entry 35% exit 55%}
  @keyframes cable-y{from{transform:scaleY(0)}to{transform:scaleY(1)}}

  /* La flecha gigante de la banda final sube y se endereza */
  .cta:before{animation:cta-arrow linear both;animation-timeline:view()}
  @keyframes cta-arrow{from{transform:translateY(90px) rotate(-10deg)}to{transform:translateY(-90px) rotate(0deg)}}

  /* Productos: la señal de cada tarjeta se enciende con el scroll */
  .product-signal{animation:signal-on linear both;animation-timeline:view();animation-range:entry 20% cover 45%}
  @keyframes signal-on{from{opacity:.15;filter:saturate(0)}to{opacity:1;filter:none}}

  @media(max-width:700px){
   .turnkey-flow ol:before{transform-origin:top center;animation-name:cable-yv}
   @keyframes cable-yv{from{transform:scaleY(0)}to{transform:scaleY(1)}}
   .process .process-steps:before{left:-12px}
   .home .section.light-bg{animation-name:clara-drift-m}
   @keyframes clara-drift-m{from{background-position:0 0,right -60px top 40px}to{background-position:0 0,right -60px top -120px}}
  }
 }
}

/* 0.7.2 — real images: news covers, latest-posts thumbnails, project logos */
.post-cover{margin:6px 0 42px}.post-cover img{display:block;width:100%;height:auto;max-height:560px;object-fit:cover}
.inserma-post .wp-block-image,.inserma-post .wp-block-gallery{margin:36px 0}.inserma-post img{height:auto}
.inserma-post .wp-block-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.inserma-post .wp-block-gallery figure{margin:0;width:auto!important}
.inserma-post .wp-block-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.inserma-post figcaption{font-size:12px;color:#6b6e75;margin-top:8px}
.wp-block-latest-posts li{flex-direction:column;justify-content:flex-start}
.wp-block-latest-posts__featured-image{order:0;margin:-26px -26px 10px}.wp-block-latest-posts__featured-image a{display:block}
.wp-block-latest-posts__featured-image img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;transition:transform .5s var(--ease)}
.wp-block-latest-posts li{overflow:hidden}.wp-block-latest-posts li:hover .wp-block-latest-posts__featured-image img{transform:scale(1.03)}
.wp-block-latest-posts__post-date{order:1}.wp-block-latest-posts__post-title{order:2}
.wp-block-latest-posts li:not(:has(.wp-block-latest-posts__featured-image)){border-top:3px solid var(--red)}
.callout.has-thumb{display:grid;grid-template-columns:260px 1fr;gap:6px 30px;align-items:start}.callout.has-thumb .post-thumb{grid-row:1/span 2}.callout .post-thumb img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.project-art.has-logo{background:#fff!important;border:1px solid #dbdbd7;border-bottom:3px solid var(--red);display:flex;align-items:center;justify-content:center;padding:40px}
.project-art.has-logo figure{margin:0;text-align:center}.project-art.has-logo img{display:block;width:auto;height:auto;max-width:min(86%,440px);max-height:150px;margin:auto}
.project-art.has-photo{padding:0!important;background:#111!important;display:block}.project-art.has-photo figure{margin:0;height:100%}.project-art.has-photo img{display:block;width:100%;height:100%;min-height:inherit;object-fit:cover}
@media(max-width:700px){.callout.has-thumb{grid-template-columns:1fr}.callout.has-thumb .post-thumb{grid-row:auto}.project-art.has-logo{padding:30px 20px}}
.cap-grid .project-logo{margin:0 0 22px;background:#fff;border:1px solid #dbdbd7;height:120px;display:flex;align-items:center;justify-content:center;padding:18px}
.cap-grid .project-logo img{display:block;width:auto;height:auto;max-width:90%;max-height:84px}
.cap-grid .project-shot{margin:0 0 22px;border:1px solid #dbdbd7;height:120px;overflow:hidden}.cap-grid .project-shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:left top}

/* 0.7.8: the CTA (last menu item) keeps white text when it is the current page */
.header nav li:last-child a[aria-current],.header nav .nav-cta[aria-current]{color:#fff!important}
/* contact page form: sent through the website (same endpoint as the chat) */
.form-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.form-check{display:flex;gap:10px;align-items:flex-start;font-weight:400;font-size:13px;line-height:1.5;color:#4a4e55}
.form-check input{width:auto;margin:3px 0 0;flex-shrink:0;accent-color:#d70019}
.form-check a{color:#d70019;text-decoration:underline}
.form-error{margin:0 0 18px;font-size:14px;color:#a10013;background:#fde7ea;padding:10px 12px}
#contact-form button[disabled]{opacity:.6;cursor:progress}
#contact-result{border-top:3px solid #d70019;background:#fff;padding:28px 30px;outline:0}
#contact-result h3{margin:0 0 12px}
#contact-result p{margin:0 0 10px}
#contact-result a{color:#d70019}
