/* ============================================================
   NOSOTROS PAGE (nosotros.html) — page-specific layout
   Load AFTER styles/main.css and styles/home.css. Reuses the
   navbar, footer, .section, .section-head, .cta and button
   helpers; this file only carries the nosotros-specific blocks.
   Consumes design tokens only; no raw hex/px values except
   layout-only aspect ratios. Mobile breakpoint: 768px.
   ============================================================ */

/* ============================================================
   MOBILE NAVBAR — this page has no hero photo, so the transparent
   .hero__nav exists only to carry the shared mobile bar + hamburger
   menu (styled in home.css under <=768px). Hide it on desktop, where
   the solid navbar is used instead.
   ============================================================ */
@media (min-width: 769px) {
  .hero__nav { display: none; }
}

/* ============================================================
   HERO INTRO — text column on the left, landscape portrait on
   the right. No transparent navbar over a photo here; the solid
   navbar sits above and the image fills its column height.
   ============================================================ */
.hero-intro {
  display: grid;
  grid-template-columns: minmax(0, 430fr) minmax(0, 771fr);
  gap: calc(var(--space-24) * 2);
  align-items: stretch;
}

/* Text block vertically centered against the taller image */
.hero-intro__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 48ch;
}
.hero-intro__body > * + * { margin-top: var(--space-16); }

.hero-intro__eyebrow {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-book);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-intro__title {
  font-size: var(--font-size-headline-1);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
}

.hero-intro__lead { color: var(--color-text-muted); }

/* Image stretches to match the text column's height, cropped */
.hero-intro__media { align-self: stretch; }
.hero-intro__media-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 771 / 500;      /* matches placehold.co/771x500 */
  object-fit: cover;
  background-color: var(--color-grey-light);
}

/* ============================================================
   NUESTRO EQUIPO — label + hairline (reuses .section-head),
   then a 4-column grid of member cards: portrait, name, bio
   and a "Ver portafolio" underlined link.
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--space-24);
  row-gap: calc(var(--space-24) * 2);
}

.team-card__media {
  aspect-ratio: 278 / 417;      /* matches placehold.co/278x417 */
  overflow: hidden;
  margin-bottom: var(--space-16);
  background-color: var(--color-grey-light);
}
.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.team-card:hover .team-card__media img { transform: scale(1.05); }

.team-card__name {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-book);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.team-card__bio {
  color: var(--color-text-muted);
  margin-bottom: var(--space-16);
}

/* ============================================================
   RESPONSIVE  (<= 1024px / <= 768px / <= 520px)
   ============================================================ */
@media (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Mobile navbar: like the servicios page, this bar sits over a light
     surface (no dark photo hero), so the shared white logo + white
     hamburger would be invisible. Give the bar a solid white surface and
     flip the marks to dark. The open-menu overlay is still handled by
     home.css. */
  body:not(.is-menu-open) .hero__nav {
    background-color: var(--color-grey-light);
  }
  body:not(.is-menu-open) .hero__nav .navbar__brand { mix-blend-mode: normal; }
  body:not(.is-menu-open) .hero__nav .logo-img { filter: invert(1); }
  body:not(.is-menu-open) .nav-toggle__bar { background-color: var(--color-black); }

  .nosotros_section { padding-top: var(--space-100) !important; padding-bottom: var(--space-100) !important; padding-left: var(--space-24); padding-right: var(--space-24); }
  .nosotros_section {  }
  .nosotros_container { padding-left: 0 !important; }

  /* Hero: image on top, text below */
  .hero-intro {
    display: flex; 
    flex-direction: column-reverse;
    gap: var(--space-24);
  }
  .hero-intro__media { order: -1; }
  .hero-intro__body { max-width: none;  }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card__name { font-size: 14px; text-transform: uppercase; }
  .team-card__bio { color: var(--color-black);}
  .nosotros_cta_title { text-align: center; text-transform: uppercase; }
  .nosotros_cta_title br { display: none;}
  .nosotros_cta_btn { color: var(--color-black); background-color: transparent; border: 1px solid var(--color-black); padding: var(--space-8) var(--space-16); border-radius: 4px; text-decoration: none; text-transform: uppercase; width: fit-content; margin: auto; }
}
