/* Scoped to About: shared header, footer and other pages keep their styles. */
.nosotros {
  --about-blue: #1176BC;
  --about-dark: #0E4477;
  --about-yellow: #FFD937;
  --about-yellow-secondary: #FECB0E;
  --about-light-blue: #4191C9;
  color: var(--text);
}

.nosotros h1,
.nosotros h2,
.nosotros h3 {
  color: var(--navy);
}

.nosotros h1 {
  max-inline-size: 560px;
  font-size: clamp(38px, 4.8vw, 60px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2px;
}

.nosotros h2 {
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -1px;
}

.nosotros .nosotros-eyebrow {
  margin-block: 0 12px;
  color: #8A5900;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nosotros-hero {
  display: grid;
  align-items: center;
  min-block-size: 460px;
  padding-block: 56px;
  background:
    linear-gradient(90deg, #fffdf6fa 0%, #fffdf6ed 32%, #fffdf600 76%),
    url('../img/nosotros-centro-logistico.webp') center 54% / cover;
}

.nosotros-hero__copy {
  max-inline-size: 570px;
}

.nosotros-hero__copy > p:not(.nosotros-eyebrow) {
  max-inline-size: 510px;
  margin-block-start: 18px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.6;
}

.nosotros-history,
.nosotros-character {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: center;
  padding-block: 40px;
}

.nosotros-photo {
  inline-size: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  border-radius: 12px;
}

.nosotros-copy {
  min-inline-size: 0;
}

.nosotros-copy > p:not(.nosotros-eyebrow) {
  margin-block-start: 18px;
  font-size: 15px;
  line-height: 1.65;
}

.nosotros-purpose {
  padding-block: 30px;
  background: #F3F5F8;
}

.nosotros-purpose__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.nosotros-purpose__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 30px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 5px 20px #061e4005;
}

.nosotros-purpose__card p {
  font-size: 14px;
  line-height: 1.65;
}

.nosotros-purpose__icon {
  display: grid;
  place-items: center;
  inline-size: 88px;
  block-size: 88px;
  border-radius: 50%;
  color: white;
  background: var(--navy);
}

.nosotros-purpose__icon--vision {
  color: var(--about-dark);
  background: var(--about-yellow-secondary);
}

.nosotros-icon {
  display: block;
  inline-size: 46px;
  block-size: 46px;
}

.nosotros-network {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 54px;
  align-items: center;
  padding-block: 42px 14px;
}

.nosotros-network__visual {
  display: grid;
  place-items: center;
  min-inline-size: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, #F8FBFF, #FFF);
}

.nosotros-network__graphic {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 12 / 7;
  border-radius: inherit;
  object-fit: cover;
}

.nosotros-character .nosotros-photo {
  aspect-ratio: 1.6;
  object-position: 50% 35%;
}

.nosotros-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.nosotros-values li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-inline-size: 0;
  padding: 16px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.nosotros-values h3 {
  min-inline-size: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.nosotros-values__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 50%;
  color: white;
  background: var(--navy);
}

.nosotros-values__icon .nosotros-icon {
  inline-size: 25px;
  block-size: 25px;
}

.nosotros-contact {
  padding-block: 40px;
  background:
    linear-gradient(90deg, #061e40f5, #0e4477e8),
    url('../img/Carga-Martima.jpg') center / cover;
}

.nosotros-contact__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.nosotros-contact .button {
  min-inline-size: 220px;
  border-color: var(--about-yellow);
  background: var(--about-yellow);
}

.nosotros-contact .button:hover {
  background: var(--about-yellow-secondary);
}

.nosotros-contact .button--outline {
  border-color: #FFFFFFB3;
  color: white;
  background: transparent;
}

.nosotros-contact .button--outline:hover {
  background: #FFFFFF14;
}

@media (max-width: 1100px) {
  /* Keep the complete text column readable over the darker warehouse photo. */
  .nosotros-hero {
    background-image:
      linear-gradient(90deg, #fffdf6fa, #fffdf6ed 60%, #fffdf680),
      url('../img/nosotros-centro-logistico.webp');
  }

  .nosotros-purpose__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .nosotros-purpose__icon {
    inline-size: 70px;
    block-size: 70px;
  }

  .nosotros-history,
  .nosotros-character,
  .nosotros-network {
    gap: 30px;
  }
}

/* Nested cards need the full text column before the main layout stacks. */
@media (min-width: 761px) and (max-width: 900px) {
  .nosotros-values {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .nosotros-hero {
    background:
      linear-gradient(90deg, #fffdf6fa, #fffdf6e6 56%, #fffdf6b3),
      url('../img/nosotros-centro-logistico.webp') 65% center / cover;
  }

  .nosotros-history,
  .nosotros-character,
  .nosotros-network {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-block: 32px;
  }

  .nosotros-history .nosotros-photo {
    aspect-ratio: 1.9;
    object-position: 50% 25%;
  }

  .nosotros-purpose__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .nosotros-purpose__card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .nosotros-values {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .nosotros-hero {
    padding-block: 40px;
  }

  .nosotros h1 {
    letter-spacing: -1.2px;
  }

  .nosotros-purpose__card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .nosotros-contact .button {
    inline-size: 100%;
    min-inline-size: 0;
  }
}
