.acerca-page .acerca-intro-hero {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .acerca-page .acerca-intro-hero {
    margin-left: 0;
    margin-right: auto;
  }
}

.acerca-page .acerca-intro-hero img {
  max-height: 280px;
  width: 100%;
  object-fit: cover;
}

/* Cards de equipo: fondo médico + texto a la izquierda; foto solo en franja derecha (~40 %) */
.acerca-page .team-hero-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: clamp(200px, 22vw, 260px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.1);
  background-color: var(--surface-color, #fff);
  background-image: url("../img/acerca/fondo_principal.png");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.acerca-page .team-hero-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  transform: translateY(-3px);
}

/* Columna izquierda: texto sobre el fondo médico */
.acerca-page .team-hero-body {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.35rem 1.1rem 1.35rem 1.65rem;
}

.acerca-page .team-hero-name {
  font-size: clamp(1.22rem, 4.1vw, 3.9rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--heading-color, #024683);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

/* Ciudad y correo: CTA alineados a la paleta global (main.css) */
.acerca-page .team-hero-city,
.acerca-page .team-hero-email {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--contrast-color, #ffffff);
  box-shadow: none;
}

.acerca-page .team-hero-city {
  background: var(--heading-color, #024683);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  word-break: break-word;
}

.acerca-page .team-hero-email {
  background: var(--accent-color, #0066a8);
  text-transform: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.acerca-page .team-hero-city i,
.acerca-page .team-hero-email i {
  color: var(--contrast-color, #ffffff);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.acerca-page .team-hero-email-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.acerca-page .team-hero-email-link:hover {
  color: inherit;
  opacity: 0.9;
}

/* Franja derecha: foto a todo alto de la card */
.acerca-page .team-hero-image {
  flex: 0 0 40%;
  width: 40%;
  min-width: clamp(130px, 32vw, 200px);
  max-width: 42%;
  position: relative;
  overflow: hidden;
  align-self: stretch;
  border-radius: 0;
}

.acerca-page .team-hero-image img {
  width: 55%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s ease;
}

.acerca-page .team-hero-card:hover .team-hero-image img {
  transform: scale(1.05);
}

@media (min-width: 992px) {
  .acerca-page .team-hero-image {
    flex: 0 0 38%;
    width: 38%;
    max-width: 40%;
  }
}

/* Responsive: apilado en móvil — foto ancho completo debajo del texto */
@media (max-width: 767px) {
  .acerca-page .team-hero-card {
    flex-direction: column;
    min-height: unset;
  }

  .acerca-page .team-hero-body {
    padding: 1.5rem;
    width: 100%;
  }

  .acerca-page .team-hero-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: clamp(220px, 58vw, 320px);
  }
}
