/* =========================================================
   PERSONAS V7 — COHERENCIA CON VIAJES Y CUMBRES
   ========================================================= */

.people-page {
  background: #f7f4ee;
}

.people-page * {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero más compacto y alineado con las páginas de archivo */
.people-hero {
  padding: 54px 0 42px;
  border-bottom: 1px solid var(--line);
  color: white;
  background:
    linear-gradient(90deg, rgb(8 20 29 / 86%), rgb(8 20 29 / 32%)),
    url("../img/hero-viajes.jpg") center 48% / cover;
}

.people-hero .breadcrumbs {
  margin-bottom: 18px;
}

.people-hero .eyebrow {
  margin: 0 0 11px;
  color: var(--orange);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.people-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(3.15rem, 6vw, 5.8rem);
  line-height: .88;
  letter-spacing: -.045em;
}

.people-hero__summary {
  max-width: 680px;
  margin: 0;
  color: rgb(255 255 255 / 82%);
  font-size: clamp(.98rem, 1.25vw, 1.13rem);
  line-height: 1.55;
}

/* Controles */
.people-archive {
  padding: 34px 0 80px;
}

.people-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.people-search {
  position: relative;
  width: min(430px, 100%);
}

.people-search svg {
  position: absolute;
  top: 50%;
  left: 17px;
  z-index: 1;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.7;
  transform: translateY(-50%);
  pointer-events: none;
}

.people-search input,
.people-sort select {
  min-height: 52px;
  border: 1.5px solid var(--line-dark);
  border-radius: 11px;
  background: rgb(255 255 255 / 70%);
  color: var(--ink);
  font: inherit;
}

.people-search input {
  width: 100%;
  padding: 0 18px 0 50px;
  font-size: 1rem;
}

.people-search input::placeholder {
  color: var(--muted);
}

.people-search input:focus,
.people-sort select:focus {
  outline: 3px solid rgb(207 78 8 / 13%);
  border-color: rgb(207 78 8 / 55%);
}

.people-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.people-sort select {
  min-width: 170px;
  padding: 0 42px 0 15px;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.people-results-line {
  margin: 22px 0 15px;
}

.people-results-line p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 800;
}

/* Tarjetas: fotografía + pie forman una única pieza */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 20px;
}

.person-card {
  min-width: 0;
}

.person-card__link {
  display: block;
  overflow: hidden;
  border: 1px solid #d9d4ca;
  border-radius: 17px;
  background: rgb(255 255 255 / 55%);
  color: var(--ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.person-card__visual {
  position: relative;
  height: clamp(300px, 28vw, 430px);
  overflow: hidden;
  background: linear-gradient(155deg, #334a59, #142633);
}

.person-card__visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .38s cubic-bezier(.2, .65, .3, 1);
}

.person-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgb(4 13 20 / 76%) 100%);
  pointer-events: none;
}

.person-card h2 {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 2;
  margin: 0;
  color: white;
  font-size: clamp(1.65rem, 2.15vw, 2.35rem);
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgb(0 0 0 / 32%);
}

.person-card__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / 88%);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -.06em;
}

.person-card__footer {
  display: grid;
  grid-template-columns: .8fr .8fr 1.35fr;
  min-height: 88px;
  margin: 9px;
  overflow: hidden;
  border: 1px solid #cfc9be;
  border-radius: 11px;
  background: rgb(250 248 243 / 88%);
}

.person-card__stat,
.person-card__action {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.person-card__stat {
  flex-direction: column;
  padding: 11px 8px 9px;
  border-right: 1px solid #d8d2c8;
}

.person-card__stat strong {
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1;
  letter-spacing: -.035em;
}

.person-card__stat span {
  margin-top: 7px;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.person-card__action {
  gap: 8px;
  padding: 12px 14px;
  color: var(--orange);
  font-size: .83rem;
  font-weight: 900;
  text-align: center;
}

.person-card__action span {
  transition: transform .18s ease;
}

.person-card__link:hover {
  transform: translateY(-5px);
  border-color: #c9c2b6;
  box-shadow: 0 20px 48px rgb(20 30 40 / 13%);
}

.person-card__link:hover .person-card__visual img {
  transform: scale(1.025);
}

.person-card__link:hover .person-card__action span {
  transform: translateX(4px);
}

.person-card__link:focus-visible {
  outline: 3px solid rgb(207 78 8 / 24%);
  outline-offset: 4px;
}

.people-empty {
  margin: 48px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .person-card__visual {
    height: clamp(350px, 48vw, 500px);
  }
}

@media (max-width: 760px) {
  .people-hero {
    padding: 42px 0 36px;
  }

  .people-hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .people-archive {
    padding-top: 24px;
  }

  .people-toolbar {
    display: grid;
    align-items: stretch;
  }

  .people-search {
    width: 100%;
  }

  .people-sort {
    justify-content: space-between;
  }

  .people-sort select {
    flex: 1;
    min-width: 0;
  }

  .people-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .person-card__visual {
    height: min(112vw, 520px);
  }
}

@media (max-width: 430px) {
  .person-card__footer {
    grid-template-columns: .72fr .72fr 1.25fr;
    min-height: 78px;
    margin: 7px;
  }

  .person-card__action {
    gap: 4px;
    padding-inline: 8px;
    font-size: .75rem;
  }

  .person-card__stat strong {
    font-size: 1.4rem;
  }

  .person-card__stat span {
    font-size: .58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .person-card__link,
  .person-card__visual img,
  .person-card__action span {
    transition: none;
  }
}
