/* Alemán Por Derecho: "Nosotros" page-only rules. Layout from the Boundless /why template (oat hero, history slider, values, team grid).
   Anything marked "candidate shared token" is defined here only because it is not in tokens.css yet. No italics. */

/* candidate shared token: spacing scale used by the template sections, plus section-heading size */
.page-nosotros {
  --space-5: 1.25rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-15: 3.75rem;
  --space-20: 5rem;
  --space-25: 6.25rem;
  --measure-history-copy: 26rem;     /* candidate shared token */
  --measure-values-title: 40rem;     /* candidate shared token */
  --fs-h2: clamp(2rem, 4.2vw, 3.5rem); /* candidate shared token */
  --size-team-tile: 15rem;           /* candidate shared token */
}

/* candidate shared token: .t-h2 (serif section heading) and the on-dark eyebrow */
.page-nosotros .t-h2 { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 400; font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.01em; font-style: normal; }
.page-nosotros .eyebrow--on-dark { color: var(--obsidian); border-color: var(--oat-300); }
.page-nosotros .values__title { max-width: var(--measure-values-title); }

/* hero: oat, narrow lead, no image */
.page-nosotros .page-hero .t-h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 1.06; text-wrap: balance; max-width: 62rem; }
.page-nosotros .page-hero__copy-wrap { padding-bottom: 6.25rem; }
.page-nosotros .page-hero__lead { max-width: 32rem; font-size: 1.25rem; line-height: 1.4; }
@media screen and (max-width: 767px) { .page-nosotros .page-hero__copy-wrap { padding-bottom: 2.5rem; } }

/* ---------- history slider ---------- */
.history { background: var(--oat-50); color: var(--obsidian); overflow: hidden; }
.history__pad { padding-top: var(--space-25); padding-bottom: var(--space-25); }
.history__stack { display: flex; flex-direction: column; gap: var(--space-8); }
.history .section-head { margin-bottom: 0; gap: 1.5rem; }
.history__slider { position: relative; }
.history__slider .swiper { overflow: hidden; }
.history__slide { display: grid; grid-template-columns: 1fr 1fr; height: 100%; }
.history__media { aspect-ratio: 1 / 1; border-radius: var(--r-14); overflow: hidden; background: var(--oat-100); }
.history__media img { width: 100%; height: 100%; object-fit: cover; }
.history__side { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: var(--space-15) 0 var(--space-15) var(--space-20); }
.history__copy { display: flex; flex-direction: column; gap: var(--space-8); max-width: var(--measure-history-copy); }
.history__year { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 400; font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.01em; font-style: normal; }
.history__text { font-size: 1.25rem; line-height: 1.5; }
.history__controls { position: absolute; right: 0; bottom: var(--space-15); z-index: 5; }

/* ---------- who we serve ---------- */
.serve__top { padding-top: var(--space-25); padding-bottom: var(--space-10); }
.serve .section-head { margin-bottom: 0; }

/* ---------- values ---------- */
.values { background: var(--sky-light); }
.values__pad { padding-top: var(--space-25); padding-bottom: var(--space-25); }
.values__stack { display: flex; flex-direction: column; gap: var(--space-15); }
.values .section-head, .team .section-head, .notus .section-head { margin-bottom: 0; gap: 1.5rem; }
.values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.values__item { display: flex; flex-direction: column; gap: var(--space-5); border-left: 1px solid var(--oat-300); padding: var(--space-8) var(--space-10); }
.values__icon { width: 3rem; height: 3rem; display: flex; }
.values__icon svg { width: 100%; height: 100%; }
.values__item .t-sh2 { align-self: flex-start; padding-top: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; line-height: 1.15; }
.values__item .t-sh2 strong { font-weight: 500; }
.values__body { font-size: 1.125rem; line-height: 1.5; }

/* ---------- team grid: role tiles, no people ---------- */
.team__pad { padding-top: var(--space-25); padding-bottom: var(--space-25); }
.team__stack { display: flex; flex-direction: column; gap: var(--space-15); }
.team__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-5); }
.team__item { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-8); min-height: var(--size-team-tile); padding: var(--space-8); border-radius: var(--r-14); background: var(--oat-100); color: var(--obsidian); }
.team__item:nth-child(n+4) { grid-column: span 3; }
.team__item:nth-child(even) { background: var(--oat-50); color: var(--obsidian); }
.team__mark { width: 2.5rem; height: 2.5rem; display: flex; color: currentColor; }
.team__mark svg { width: 100%; height: 100%; stroke: currentColor; }
.team__copy { display: flex; flex-direction: column; gap: 0.5rem; }
.team__name { font-family: var(--font-display); font-optical-sizing: auto; font-weight: 500; font-size: 1.75rem; line-height: 1.15; font-style: normal; }
.team__role { font-size: 1rem; line-height: 1.5; }

/* ---------- what we are not ---------- */
.notus { background: var(--oat-50); }
.notus__pad { padding-top: var(--space-25); padding-bottom: var(--space-25); display: flex; flex-direction: column; gap: var(--space-15); }
.notus__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.notus__col { padding: var(--space-8) var(--space-10); border-left: 2px solid var(--marigold-500); font-family: var(--font-display); font-size: 1.75rem; line-height: 1.25; font-weight: 400; }

/* ---------- breakpoints 991 / 767 / 479 ---------- */
@media screen and (max-width: 991px) {
  .history__pad, .values__pad, .team__pad, .notus__pad, .serve__top { padding-top: var(--space-10); padding-bottom: var(--space-10); }
  .history__side { padding-left: var(--space-8); }
  .team__grid { grid-template-columns: 1fr 1fr; }
  .team__item, .team__item:nth-child(n+4) { grid-column: span 1; }
  .team__item:nth-child(5) { grid-column: span 2; }
  .values__item { padding: var(--space-8) var(--space-5); }
}
@media screen and (max-width: 767px) {
  .history__stack, .values__stack, .team__stack, .notus__pad { gap: var(--space-8); }
  .history__slide { grid-template-columns: 1fr; }
  .history__side { padding: var(--space-8) 0 0; }
  .history__controls { position: static; margin-top: var(--space-8); }
  .values__grid, .team__grid, .notus__grid { grid-template-columns: 1fr; }
  .team__item, .team__item:nth-child(5) { grid-column: span 1; min-height: 0; }
  .notus__col { font-size: 1.375rem; padding: var(--space-5); }
}
@media screen and (max-width: 479px) {
  .values__item { border-left-style: none; padding: var(--space-5) 0; }
}
/* ---------- mobile polish (2026-10-11) ---------- */
@media screen and (max-width: 991px) {
  .page-nosotros .photo-card__copy p, .page-nosotros .photo-card__link { font-size: 1rem; }
  .history__year { font-size: 3.5rem; }
}
@media screen and (max-width: 479px) {
  .page-nosotros .t-h3, .page-nosotros .t-h2 { font-size: 2.25rem; line-height: 1.1; }
}
.history__media img { object-position: 50% 30%; }

.history__src { margin-top: 1.5rem; font-size: 1rem; color: var(--obsidian-lighter); }
.history__src a { text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 0.25rem 0; }
