/*
  Grupo Attia — Nosotros / La firma
  Estilos propios de esta subpágina. Los tokens, el reset, el header y el
  footer se heredan de assets/css/ (sistema compartido de todo el sitio);
  aquí solo vive lo específico de esta página.
*/

/* .section, .section--dark, .section--soft y .section-head: compartidas
   en assets/css/base.css. */

/* ---------- 1 · Hero interno ---------- */
.firma-hero {
  position: relative;
  height: clamp(420px, 66vh, 720px);
  min-height: 420px;
  overflow: hidden;
  background: var(--navy);
}

.firma-hero__media {
  position: absolute;
  inset: 0;
}

.firma-hero__media img,
.firma-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.firma-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(15, 24, 33, 0.82) 0%, rgba(15, 24, 33, 0.45) 45%, rgba(15, 24, 33, 0.15) 68%, rgba(15, 24, 33, 0.35) 100%);
}

.firma-hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(2.5rem, 7vh, 4.5rem);
  padding-top: calc(var(--header-height) + 2rem);
}

.firma-hero__content .eyebrow {
  color: var(--gold);
  margin-bottom: 1rem;
}

.firma-hero__title {
  color: var(--white);
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 1.1rem;
}

.firma-hero__subtitle {
  color: rgba(245, 245, 245, 0.9);
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 46ch;
  line-height: 1.6;
}

/* ---------- 2 · Introducción institucional ---------- */
.firma-intro__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 780px) {
  .firma-intro__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.firma-intro__lead h2 {
  margin-top: 1rem;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.15;
}

.firma-intro__copy p {
  color: var(--muted);
  max-width: 52ch;
}

.firma-intro__copy p + p {
  margin-top: 1.25rem;
}

/* ---------- 3 · Nuestra firma (misión, visión, estrategia) ---------- */
.firma-about__copy {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.firma-about__copy p {
  max-width: none;
}

.firma-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.firma-pillar__title {
  font-size: 19px;
  margin-bottom: 0.75rem;
}

.firma-pillar__text {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 42ch;
}

/* ---------- 4 · Declaración / inversión inmobiliaria ---------- */
.firma-statement {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(260px, 26vw, 360px);
  overflow: hidden;
}

.firma-statement__media {
  position: absolute;
  inset: 0;
}

.firma-statement__media img,
.firma-statement__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.firma-statement__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 24, 33, 0.82) 0%, rgba(15, 24, 33, 0.45) 45%, rgba(15, 24, 33, 0.15) 100%);
}

.firma-statement__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(2rem, 5vw, 3rem);
}

.firma-statement__content .eyebrow {
  color: var(--gold);
  margin-bottom: 1rem;
}

.firma-statement__content h2 {
  color: var(--white);
  max-width: 26ch;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.25;
}

/* ---------- 5 · Socios fundadores ---------- */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

@media (max-width: 780px) {
  .founders-grid {
    grid-template-columns: 1fr;
    gap: clamp(3rem, 9vw, 4rem);
  }
}

.founder {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.founder__media {
  aspect-ratio: 4 / 4.5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--neutral);
}

.founder__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder__name {
  font-size: clamp(26px, 3vw, 34px);
  margin-bottom: 0.75rem;
}

.founder__role {
  display: inline-flex;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5em 1.1em;
  margin-bottom: 1.5rem;
}

.founder__bio {
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 1.75rem;
}

.founder__education {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.founder__education-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.founder__education ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.founder__education li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 14px;
  color: var(--muted);
}

.founder__education li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- 6 · Equipo (placeholders) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
}

.team-card__avatar {
  width: 100%;
  aspect-ratio: 1;
  max-width: 140px;
  border-radius: 50%;
  background: var(--neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.team-card__avatar svg {
  width: 40%;
  height: 40%;
}

.team-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a.team-card__name:hover,
a.team-card__name:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

.team-card__role {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- 7 · Unidades de negocio ---------- */
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.unit-card {
  background: var(--navy);
  padding: 2rem 1.75rem;
}

.unit-card__title {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 0.85rem;
}

.unit-card__text {
  color: var(--dark-muted);
  font-size: 14px;
  max-width: 30ch;
}

/* ---------- 8 · Cierre / CTA ---------- */
.cta-final {
  position: relative;
  padding-block: clamp(5rem, 12vw, 8rem);
  text-align: center;
  overflow: hidden;
  background: var(--navy);
}

.cta-final__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-final__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.cta-final__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 24, 33, 0.55) 0%, rgba(15, 24, 33, 0.92) 100%);
}

.cta-final .container {
  position: relative;
  z-index: 2;
}

.cta-final .eyebrow {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta-final h2 {
  color: var(--white);
  max-width: 24ch;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.cta-final__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
