/*
   NOSOTROS PAGE
*/

/* Hero: text left, photo right */
.about-hero {
  background: var(--color-white);
  padding-top: 72px; /* fixed navbar height */
}

/* Text starts on the same left edge as the site container (logo, other sections);
   the photo takes all remaining width to the right edge and fills the viewport height.
   Columns are proportional so the photo never shrinks to a thin strip on mid widths */
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  column-gap: clamp(2.5rem, 5vw, 5rem);
  align-items: stretch;
  min-height: max(640px, calc(100vh - 72px));
  padding-left: max(24px, calc((100% - 1180px) / 2 + 24px));
}

.about-hero-text {
  align-self: center;
  max-width: 600px;
  padding: 4rem 0;
}

.about-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.1vw, 2.6rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-bottom: 1.25rem;
}

/* Short orange dash above the heading */
.about-hero-title::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  margin-bottom: 1.4rem;
}

.about-kicker {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.4rem;
}

.about-hero-text p {
  font-size: 1rem;
  color: var(--color-gray-700);
  line-height: 1.75;
  max-width: 60ch;
  margin-bottom: 1rem;
}

.about-hero-text strong {
  color: var(--color-primary);
}

.about-hero-img {
  position: relative;
  min-height: 360px;
  background: var(--color-gray-200) url('../assets/img/nosotros-hero.jpg') 60% 30% / cover no-repeat;
}

/* Short fade to white on the photo's left edge */
.about-hero-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0, rgba(255, 255, 255, 0.6) 12px, rgba(255, 255, 255, 0) 36px);
}

/* Bridge block */
.about-bridge {
  background: var(--color-white);
  padding: 6rem 0;
}

.about-bridge-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

.about-bridge p {
  font-size: 1.05rem;
  color: var(--color-gray-700);
  line-height: 1.75;
  max-width: 64ch;
  margin-bottom: 0.9rem;
}

/* Capabilities grid */
.about-caps {
  background: rgb(210, 104, 41);
  color: var(--color-white);
  padding: 6rem 0;
}

.about-caps-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

.about-caps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem 3.5rem;
}

.about-cap {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.1rem;
  align-items: start;
}

.about-cap-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
}

/* Source icons are black on transparent: render them white */
.about-cap-icon img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

.about-cap h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.about-cap p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

/* Closing block */
.about-close {
  background: var(--color-off-white);
  padding: 6rem 0;
  text-align: center;
}

.about-close-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 1.6rem;
}

.about-close p {
  font-size: 1.05rem;
  color: var(--color-gray-700);
  line-height: 1.75;
  max-width: 62ch;
  margin: 0 auto 0.9rem;
}

.about-close strong {
  color: var(--color-primary);
}

.about-close .btn {
  margin-top: 1.5rem;
}

/*
   RESPONSIVE
*/
/* Stack before the photo column gets too narrow to read as a photo */
@media (max-width: 1024px) {
  .about-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-left: 0;
  }

  .about-hero-text {
    max-width: none;
    padding: 3.5rem 24px;
  }

  /* Full-bleed photo below the text: no side fade, capped height, face kept in frame */
  .about-hero-img {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
    max-height: 560px;
    background-position: 55% 35%;
  }

  .about-hero-img::before {
    display: none;
  }
}

@media (max-width: 900px) {
  .about-caps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .about-hero-img {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

@media (max-width: 480px) {
  .about-hero-text {
    padding: 3rem 16px;
  }
}
