/* EDA — perfil médico (autoridad / EEAT) */

/* Cabecera 50/50: texto + retrato (no hero full-bleed) */
.eda-perfil-hero {
  background: var(--eda-beige, #f0efe6);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
}

.eda-perfil-hero__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  max-width: var(--eda-container, 1300px);
  margin: 0 auto;
  min-height: min(520px, auto);
}

.eda-perfil-hero__content {
  flex: 0 0 50%;
  width: 50%;
  box-sizing: border-box;
  padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--eda-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eda-perfil-hero__content .eda-section-head__kicker {
  text-align: left;
  margin-bottom: 0.5rem;
}

.eda-perfil-hero__title {
  margin: 0;
  font-family: var(--eda-font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  font-weight: 700;
  color: var(--eda-text);
}

.eda-perfil-hero__lead {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--eda-text);
  max-width: 36rem;
}

.eda-perfil-hero__meta {
  margin: 0.85rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--eda-text-muted, #555);
}

.eda-perfil-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.eda-perfil-hero__phones {
  margin: 1.25rem 0 0;
  font-family: var(--eda-font-heading);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
}

.eda-perfil-hero__phones a {
  color: var(--eda-teal, #4ab7c3);
  text-decoration: none;
}

.eda-perfil-hero__phones a:hover {
  text-decoration: underline;
}

.eda-perfil-hero__phones span {
  margin: 0 0.35rem;
  color: var(--eda-text-muted, #888);
}

.eda-perfil-hero__portrait {
  flex: 0 0 50%;
  width: 50%;
  margin: 0;
  line-height: 0;
  background: var(--eda-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.eda-perfil-hero__portrait img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.eda-perfil {
  background: var(--eda-beige, #f0efe6);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) clamp(3rem, 6vw, 5rem);
  scroll-margin-top: var(--eda-header-h);
}

.eda-perfil__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: clamp(2rem, 4vw, 3.5rem);
  max-width: var(--eda-container, 1300px);
  margin: 0 auto;
  align-items: start;
}

.eda-perfil__aside {
  position: sticky;
  top: calc(var(--eda-header-h, 120px) + 1rem);
}

.eda-perfil__card {
  padding: 1.35rem 1.35rem;
  background: var(--eda-white);
  border-left: 4px solid var(--eda-teal, #4ab7c3);
}

.eda-perfil__card-name {
  margin: 0;
  font-family: var(--eda-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--eda-text);
}

.eda-perfil__card-role {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--eda-text-muted, #555);
}

.eda-perfil__colegiado {
  margin: 0.85rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.875rem;
  font-weight: 600;
}

.eda-perfil__links {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.eda-perfil__links li + li {
  margin-top: 0.5rem;
}

.eda-perfil__links a {
  font-size: 0.9375rem;
  font-weight: 600;
}

.eda-perfil__main {
  background: var(--eda-white);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.eda-perfil__main .eda-prose > :first-child {
  margin-top: 0;
}

.eda-perfil__lead {
  font-family: var(--eda-font-heading);
  font-size: clamp(1.125rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  color: var(--eda-teal, #4ab7c3);
  font-weight: 400;
}

.eda-perfil__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.25rem;
}

.eda-perfil__tags li {
  margin: 0;
  padding: 0.4rem 0.85rem;
  background: var(--eda-beige, #f0efe6);
  border-radius: 2px;
  font-size: 0.9rem;
  line-height: 1.35;
}

.eda-perfil__timeline {
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  max-width: var(--eda-container, 1300px);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--eda-white);
}

.eda-perfil__timeline-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--eda-teal, #4ab7c3);
}

.eda-perfil__timeline-list li {
  position: relative;
  margin: 0;
  padding: 0 0 1.35rem 1.35rem;
}

.eda-perfil__timeline-list li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--eda-teal, #4ab7c3);
  border: 2px solid var(--eda-white);
  box-shadow: 0 0 0 2px var(--eda-teal, #4ab7c3);
}

.eda-perfil__timeline-year {
  display: block;
  font-family: var(--eda-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--eda-teal, #4ab7c3);
  margin-bottom: 0.2rem;
}

.eda-perfil__awards {
  margin: clamp(2rem, 4vw, 3rem) auto 0;
  max-width: var(--eda-container, 1300px);
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.eda-perfil__award-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.eda-perfil__award {
  padding: 1.25rem 1.35rem;
  background: var(--eda-white);
  border-top: 3px solid var(--eda-teal, #4ab7c3);
  min-width: 0;
}

.eda-perfil__award span {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.eda-perfil__award strong {
  display: block;
  font-family: var(--eda-font-heading);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.eda-perfil__pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 0;
}

.eda-perfil__pillar {
  padding: 1.25rem;
  background: var(--eda-beige, #f0efe6);
  text-align: center;
}

.eda-perfil__pillar h3 {
  margin: 0 0 0.5rem;
  font-family: var(--eda-font-heading);
  font-size: 1.25rem;
  color: var(--eda-teal, #4ab7c3);
}

.eda-perfil__pillar p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.eda-perfil__blog {
  margin-top: 0;
}

.eda-perfil__signoff {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .eda-perfil-hero__inner {
    flex-direction: column-reverse;
  }

  .eda-perfil-hero__content,
  .eda-perfil-hero__portrait {
    flex: none;
    width: 100%;
  }

  .eda-perfil-hero__portrait {
    padding: 1.25rem 1.25rem 0;
  }

  .eda-perfil-hero__portrait img {
    max-width: 320px;
    margin: 0 auto;
  }

  .eda-perfil__layout {
    grid-template-columns: 1fr;
  }

  .eda-perfil__aside {
    position: static;
    order: -1;
  }

  .eda-perfil__pillars {
    grid-template-columns: 1fr;
  }

  .eda-perfil__award-grid {
    grid-template-columns: 1fr;
  }
}
