:root {
  --navy: #002a34;
  --navy-dark: #001d25;
  --red: #c74141;
  --red-dark: #a52f2f;
  --ink: #18252a;
  --muted: #647176;
  --line: #dde3e5;
  --pale: #f5f7f7;
  --white: #fff;
  --font: Arial, Helvetica, sans-serif;
  --container: 1180px;
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4.75rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.13;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.18rem;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 20;
  left: 1rem;
  top: 0;
  transform: translateY(-120%);
  padding: 0.7rem 1rem;
  background: var(--red);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.overline {
  margin-bottom: 0.75rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.overline--light {
  color: #ffbec0;
}

.section {
  padding: var(--s6) 0;
}

.section--navy {
  background: var(--navy);
}

.section--navy h2,
.section--navy p {
  color: white;
}

.section--navy p:not(.overline) {
  color: #d1dcde;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid transparent;
  font-size: 0.87rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button--red {
  background: var(--red);
  color: white;
}

.button--red:hover {
  background: var(--red-dark);
}

.button--navy {
  background: var(--navy);
  color: white;
}

.button--outline {
  border-color: #b5c1c4;
  color: var(--navy);
}

.button--outline:hover {
  background: var(--navy);
  color: white;
}

.button--white {
  background: white;
  color: var(--navy);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img {
  display: block;
  width: 142px;
}

.menu-toggle {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  gap: 4px;
  place-content: center;
  border: 0;
  background: transparent;
}

.menu-toggle span:not(.visually-hidden) {
  display: block;
  width: 1.4rem;
  height: 2px;
  background: var(--navy);
}

.site-nav {
  display: none;
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  right: 0;
  padding: 1rem;
  background: white;
  box-shadow: 0 12px 20px #001d2515;
}

.site-nav.is-open {
  display: grid;
  gap: 0.25rem;
}

.site-nav > a:not(.button) {
  padding: 0.6rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav > a:not(.button):hover,
.site-nav > a[aria-current] {
  color: var(--red);
}

.site-nav .button {
  margin-top: 0.5rem;
}

.hero {
  min-height: 35rem;
  display: flex;
  align-items: center;
  background:
    linear-gradient(
      90deg,
      rgba(0, 29, 37, 0.93) 0%,
      rgba(0, 29, 37, 0.78) 45%,
      rgba(0, 29, 37, 0.15) 100%
    ),
    url("../images/hero-logistica.jpg") center/cover;
}

.hero__content {
  padding: 5rem 0;
  max-width: var(--container);
}

.hero h1 {
  max-width: 52rem;
  color: white;
}

.hero p:not(.overline) {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  color: #e0e9eb;
  font-size: 1.08rem;
}

.service-cards {
  display: grid;
  border: 1px solid var(--line);
  gap: 1px;
  background: var(--line);
}

.service-card {
  min-height: 17rem;
  padding: 1.65rem;
  background: white;
  display: flex;
  flex-direction: column;
}

.service-card > span,
.feature-list strong {
  color: var(--red);
  font-size: 0.75rem;
}

.service-card h3 {
  margin: 2rem 0 0.6rem;
}

.service-card p {
  color: var(--muted);
}

.service-card a {
  margin-top: auto;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.service-card a:hover,
.text-link:hover {
  color: var(--red);
}

.about-home {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-home img {
  width: 100%;
  max-width: 32rem;
  justify-self: center;
}

.text-link {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.features {
  display: grid;
  gap: 2rem;
}

.feature-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.feature-list article {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-list h3 {
  margin: 0.45rem 0;
}

.feature-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.map-section {
  background: var(--pale);
}

.map-section__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.map-section__grid img {
  width: 100%;
  mix-blend-mode: multiply;
}

.testimonials {
  overflow: clip;
  background:
    radial-gradient(circle at 8% 12%, rgba(199, 65, 65, 0.07), transparent 26rem),
    white;
}

.testimonials__heading {
  max-width: 58rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.testimonials__heading .overline {
  margin-bottom: 0.65rem;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
}

.testimonials__heading h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.7vw, 4.25rem);
  line-height: 1.06;
}

.testimonials__carousel,
.testimonials__viewport {
  min-width: 0;
}

.testimonials__viewport {
  overflow: hidden;
  margin-block: -0.75rem -1.25rem;
  padding-block: 0.75rem 1.25rem;
}

.testimonials__track {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.testimonial-card {
  display: flex;
  min-width: 0;
  min-height: 24rem;
  flex: 0 0 calc((100% - 3rem) / 4);
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.35rem, 2.3vw, 2rem);
  overflow: hidden;
  border: 4px solid var(--navy);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(0, 42, 52, 0.08);
  outline: none;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.testimonial-card:is(:hover, :focus-visible) {
  transform: translateY(-0.35rem);
  background: #f5f9fa;
  box-shadow: 0 22px 44px rgba(0, 42, 52, 0.16);
}

.testimonial-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: -9px;
}

.testimonial-card blockquote {
  margin: 0;
}

.testimonial-card blockquote p {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  font-weight: 700;
  line-height: 1.58;
}

.testimonial-card footer {
  display: grid;
  gap: 0.25rem;
  margin-top: 2rem;
  padding-top: 1.15rem;
  border-top: 2px solid rgba(0, 42, 52, 0.2);
}

.testimonial-card footer strong {
  color: var(--red);
  font-size: 1.05rem;
}

.testimonial-card footer span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.testimonials__controls {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.testimonials__control {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font: inherit;
  font-size: 1.35rem;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.testimonials__control:hover {
  border-color: var(--red);
  background: var(--red);
  transform: translateY(-2px);
}

.testimonials__control:focus-visible {
  outline: 3px solid rgba(199, 65, 65, 0.3);
  outline-offset: 3px;
}

.testimonials__control:disabled {
  border-color: var(--line);
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
}

.testimonials__status {
  min-width: 5.5rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 1099px) {
  .testimonial-card {
    min-height: 22rem;
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 699px) {
  .testimonials__heading h2 {
    font-size: clamp(2.15rem, 10.5vw, 3.15rem);
  }

  .testimonial-card {
    min-height: 21rem;
    flex-basis: 100%;
  }

  .testimonials__controls {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials__track,
  .testimonial-card,
  .testimonials__control {
    transition: none;
  }

  .testimonial-card:is(:hover, :focus-visible) {
    transform: none;
  }
}

.cta {
  padding: 4rem 0;
  background:
    linear-gradient(#002a34d9, #002a34d9),
    url("../images/cta.jpg") center/cover;
}

.cta__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.cta h2 {
  margin: 0;
  color: white;
}

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(0, 29, 37, 0.58), rgba(0, 29, 37, 0.7)),
    url("../../Elementos imagenes/Elementos imagenes/footer-bg.jpg") center /
      cover no-repeat;
  color: #c8d5d7;
  font-family: Arial, Helvetica, sans-serif;
}

.site-footer::before {
  position: absolute;
  inset: 0 3vw 2.125rem;
  content: "";
  border-right: 1px solid rgba(200, 213, 215, 0.15);
  border-left: 1px solid rgba(200, 213, 215, 0.15);
  background: rgba(0, 20, 26, 0.6);
  backdrop-filter: blur(10px);
}

.footer-grid {
  position: relative;
  display: grid;
  width: min(calc(100% - 2rem), 1128px);
  gap: 2.75rem;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3.25rem, 6vw, 5rem);
}

.footer-brands {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 1.25rem;
}

.footer-brands a {
  display: inline-flex;
  margin: 0;
}

.footer-brands img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.footer-brands img.footer-brands__antiova {
  width: 10.94rem;
}

.footer-brands img.footer-brands__sap {
  width: 9.31rem;
}

.footer-brands img.footer-brands__logistics {
  width: 10.25rem;
}

.footer-brands img.footer-brands__cadux {
  width: 10.13rem;
  margin-top: 1.125rem;
}

.footer-grid h2 {
  margin-bottom: 1.45rem;
  color: white;
  font-family: "Arial Rounded MT Bold", Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: none;
}

.footer-grid h3 {
  margin: 0 0 0.55rem;
  color: white;
  font-size: 1.03rem;
}

.footer-contact h3:last-of-type {
  margin-bottom: 0.38rem;
}

.footer-contact address {
  margin: 0 0 1.2rem;
  font-size: 1.03rem;
  font-style: normal;
  line-height: 1.75;
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin: 0;
  text-decoration: none;
  font-size: 1.03rem;
}

.footer-grid a:hover {
  text-decoration: underline;
  color: white;
}

.footer-contact p {
  margin-bottom: 1.25rem;
  font-size: 1.03rem;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.68rem;
}

.footer-links a {
  position: relative;
  padding-left: 1.25rem;
}

.footer-links a::before {
  position: absolute;
  left: 0;
  content: "»";
  color: white;
  font-size: 1.2em;
  font-weight: 700;
  line-height: 1.25;
}

.footer-bottom {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(200, 213, 215, 0.25);
  font-size: 1.07rem;
}

.footer-bottom > span,
.footer-bottom > a {
  display: flex;
  min-height: 4.3125rem;
  align-items: center;
}

.footer-bottom a {
  width: auto;
  text-decoration: none;
}

.footer-bottom [data-year] {
  display: inline;
  min-height: 0;
}

.footer-back-to-top {
  position: absolute;
  z-index: 2;
  right: calc(3vw - 0.2rem);
  bottom: 1rem;
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  place-items: center;
  border: 2px solid white;
  border-radius: 50%;
  background: #e20d2d;
  box-shadow: 0 0 0 2px #e20d2d;
  color: white;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.footer-back-to-top:hover {
  background: #bd0822;
  box-shadow: 0 0 0 2px #bd0822;
}

@media (min-width: 560px) {
  .footer-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom a {
    justify-content: center;
    border-left: 1px solid rgba(200, 213, 215, 0.25);
  }
}

.page-hero {
  padding: 5rem 0 4rem;
  background:
    linear-gradient(90deg, #002a34e6, #002a34a6),
    url("../images/hero-logistica.jpg") center/cover;
}

.page-hero h1,
.page-hero p {
  color: white;
}

.page-hero h1 {
  margin: 0;
  max-width: 55rem;
}

.page-hero p {
  margin: 0.7rem 0 0;
  color: #dbe6e8;
}

.page-hero--plain {
  background: var(--navy);
}

.content-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.content-grid p {
  color: var(--muted);
}

.content-grid img {
  width: 100%;
}

.detail-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-list article {
  padding: 1.3rem;
  background: white;
}

.detail-list h3 {
  margin-bottom: 0.45rem;
}

.detail-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.split-title {
  margin-bottom: 2rem;
}

.split-title p {
  color: var(--muted);
}

.sector-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.sector-grid article {
  display: flex;
  min-height: 8rem;
  align-items: end;
  padding: 1.2rem;
  background: white;
}

.sector-grid h2 {
  margin: 0;
  font-size: 1.35rem;
}

.project {
  display: grid;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.project p {
  color: var(--muted);
}

.contact-layout {
  display: grid;
  gap: 2rem;
}

.contact-data {
  background: var(--navy);
  padding: 2rem;
  color: white;
}

.contact-data h2 {
  color: white;
}

.contact-data a {
  display: block;
  margin: 1rem 0;
  text-decoration: none;
}

.contact-form {
  padding: 1.5rem;
  background: var(--pale);
}

.contact-section .contact-form {
  max-width: 60rem;
  margin-inline: auto;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.87rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #aab9bd;
  background: white;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--red);
}

.error {
  min-height: 1.2rem;
  margin: 0.25rem 0 0;
  color: #a52f2f;
  font-size: 0.78rem;
}

.consent {
  display: flex;
  gap: 0.6rem;
  margin: 1rem 0;
  font-size: 0.85rem;
}

.form-status {
  min-height: 1.5rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-status.success {
  color: #117046;
}

.legal {
  max-width: 54rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.5rem;
}

.legal p,
.legal li {
  color: var(--muted);
}

@media (min-width: 1050px) {
  .site-header__inner {
    min-height: 5.25rem;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0;
    box-shadow: none;
  }

  .site-nav .button {
    margin: 0 0 0 0.5rem;
  }
}

@media (min-width: 700px) {
  .service-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-home {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .features {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

  .feature-list {
    grid-template-columns: 1fr 1fr;
  }

  .feature-list article:nth-child(odd) {
    border-right: 1px solid var(--line);
    padding-right: 1.5rem;
  }

  .feature-list article:nth-child(even) {
    padding-left: 1.5rem;
  }

  .map-section__grid {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .cta__inner {
    grid-template-columns: 1fr auto;
  }

  .footer-grid {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .content-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .detail-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .sector-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project {
    grid-template-columns: 0.35fr 0.65fr;
  }

  .contact-layout {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field--full {
    grid-column: 1/-1;
  }

  .contact-form {
    padding: 2rem;
  }
}

@media (min-width: 1050px) {
  .detail-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

/* Slider principal */
.hero {
  position: relative;
  isolation: isolate;
  min-height: max(43rem, 82vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slides {
  z-index: 0;
}

.hero__slide {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
  transition:
    opacity 0.7s ease,
    transform 6s linear;
}

.hero__slide::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: rgba(0, 42, 52, 0.3);
}

.hero__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__slide-copy {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(calc(100% - 2rem), var(--container));
  height: 100%;
  padding-right: 15rem;
  transform: translateX(-50%);
}

.hero__slide-copy h3 {
  position: absolute;
  top: 50%;
  left: 0;
  max-width: 52rem;
  margin: 0;
  color: white;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  letter-spacing: -0.055em;
  line-height: 1.13;
  transform: translateY(-50%);
}

.hero__slide-copy h3 + h3 {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  letter-spacing: -0.025em;
}

.hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero__experience {
  position: absolute;
  right: 0;
  bottom: 4.5rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 13rem;
  padding: 1.15rem 1.35rem;
  background: var(--red);
  color: white;
}

.hero__counter {
  font-size: clamp(3.25rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.07em;
}

.hero__experience-text {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero__controls {
  position: absolute;
  z-index: 2;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__control,
.hero__dots button {
  border: 0;
  background: transparent;
  color: white;
}

.hero__control {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #ffffff80;
  font-size: 1.15rem;
  line-height: 1;
}

.hero__control:hover {
  background: white;
  color: var(--navy);
}

.hero__dots {
  display: flex;
  gap: 0.55rem;
}

.hero__dots button {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 1px solid white;
  border-radius: 50%;
  opacity: 0.75;
}

.hero__dots button.is-active {
  background: white;
  opacity: 1;
}

@media (max-width: 699px) {
  .hero {
    min-height: 42rem;
    min-height: 86svh;
  }

  .hero__slide-copy {
    padding-right: 0;
    padding-bottom: 9rem;
  }

  .hero__experience {
    right: 1rem;
    bottom: 4.5rem;
    min-width: 0;
    padding: 1rem;
  }

  .hero__counter {
    font-size: 3.65rem;
  }

  .hero__experience-text {
    font-size: 0.68rem;
  }

  .hero__control {
    width: 2rem;
    height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
    transform: none;
  }
}

/* Navegación desplegable de servicios */
.nav-dropdown {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.nav-dropdown > a {
  padding: 0.6rem 0.7rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-dropdown > a:hover,
.nav-dropdown > a[aria-current],
.nav-dropdown > a.is-current-parent {
  color: var(--red);
}

.nav-dropdown__toggle {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 0.8rem;
  cursor: pointer;
}

.nav-dropdown__toggle span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown__toggle span {
  transform: rotate(180deg);
}

.nav-submenu {
  display: none;
  grid-column: 1 / -1;
  padding: 0.35rem;
  background: var(--pale);
}

.nav-dropdown.is-open .nav-submenu {
  display: grid;
}

.nav-submenu a {
  padding: 0.7rem 0.85rem;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-submenu a:hover,
.nav-submenu a[aria-current] {
  background: white;
  color: var(--red);
}

/* Tarjetas de servicios */
.service-cards {
  grid-template-columns: repeat(3, minmax(0, 360px));
  justify-content: center;
  gap: 1.5rem;
  border: 0;
  background: transparent;
}

.service-card {
  width: 100%;
  max-width: 360px;
  height: 360px;
  min-height: 360px;
  justify-self: center;
  padding: 1.65rem;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.68),
    rgba(201, 219, 224, 0.34)
  );
  box-shadow: 0 14px 32px rgba(0, 42, 52, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  color: #19353d;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background-color 0.25s ease;
}

.service-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.55),
    transparent 38%,
    rgba(255, 255, 255, 0.18)
  );
}

.service-card:hover,
.service-card:focus-visible {
  border-color: #eb1026;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.78),
    rgba(218, 231, 234, 0.45)
  );
  box-shadow: 0 18px 36px rgba(0, 42, 52, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform: translateY(-5px);
}

.service-card img {
  position: relative;
  z-index: 1;
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.service-card:hover img,
.service-card:focus-visible img {
  transform: rotate(360deg);
}

.service-card h3 {
  position: relative;
  z-index: 1;
  margin: 1.15rem 0 0.65rem;
  color: #19353d;
  font-size: 1.35rem;
}

.service-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #45616a;
  font-size: 0.84rem;
  line-height: 1.5;
}

.institutional-video-section {
  padding-top: var(--s6);
}

.institutional-video {
  width: 100%;
  max-width: 74rem;
  margin: auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(93, 114, 122, 0.2);
  border-radius: 1.25rem;
  background: var(--navy-dark);
  box-shadow: 0 18px 40px rgba(0, 42, 52, 0.16);
}

.institutional-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-marquee {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-block: 1px solid #33525a;
  background: var(--navy);
  color: white;
}

.about-marquee__viewport {
  width: 100%;
  overflow: hidden;
}

.about-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.about-marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.5rem);
  min-width: max-content;
  padding: clamp(1.2rem, 2.6vw, 2rem) clamp(1.5rem, 3vw, 3.5rem);
}

.about-marquee__group span {
  color: white;
  font-size: clamp(1.45rem, 3.2vw, 3.3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.about-marquee__group img {
  flex: none;
  width: clamp(2.4rem, 4vw, 4rem);
  height: auto;
  transform-origin: center;
  will-change: transform;
}

/* Sección ¿Por qué elegirnos? */
.why-us {
  padding-top: 0;
}

.why-us__shell {
  overflow: hidden;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border: 1px solid rgba(93, 114, 122, 0.35);
  border-radius: 2rem;
  background:
    radial-gradient(
      circle at 85% 5%,
      rgba(199, 65, 65, 0.08),
      transparent 24rem
    ),
    linear-gradient(145deg, rgba(245, 247, 247, 0.95), white);
}

.why-us__heading {
  max-width: 48rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.why-us__heading .overline {
  margin-bottom: 0.65rem;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  line-height: 1.35;
}

.why-us__heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.05;
}

.why-us__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1.15rem;
  min-width: 0;
}

.why-us__card {
  display: grid;
  grid-template-rows: 9.5rem 1px minmax(0, 1fr);
  min-width: 0;
  min-height: 34rem;
  overflow: hidden;
  border: 1px solid rgba(93, 114, 122, 0.28);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 13px 28px rgba(0, 42, 52, 0.08);
}

.why-us__card-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-content: start;
  padding: 1.35rem 1.2rem;
}

.why-us__number {
  display: inline-grid;
  align-self: start;
  min-width: 3rem;
  min-height: 3rem;
  place-items: center;
  padding: 0.35rem;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.why-us__card-copy p {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 700;
  line-height: 1.48;
}

.why-us__divider {
  margin: 0 1.2rem;
  background: rgba(93, 114, 122, 0.35);
}

.why-us__image-wrap {
  min-width: 0;
  min-height: 0;
  margin: 0.85rem;
  overflow: hidden;
  border-radius: 0.95rem;
  background: var(--pale);
}

.why-us__image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  will-change: clip-path, transform;
}

@media (max-width: 1099px) {
  .why-us__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-us__card {
    grid-template-rows: 10.5rem 1px minmax(0, 1fr);
    min-height: 30rem;
  }
}

@media (max-width: 599px) {
  .why-us__shell {
    padding: 1.15rem;
    border-radius: 1.4rem;
  }

  .why-us__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .why-us__card {
    grid-template-rows: 10rem 1px minmax(0, 1fr);
    min-height: 28rem;
  }

  .why-us__card-copy {
    padding: 1.1rem;
  }

  .why-us__divider {
    margin: 0 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-us__image-wrap img {
    will-change: auto;
  }

  .about-marquee__track {
    width: 100%;
    transform: none !important;
  }

  .about-marquee__group {
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-marquee__group[aria-hidden="true"] {
    display: none;
  }

  .about-marquee__group img {
    transform: none !important;
  }
}

.hero__slide-copy--intro h3 {
  max-width: 42rem;
  font-size: clamp(1.35rem, 2.7vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.hero__slide-action {
  position: absolute;
  bottom: 9rem;
  left: 0;
  min-height: 4.15rem;
  padding: 1.05rem 2.2rem;
  font-size: 1.05rem;
}

@media (max-width: 1179px) {
  .service-cards {
    grid-template-columns: repeat(2, minmax(0, 360px));
  }
}

@media (max-width: 779px) {
  .service-cards {
    grid-template-columns: minmax(0, 360px);
  }
}

@media (min-width: 1050px) {
  .nav-dropdown {
    display: flex;
  }

  .nav-dropdown__toggle {
    width: 1.8rem;
  }

  .nav-submenu {
    position: absolute;
    z-index: 40;
    top: 100%;
    left: 0;
    min-width: 15rem;
    padding: 0.45rem;
    background: white;
    border: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(0, 29, 37, 0.16);
  }

  .nav-dropdown.is-open .nav-submenu {
    display: grid;
  }
}

@media (max-width: 699px) {
  .hero__slide-copy--intro h3 {
    font-size: clamp(1.2rem, 5.25vw, 1.6rem);
  }

  .hero__slide-copy {
    padding-bottom: 0;
  }

  .hero__slide-action {
    bottom: 8rem;
    min-height: 3.35rem;
    padding: 0.85rem 1.55rem;
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card img,
  .nav-dropdown__toggle span {
    transition: none;
  }
}

/* Barrido GSAP compartido */
.gsap-reveal {
  overflow: hidden;
}

.gsap-reveal__inner {
  will-change: clip-path, transform;
}

.has-js .gsap-reveal__inner {
  visibility: hidden;
  clip-path: inset(0 100% 0 0);
  transform: translateX(-1.25rem);
}

/* Página Gestión Aduanal */
.customs-page {
  overflow-x: clip;
}

.customs-page-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(20rem, 38vw, 30rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background: var(--navy-dark);
}

.customs-page-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #001d25d9 0%, #002a3473 52%, #001d251a 100%);
}

.customs-page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 52% center;
}

.customs-page-hero__content {
  position: relative;
  z-index: 2;
}

.customs-page-hero__content h1 {
  max-width: 42rem;
}

.customs-overview {
  padding-top: clamp(3rem, 6vw, 5.5rem);
}

.customs-brand {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(2.75rem, 6vw, 5rem);
}

.customs-brand img {
  display: block;
  width: min(100%, 40rem);
  height: auto;
}

.customs-heading {
  width: fit-content;
  max-width: 100%;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.customs-heading .overline,
.customs-heading h2 {
  margin-inline: 0;
}

.customs-heading h2 {
  margin-bottom: 0;
}

.customs-service-list article {
  min-width: 0;
}

.customs-service-list article:last-child {
  grid-column: 1 / -1;
}

.customs-service-list h3 {
  overflow-wrap: anywhere;
}

.customs-service-list ul {
  margin: 1.1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.customs-service-list li + li {
  margin-top: 0.35rem;
}

@media (min-width: 700px) and (max-width: 1049px) {
  .customs-service-list article:nth-child(5) {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1050px) {
  .customs-service-list article:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 699px) {
  .customs-page-hero__image {
    object-position: 15% center;
  }

  .customs-page-hero::after {
    background: linear-gradient(90deg, #001d25d9 0%, #002a347a 72%, #001d2526 100%);
  }

  .customs-service-list article:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .gsap-reveal__inner {
    visibility: visible;
    clip-path: none;
    transform: none;
  }
}

/* Página Nosotros */
.about-page-hero {
  height: clamp(17rem, 31vw, 32rem);
  overflow: hidden;
  background: var(--navy-dark);
}

.about-page-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  border-top: 4px solid #202a2e;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(93, 114, 122, 0.055) 46% 47%, transparent 47% 100%)
      left bottom / 22rem 22rem no-repeat,
    white;
}

.about-showcase__container {
  width: min(calc(100% - 2rem), 1380px);
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(32rem, 1.02fr);
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}

.about-showcase__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  color: #eb1026;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.about-showcase__eyebrow::before,
.about-showcase__eyebrow::after {
  width: 0.5rem;
  height: 0.5rem;
  content: "";
  background: #eb1026;
}

.about-showcase__eyebrow::after {
  width: 1.25rem;
  height: 2px;
}

.about-showcase h1 {
  margin-bottom: 1.5rem;
  color: #11181b;
  font-size: clamp(2.5rem, 4.3vw, 4.25rem);
  letter-spacing: -0.055em;
}

.about-showcase__copy {
  max-width: 45rem;
}

.about-showcase__copy p {
  margin-bottom: 0.65rem;
  color: #5d6c71;
  font-size: clamp(0.92rem, 1.15vw, 1.05rem);
  font-weight: 600;
  line-height: 1.45;
}

.about-showcase__values {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(12rem, 0.85fr);
  gap: 2rem;
  align-items: center;
  margin: clamp(2.1rem, 4vw, 3.5rem) 0 2.5rem;
}

.about-showcase__commitment {
  position: relative;
  margin: 0;
  padding-left: 1.75rem;
  color: #11181b;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.75;
}

.about-showcase__commitment::before {
  position: absolute;
  top: 0.25rem;
  left: 0;
  display: grid;
  width: 1.15rem;
  height: 1.15rem;
  content: "✓";
  place-items: center;
  border-radius: 50%;
  background: #eb1026;
  color: white;
  font-size: 0.72rem;
  line-height: 1;
}

.about-showcase__value {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-showcase__value img {
  width: 4.25rem;
  height: 4.25rem;
  object-fit: contain;
}

.about-showcase__value h2 {
  margin: 0;
  color: #11181b;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -0.035em;
}

.about-showcase__button {
  display: inline-flex;
  min-width: 16.5rem;
  min-height: 3.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.85rem 1.6rem;
  background: #eb1026;
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.about-showcase__button:hover {
  background: #c90c1f;
  transform: translateY(-2px);
}

.about-showcase__media {
  position: relative;
  min-height: 610px;
}

.about-showcase__image {
  position: absolute;
  z-index: 1;
  display: block;
  object-fit: cover;
}

.about-showcase__image--top {
  top: 0;
  right: 0;
  width: 100%;
  height: 52%;
}

.about-showcase__image--bottom {
  bottom: 1.5rem;
  left: 0;
  width: 69%;
  height: 38%;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}

.about-showcase__panel {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 26%;
  height: 55%;
  background:
    linear-gradient(90deg, transparent 0 91%, rgba(255, 255, 255, 0.11) 91% 92%, transparent 92%)
      0 0 / 2rem 100%,
    #075667;
}

.about-showcase__experience {
  position: absolute;
  z-index: 3;
  top: 3.5rem;
  right: -1rem;
  display: grid;
  width: 11rem;
  min-height: 10.5rem;
  place-content: center;
  padding: 1.25rem;
  background: #eb1026;
  color: white;
  text-align: center;
}

.about-showcase__experience strong {
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.06em;
}

.about-showcase__experience span {
  margin-top: 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

@media (max-width: 1099px) {
  .about-showcase__container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .about-showcase__content {
    max-width: 50rem;
  }

  .about-showcase__media {
    width: min(100%, 50rem);
    min-height: 600px;
    margin: auto;
  }
}

@media (max-width: 649px) {
  .about-showcase {
    padding: 3rem 0 4rem;
  }

  .about-showcase__container {
    gap: 2.75rem;
  }

  .about-showcase__values {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .about-showcase__button {
    width: 100%;
    min-width: 0;
  }

  .about-showcase__media {
    min-height: 31rem;
  }

  .about-showcase__image--top {
    width: 100%;
    height: 52%;
  }

  .about-showcase__image--bottom {
    bottom: 0;
    width: 82%;
    height: 36%;
  }

  .about-showcase__panel {
    width: 28%;
    height: 53%;
  }

  .about-showcase__experience {
    top: 7.5rem;
    right: 0;
    width: 8.25rem;
    min-height: 8rem;
    padding: 0.85rem;
  }

  .about-showcase__experience strong {
    font-size: 2.65rem;
  }

  .about-showcase__experience span {
    margin-top: 0.45rem;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-showcase__button {
    transition: none;
  }
}

@media (min-width: 1000px) {
  .site-footer {
    min-height: 38.875rem;
  }

  .footer-grid {
    grid-template-columns:
      10.9375rem 17.1875rem 10.625rem
      minmax(0, 1fr);
    min-height: 32.4375rem;
    gap: 6.3125rem;
    padding: 5.5rem 0 4rem;
  }

  .footer-brands {
    margin-top: -0.25rem;
  }

  .footer-bottom {
    width: calc(100% - 6vw);
    max-width: none;
  }

  .footer-bottom > span {
    padding-left: max(1rem, calc((100vw - 1128px) / 2 - 3vw));
  }
}

@media (max-width: 559px) {
  .footer-bottom {
    padding-right: 3.75rem;
  }

  .footer-bottom a {
    min-height: 3.25rem;
  }
}
