:root{--navy:#002855;--red:#eb3300;--paper:#f4f3ef;--heading-size:clamp(2rem,4.5vw,4rem);--label-size:.75rem;--button-size:.875rem}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--navy);font:1rem/1.6 Montserrat,system-ui,sans-serif}a{color:inherit;text-decoration:none}img{display:block;max-width:100%;height:auto}header,footer{align-items:center;gap:20px;padding:19px max(5vw,calc((100vw - 1220px)/2))}header{display:flex;justify-content:space-between;background:#fff}nav{display:flex;align-items:center;gap:24px;font-weight:650;font-size:var(--button-size)}.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;background:var(--red);color:white;padding:10px 18px;border:0;border-radius:4px;font:inherit;font-size:var(--button-size);font-weight:700;line-height:1.25;text-align:center;cursor:pointer}.button:is(:hover,:focus-visible){background:var(--red);box-shadow:0 5px 12px #00285533}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--navy);outline-offset:3px}.wrap{width:min(90%,1220px);margin:auto}.hero{background:var(--navy);color:white}.tag,small,figcaption{font-size:var(--label-size);font-weight:700;letter-spacing:.1em}.tag,small{color:var(--red)}.hero .tag{color:#fff}h1,h2,h3,p{margin:0 0 14px}h1,h2,h3{line-height:1.16;letter-spacing:0;font-weight:700}h1{margin:17px 0 22px}h1 span{color:var(--red)}h1,h2{font-size:var(--heading-size)}h3{font-size:clamp(1.125rem,2vw,1.375rem);margin-top:16px}.intro{max-width:520px;margin-bottom:22px;color:#e1e6ef}.section{padding-block:72px}.grid{display:grid;margin-top:30px}.grid article{background:var(--paper)}.grid p,li p{margin-bottom:0}.approach{background:var(--navy);color:white}.split{display:grid;grid-template-columns:1fr 1fr;gap:6vw}ol{margin:0;padding-left:24px}li{padding:12px 0;border-bottom:1px solid #526078}li::marker{color:#fff;font-weight:800}form{display:grid;gap:12px;background:var(--paper);padding:22px}label{font-weight:700}input,textarea,select{display:block;width:100%;padding:9px;margin-top:4px;border:1px solid #a4aebe;font:inherit;color:inherit}button{font-family:inherit}.note{font-size:.84rem;margin:0}footer{font-weight:700;font-size:var(--button-size)}@media(max-width:720px){header{flex-wrap:wrap;gap:10px}header img{width:155px}nav{width:100%;justify-content:space-between;gap:9px;font-size:var(--label-size)}nav .button{padding-inline:8px}.section{padding-block:46px}.split{grid-template-columns:1fr}.split{gap:20px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.carousel .slide{margin:0;overflow:hidden;background:var(--navy)}
.carousel figcaption{position:absolute;bottom:0;left:0;display:block;background:var(--navy);padding:10px 16px;color:white}


footer {
  display: grid;
  padding-block: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.footer-credit { font-weight: 400; align-self: center; margin: 0; text-align: center; }
.footer-credit a { text-decoration: underline; text-underline-offset: .2em; }
.back-to-top { justify-self: end; }
@media (max-width: 800px) {
  footer { grid-template-columns: 1fr auto; row-gap: 8px; }
  .footer-credit { grid-column: 1 / -1; grid-row: 2; }
  .back-to-top { grid-column: 2; grid-row: 1; }
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 100;
  pointer-events: none;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) {
  .carousel .slide img {
    translate: 0 var(--parallax-y, 0px);
    scale: 1.16;
  }
  .scroll-reveal.is-visible { animation: cargo-reveal .68s ease-out backwards; }
  @keyframes cargo-reveal {
    from { opacity: .15; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
}

.back-to-top {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1;
}

.hero h1 { line-height: 1.12; letter-spacing: .015em; text-transform: uppercase; }

footer {
  background: var(--navy);
  color: #fff;
}
footer .back-to-top:hover { box-shadow: 0 0 0 2px #fff; }
footer a:focus-visible { outline-color: #fff; }

.hero :focus-visible { outline-color: #fff; }

.approach .split > div { container-type: inline-size; }

#servicios .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
}
#servicios article {
  padding: clamp(20px, 2.5vw, 32px);
  border: 1px solid #dadde3;
  border-inline-start: 4px solid var(--red);
}
#servicios article p { max-width: 64ch; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-reveal:not(.is-visible) { opacity: 0; }
}

@media (max-width: 720px) {
  #servicios .grid { grid-template-columns: minmax(0, 1fr); }
}


.languages { display: flex; align-items: center; gap: 8px; }
.languages a {
  font-size: var(--label-size);
  font-weight: 700;
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  border-radius: 5px;
}
.languages a[aria-current="page"] { box-shadow: inset 0 -2px var(--red); }
@media (max-width: 720px) { header nav { order: 1; } }

.hero .intro { font-size: clamp(1rem, 1.7vw, 1.25rem); font-weight: 500; line-height: 1.5; }

.approach .tag { color: var(--red); }

#resultado { white-space: pre-wrap; }



header nav a:not(.button) { position: relative; }
header nav a:not(.button)::after {
  content: "";
  position: absolute;
  inset: auto 0 -4px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}
header nav a:not(.button):is(:hover, :focus-visible, :active)::after {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: no-preference) {
  header nav a::after { transition: transform .22s ease-out; }
  .button, .languages a {
    transition: transform .2s ease-out, background-color .2s ease-out, box-shadow .2s ease-out;
  }
  .button:is(:hover, :focus-visible), .languages a:is(:hover, :focus-visible) {
    transform: translateY(-2px);
  }
  .button:active, .languages a:active { transform: scale(.96); }
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(520px, 47vw, 740px);
  padding: 60px 0 76px;
  overflow: hidden;
}
.hero .carousel, .hero .slide-stage, .hero .slide { position: absolute; inset: 0; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero .carousel::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #002855f2 0%, #002855c7 39%, #00285526 100%);
  pointer-events: none;
}
.hero .hero-copy { position: relative; z-index: 1; }
.hero .slide figcaption { z-index: 1; }
@media (max-width: 720px) {
  .hero { min-height: 510px; padding: 48px 0 66px; }
  .hero .carousel::after { background: linear-gradient(90deg, #002855eb, #00285580); }
  .hero h1 { font-size: min(var(--heading-size), 6.2vw); }
}

@media (min-width: 721px) {
  .approach .split {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
    column-gap: clamp(24px, 3vw, 48px);
  }
}
.approach h2 {
  font-size: min(var(--heading-size), 10.5cqi);
  white-space: nowrap;
}

textarea[name="carga"]::placeholder {
  color: #002855a6;
  font-weight: 400;
  opacity: 1;
}

.menu-toggle { display: none; }
@media (max-width: 720px) {
  header.menu-ready .menu-toggle {
    display: grid;
    place-items: center;
    order: 1;
    flex: 0 0 44px;
    height: 44px;
    padding: 0;
    color: var(--navy);
    background: transparent;
    border: 1px solid #d9dde5;
    border-radius: 4px;
    cursor: pointer;
  }
  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px currentColor, 0 6px currentColor;
  }
  header.menu-ready nav {
    order: 2;
    flex-basis: 100%;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding-block: 6px 2px;
    font-size: var(--button-size);
  }
  header.menu-ready .menu-toggle[aria-expanded="false"] + nav { display: none; }
  header.menu-ready nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--navy);
    border-radius: 4px;
    background: #fff;
    color: var(--navy);
    font-weight: 700;
    transform: none;
    box-shadow: none;
  }
  header.menu-ready nav a:is(:hover, :focus-visible, :active) {
    background: var(--navy);
    color: #fff;
  }
  header.menu-ready nav a::after { display: none; }
  header .languages { gap: 2px; margin-inline-start: auto; }
  header .languages a { width: 28px; }
  header img { width: clamp(115px, 38vw, 155px); }
  .footer-credit { font-size: clamp(.5rem, 2.35vw, .72rem); white-space: nowrap; }
  .carousel .slide img { translate: none; scale: none; }
}
@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  .scroll-reveal.is-visible { animation: cargo-mobile-reveal .36s ease-out backwards; }
  @keyframes cargo-mobile-reveal {
    from { opacity: .15; }
    to { opacity: 1; }
  }
}

@media (max-width: 720px) and (prefers-reduced-motion: no-preference) {
  header.menu-ready .menu-toggle[aria-expanded="true"] + nav {
    animation: menu-curtain .26s ease-out;
  }
  @keyframes menu-curtain {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0); }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy .scroll-reveal:nth-child(2) { animation-delay: 100ms; }
  .hero-copy .scroll-reveal:nth-child(3) { animation-delay: 200ms; }
  .hero-copy .scroll-reveal:nth-child(4) { animation-delay: 300ms; }
  #servicios article.scroll-reveal.is-visible {
    animation-duration: .36s;
    animation-delay: var(--reveal-delay, 0ms);
  }
  .carousel .slide:not([hidden]) figcaption {
    animation: cargo-caption .32s ease-out;
  }
  @keyframes cargo-caption {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
