:root {
  --navy: #003643;
  --navy-2: #06252f;
  --teal: #0f8288;
  --steel: #65747a;
  --concrete: #eef2f1;
  --line: #d9e1df;
  --white: #ffffff;
  --safety: #e6b640;
  --shadow: 0 22px 60px rgba(0, 37, 48, 0.18);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy-2);
  background: var(--white);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  box-shadow: 0 8px 28px rgba(0, 37, 48, 0.12);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 158px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.92);
}

.brand img {
  width: 100%;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--safety);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--navy);
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 132px clamp(20px, 6vw, 76px) 90px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-portuario.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  will-change: transform;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 34, 43, 0.94) 0%, rgba(0, 42, 52, 0.76) 42%, rgba(0, 42, 52, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 26, 32, 0.62), rgba(0, 26, 32, 0.05));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: heroRise 0.9s ease-out both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--safety);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 10vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: 0;
  color: var(--navy);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: var(--navy);
}

p {
  line-height: 1.65;
  color: var(--steel);
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: var(--safety);
  color: var(--navy-2);
  box-shadow: 0 12px 24px rgba(230, 182, 64, 0.22);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button:hover {
  transform: translateY(-2px);
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 74px);
  bottom: 28px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  max-width: 640px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
  box-shadow: var(--shadow);
  animation: panelIn 0.75s ease-out 0.25s both;
}

.hero-panel span {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-panel span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(70px, 9vw, 118px) clamp(20px, 6vw, 76px);
  scroll-margin-top: 92px;
}

.section-heading {
  max-width: 880px;
  margin-bottom: 42px;
}

.intro-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article {
  padding: 30px;
  border-left: 4px solid var(--teal);
  background: var(--concrete);
}

.intro-grid article,
.service-card,
.value,
.steps div,
.contact-form,
.operation-copy,
.operation-image {
  transition: opacity 0.65s ease, transform 0.65s ease, box-shadow 0.25s ease;
}

.reveal-ready .intro-grid article,
.reveal-ready .service-card,
.reveal-ready .value,
.reveal-ready .steps div,
.reveal-ready .contact-form,
.reveal-ready .operation-copy,
.reveal-ready .operation-image {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-ready .is-visible {
  opacity: 1;
  transform: translateY(0);
}

.values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.value {
  min-height: 170px;
  padding: 30px;
  background: var(--navy);
  color: var(--white);
}

.value strong {
  display: block;
  margin-bottom: 30px;
  color: var(--safety);
  font-size: 0.84rem;
}

.value span {
  display: block;
  font-size: 1.02rem;
  line-height: 1.45;
}

.services {
  background: #f8faf9;
}

.service-card {
  min-height: 252px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 54, 67, 0.12);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  background: var(--concrete);
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
}

.service-card.featured {
  background: var(--navy);
}

.service-card.featured h3,
.service-card.featured p {
  color: var(--white);
}

.service-card.featured .icon {
  background: var(--safety);
  color: var(--navy);
}

.operation {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  background: linear-gradient(180deg, #f8faf9 0%, var(--white) 100%);
}

.operation-image {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.operation-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(0, 37, 48, 0.42), rgba(0, 37, 48, 0));
  pointer-events: none;
}

.operation-image img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.operation-image:hover img {
  transform: scale(1.035);
}

.operation-copy {
  max-width: 620px;
}

.operation-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.operation-list span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 16px;
  background: var(--concrete);
  color: var(--navy);
  font-weight: 900;
}

.operation-list span::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  background: var(--safety);
}

.method {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
  background: var(--white);
}

.method-copy {
  max-width: 780px;
}

.steps {
  display: grid;
  gap: 12px;
}

.steps div {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 18px 22px;
  background: var(--concrete);
  color: var(--navy);
  font-weight: 900;
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background: var(--teal);
  color: var(--white);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 78px);
  background: var(--navy-2);
}

.contact h2,
.contact h3 {
  color: var(--white);
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #f8faf9;
  padding: 14px 14px;
  color: var(--navy-2);
  font: inherit;
  font-weight: 500;
}

textarea {
  resize: vertical;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 6vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--steel);
}

.footer img {
  width: 130px;
}

.footer p,
.footer span {
  margin: 0;
  font-size: 0.9rem;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--white);
    color: var(--navy);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 16px;
  }

  .hero {
    min-height: 860px;
    align-items: start;
  }

  .hero-panel {
    left: 20px;
    right: 20px;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-panel span {
    border-bottom: 1px solid var(--line);
  }

  .intro-grid,
  .service-grid,
  .values,
  .operation,
  .method,
  .contact {
    grid-template-columns: 1fr;
  }

  .operation-image,
  .operation-image img {
    min-height: 330px;
  }
}

@media (max-width: 560px) {
  .brand {
    width: 132px;
  }

  .hero {
    min-height: 820px;
    padding-top: 116px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel span {
    padding: 14px 16px;
  }

  .intro-grid article,
  .service-card,
  .contact-form,
  .value {
    padding: 22px;
  }

  .operation-image,
  .operation-image img {
    min-height: 260px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .intro-grid article,
  .service-card,
  .value,
  .steps div,
  .contact-form,
  .operation-copy,
  .operation-image {
    opacity: 1;
    transform: none;
  }
}
