/* Ajustes exclusivos de la landing Nosotros. */
body[data-page="nosotros"] {
  --color-navy-950: #122F67;
  --color-navy-900: #122F67;
  --color-navy-700: #122F67;
  --color-gold-500: #AF9255;
  --color-gold-700: #AF9255;
  --color-ink: #122F67;
  --shadow-soft: 0 0.75rem 2rem rgb(18 47 103 / 8%);
  --shadow-strong: 0 1.25rem 3rem rgb(18 47 103 / 14%);
}

.about-hero {
  background: #0f1e31;
}

.about-origin,
.about-principles {
  background: #0f1e31;
}

.about-hero h1,
.about-hero-base {
  color: var(--color-white);
}

.about-hero-lead {
  color: rgb(255 255 255 / 84%);
}

.about-hero .button-primary,
.about-hero .button-primary:hover {
  color: var(--color-navy-950);
  background: var(--color-gold-500);
}

.about-hero .button-secondary {
  color: var(--color-white);
  border-color: var(--color-gold-500);
}

.about-hero .button-secondary:hover {
  color: var(--color-navy-950);
  background: var(--color-gold-500);
}

.about-hero-visual.image-frame {
  align-self: center;
  min-height: 0;
  aspect-ratio: 1;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.about-hero-visual.image-frame img {
  clip-path: circle(49% at 50% 50%);
  object-fit: cover;
  object-position: center 45%;
  filter: drop-shadow(0 1rem 1.25rem rgb(0 0 0 / 32%));
}

.about-hero-visual::before,
.about-hero-visual::after {
  display: none;
}

.about-who {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #f8f7f4;
}

.about-who::before,
.about-who::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.about-who::before {
  z-index: 0;
  right: auto;
  width: 74%;
  background-image: url("../img/nosotros-oficina-madrid.png?v=20261009-team-photos1");
  background-position: 50% center;
  background-size: cover;
  background-repeat: no-repeat;
}

.about-who::after {
  z-index: 1;
  background-image:
    linear-gradient(90deg, rgb(248 247 244 / 50%) 0%, rgb(248 247 244 / 50%) 43%, rgb(248 247 244 / 78%) 59%, #f8f7f4 77%),
    repeating-linear-gradient(0deg, transparent 0 69px, rgb(18 47 103 / 5%) 69px 70px),
    repeating-linear-gradient(90deg, transparent 0 69px, rgb(18 47 103 / 5%) 69px 70px);
}

.about-who > .container {
  position: relative;
  z-index: 2;
}

.about-who-grid {
  align-items: center;
}

.about-origin-feature {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  min-width: 0;
  align-content: start;
}

.about-origin-visual {
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(175 146 85 / 40%);
  border-radius: 0 1.15rem 0 1.15rem;
  background: var(--color-navy-950);
  box-shadow: 0 0.7rem 1.8rem rgb(0 0 0 / 18%);
}

.about-origin-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-team .profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-width: 0;
  border: 1px solid rgb(175 146 85 / 42%);
  border-radius: 0.65rem;
  object-fit: cover;
  object-position: center 32%;
}

.about-team .profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 2.8vw, 2.25rem);
  margin-top: clamp(2.5rem, 4.5vw, 4rem);
}

.about-team .section-heading .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-navy-900);
}

.about-team .section-heading .eyebrow::before {
  width: 1.6rem;
  height: 1px;
  content: "";
  background: var(--color-gold-500);
}

.about-team .profile-card {
  --card-shift: 0rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
  min-width: 0;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border: 1px solid rgb(18 47 103 / 10%);
  border-radius: 0 1.15rem 0 1.15rem;
  background: linear-gradient(145deg, #fff 0%, #fbfaf7 100%);
  box-shadow: 0 0.7rem 2rem rgb(18 47 103 / 4%);
  transform: translateY(var(--card-shift));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.about-team .profile-card:hover {
  border-color: rgb(175 146 85 / 48%);
  box-shadow: 0 1rem 2.4rem rgb(18 47 103 / 8%);
  transform: translateY(calc(var(--card-shift) - 0.12rem));
}

.about-team .profile-content {
  min-width: 0;
  padding-block: 0.15rem;
}

.about-team .profile-content h3 {
  margin-bottom: 0.6rem;
  color: var(--color-navy-950);
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.about-team .profile-area {
  max-width: 34ch;
  padding-bottom: 1rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid rgb(175 146 85 / 38%);
  color: var(--color-navy-900);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.105em;
  line-height: 1.55;
  text-transform: uppercase;
}

.about-team .profile-content > p:not(.profile-area) {
  max-width: 58ch;
  margin-bottom: 0.95rem;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.1vw, 1.06rem);
  line-height: 1.72;
}

.about-team .profile-content > p:last-child {
  margin-bottom: 0;
}

@media (min-width: 48rem) {
  .about-who-grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.95fr);
  }

  .about-origin-grid {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .about-team .profile-photo {
    min-height: 19rem;
  }

  .about-team .profile-grid {
    align-items: stretch;
  }

  .about-team .profile-card {
    grid-template-columns: minmax(13rem, 0.38fr) minmax(0, 0.62fr);
    gap: clamp(1.5rem, 3vw, 2.25rem);
    padding: clamp(1.5rem, 3vw, 2.25rem);
  }
}

@media (max-width: 47.99rem) {
  .about-who::before {
    right: 0;
    bottom: auto;
    width: 100%;
    height: 24rem;
    background-position: center top;
  }

  .about-who::after {
    background-image:
      linear-gradient(180deg, rgb(248 247 244 / 42%) 0%, rgb(248 247 244 / 82%) 18rem, #f8f7f4 25rem),
      repeating-linear-gradient(0deg, transparent 0 69px, rgb(18 47 103 / 5%) 69px 70px),
      repeating-linear-gradient(90deg, transparent 0 69px, rgb(18 47 103 / 5%) 69px 70px);
  }

  .about-who-grid {
    align-items: start;
  }
}

@media (min-width: 48rem) and (max-width: 69.99rem) {
  .about-who-grid {
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
  }
}

@media (min-width: 70rem) {
  .about-team .profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 2.5vw, 2.5rem);
    row-gap: 3rem;
  }

  .about-team .profile-card {
    grid-template-columns: minmax(12.5rem, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(1.25rem, 2vw, 1.75rem);
    padding: clamp(1.25rem, 2vw, 1.75rem);
  }

  .about-team .profile-photo {
    min-height: 16rem;
  }

  .about-team .profile-card:nth-child(2) {
    --card-shift: 0.65rem;
  }

  .about-team .profile-card:nth-child(3) {
    --card-shift: 0.2rem;
  }

  .about-team .profile-card:nth-child(4) {
    --card-shift: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-team .profile-card,
  .about-team .profile-card:hover {
    transition: none;
    transform: translateY(var(--card-shift));
  }
}

/* Cierre editorial de la landing Nosotros. */
body[data-page="nosotros"] .about-closing {
  padding-block: clamp(6.25rem, 9vw, 8.75rem);
  color: var(--color-navy-950);
  border-top: 0;
  background: #f7f6f2;
}

body[data-page="nosotros"] .about-closing .closing-content {
  display: grid;
  justify-items: center;
  gap: 0;
  max-width: 58rem;
  margin-inline: auto;
}

body[data-page="nosotros"] .about-closing .eyebrow {
  margin-bottom: 1.15rem;
  color: var(--color-gold-500);
}

body[data-page="nosotros"] .about-closing h2 {
  max-width: 20ch;
  margin: 0 auto 2rem;
  color: var(--color-navy-950);
  font-size: clamp(2.15rem, 4vw, 3.2rem);
  line-height: 1.12;
}

body[data-page="nosotros"] .about-closing .button-gold {
  min-height: 3.5rem;
  padding: 1rem 1.65rem;
  border: 1px solid var(--color-gold-500);
  color: var(--color-navy-950);
  background: var(--color-gold-500);
  box-shadow: 0 0.6rem 1.5rem rgb(18 47 103 / 14%);
}

body[data-page="nosotros"] .about-closing .button-gold:hover {
  color: var(--color-navy-950);
  border-color: var(--color-gold-500);
  background: #AF9255;
}

body[data-page="nosotros"] .site-footer {
  border-top: 1px solid rgb(175 146 85 / 42%);
  background: #061a37;
}

@media (max-width: 47.99rem) {
  body[data-page="nosotros"] .about-closing {
    padding-block: clamp(4.75rem, 15vw, 6rem);
  }

  body[data-page="nosotros"] .about-closing h2 {
    max-width: 18ch;
    margin-bottom: 1.75rem;
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  body[data-page="nosotros"] .about-closing .button-gold {
    width: min(100%, 22rem);
    justify-content: center;
    text-align: center;
  }

  body[data-page="nosotros"] .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

@media (min-width: 48rem) {
  body[data-page="nosotros"] .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.75rem 3rem;
  }
}

@media (min-width: 70rem) {
  body[data-page="nosotros"] .site-footer .footer-grid {
    grid-template-columns: minmax(9rem, 0.8fr) minmax(17rem, 1.3fr) minmax(8rem, 0.65fr) minmax(14rem, 1fr);
    column-gap: clamp(2rem, 3vw, 3.25rem);
  }
}

/* Mantiene todos los CTA de Nosotros en el dorado de marca. */
body[data-page="nosotros"] .button,
body[data-page="nosotros"] .button:hover,
body[data-page="nosotros"] .button.button:hover {
  color: var(--color-navy-950);
  border-color: var(--color-gold-500);
  background: var(--color-gold-500);
}

body[data-page="nosotros"] a.button[href="diagnostico-inicial.html"],
body[data-page="nosotros"] a.button[href="diagnostico-inicial.html"]:hover {
  color: var(--color-navy-950);
  border-color: var(--color-gold-500);
  background: var(--color-gold-500);
}
