/*
|--------------------------------------------------------------------------
| Medical Leadership · READABLE V4 · 2026-08-01
| Diseño alineado con Medical Sport y contraste reforzado
|--------------------------------------------------------------------------
*/

.ms-ribbon-profile,
.ms-profile-page,
.ms-profile-page * {
  box-sizing: border-box;
}

.ms-ribbon-profile {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #173f73;
  color: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
}

.ms-profile-page {
  --ms-blue: #173f73;
  --ms-blue-dark: #102f59;
  --ms-green: #2f7d4f;
  --ms-gold: #a77b1d;
  --ms-text: #20364f;
  --ms-muted: #425870;
  --ms-line: rgba(23, 63, 115, 0.16);
  --ms-soft: #f5f8fb;
  --ms-white: #ffffff;

  min-height: 70vh;
  overflow: hidden;
  background: #ffffff;
  color: var(--ms-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ms-profile-page,
.ms-profile-page h1,
.ms-profile-page h2,
.ms-profile-page h3,
.ms-profile-page p,
.ms-profile-page a,
.ms-profile-page span,
.ms-profile-page li,
.ms-profile-page strong,
.ms-profile-page small {
  font-family: Arial, Helvetica, sans-serif !important;
}

.ms-profile-page a {
  color: inherit;
  text-decoration: none;
}

.ms-profile-container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

/*
|--------------------------------------------------------------------------
| Elementos comunes
|--------------------------------------------------------------------------
*/

.ms-profile-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--ms-gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ms-profile-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.ms-profile-btn:hover {
  transform: translateY(-2px);
}

.ms-profile-btn-primary,
.ms-profile-btn-green {
  border-color: var(--ms-blue);
  background: var(--ms-blue);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(23, 63, 115, 0.13);
}

.ms-profile-btn-primary:hover,
.ms-profile-btn-green:hover {
  border-color: var(--ms-green);
  background: var(--ms-green);
}

.ms-profile-btn-outline {
  border-color: rgba(23, 63, 115, 0.2);
  background: #ffffff;
  color: var(--ms-blue);
}

.ms-profile-btn-outline:hover {
  border-color: var(--ms-green);
  color: var(--ms-green);
}

.ms-profile-btn-text {
  padding-right: 8px;
  padding-left: 8px;
  background: transparent;
  color: var(--ms-blue);
}

.ms-profile-btn-text:hover {
  color: var(--ms-green);
}

/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.ms-profile-hero {
  padding: 54px 0 66px;
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(47, 125, 79, 0.1),
      transparent 26%
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f7fafc 100%
    );
  border-bottom: 1px solid var(--ms-line);
}

.ms-profile-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  overflow: hidden;
  border: 1px solid var(--ms-line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 52px rgba(23, 63, 115, 0.08);
}

.ms-profile-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 66px);
  background: #ffffff;
}

.ms-profile-page .ms-profile-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ms-blue) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(2.35rem, 3.35vw, 3.45rem) !important;
  font-weight: 780;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.ms-profile-page .ms-profile-positioning {
  display: flex !important;
  max-width: 830px;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 0;
  color: #1f6843 !important;
  opacity: 1 !important;
}

.ms-profile-page .ms-profile-position-item {
  display: inline-flex !important;
  min-height: 38px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid #b8d4c1 !important;
  border-radius: 999px;
  background: #e8f3ec !important;
  color: #1f6843 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  opacity: 1 !important;
  white-space: normal;
}

.ms-profile-intro {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--ms-muted);
  font-size: 1.03rem;
  line-height: 1.72;
}

.ms-profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.ms-profile-hero-panel {
  display: flex;
  align-items: center;
  padding: clamp(30px, 4vw, 48px);
  border-left: 1px solid var(--ms-line);
  background:
    radial-gradient(
      circle at 80% 15%,
      rgba(47, 125, 79, 0.13),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #f4f8fb,
      #eef5f1
    );
}

.ms-profile-feature {
  width: 100%;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--ms-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(23, 63, 115, 0.07);
}

.ms-profile-page .ms-profile-feature h2 {
  margin: 0;
  color: var(--ms-blue) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: clamp(2.25rem, 3.22vw, 3.34rem) !important;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.07;
}

.ms-profile-feature p {
  margin: 19px 0 0;
  color: var(--ms-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.ms-profile-id {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.ms-profile-id a,
.ms-profile-id span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--ms-line);
  border-radius: 999px;
  background: #f5f8fb;
  color: var(--ms-blue);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
}

/*
|--------------------------------------------------------------------------
| Secciones
|--------------------------------------------------------------------------
*/

.ms-profile-section,
.ms-profile-band,
.ms-profile-value,
.ms-profile-cta {
  padding: 74px 0;
}

.ms-profile-soft {
  background: var(--ms-soft);
}

.ms-profile-head {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}

.ms-profile-head h2,
.ms-profile-band h2,
.ms-profile-value-box h2,
.ms-profile-cta h2 {
  margin: 0;
  color: var(--ms-blue);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.ms-profile-head p,
.ms-profile-value-box p,
.ms-profile-cta p {
  max-width: 790px;
  margin: 18px auto 0;
  color: var(--ms-muted);
  font-size: 1rem;
  line-height: 1.72;
}

/*
|--------------------------------------------------------------------------
| Tarjetas
|--------------------------------------------------------------------------
*/

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

.ms-profile-card {
  position: relative;
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--ms-line);
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      #ffffff,
      #f9fbfc
    );
  box-shadow: 0 12px 30px rgba(23, 63, 115, 0.055);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.ms-profile-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 125, 79, 0.24);
  box-shadow: 0 18px 40px rgba(23, 63, 115, 0.09);
}

.ms-profile-card > strong {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--ms-gold);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ms-profile-card h3 {
  margin: 0;
  color: var(--ms-blue);
  font-size: 1.34rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.23;
}

.ms-profile-card p {
  margin: 14px 0 0;
  color: var(--ms-muted);
  font-size: 0.94rem;
  line-height: 1.66;
}

.ms-profile-card-accent {
  background:
    linear-gradient(
      145deg,
      var(--ms-blue),
      #235d72
    );
}

.ms-profile-card-accent > strong {
  color: #e7c97d;
}

.ms-profile-card-accent h3,
.ms-profile-card-accent p {
  color: #ffffff;
}

.ms-profile-card-accent p {
  opacity: 0.85;
}

.ms-profile-list {
  display: grid;
  gap: 9px;
  margin: 17px 0 0;
  padding: 0;
  color: var(--ms-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  list-style: none;
}

.ms-profile-list li {
  position: relative;
  padding-left: 18px;
}

.ms-profile-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ms-gold);
  content: "";
}

.ms-card-admin-plus {
  position: absolute;
  right: 17px;
  bottom: 15px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--ms-line);
  border-radius: 50%;
  background: #f5f8fb;
  color: var(--ms-blue) !important;
  font-size: 1.2rem;
  font-weight: 900;
}

.ms-card-admin-plus:hover {
  background: var(--ms-blue);
  color: #ffffff !important;
}

/*
|--------------------------------------------------------------------------
| Banda de educación
|--------------------------------------------------------------------------
*/

.ms-profile-band {
  background:
    linear-gradient(
      135deg,
      var(--ms-blue-dark),
      var(--ms-blue) 58%,
      #23624e
    );
  color: #ffffff;
}

.ms-profile-band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 66px);
  align-items: center;
}

.ms-profile-band h2 {
  color: #ffffff;
}

.ms-profile-band p {
  margin: 19px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: 1rem;
  line-height: 1.72;
}

.ms-profile-checks {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-profile-checks li {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.5;
}

/*
|--------------------------------------------------------------------------
| Colaboraciones y afiliaciones
|--------------------------------------------------------------------------
*/

.ms-profile-logo-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.ms-profile-logo-item {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px solid var(--ms-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 9px 24px rgba(23, 63, 115, 0.045);
  text-align: center;
}

.ms-profile-logo-item strong {
  display: block;
  margin: 0;
  color: var(--ms-blue);
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.25;
}

.ms-profile-logo-item small {
  display: block;
  max-width: 220px;
  margin-top: 7px;
  color: var(--ms-muted);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.4;
}

.ms-profile-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}

.ms-profile-tag {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid var(--ms-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ms-blue);
  font-size: 0.77rem;
  font-weight: 800;
}

/*
|--------------------------------------------------------------------------
| Identificadores y CTA
|--------------------------------------------------------------------------
*/

.ms-profile-value {
  background: #ffffff;
}

.ms-profile-value-box {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 50px);
  border: 1px solid var(--ms-line);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(47, 125, 79, 0.1),
      transparent 27%
    ),
    #ffffff;
  box-shadow: 0 20px 48px rgba(23, 63, 115, 0.075);
  text-align: center;
}

.ms-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.ms-profile-cta {
  background:
    linear-gradient(
      135deg,
      #f8fafc,
      #eef5f1
    );
  text-align: center;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 980px) {
  .ms-profile-hero-shell {
    grid-template-columns: 1fr;
  }

  .ms-profile-hero-panel {
    border-top: 1px solid var(--ms-line);
    border-left: 0;
  }

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

  .ms-profile-band-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .ms-ribbon-profile {
    padding: 9px 14px;
    font-size: 0.78rem;
  }

  .ms-profile-container {
    width: min(100% - 24px, 1180px);
  }

  .ms-profile-hero {
    padding: 28px 0 42px;
  }

  .ms-profile-hero-shell {
    border-radius: 20px;
  }

  .ms-profile-hero-copy,
  .ms-profile-hero-panel {
    padding: 28px 22px;
  }

  .ms-profile-feature {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .ms-profile-positioning {
    gap: 7px;
  }

  .ms-profile-position-item {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
  }

  .ms-profile-hero-actions,
  .ms-profile-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ms-profile-btn {
    width: 100%;
  }

  .ms-profile-section,
  .ms-profile-band,
  .ms-profile-value,
  .ms-profile-cta {
    padding: 54px 0;
  }

  .ms-profile-grid-3,
  .ms-profile-logo-wall {
    grid-template-columns: 1fr;
  }

  .ms-profile-card {
    padding: 24px 21px;
    border-radius: 20px;
  }

  .ms-profile-value-box {
    padding: 29px 21px;
    border-radius: 20px;
  }
}

/*
|--------------------------------------------------------------------------
| Contraste reforzado en superficies claras
|--------------------------------------------------------------------------
*/

.ms-profile-page .ms-profile-hero-copy,
.ms-profile-page .ms-profile-feature,
.ms-profile-page .ms-profile-card:not(.ms-profile-card-accent),
.ms-profile-page .ms-profile-logo-item,
.ms-profile-page .ms-profile-value-box {
  color: var(--ms-text) !important;
}

.ms-profile-page .ms-profile-intro,
.ms-profile-page .ms-profile-feature p,
.ms-profile-page .ms-profile-head p,
.ms-profile-page .ms-profile-card:not(.ms-profile-card-accent) p,
.ms-profile-page .ms-profile-list,
.ms-profile-page .ms-profile-logo-item small,
.ms-profile-page .ms-profile-value-box p,
.ms-profile-page .ms-profile-cta p {
  color: var(--ms-muted) !important;
  opacity: 1 !important;
}

.ms-profile-page .ms-profile-card:not(.ms-profile-card-accent) h3,
.ms-profile-page .ms-profile-logo-item strong,
.ms-profile-page .ms-profile-head h2,
.ms-profile-page .ms-profile-value-box h2,
.ms-profile-page .ms-profile-cta h2 {
  color: var(--ms-blue) !important;
}

.ms-profile-page .ms-profile-id a,
.ms-profile-page .ms-profile-id span,
.ms-profile-page .ms-profile-tag {
  border-color: rgba(23, 63, 115, 0.18) !important;
  background: #f2f6f9 !important;
  color: #173f73 !important;
  opacity: 1 !important;
}

.ms-profile-page .ms-profile-btn-outline,
.ms-profile-page .ms-profile-btn-text {
  color: #173f73 !important;
  opacity: 1 !important;
}

@media (max-width: 720px) {
  .ms-profile-page .ms-profile-position-item {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
  }
}

/*
|--------------------------------------------------------------------------
| FINAL CONTRAST & TYPOGRAPHY OVERRIDES · 2026-08-01
| Selectores reales de la plantilla: .ms-profile-page
|--------------------------------------------------------------------------
*/

/* Tipografía coherente y legible en toda la página */
.ms-profile-page,
.ms-profile-page h1,
.ms-profile-page h2,
.ms-profile-page h3,
.ms-profile-page p,
.ms-profile-page li,
.ms-profile-page a,
.ms-profile-page span,
.ms-profile-page strong,
.ms-profile-page small {
  font-family: Arial, Helvetica, sans-serif !important;
}

/* Texto general sobre fondos claros */
.ms-profile-page p,
.ms-profile-page li {
  color: #334b66;
}

.ms-profile-page .ms-profile-intro,
.ms-profile-page .ms-profile-feature p,
.ms-profile-page .ms-profile-head p,
.ms-profile-page .ms-profile-card:not(.ms-profile-card-accent) p,
.ms-profile-page .ms-profile-list,
.ms-profile-page .ms-profile-logo-item small,
.ms-profile-page .ms-profile-value-box p,
.ms-profile-page .ms-profile-cta p {
  color: #3d5570 !important;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.74;
  opacity: 1 !important;
}

/* Títulos principales */
.ms-profile-page .ms-profile-hero h1 {
  color: #173f73 !important;
  font-size: clamp(2.35rem, 3.35vw, 3.45rem) !important;
  font-weight: 780;
  line-height: 1.04;
}

.ms-profile-page .ms-profile-feature h2 {
  color: #173f73 !important;
  font-size: clamp(2.25rem, 3.22vw, 3.34rem) !important;
  font-weight: 780;
  line-height: 1.07;
}

.ms-profile-page .ms-profile-head h2,
.ms-profile-page .ms-profile-value-box h2,
.ms-profile-page .ms-profile-cta h2,
.ms-profile-page .ms-profile-card:not(.ms-profile-card-accent) h3,
.ms-profile-page .ms-profile-logo-item strong {
  color: #173f73 !important;
}

/* Etiquetas superiores sobre fondos claros */
.ms-profile-page .ms-profile-eyebrow {
  color: #966900 !important;
  opacity: 1 !important;
}

/* Dorado luminoso sobre la sección azul */
.ms-profile-page .ms-profile-band .ms-profile-eyebrow {
  color: #e2c46b !important;
  opacity: 1 !important;
}

/* Texto de la sección azul */
.ms-profile-page .ms-profile-band h2 {
  color: #ffffff !important;
}

.ms-profile-page .ms-profile-band p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.74;
}

.ms-profile-page .ms-profile-checks li {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  opacity: 1 !important;
}

/* Posicionamientos profesionales */
.ms-profile-page .ms-profile-positioning {
  display: flex !important;
  flex-wrap: wrap;
  gap: 9px;
  color: #1f6843 !important;
  opacity: 1 !important;
}

.ms-profile-page .ms-profile-position-item {
  display: inline-flex !important;
  min-height: 38px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid #b7d2c0 !important;
  border-radius: 999px;
  background: #e8f3ec !important;
  color: #1f6843 !important;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  opacity: 1 !important;
}

/* Etiquetas pequeñas e identificadores */
.ms-profile-page .ms-profile-id a,
.ms-profile-page .ms-profile-id span,
.ms-profile-page .ms-profile-tag {
  border-color: rgba(23, 63, 115, 0.18) !important;
  background: #f1f5f8 !important;
  color: #173f73 !important;
  font-weight: 750;
  opacity: 1 !important;
}

/* Botones secundarios */
.ms-profile-page .ms-profile-btn-outline,
.ms-profile-page .ms-profile-btn-text {
  color: #173f73 !important;
  opacity: 1 !important;
}

/* Franja superior */
.ms-ribbon-profile {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: #173f73;
  color: #ffffff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
}

/* Móvil */
@media (max-width: 720px) {
  .ms-profile-page .ms-profile-position-item {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
  }

  .ms-profile-page .ms-profile-intro,
  .ms-profile-page .ms-profile-feature p,
  .ms-profile-page .ms-profile-head p,
  .ms-profile-page .ms-profile-card:not(.ms-profile-card-accent) p,
  .ms-profile-page .ms-profile-band p,
  .ms-profile-page .ms-profile-value-box p,
  .ms-profile-page .ms-profile-cta p {
    font-size: 1rem;
    line-height: 1.7;
  }
}

