/* =========================================================
   AGENTES INMOBILIARIOS
========================================================= */

.agents-section {
  overflow: hidden;
  background: #f8fafb;
}


/* =========================================================
   HEADER
========================================================= */

.agents-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 42px;
}

.agents-heading h2 {
  margin: 0;
  color: var(--ink);

  font-family: "Manrope", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;

  letter-spacing: -.045em;
}

.agents-heading h2 strong {
  color: var(--blue);
}

.agents-heading > p {
  max-width: 450px;
  margin: 0;

  color: var(--muted);

  font-size: 15px;
  line-height: 1.7;
}


/* =========================================================
   GRID
========================================================= */

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}


/* =========================================================
   CARD
========================================================= */

.agent-card {
  overflow: hidden;

  background: var(--white);

  border: 1px solid var(--line);
  border-radius: 8px;

  box-shadow: var(--shadow-card);

  transition:
    transform .3s ease,
    box-shadow .3s ease;
}

.agent-card:hover {
  transform: translateY(-6px);

  box-shadow:
    0 22px 48px rgba(24,52,66,.14);
}


/* =========================================================
   IMAGEN
========================================================= */

.agent-card__image {
  position: relative;

  height: 370px;

  overflow: hidden;

  background: var(--sand);
}

.agent-card__image img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center top;

  transition: transform .5s ease;
}

.agent-card:hover .agent-card__image img {
  transform: scale(1.035);
}


/* degradado inferior */

.agent-card__image::after {
  position: absolute;

  inset: auto 0 0;

  height: 45%;

  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(15,43,57,.48)
    );

  content: "";

  pointer-events: none;
}


/* =========================================================
   REDES SOCIALES
========================================================= */

.agent-card__socials {
  position: absolute;

  z-index: 3;

  right: 16px;
  bottom: 16px;

  display: flex;
  gap: 7px;
}

.agent-card__socials a {
  display: grid;

  width: 38px;
  height: 38px;

  place-items: center;

  color: var(--white);

  background: rgba(23,54,70,.88);

  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;

  backdrop-filter: blur(8px);

  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.agent-card__socials a:hover {
  color: var(--ink);
  background: var(--gold);

  transform: translateY(-3px);
}

.agent-card__socials .material-symbols-outlined {
  font-size: 18px;
}


/* =========================================================
   CONTENIDO
========================================================= */

.agent-card__content {
  padding: 24px;
}

.agent-card__name {
  padding-bottom: 18px;

  border-bottom: 1px solid var(--line);
}

.agent-card__name h3 {
  margin: 0;

  color: var(--ink);

  font-family: "Manrope", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
}

.agent-card__name > span {
  display: block;

  margin-top: 4px;

  color: var(--gold-dark);

  font-size: 11px;
  font-weight: 800;

  letter-spacing: .08em;
  text-transform: uppercase;
}


/* =========================================================
   CONTACTO
========================================================= */

.agent-card__contact {
  display: grid;

  gap: 10px;

  padding-top: 18px;
}

.agent-card__contact a {
  display: flex;

  min-width: 0;

  align-items: center;

  gap: 9px;

  color: var(--muted);

  font-size: 13px;
  font-weight: 500;

  transition: color .2s ease;
}

.agent-card__contact a:hover {
  color: var(--blue);
}

.agent-card__contact .material-symbols-outlined {
  flex: 0 0 auto;

  color: var(--blue);

  font-size: 19px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .agents-heading {
    align-items: flex-start;
    flex-direction: column;

    gap: 14px;
  }

  .agents-heading > p {
    max-width: 650px;
  }

  .agents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 580px) {

  .agents-heading {
    margin-bottom: 30px;
  }

  .agents-heading h2 {
    font-size: 2.25rem;
  }

  .agents-heading > p {
    font-size: 14px;
  }

  .agents-grid {
    grid-template-columns: 1fr;
  }

  .agent-card__image {
    height: 360px;
  }

  .agent-card__content {
    padding: 21px 19px;
  }

}