/* ==========================================================================
   Ficha de profesor · ENAE (rediseño 2026)
   Color de acento: rojo granate oficial del Manual de Identidad de ENAE.
   Layout: cabecera gris con foto + nombre a lo ancho, biografía con columna
   lateral (programas que imparte y perfiles), publicaciones y blog.
   Usa las fuentes y colores que ya tiene el tema; Archivo y Open Sans solo
   son respaldo por si alguna fuente no carga.
   ========================================================================== */

.prof {
  --prof-rojo: #a91831;      /* Rojo granate ENAE (manual corporativo) */
  --prof-gris: #F1F3F6;
  --prof-negro: #221F20;
  --prof-texto: #2b2829;
  --prof-suave: #5f595b;
  --prof-linea: #d9dce3;
  --prof-blanco: #ffffff;

  --prof-display: 'sf-ui-display-heavy', 'Archivo', system-ui, sans-serif;
  --prof-bold: 'sf-ui-display-bold', 'Archivo', system-ui, sans-serif;
  --prof-light: 'sf-ui-display-Light', 'Archivo', system-ui, sans-serif;
  --prof-cuerpo: 'OpenSans-Light', 'Open Sans', system-ui, sans-serif;
  --prof-cuerpo-fuerte: 'OpenSans-SemiBold', 'Open Sans', system-ui, sans-serif;

  color: var(--prof-texto);
  background: var(--prof-blanco);
  font-synthesis: none;
}

.prof *,
.prof *::before,
.prof *::after { box-sizing: border-box; }

.prof-wrap {
  max-width: calc(1300px + 10vw);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px), 5vw);
  padding-right: max(16px, env(safe-area-inset-right, 0px), 5vw);
}

.prof .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------- Migas de pan (antes estaban dentro de la plantilla) ---------- */

.migas_de_pan_wrapper { background: #F1F3F6; }

.migas_de_pan_container {
  max-width: calc(1300px + 10vw);
  margin: 0 auto;
  padding: 20px max(16px, 5vw) 0;
  line-height: 1.4;
}

.migas_de_pan_container nav.breadcrumb {
  padding: 0;
  font-family: 'OpenSans-Light', 'Open Sans', sans-serif;
  font-size: 12px;
  color: #5f595b;
}

.migas_de_pan_container nav.breadcrumb a { color: #221F20; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Cabecera ---------- */

.prof-hero { background: var(--prof-gris); }

.prof-hero .prof-wrap {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  padding-block: 56px 64px;
}

.prof-foto {
  position: relative;
  margin: 0 16px 16px 0;
}

/* Bloque rojo desplazado detrás de la foto: mismo gesto que el slider de los másteres */
.prof-foto::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--prof-rojo);
}

.prof-foto img,
.prof-foto__ph {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1);
}

.prof-hero__texto { min-width: 0; }

.prof-eyebrow {
  margin: 0 0 14px;
  font-family: var(--prof-bold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--prof-rojo);
}

.prof-nombre {
  margin: 0;
  font-family: var(--prof-display);
  font-weight: 900;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--prof-negro);
  text-wrap: balance;
}

.prof-cargo {
  margin: 18px 0 0;
  max-width: 58ch;
  font-family: var(--prof-light);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.4;
  color: var(--prof-negro);
}

.prof-cargo p { margin: 0 0 .5em; }
.prof-cargo p:last-child { margin-bottom: 0; }
/* El resumen actual viene con párrafos enteros en negrita: aquí se neutraliza */
.prof-cargo strong,
.prof-cargo b { font-family: inherit; font-weight: inherit; }
.prof-cargo a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.prof-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.prof-areas li {
  margin: 0;
  padding: 7px 14px;
  border: 1px solid var(--prof-negro);
  border-radius: 50px;
  font-family: var(--prof-bold);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: var(--prof-negro);
}

.prof-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Botones ---------- */

.prof-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border: 2px solid var(--prof-negro);
  border-radius: 50px;
  background: transparent;
  font-family: var(--prof-bold);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: var(--prof-negro);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.prof-btn:hover { background: var(--prof-negro); color: var(--prof-blanco); }

.prof-btn--rojo {
  background: var(--prof-rojo);
  border-color: var(--prof-rojo);
  color: var(--prof-blanco);
}

.prof-btn--rojo:hover { background: var(--prof-negro); border-color: var(--prof-negro); }

.prof-btn:focus-visible,
.prof a:focus-visible {
  outline: 3px solid var(--prof-rojo);
  outline-offset: 3px;
}


/* ---------- Biografía + columna lateral ---------- */

.prof-cuerpo .prof-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  padding-block: 72px 88px;
}

.prof-cuerpo--sin-aside .prof-wrap { grid-template-columns: minmax(0, 1fr); }

.prof-cuerpo section { min-width: 0; }

/* Con .prof delante para ganar a los estilos generales de h2 del tema */
.prof .prof-seccion-titulo {
  margin: 0 0 24px;
  font-family: var(--prof-display);
  font-weight: 900;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--prof-negro);
  text-wrap: balance;
}

.prof-bio {
  max-width: 68ch;
  font-family: var(--prof-cuerpo);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--prof-texto);
}

.prof-bio p { margin: 0 0 1.1em; }

/* El contenido viene de Word y del editor con tamaños y fuentes propios:
   se fuerza a heredar los de la ficha para que todo se vea igual */
.prof .prof-bio p,
.prof .prof-bio li,
.prof .prof-bio span,
.prof .prof-bio div {
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
}

.prof .prof-bio [style],
.prof .prof-cargo [style] {
  font-size: inherit !important;
  font-family: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  text-transform: none !important;
}

.prof-bio strong,
.prof-bio b {
  font-family: var(--prof-cuerpo-fuerte);
  font-weight: 600;
  color: var(--prof-negro);
}

.prof-bio a {
  color: var(--prof-rojo);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prof-bio a:hover { color: var(--prof-negro); }

.prof-bio h2,
.prof-bio h3 {
  margin: 1.8em 0 .6em;
  font-family: var(--prof-bold);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  color: var(--prof-negro);
}

.prof-bio ul {
  display: grid;
  gap: 10px;
  margin: 1.2em 0 1.6em;
  padding: 0;
  list-style: none;
}

.prof-bio ul li {
  position: relative;
  margin: 0;
  padding-left: 28px;
}

.prof-bio ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--prof-cuerpo);
  font-weight: 300;
  color: var(--prof-rojo);
}

/* Enlaces de las listas (p. ej. publicaciones): oscuros y discretos, rojos al pasar */
.prof-bio li a {
  color: var(--prof-negro);
  text-decoration-color: var(--prof-linea);
  text-decoration-thickness: 1px;
}

.prof-bio li a:hover { color: var(--prof-rojo); text-decoration-color: currentColor; }

.prof-aside {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 20px;
  min-width: 0;
}

.prof-bloque {
  padding: 28px;
  background: var(--prof-gris);
}

.prof-bloque--oscuro {
  background: var(--prof-negro);
  color: var(--prof-blanco);
}

.prof-bloque__titulo {
  margin: 0 0 16px;
  font-family: var(--prof-bold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--prof-rojo);
}


/* ---------- Pestañas: Trayectoria / Programas que imparte ---------- */

.prof-tabs { min-width: 0; scroll-margin-top: 110px; }

.prof-tabs__lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0 36px;
  margin: 0 0 40px;
  border-bottom: 1px solid var(--prof-linea);
}

.prof-tabs__lista[hidden] { display: none; }

.prof-tabs__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  margin: 0 0 -1px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--prof-display);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.1;
  color: var(--prof-suave);
  cursor: pointer;
  transition: color .2s ease;
}

.prof-tabs__tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: transparent;
  transition: background-color .2s ease;
}

.prof-tabs__tab:hover { color: var(--prof-negro); }

.prof-tabs__tab[aria-selected="true"] { color: var(--prof-negro); }
.prof-tabs__tab[aria-selected="true"]::after { background: var(--prof-rojo); }

.prof-tabs__tab:focus-visible {
  outline: 3px solid var(--prof-rojo);
  outline-offset: 4px;
}

.prof-tabs__num:empty { display: none; }

.prof-tabs__num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 50px;
  background: var(--prof-rojo);
  font-family: var(--prof-bold);
  font-weight: 700;
  font-size: 14px;
  color: var(--prof-blanco);
}

.prof-tabs__tab[aria-selected="false"] .prof-tabs__num { background: var(--prof-gris); color: var(--prof-negro); }

/* Sin JavaScript los paneles van uno tras otro; con pestañas el título se oculta visualmente */
.prof-panel + .prof-panel { margin-top: 72px; }
.prof-tabs.is-tabs .prof-panel + .prof-panel { margin-top: 0; }

.prof-tabs.is-tabs .prof-panel__titulo {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.prof-panel:focus-visible { outline: 2px dashed var(--prof-linea); outline-offset: 8px; }

.prof-tabs.is-tabs .prof-panel:not([hidden]) { animation: prof-aparecer .25s ease; }

@keyframes prof-aparecer {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Tarjetas de programas (marcado de la vista existente) ---------- */

.prof-programas__intro {
  margin: 0 0 28px;
  font-family: var(--prof-cuerpo);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: var(--prof-suave);
}

.prof-programas .views-element-container,
.prof-programas .view { margin: 0; padding: 0; width: auto; }

.prof-programas .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 24px;
  width: auto;
  max-width: none;
  margin: 0;
}

.prof-programas .view-content::after { content: none; }

.prof-programas .views-row {
  float: none;
  width: auto;
  padding: 0;
}

.prof-programas .venta_cruzada_item_wrapper { height: 100%; }

.prof-programas .venta_cruzada_item_container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--prof-blanco);
  box-shadow: 0 0 0 1px var(--prof-linea);
  transition: box-shadow .25s ease, transform .25s ease;
}

.prof-programas .venta_cruzada_item_container:hover {
  box-shadow: 10px 10px 0 var(--prof-rojo), 0 0 0 1px var(--prof-negro);
  transform: translate(-3px, -3px);
}

.prof-programas .venta_cruzada_item_container:focus-within {
  outline: 3px solid var(--prof-rojo);
  outline-offset: 4px;
}

.prof-programas .imagen_banner_vc {
  aspect-ratio: 500 / 265;
  overflow: hidden;
  background: var(--prof-gris);
  line-height: 0;
}

.prof-programas .imagen_banner_vc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Los títulos llegan con mayúsculas y tildes mezcladas: se igualan todos */
.prof-programas .titulo_banner_vc {
  margin: 0;
  padding: 18px 20px 0;
  min-height: 0;
  border: 0;
  font-family: var(--prof-bold);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--prof-negro);
}

.prof-programas .descripcion_banner_vc { display: none; }

.prof-programas .link_banner_vc {
  margin-top: auto;
  padding: 14px 20px 20px;
  text-align: left;
}

.prof-programas .link_banner_vc a {
  font-family: var(--prof-bold);
  font-weight: 700;
  font-size: 14px;
  color: var(--prof-rojo);
  text-decoration: none;
}

/* Toda la tarjeta es clicable */
.prof-programas .link_banner_vc a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  margin: 0;
  background: none;
  transform: none;
}

.prof-programas .link_banner_vc a:focus-visible { outline: none; }

/* ---------- Cifras del perfil (se calculan solas) ---------- */

.prof-cifras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 12px;
  margin: 0 0 20px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--prof-linea);
  list-style: none;
}

/* Sin enlaces debajo, la línea separadora sobra */
.prof-cifras:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

/* Una sola cifra: título y cifra centrados. Los enlaces (LinkedIn, Scholar…)
   mantienen su fila normal, con el texto a la izquierda y la flecha a la derecha. */
.prof-bloque--centrado .prof-bloque__titulo,
.prof-bloque--centrado .prof-cifras { text-align: center; }
.prof-bloque--centrado .prof-cifras { grid-template-columns: minmax(0, 1fr); }
.prof-bloque--centrado .prof-cifras a { align-items: center; }

.prof-cifras li { margin: 0; min-width: 0; }

.prof-cifras a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--prof-negro);
  text-decoration: none;
}

.prof-cifras__num {
  font-family: var(--prof-display);
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  color: var(--prof-rojo);
  font-variant-numeric: tabular-nums;
}

.prof-cifras__txt {
  font-family: var(--prof-cuerpo);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.3;
  /* El tema corta palabras por cualquier letra: aquí se corta solo entre palabras */
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}

.prof-cifras a:hover .prof-cifras__txt { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Llamada a la acción ---------- */

.prof-bloque--cta {
  background: var(--prof-rojo);
  color: var(--prof-blanco);
}

.prof .prof-cta__titulo {
  margin: 0 0 10px;
  font-family: var(--prof-display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1.15;
  color: var(--prof-blanco);
  text-wrap: balance;
}

.prof-cta__texto {
  margin: 0 0 22px;
  font-family: var(--prof-cuerpo);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--prof-blanco);
}

.prof-cta__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prof-cta__acciones .prof-btn {
  flex: 1 1 auto;
  justify-content: center;
  padding: 0 20px;
  font-size: 15px;
}

.prof-btn--blanco {
  background: var(--prof-blanco);
  border-color: var(--prof-blanco);
  color: var(--prof-rojo);
}

.prof-btn--blanco:hover {
  background: var(--prof-negro);
  border-color: var(--prof-negro);
  color: var(--prof-blanco);
}

.prof-btn--borde-blanco {
  border-color: var(--prof-blanco);
  color: var(--prof-blanco);
}

.prof-btn--borde-blanco:hover {
  background: var(--prof-negro);
  border-color: var(--prof-negro);
  color: var(--prof-blanco);
}

.prof-bloque--cta .prof-btn:focus-visible { outline-color: var(--prof-blanco); }

.prof-enlaces {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prof-enlaces a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid var(--prof-linea);
  font-family: var(--prof-bold);
  font-weight: 600;
  font-size: 16px;
  color: var(--prof-negro);
  text-decoration: none;
}

.prof-enlaces li:last-child a { border-bottom: 0; }
.prof-enlaces a:hover { color: var(--prof-rojo); }

/* ---------- Publicaciones (fase 2) ---------- */

.prof-pubs { background: var(--prof-gris); scroll-margin-top: 110px; }

.prof-pubs .prof-wrap { padding-block: 72px 80px; }

.prof-pubs__cabecera {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 32px;
  margin-bottom: 32px;
}

.prof .prof-pubs__cabecera .prof-seccion-titulo { margin: 0; }

.prof-pubs__lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prof-pubs__lista li {
  margin: 0;
  border-top: 1px solid var(--prof-linea);
}

.prof-pubs__lista a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0 22px;
  color: var(--prof-negro);
  text-decoration: none;
}

.prof-pubs__titulo {
  font-family: var(--prof-cuerpo);
  font-weight: 300;
  font-size: 21px;
  line-height: 1.45;
  color: var(--prof-negro);
}

.prof-pubs__meta {
  font-family: var(--prof-bold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--prof-rojo);
}

.prof-pubs__lista a:hover .prof-pubs__titulo {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Artículos del blog (se ajusta el marcado de la vista existente) ---------- */

.prof-blog { scroll-margin-top: 110px; }

.prof-blog .prof-wrap { padding-block: 72px 80px; }

.prof-blog .blog_enae_page_label_container { display: none; }
.prof-blog .blog_enae_page_container { padding: 0; }

.prof-blog .blog_enae_page_wrapper .views-row:nth-child(odd),
.prof-blog .blog_enae_page_wrapper .views-row:nth-child(even) { background: var(--prof-gris); }

.prof-blog .views-row + .views-row { margin-top: 16px; }

.prof-blog .blog_page_item_container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 12px 48px;
  min-height: 0;
  padding: 36px 40px;
}

.prof-blog .blog_page_item_container::after { content: none; }

.prof-blog .blog_enae_page_wrapper .columna_1_blog_item,
.prof-blog .blog_enae_page_wrapper .columna_2_blog_item {
  float: none;
  width: auto;
  padding: 0;
}

.prof-blog .fecha_blog_page_item {
  margin-bottom: 8px;
  font-family: var(--prof-bold);
  font-size: 15px;
  color: var(--prof-rojo);
}

.prof-blog .titulo_blog_page_item a {
  font-family: var(--prof-bold);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--prof-negro);
  text-decoration: none;
}

.prof-blog .titulo_blog_page_item a:hover { color: var(--prof-rojo); }

.prof-blog .texto_blog_page_item {
  font-family: var(--prof-cuerpo);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--prof-texto);
}

.prof-blog .enlace_blog_page_item {
  position: static;
  grid-column: 2;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: left;
}

.prof-blog .enlace_blog_page_item a,
.prof-blog .enlace_blog_page_item a:hover {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 50px;
  background: var(--prof-rojo);
  font-family: var(--prof-bold);
  font-weight: 700;
  font-size: 14px;
  color: var(--prof-blanco);
  text-decoration: none;
}

.prof-blog .enlace_blog_page_item a:hover { background: var(--prof-negro); }

/* ---------- Estados de los enlaces ----------
   El tema da color a a:visited, a:focus y a:active con más prioridad que una
   clase sola. Al volver a la ficha desde otra página, el botón quedaba
   "visitado" o con el foco y el texto se volvía rojo sobre fondo rojo.
   Aquí se fija el color de cada botón y enlace en todos sus estados. */

.prof a.prof-btn,
.prof a.prof-btn:link,
.prof a.prof-btn:visited,
.prof a.prof-btn:focus,
.prof a.prof-btn:active { color: var(--prof-negro); text-decoration: none; }

.prof a.prof-btn:hover { color: var(--prof-blanco); }

.prof a.prof-btn--rojo,
.prof a.prof-btn--rojo:link,
.prof a.prof-btn--rojo:visited,
.prof a.prof-btn--rojo:focus,
.prof a.prof-btn--rojo:active,
.prof a.prof-btn--rojo:hover { color: var(--prof-blanco); }

.prof a.prof-btn--blanco,
.prof a.prof-btn--blanco:link,
.prof a.prof-btn--blanco:visited,
.prof a.prof-btn--blanco:focus,
.prof a.prof-btn--blanco:active { color: var(--prof-rojo); }

.prof a.prof-btn--blanco:hover { color: var(--prof-blanco); }

.prof a.prof-btn--borde-blanco,
.prof a.prof-btn--borde-blanco:link,
.prof a.prof-btn--borde-blanco:visited,
.prof a.prof-btn--borde-blanco:focus,
.prof a.prof-btn--borde-blanco:active { color: var(--prof-blanco); }

.prof a.prof-btn--borde-blanco:hover { color: var(--prof-blanco); }

.prof .prof-enlaces a:visited,
.prof .prof-enlaces a:focus,
.prof .prof-cifras a:visited,
.prof .prof-cifras a:focus,
.prof .prof-pubs__lista a:visited,
.prof .prof-pubs__lista a:focus { color: var(--prof-negro); }

.prof .prof-enlaces a:hover { color: var(--prof-rojo); }

.prof .prof-bio a:visited,
.prof .prof-programas .link_banner_vc a:visited,
.prof .prof-programas .link_banner_vc a:focus { color: var(--prof-rojo); }

.prof .prof-bio li a:visited { color: var(--prof-negro); }
.prof .prof-bio li a:hover { color: var(--prof-rojo); }

/* ---------- Móvil y tableta ---------- */

@media (max-width: 900px) {
  .prof-hero .prof-wrap {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding-block: 40px 48px;
  }

  .prof-foto { max-width: 240px; }

  .prof-cuerpo .prof-wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 48px 56px;
  }

  .prof-aside { position: static; }

  .prof-tabs__lista { gap: 0 24px; }

  .prof-pubs__lista { grid-template-columns: minmax(0, 1fr); }

  .prof-pubs .prof-wrap,
  .prof-blog .prof-wrap { padding-block: 48px 56px; }

  .prof-blog .blog_page_item_container {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 24px;
  }

  .prof-blog .enlace_blog_page_item { grid-column: 1; }
}

@media (max-width: 480px) {
  .prof-pubs__titulo { font-size: 18px; }
  .prof-bio { font-size: 17px; }
  .prof-btn { padding: 0 20px; font-size: 15px; }
  .prof-bloque { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .prof-btn,
  .prof-tabs__tab,
  .prof-tabs__tab::after,
  .prof-programas .venta_cruzada_item_container { transition: none; }
  .prof-tabs.is-tabs .prof-panel:not([hidden]) { animation: none; }
  .prof-programas .venta_cruzada_item_container:hover { transform: none; }
}
