/* Stage overlays — keep v3 visual system intact */

/* Brand logo (Etapa 3.3.1) — optimized crop + larger header mark; staging only */
:root{
  --sel-logo-aspect: 5.5673; /* 1158 / 208 tight viewBox */
}
/* Slightly taller sticky header to fit larger wordmark without shrinking text */
.header,
.header-inner{
  --header-h:86px;
  height:var(--header-h);
}
html{scroll-padding-top:calc(86px + 18px)}
.header .header-inner{gap:16px}
.header .nav{gap:14px}
.header .nav a{padding-left:0;padding-right:0;font-size:12.5px}

.brand.brand--logo{
  display:inline-flex;
  align-items:center;
  flex-shrink:0;
  line-height:0;
  text-decoration:none;
  max-width:min(48vw, 260px);
}
.brand-logo{
  display:block;
  height:auto;
  width:auto;
  object-fit:contain;
  object-position:left center;
}
.brand-logo--full{
  width:252px;
  height:45px;
  max-width:100%;
  max-height:45px;
}
.brand-logo--mark{
  display:none;
  width:64px;
  height:40px;
}
.brand--footer{
  display:inline-flex;
  margin-bottom:14px;
  max-width:min(100%, 260px);
}
.brand-logo--footer{
  width:220px;
  height:40px;
  max-width:100%;
  max-height:40px;
}
@media(max-width:1280px){
  .header .nav{gap:10px}
  .brand-logo--full{
    width:230px;
    height:41px;
    max-height:41px;
  }
}
@media(max-width:1100px){
  .header .nav{gap:8px}
  .header .nav a{font-size:12px}
  .brand-logo--full{
    width:210px;
    height:38px;
    max-height:38px;
  }
}
@media(max-width:980px){
  .header,
  .header-inner{--header-h:72px;height:var(--header-h)}
  html{scroll-padding-top:calc(72px + 18px)}
  .brand.brand--logo{max-width:min(56vw, 210px)}
  .brand-logo--full{
    width:200px;
    height:36px;
    max-height:36px;
  }
}
@media(max-width:640px){
  .header,
  .header-inner{--header-h:68px;height:var(--header-h)}
  html{scroll-padding-top:calc(68px + 18px)}
  .brand.brand--logo{max-width:min(62vw, 190px)}
  .brand-logo--full{
    width:180px;
    height:32px;
    max-height:32px;
  }
  .brand-logo--footer{
    width:190px;
    height:34px;
    max-height:34px;
  }
}
@media(max-width:360px){
  /* Compact SE mark only on very narrow phones */
  .header .brand-logo--full{display:none}
  .header .brand-logo--mark{display:block}
  .header .brand.brand--logo{max-width:72px}
  .brand--footer{max-width:min(100%, 220px)}
  .brand-logo--footer{
    width:170px;
    height:31px;
    max-height:31px;
  }
}

.hp-field{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.form-errors{margin-top:12px;color:#8A1F1F;background:#FDECEC;border:1px solid #F0B6B6;padding:12px 14px;font-size:13px;line-height:1.5}
.form-errors[hidden]{display:none!important}
.field.has-error input,.field.has-error select,.field.has-error textarea{border-color:#C0392B;background:#FFF8F8}
.btn.is-loading{opacity:.72;pointer-events:none}
.toast.is-success{border-color:#8FCB9B;background:#F1FBF3;color:#1F5B32}
.toast.is-error{border-color:#F0B6B6;background:#FDECEC;color:#8A1F1F}
.toast.is-info{border-color:#9BB6D4;background:#F3F7FC;color:#0B1E35}
.footer-links .linkish,.footer-links a{background:none;border:0;padding:0;color:#94ADC5;font-size:13px;cursor:pointer;text-decoration:none}
.footer-links .linkish:hover,.footer-links a:hover{color:#D7E5F3}
.cookie-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:90;background:#0B1E35;color:#E7EEF7;border:1px solid #2A4664;padding:18px;box-shadow:0 16px 40px rgba(0,0,0,.28);max-width:920px;margin:0 auto}
.cookie-banner[hidden]{display:none!important}
.cookie-banner__inner{display:flex;gap:18px;align-items:flex-end;justify-content:space-between;flex-wrap:wrap}
.cookie-banner p{margin:8px 0 0;font-size:13px;line-height:1.55;color:#B7CBDF;max-width:52ch}
.cookie-banner__actions{display:flex;flex-wrap:wrap;gap:8px}
.cookie-banner .btn{min-height:44px}
.cookie-panel{margin-top:14px;display:grid;gap:10px;padding-top:12px;border-top:1px solid #2A4664}
.cookie-panel[hidden]{display:none!important}
.cookie-panel label{font-size:13px;display:flex;gap:10px;align-items:center}
@media(max-width:640px){
  .cookie-banner{left:10px;right:10px;bottom:10px;padding:14px}
  .cookie-banner__actions .btn{width:100%}
}

/* Etapa 3.4.3 — Hero final polish: matched navy edges (staging only) */
.hero-micro{
  margin-top:28px;
  font-size:11.5px;
  letter-spacing:.01em;
  color:#7F96AD;
  line-height:1.85;
  max-width:42em;
}
/* Matched asset edges ≈ #0B1E35 — no dark plate wash / no B masks */
.hero-visual{
  background:transparent;
}
.hero-visual-frame{
  width:min(100%,780px);
  aspect-ratio:1147/1372;
  max-height:min(740px,84vh);
  background:transparent;
  overflow:hidden;
}
.hero-visual-frame::before,
.hero-visual-frame::after{
  content:none;
  display:none;
}
.hero-visual-frame picture,
.hero-visual-frame img{
  object-fit:contain;
  object-position:center center;
}
.hero-visual-frame img{
  filter:none;
  -webkit-mask-image:none;
  mask-image:none;
}
.hero-badge{
  left:3%;
  bottom:18%;
  padding-left:10px;
  border-left:2px solid rgba(59,116,224,.85);
  font-size:10px;
  letter-spacing:.13em;
  line-height:1.8;
  color:#9BB4CC;
  max-width:15ch;
  font-weight:600;
}
/* Authorship is baked into the image — do not show a duplicate visible credit */
.hero-credit{display:none}

@media(max-width:1100px){
  .hero-visual-frame{width:min(100%,640px);max-height:min(640px,80vh)}
  .hero-badge{bottom:16%;left:2.5%}
}

@media(max-width:980px){
  .hero-inner{gap:14px;padding:24px 0 4px}
  .hero-visual{
    min-height:0;
    justify-content:center;
    margin:0 0 2px;
  }
  .hero-visual-frame{
    width:min(100%,440px);
    max-height:none;
    aspect-ratio:1147/1372;
    background:transparent;
  }
  .hero-visual-frame picture,
  .hero-visual-frame img{
    object-position:center center;
  }
  .hero-badge{display:none}
  .hero-micro{margin-top:18px;font-size:11px}
}

@media(max-width:760px){
  .hero-visual{min-height:0}
  .hero-visual-frame{
    width:min(100%,100%);
    max-width:400px;
    max-height:none;
  }
}

@media(max-width:430px){
  .hero-visual-frame{max-width:100%}
}

@media(max-width:360px){
  .hero-visual-frame{max-width:100%}
}

/* —— Challenges: horizontal icon + text (etapa 3.5.1) —— */
.challenge-card{
  flex-direction:row;
  align-items:flex-start;
  gap:20px;
  padding:24px 22px;
  min-height:148px;
}
.challenge-card .challenge-icon{
  display:block;
  width:58px;
  height:58px;
  margin:0;
  flex-shrink:0;
  object-fit:contain;
  object-position:center top;
  background:transparent;
  border:0;
  box-shadow:none;
  filter:none;
}
.challenge-card .challenge-body{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.challenge-card h3{
  margin:0;
  font-size:15px;
  line-height:1.35;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--navy);
  overflow-wrap:anywhere;
  hyphens:auto;
}
.challenge-card p{
  margin:0;
  font-size:14px;
  line-height:1.55;
  color:var(--muted);
}

@media(max-width:980px){
  .challenge-card{
    gap:18px;
    padding:22px 20px;
    min-height:140px;
  }
  .challenge-card .challenge-icon{
    width:52px;
    height:52px;
  }
  .challenge-card h3{font-size:15px}
}

@media(max-width:760px){
  .challenge-card{
    gap:16px;
    padding:20px 18px;
    min-height:0;
  }
  .challenge-card .challenge-icon{
    width:48px;
    height:48px;
  }
  .challenge-card h3{font-size:14px;line-height:1.4}
  .challenge-card p{font-size:14px;line-height:1.55}
}

@media(max-width:360px){
  .challenge-card{
    gap:14px;
    padding:18px 16px;
  }
  .challenge-card .challenge-icon{
    width:44px;
    height:44px;
  }
}

/* —— Capabilities: icons + photo refinement (etapa 3.6) —— */
.cap-feature{
  aspect-ratio:16/10.5;
  min-height:250px;
}
.cap-feature::after{
  background:linear-gradient(185deg,rgba(11,30,53,.05) 12%,rgba(11,30,53,.38) 48%,rgba(11,30,53,.88) 100%);
}
.cap-feature--reductor img{object-position:52% 42%}
.cap-feature--reductor::after{
  background:linear-gradient(185deg,rgba(11,30,53,.08) 10%,rgba(11,30,53,.42) 50%,rgba(11,30,53,.9) 100%);
}
.cap-feature--flipcap img{object-position:50% 38%}
.cap-feature--flipcap::after{
  background:linear-gradient(185deg,rgba(11,30,53,.04) 14%,rgba(11,30,53,.34) 50%,rgba(11,30,53,.86) 100%);
}
.cap-feature--mold img{object-position:48% 40%}
.cap-feature--mold::after{
  background:linear-gradient(185deg,rgba(11,30,53,.05) 12%,rgba(11,30,53,.36) 50%,rgba(11,30,53,.87) 100%);
}
.cap-feature--kapa img{object-position:50% 36%}
.cap-feature--kapa::after{
  background:linear-gradient(185deg,rgba(11,30,53,.03) 16%,rgba(11,30,53,.32) 52%,rgba(11,30,53,.85) 100%);
}
.cap-feature-body{padding:22px 24px 24px}
.cap-feature-body h3{margin:8px 0 6px;font-size:16px;line-height:1.3}
.cap-feature-body p{line-height:1.5;max-width:40ch}

.cap-card{
  display:flex;
  flex-direction:column;
  padding:22px 20px 20px;
  min-height:168px;
}
.cap-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.cap-card .num{
  margin:2px 0 0;
  line-height:1;
}
.cap-card .cap-icon{
  display:block;
  width:46px;
  height:46px;
  margin:0;
  flex-shrink:0;
  object-fit:contain;
  object-position:center;
  background:transparent;
  border:0;
  box-shadow:none;
  filter:none;
}
.cap-card h3{
  margin:0 0 8px;
  font-size:13px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
.cap-card p{
  margin:0;
  font-size:13px;
  line-height:1.55;
}

@media(max-width:980px){
  .cap-feature{aspect-ratio:16/11;min-height:220px}
  .cap-card{min-height:160px;padding:20px 18px}
  .cap-card .cap-icon{width:42px;height:42px}
  .cap-card-top{margin-bottom:12px}
}

@media(max-width:760px){
  .cap-feature{aspect-ratio:16/11;min-height:200px}
  .cap-feature-body{padding:18px 18px 20px}
  .cap-feature-body h3{font-size:15px}
  .cap-card{min-height:0;padding:18px 16px}
  .cap-card .cap-icon{width:40px;height:40px}
  .cap-card h3{font-size:12px}
  .cap-card p{font-size:12.5px;line-height:1.5}
  /* Keep 2 columns on typical phones; override v3 420px → 1col later */
  .cap-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:420px){
  .cap-grid{grid-template-columns:1fr 1fr}
  .cap-feature{aspect-ratio:16/12;min-height:190px}
}

@media(max-width:360px){
  .cap-grid{grid-template-columns:1fr}
  .cap-card .cap-icon{width:38px;height:38px}
  .cap-feature{min-height:180px}
}

/* —— Process timeline (etapa 3.7 / 3.7.1) —— */
.process-track{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px 20px;
  position:relative;
  align-items:start;
}
.process-track::before{
  content:"";
  display:block;
  position:absolute;
  left:calc(12.5% + 4px);
  right:calc(12.5% + 4px);
  top:24px;
  height:2px;
  background:linear-gradient(90deg,rgba(32,88,201,.18),var(--blue) 18%,var(--blue) 82%,rgba(32,88,201,.18));
  z-index:0;
  pointer-events:none;
}
.step{
  position:relative;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:0 6px 4px;
  min-width:0;
}
.step-num{
  width:48px;
  height:48px;
  border-radius:50%;
  background:var(--white);
  border:2px solid var(--blue);
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  color:var(--blue);
  margin:0 0 18px;
  box-shadow:0 0 0 10px var(--white);
  flex-shrink:0;
}
.step-body{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  width:100%;
}
.step-icon{
  display:block;
  width:48px;
  height:48px;
  margin:0 0 14px;
  object-fit:contain;
  background:transparent;
  border:0;
  box-shadow:none;
}
.step h3{
  margin:0 0 8px;
  font-size:15px;
  line-height:1.3;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:var(--navy);
}
.step p{
  margin:0;
  font-size:14px;
  color:var(--muted);
  line-height:1.6;
  max-width:30ch;
}
.process-claim{
  margin-top:40px;
}

/* Desktop cohesion — tighter, centered track; line through node centers */
@media(min-width:981px){
  .process-track{
    --process-gap:16px;
    max-width:880px;
    margin-left:auto;
    margin-right:auto;
    gap:0 var(--process-gap);
  }
  /* Line endpoints = column centers with gutters: (100% - 3*gap) / 8 */
  .process-track::before{
    left:calc((100% - (3 * var(--process-gap))) / 8);
    right:calc((100% - (3 * var(--process-gap))) / 8);
    top:23px;
    height:2px;
    background:linear-gradient(90deg,rgba(32,88,201,.22),var(--blue) 10%,var(--blue) 90%,rgba(32,88,201,.22));
  }
  .step{
    align-items:center;
    padding:0 6px 0;
  }
  .step-num{
    width:48px;
    height:48px;
    margin:0 0 14px;
    box-shadow:0 0 0 8px var(--white);
  }
  .step-body{
    align-items:center;
    text-align:center;
  }
  .step-icon{
    width:52px;
    height:52px;
    margin:0 0 12px;
  }
  .step h3{
    margin:0 0 6px;
    font-size:15px;
    line-height:1.25;
    width:100%;
  }
  .step p{
    max-width:23ch;
    margin:0 auto;
    font-size:14px;
    line-height:1.55;
    text-align:center;
  }
  .process-claim{
    margin-top:36px;
  }
}

@media(min-width:981px) and (max-width:1100px){
  .process-track{
    --process-gap:12px;
    max-width:820px;
  }
  .step-icon{width:48px;height:48px;margin-bottom:10px}
  .step-num{margin-bottom:12px}
  .step p{max-width:21ch}
}

/* Vertical connected timeline from tablet/mobile — unchanged from 3.7 */
@media(max-width:980px){
  .process-track{
    grid-template-columns:1fr;
    gap:0;
    max-width:640px;
  }
  .process-track::before{
    display:none;
  }
  .step{
    display:grid;
    grid-template-columns:48px minmax(0,1fr);
    column-gap:18px;
    align-items:start;
    padding:0 0 28px;
  }
  .step:last-child{padding-bottom:4px}
  .step:not(:last-child)::before{
    content:"";
    position:absolute;
    left:23px;
    top:48px;
    bottom:0;
    width:2px;
    background:linear-gradient(180deg,var(--blue) 0%,rgba(32,88,201,.35) 70%,rgba(32,88,201,.12) 100%);
    z-index:0;
    pointer-events:none;
  }
  .step-num{
    grid-column:1;
    grid-row:1;
    margin:0;
    position:relative;
    z-index:1;
    box-shadow:0 0 0 8px var(--white);
  }
  .step-body{
    grid-column:2;
    grid-row:1;
    padding-top:2px;
  }
  .step-icon{
    width:44px;
    height:44px;
    margin:0 0 10px;
  }
  .step h3{
    margin:0 0 6px;
    font-size:15px;
  }
  .step p{
    max-width:none;
    font-size:14px;
    line-height:1.55;
  }
  .process-claim{margin-top:28px}
}

@media(max-width:430px){
  .step{
    column-gap:16px;
    padding-bottom:26px;
  }
  .step-icon{width:42px;height:42px}
}

@media(max-width:360px){
  .step{
    grid-template-columns:40px minmax(0,1fr);
    column-gap:14px;
    padding-bottom:24px;
  }
  .step-num{
    width:40px;
    height:40px;
    font-size:11px;
    box-shadow:0 0 0 6px var(--white);
  }
  .step:not(:last-child)::before{
    left:19px;
    top:40px;
  }
  .step-icon{
    width:40px;
    height:40px;
    margin-bottom:8px;
  }
  .step h3{font-size:14px}
  .step p{font-size:13.5px;line-height:1.5}
  .process-claim{margin-top:22px;padding:24px 18px}
}

/* —— Industries visual refinement (etapa 3.8) —— */
/* Etapa mobile hotfix: aspect-ratio + min-height must not invent a min-width
   wider than the single-column track (~336px at min-height:210 / 16:10). */
.industry-grid > .industry{
  min-width:0;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
}
.industry{
  aspect-ratio:16/10;
  min-height:176px;
  padding:20px 22px;
}
.industry::after{
  background:linear-gradient(168deg,rgba(11,30,53,.12) 8%,rgba(11,30,53,.48) 48%,rgba(11,30,53,.9) 100%);
}
.industry .id{
  top:16px;
  left:20px;
  letter-spacing:.08em;
}
.industry strong{
  font-size:15px;
  line-height:1.3;
  max-width:18ch;
}
.industry--abstract::before,
.industry--abstract svg{display:none}

/* Per-card crop + overlay tuning */
.industry--medical img{object-position:50% 42%}
.industry--medical::after{
  background:linear-gradient(168deg,rgba(11,30,53,.2) 6%,rgba(11,30,53,.52) 48%,rgba(11,30,53,.92) 100%);
}
.industry--automotive img{object-position:48% 40%}
.industry--automotive::after{
  background:linear-gradient(168deg,rgba(11,30,53,.1) 10%,rgba(11,30,53,.42) 50%,rgba(11,30,53,.88) 100%);
}
.industry--plastics img{object-position:50% 45%}
.industry--plastics::after{
  background:linear-gradient(168deg,rgba(11,30,53,.18) 8%,rgba(11,30,53,.5) 48%,rgba(11,30,53,.91) 100%);
}
.industry--machinery img{object-position:50% 38%}
.industry--machinery::after{
  background:linear-gradient(168deg,rgba(11,30,53,.08) 12%,rgba(11,30,53,.36) 50%,rgba(11,30,53,.86) 100%);
}
.industry--automation img{object-position:52% 42%}
.industry--automation::after{
  background:linear-gradient(168deg,rgba(11,30,53,.16) 8%,rgba(11,30,53,.48) 48%,rgba(11,30,53,.9) 100%);
}
.industry--electrical img{object-position:55% 45%}
.industry--electrical::after{
  background:linear-gradient(168deg,rgba(11,30,53,.06) 14%,rgba(11,30,53,.34) 52%,rgba(11,30,53,.88) 100%);
}

@media(max-width:980px){
  .industry{min-height:160px}
}

@media(max-width:760px){
  .industry{
    aspect-ratio:16/10;
    /* Width-driven height; avoid min-height→min-width inflation in 1-col layout */
    min-height:0;
    padding:18px 18px 20px;
  }
  .industry strong{font-size:14px;max-width:22ch}
  .industry .id{top:14px;left:16px}
  .industry--automotive img{object-position:46% 38%}
  .industry--electrical img{object-position:58% 42%}
  .industry--machinery img{object-position:50% 35%}
}

@media(max-width:430px){
  .industry{min-height:0}
}

@media(max-width:360px){
  .industry{
    aspect-ratio:16/10;
    min-height:0;
  }
  .industry strong{font-size:13px}
}

/* —— Why Work With Us (etapa 3.9) —— */
#why-us .why-grid{
  gap:28px 32px;
}
#why-us .benefit{
  padding-top:22px;
  border-top:1px solid var(--line);
  background:transparent;
  box-shadow:none;
}
#why-us .benefit .bar{display:none}
#why-us .benefit-meta{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0 0 16px;
  min-height:14px;
}
#why-us .benefit-num{
  font-size:12px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
  letter-spacing:.1em;
  color:var(--blue);
  line-height:1;
  white-space:nowrap;
}
#why-us .benefit-rule{
  display:block;
  width:22px;
  height:1px;
  background:rgba(32,88,201,.5);
  flex-shrink:0;
}
#why-us .benefit h3{
  margin:0 0 10px;
  font-size:15px;
  line-height:1.3;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--navy);
}
#why-us .benefit p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:var(--muted);
  max-width:36ch;
}
#why-us .positioning{
  margin-top:48px;
}
#why-us .positioning p{
  max-width:42ch;
}

@media(max-width:980px){
  #why-us .why-grid{gap:24px 28px}
  #why-us .benefit{padding-top:20px}
  #why-us .benefit-meta{margin-bottom:14px}
  #why-us .positioning{margin-top:40px}
}

@media(max-width:760px){
  #why-us .why-grid{gap:0}
  #why-us .benefit{
    padding:20px 0 22px;
  }
  #why-us .benefit:first-child{padding-top:18px}
  #why-us .benefit-meta{margin-bottom:14px;gap:10px}
  #why-us .benefit h3{font-size:14px;margin-bottom:8px}
  #why-us .benefit p{max-width:none;line-height:1.55}
  #why-us .positioning{
    margin-top:32px;
    padding:28px 22px;
    gap:18px;
    grid-template-columns:auto 1fr;
    align-items:stretch;
  }
  #why-us .positioning-mark{
    width:4px;
    height:auto;
    min-height:100%;
    align-self:stretch;
  }
  #why-us .positioning p{
    font-size:clamp(22px,6.2vw,30px);
    line-height:1.22;
    letter-spacing:-.03em;
    max-width:none;
  }
  #why-us .positioning p span{margin-top:.4em}
}

@media(max-width:360px){
  #why-us .benefit{padding:18px 0 20px}
  #why-us .benefit-num{font-size:11px;letter-spacing:.08em}
  #why-us .benefit-rule{width:18px}
  #why-us .positioning{
    margin-top:28px;
    padding:24px 18px;
  }
  #why-us .positioning p{
    font-size:clamp(20px,6.8vw,26px);
    line-height:1.24;
  }
}

/* ===== Selected Engineering Work (Etapa 3.10) ===== */
#work .work-featured{
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  align-items:stretch;
  gap:0;
}
#work .work-featured .work-media--featured{
  min-height:0;
  max-height:min(480px,58vh);
  aspect-ratio:auto;
  height:100%;
  background:#EEF1F5;
  display:flex;
  align-items:center;
  justify-content:center;
}
#work .work-featured .work-media--featured picture,
#work .work-featured .work-media--featured img{
  width:100%;
  height:100%;
  max-height:min(480px,58vh);
}
#work .work-featured .work-media--featured img{
  object-fit:contain;
  object-position:center;
}
#work .work-featured .work-body{
  padding:28px 30px;
  justify-content:center;
  gap:0;
}
#work .work-featured .tag{margin-bottom:10px}
#work .work-featured h3{margin-bottom:10px}
#work .work-featured p{max-width:36ch}

#work .work-grid{
  gap:16px;
}
#work .work-card{
  box-shadow:none;
  transition:border-color .2s;
}
#work .work-card:hover{
  box-shadow:none;
  border-color:#B7CBE8;
}
#work .work-card:hover .work-media img,
#work .work-tile:hover .work-media img{
  transform:none;
}
#work .work-media{
  aspect-ratio:4 / 3;
  background:#EEF1F5;
}
#work .work-media img{
  transition:none;
}
#work .work-media--contain img{
  object-fit:contain;
  object-position:center;
}
#work .work-media--cover-center img{
  object-fit:cover;
  object-position:center center;
}
#work .work-media--machine{
  aspect-ratio:16 / 10;
}
#work .work-media--machine img{
  object-fit:contain;
  object-position:center;
  background:#EEF1F5;
}
#work .work-body{
  padding:20px 18px 22px;
}
#work .work-body .tag{
  margin-bottom:10px;
}
#work .work-body h3{
  margin-bottom:8px;
  font-size:15px;
  min-height:2.6em;
}
#work .work-body p{
  font-size:14px;
  line-height:1.55;
}

#work .work-grid--more{
  margin-top:16px;
}
#work .work-expand-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:16px;
}
#work .work-tile{
  background:#fff;
  border:1px solid var(--line);
  display:flex;
  flex-direction:column;
  min-height:100%;
}
#work .work-body--compact{
  padding:16px 16px 18px;
  flex:1;
}
#work .work-body--compact .tag{
  margin-bottom:8px;
  font-size:10px;
  letter-spacing:.12em;
}
#work .work-body--compact h3{
  margin:0 0 6px;
  font-size:13px;
  line-height:1.35;
  min-height:0;
  text-transform:uppercase;
  letter-spacing:.01em;
  color:var(--navy);
}
#work .work-body--compact p{
  margin:0;
  font-size:13px;
  line-height:1.5;
  color:var(--muted);
}
#work .work-more-toggle{
  margin-top:24px;
}
#work .work-extra{
  margin-top:24px;
}

@media(max-width:1100px){
  #work .work-featured{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }
  #work .work-featured .work-media--featured,
  #work .work-featured .work-media--featured picture,
  #work .work-featured .work-media--featured img{
    max-height:min(420px,52vh);
  }
}

@media(max-width:980px){
  #work .work-featured{
    grid-template-columns:1fr;
  }
  #work .work-featured .work-media--featured,
  #work .work-featured .work-media--featured picture,
  #work .work-featured .work-media--featured img{
    max-height:min(360px,48vh);
  }
  #work .work-featured .work-body{
    padding:24px 22px;
  }
  #work .work-expand-grid{
    grid-template-columns:1fr 1fr;
  }
  #work .work-body h3{min-height:0}
}

@media(max-width:760px){
  #work .work-featured .work-media--featured,
  #work .work-featured .work-media--featured picture,
  #work .work-featured .work-media--featured img{
    max-height:min(300px,46vh);
  }
  #work .work-featured .work-body{
    padding:20px 18px 22px;
  }
  #work .work-media,
  #work .work-media--machine{
    aspect-ratio:5 / 4;
  }
  #work .work-expand-grid{
    grid-template-columns:1fr;
    gap:14px;
  }
  #work .work-body{
    padding:18px 16px 20px;
  }
}

@media(max-width:360px){
  #work .work-featured .work-media--featured,
  #work .work-featured .work-media--featured picture,
  #work .work-featured .work-media--featured img{
    max-height:min(260px,42vh);
  }
}

/* ===== Engineering Quick Review (Etapa 3.11) ===== */
#engineering-review .review-inner{
  align-items:stretch;
  gap:40px;
}
#engineering-review .lead{
  margin-top:16px;
  max-width:46ch;
}
#engineering-review .review-cta{
  margin-top:26px;
  min-height:48px;
  width:auto;
}
#engineering-review .review-support{
  margin-top:16px;
  margin-bottom:0;
  max-width:38ch;
  font-size:14px;
  line-height:1.6;
  color:#B7CBDF;
}
#engineering-review .review-pills{
  margin:22px 0 0;
  gap:8px;
}
#engineering-review .pill{
  border:1px solid rgba(126,176,255,.28);
  padding:8px 12px;
  font-size:11px;
  letter-spacing:.06em;
  color:#D4E6F8;
  background:transparent;
  cursor:default;
  pointer-events:none;
  user-select:none;
}
#engineering-review .review-aside{
  background:#152F4A;
  border:1px solid rgba(126,176,255,.22);
  padding:32px 30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
#engineering-review .review-aside .label{
  color:#7EB0FF;
  margin:0;
}
#engineering-review .review-aside h3{
  margin:14px 0 14px;
  color:#fff;
}
#engineering-review .review-aside p{
  margin:0 0 12px;
  font-size:14px;
  line-height:1.65;
  color:#B7CBDF;
}
#engineering-review .review-aside p:last-child{
  margin-bottom:0;
}

@media(max-width:980px){
  #engineering-review .review-inner{gap:28px}
  #engineering-review .review-cta{
    width:100%;
    max-width:100%;
  }
  #engineering-review .review-pills{margin-top:18px}
  #engineering-review .review-aside{padding:26px 22px}
}

@media(max-width:760px){
  #engineering-review .lead{margin-top:14px}
  #engineering-review .review-cta{margin-top:22px;min-height:48px}
  #engineering-review .review-support{margin-top:14px;max-width:none}
  #engineering-review .review-pills{gap:7px}
  #engineering-review .pill{padding:7px 10px;font-size:10px}
  #engineering-review .review-aside{padding:24px 18px}
  #engineering-review .review-aside h3{font-size:clamp(20px,5.5vw,24px)}
}

@media(max-width:360px){
  #engineering-review .review-cta{margin-top:20px}
  #engineering-review .pill{padding:6px 9px}
}

/* ===== Contact section (Etapa 3.12) ===== */
#contact .contact-grid{
  align-items:start;
  gap:44px;
}
#contact .lead{
  max-width:42ch;
}
#contact .contact-person{
  display:flex;
  align-items:center;
  gap:18px;
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid var(--line);
}
#contact .contact-person__media{
  flex-shrink:0;
  width:112px;
  height:112px;
  border-radius:8px;
  overflow:hidden;
  background:#EEF1F5;
  border:1px solid var(--line);
}
#contact .contact-person__photo{
  display:block;
  width:112px;
  height:112px;
  object-fit:cover;
  object-position:center 18%;
}
#contact .contact-person__body{
  min-width:0;
}
#contact .contact-person__body strong{
  display:block;
  font-size:18px;
  line-height:1.25;
  color:var(--navy);
  margin:0;
}
#contact .contact-person__role,
#contact .contact-person__org{
  display:block;
  margin-top:6px;
  font-size:14px;
  line-height:1.45;
  color:var(--muted);
}
#contact .contact-person__org{
  margin-top:4px;
  color:#4A6074;
}
#contact .contact-details{
  list-style:none;
  margin:16px 0 0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
}
#contact .contact-details__link{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  font-size:15px;
  font-weight:600;
  line-height:1.35;
  color:var(--blue);
  text-decoration:none;
  border-bottom:1px solid transparent;
}
#contact .contact-details__link:hover{
  border-bottom-color:rgba(32,88,201,.35);
}
#contact .contact-details__link:focus-visible{
  outline:3px solid #7EB0FF;
  outline-offset:3px;
}
#contact .company{
  margin-top:22px;
  font-size:13px;
  line-height:1.65;
  color:var(--muted);
}
#contact .company b{
  color:var(--navy);
  font-weight:700;
}

#contact .form-panel{
  padding:32px 30px;
  box-shadow:none;
}
#contact .form-panel h3{
  margin:0 0 6px;
}
#contact .form-panel > p{
  margin:0 0 20px;
}
#contact .form-grid{
  gap:14px 16px;
}
#contact .field{
  gap:6px;
}
#contact .field label{
  font-size:12px;
  font-weight:700;
  color:var(--navy);
}
#contact .field input,
#contact .field select,
#contact .field textarea{
  min-height:48px;
  padding:12px 14px;
  font-size:15px;
  background:#FBFDFF;
  border-color:#D5DEE8;
}
#contact .field input::placeholder,
#contact .field textarea::placeholder{
  color:#8A9AAB;
  opacity:1;
}
#contact .field textarea{
  min-height:118px;
}
#contact .field input:focus-visible,
#contact .field select:focus-visible,
#contact .field textarea:focus-visible{
  outline:3px solid #7EB0FF;
  outline-offset:2px;
  border-color:var(--blue);
}
#contact .field.has-error input,
#contact .field.has-error select,
#contact .field.has-error textarea,
#contact .consent.has-error{
  border-color:#C0392B;
}
#contact .consent{
  margin:18px 0 20px;
  gap:12px;
  font-size:12.5px;
  line-height:1.6;
}
#contact .consent input{
  width:18px;
  height:18px;
  margin-top:2px;
}
#contact #contact-submit{
  min-height:48px;
}
#contact .form-errors{
  margin-top:12px;
  font-size:13px;
  color:#9B2C2C;
}
#contact .toast{
  margin-top:12px;
}
#contact .demo-note{
  margin-top:14px;
  font-size:12.5px;
}
#contact .demo-note code{
  font-size:11.5px;
}
#contact .client-preview-note{
  margin-top:14px;
  font-size:13px;
  line-height:1.55;
  color:#3A536E;
}
#contact .client-preview-note a{
  color:#2058C9;
  text-decoration:underline;
  text-underline-offset:2px;
}

@media(max-width:980px){
  #contact .contact-grid{gap:28px}
  #contact .form-panel{padding:28px 22px}
}

@media(max-width:760px){
  #contact .contact-person{
    gap:14px;
    margin-top:22px;
    padding-top:18px;
  }
  #contact .contact-person__media,
  #contact .contact-person__photo{
    width:96px;
    height:96px;
  }
  #contact .contact-person__media{border-radius:7px}
  #contact .contact-person__body strong{font-size:17px}
  #contact .form-panel{padding:24px 18px}
  #contact .form-grid{gap:12px}
  #contact #contact-submit{
    width:100%;
  }
  #contact .consent{margin:16px 0 18px}
}

@media(max-width:360px){
  #contact .contact-person__media,
  #contact .contact-person__photo{
    width:88px;
    height:88px;
  }
  #contact .contact-details{gap:6px;margin-top:14px}
  #contact .contact-details__link{font-size:14px;min-height:42px}
}

/* Etapa 4.2 — commercial sections + consent contrast */
.service-areas,.engagement-steps{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.service-area,.engagement-step{
  background:#fff;
  border:1px solid #D5E0EC;
  padding:24px 22px;
}
.section--grey .service-area{background:#fff}
.service-area__num,.engagement-step__num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:36px;
  min-height:36px;
  margin-bottom:14px;
  border:1px solid #2058C9;
  color:#2058C9;
  font-size:13px;
  font-weight:700;
  letter-spacing:.06em;
}
.service-area h3,.engagement-step h3{
  margin:0 0 10px;
  font-size:18px;
  letter-spacing:-.02em;
  text-transform:none;
  color:#0B1E35;
}
.service-area p,.engagement-step p{
  margin:0;
  font-size:14.5px;
  line-height:1.6;
  color:#3A536E;
}
.engagement-note{
  margin:28px 0 0;
  max-width:70ch;
  font-size:14.5px;
  color:#3A536E;
}
.credit-block{
  margin-top:28px;
  padding:24px 26px;
  background:#0B1E35;
  color:#E7EEF7;
}
.credit-block h3{
  margin:0 0 10px;
  font-size:20px;
  letter-spacing:-.02em;
  text-transform:none;
  color:#fff;
}
.credit-block p{margin:0;font-size:14.5px;line-height:1.65;color:#C7D7E8}
.credit-block__meta{margin-top:12px!important;font-size:13px!important;color:#9BB6D4!important}
.credit-block a{color:#8FC0FF;text-decoration:underline;text-underline-offset:2px}
.cookie-banner__btn.btn--ghost{
  color:#E7EEF7;
  border-color:#8FB7EF;
  background:transparent;
}
.cookie-banner__btn.btn--ghost:hover{
  color:#fff;
  border-color:#fff;
  background:rgba(255,255,255,.08);
}
@media(max-width:980px){
  .service-areas,.engagement-steps{grid-template-columns:1fr;gap:16px}
}
@media(max-width:760px){
  .hero-actions .btn{width:100%}
  .credit-block{padding:20px 18px}
}
