/* Estilos compartidos del sitio CIJUREP. Se cargan después de css.css. */
:root {
  --cj-guinda: #8b1d24;
  --cj-guinda-osc: #641218;
  --cj-oro: #b08a24;
  --cj-oro-claro: #f5ecd2;
  --cj-tinta: #27211f;
  --cj-texto: #4a4441;
  --cj-suave: #746c67;
  --cj-linea: #e7dfd8;
  --cj-fondo: #faf7f3;
  --cj-blanco: #fff;
  --cj-serif: Georgia, "Times New Roman", serif;
  --cj-sombra: 0 6px 20px rgba(60, 25, 20, .08);
}

/* ---------- Correcciones globales del sitio ---------- */
html, body { overflow-x: clip; }
img, video, iframe, object, embed { max-width: 100%; }
main img, .seccion img, .card_ad img, #container img { height: auto; }
table { max-width: 100%; }
.row.carusel { margin-left: 0; margin-right: 0; }
.carusel .item img { display: block; }
footer .row, .top-bar-area .row { margin-left: 0; margin-right: 0; }
/* bootsnav reserva la barra superior dos veces; deja solo la altura real del menú */
.wrap-sticky { height: 90px !important; }
@media (max-width: 991px) { .wrap-sticky { height: 66px !important; } }

/* Componentes antiguos con ancho fijo */
@media (max-width: 1240px) {
  .card_semblanzas, .card_semblanzas_desc, #container, .card_ad-container, .container-event { width: auto; max-width: 100%; }
  .card_semblanzas { margin-left: auto; margin-right: auto; }
}
@media (max-width: 767px) {
  .column, .column_fb { width: 100% !important; float: none !important; padding-left: 0 !important; }
  .container, .seccion { max-width: 100%; }
  table { display: block; overflow-x: auto; }
  .card, .card_tiny { width: 100% !important; max-width: 340px; }
  .card_ad-container { margin-top: 24px; }
  .card_ad-body { float: none; display: block; width: auto; }
  .card_ad-media { float: none; display: block; max-width: 100%; margin: 12px auto 0; }
  .card_ad-read { float: none; text-align: left; }
  .card_semblanzas, .card_semblanzas_desc { height: auto; margin: 16px auto; padding: 16px; text-align: center; }
  .top-bar-area .media-info.pull-right { display: none; }
  .navbar-collapse { max-height: 72vh !important; }
  .card_semblanzas .user-card { position: static; transform: none; width: auto; height: auto; margin: 0 auto 10px; }
  .card_semblanzas .img_card { position: static; transform: none; display: block; margin: 0 auto; }
  .card_semblanzas .additional, .card_semblanzas .general,
  .card_semblanzas_desc .additional, .card_semblanzas_desc .general {
    position: static; width: auto; height: auto; margin: 0; padding: 0; background: none;
  }
  #container { height: auto; margin: 16px auto; }
  #container .product-details, #container .product-image, #container .info {
    position: static; float: none; width: auto; height: auto; max-width: 100%; padding: 12px 16px; margin: 0; left: auto; right: auto;
  }
  #container .product-image { padding: 0; }
  #container .product-image img { display: block; width: 100%; height: auto; }
  #container .product-image:hover img { transform: none; }
  #container .info { transform: none !important; }
  .control { position: static; margin: 0 0 12px; }
  .slider-content-wrapper .wrapper { margin-left: 15% !important; margin-right: 15% !important; }
  .slider-content-wrapper h3 { font-size: 15px; }
  .slider-content-wrapper .container { margin-top: 4% !important; }
  .gallery-image { max-width: 100%; }
}
@media (min-width: 768px) { .column > .cj-link-cards { margin-left: 28px; } }
.cj p, .cj li { text-align: left; }
.cj .cj-person, .cj .cj-person h3, .cj .cj-person p, .cj .cj-org-node h3, .cj .cj-org-node p, .cj .cj-profile-side p { text-align: center; }
/* Noticias: el carrusel antiguo no debe ensanchar la página */
section.noticias { margin-left: 0 !important; width: auto !important; max-width: 100%; }
section.noticias .row { max-width: 100%; }
section.noticias .col-lg-8:only-child { float: none; margin-left: auto; margin-right: auto; }
.slick_slider, .slick-list { max-width: 100%; overflow: hidden; }
.cj input::placeholder, .cj-navsearch input::placeholder { color: #857a74; opacity: 1; }

/* ---------- Menú: buscador ---------- */
.cj-navsearch { display: flex; align-items: center; margin: 22px 0 0 8px; float: right; }
.cj-navsearch input[type="search"] {
  width: 148px; height: 34px !important; min-height: 34px !important; box-sizing: border-box; margin: 0 !important; padding: 4px 10px; font-size: 13px; line-height: 1.2;
  border: 1px solid var(--cj-linea); border-right: 0; border-radius: 4px 0 0 4px; background: #fff; color: var(--cj-tinta);
}
.cj-navsearch button {
  height: 34px; width: 36px; margin: 0; padding: 0; border: 1px solid var(--cj-guinda); border-radius: 0 4px 4px 0;
  background: var(--cj-guinda); color: #fff; cursor: pointer; line-height: 1;
}
.cj-navsearch button:hover { background: var(--cj-guinda-osc); }
.cj-navsearch svg { width: 15px; height: 15px; vertical-align: middle; }
@media (max-width: 991px) {
  .cj-navsearch { float: none; margin: 10px 15px 14px; }
  .cj-navsearch input[type="search"] { flex: 1; width: auto; }
}

/* ---------- Estructura de las páginas generadas ---------- */
.cj { color: var(--cj-texto); font-size: 16px; line-height: 1.65; padding-bottom: 56px; }
.cj * { box-sizing: border-box; }
.cj h1, .cj h2, .cj h3, .cj h4 { color: var(--cj-tinta); text-transform: none; letter-spacing: 0; }
.cj-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.cj-hero { background: linear-gradient(120deg, var(--cj-guinda-osc), var(--cj-guinda)); padding: 44px 0 40px; margin-bottom: 36px; }
.cj .cj-hero h1 { color: #fff; font-family: var(--cj-serif); font-size: clamp(28px, 4.2vw, 42px); line-height: 1.2; font-weight: 700; margin: 0 0 10px; }
.cj-hero p { color: #f6e9e4; font-size: 17px; max-width: 760px; margin: 0; }
.cj-crumbs { font-size: 13px; margin-bottom: 14px; color: #ecd7d2; }
.cj-crumbs a { color: #fff !important; text-decoration: underline; }
.cj-crumbs span[aria-hidden] { margin: 0 6px; }
.cj-sec { margin: 0 0 44px; }
.cj .cj-sec > h2, .cj h2.cj-h2 {
  font-family: var(--cj-serif); font-size: clamp(23px, 3vw, 30px); line-height: 1.25; font-weight: 700;
  margin: 0 0 8px; padding: 0;
}
.cj-lead { color: var(--cj-suave); margin: 0 0 20px; max-width: 780px; }
.cj a:not(.cj-btn):not(.cj-card-link) { color: var(--cj-guinda); }
.cj-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cj-grid-wide { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
@media (max-width: 400px) { .cj-grid-wide { grid-template-columns: 1fr; } }
.cj-card {
  display: flex; flex-direction: column; background: var(--cj-blanco); border: 1px solid var(--cj-linea);
  border-radius: 8px; padding: 20px; box-shadow: var(--cj-sombra); min-width: 0;
}
.cj .cj-card h3 { font-size: 18px; line-height: 1.35; font-weight: 700; margin: 0 0 8px; }
.cj .cj-card h3 a { text-decoration: none; color: var(--cj-tinta); }
.cj .cj-card h3 a:hover { color: var(--cj-guinda); text-decoration: underline; }
.cj-card p { margin: 0 0 10px; }
.cj-card ul.lists { padding-left: 18px; margin: 0 0 12px; }
.cj-card .cj-actions { margin-top: auto; padding-top: 8px; }
.cj-meta { font-size: 14px; color: var(--cj-suave); margin: 0 0 8px; overflow-wrap: anywhere; }
.cj-tag {
  display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.3; padding: 3px 9px; border-radius: 999px;
  background: var(--cj-oro-claro); color: #6d5310; margin: 0 5px 5px 0;
}
.cj-tag-g { background: #f6e4e4; color: var(--cj-guinda-osc); }

/* Botones */
.cj-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cj .cj-btn, .cj-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 18px; margin: 0;
  border: 1px solid var(--cj-guinda); border-radius: 5px; background: var(--cj-guinda); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 1.25; text-decoration: none; text-transform: none; letter-spacing: 0; cursor: pointer;
  text-align: center;
}
.cj .cj-btn:hover, .cj-btn:hover { background: var(--cj-guinda-osc); border-color: var(--cj-guinda-osc); color: #fff; }
.cj .cj-btn-sec, .cj-btn-sec { background: #fff; color: var(--cj-guinda); }
.cj .cj-btn-sec:hover, .cj-btn-sec:hover { background: #f8ecec; color: var(--cj-guinda-osc); }
.cj-btn:focus-visible, .cj-link-card:focus-visible, .cj summary:focus-visible, .cj input:focus-visible, .cj select:focus-visible {
  outline: 3px solid var(--cj-oro); outline-offset: 2px;
}

/* Botones-tarjeta (becas, generaciones) */
.cj-link-cards { display: grid; gap: 14px; }
.cj-link-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--cj-linea); border-left: 5px solid var(--cj-guinda);
  border-radius: 6px; background: #fff; box-shadow: var(--cj-sombra); text-decoration: none !important; color: var(--cj-tinta) !important;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cj-link-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(60, 25, 20, .14); background: #fffdfa; }
.cj-link-card svg { flex: none; width: 26px; height: 26px; color: var(--cj-guinda); }
.cj-link-card strong { display: block; font-size: 16px; line-height: 1.3; color: var(--cj-tinta); }
.cj-link-card small { display: block; font-size: 13px; line-height: 1.35; color: var(--cj-suave); margin-top: 2px; }
.cj-link-card .cj-arrow { margin-left: auto; color: var(--cj-guinda); font-size: 20px; }

/* Visor de PDF */
.cj-pdf-box { border: 1px solid var(--cj-linea); border-radius: 8px; background: var(--cj-fondo); padding: 18px; margin: 0 0 22px; }
.cj .cj-pdf-box h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.cj-pdf-box details { margin-top: 12px; }
.cj-pdf-box summary { cursor: pointer; font-weight: 700; color: var(--cj-guinda); padding: 4px 0; }
.cj-pdf-box iframe { display: block; width: 100%; height: 76vh; min-height: 480px; border: 1px solid var(--cj-linea); border-radius: 4px; background: #fff; margin-top: 10px; }
.cj-pdf-hint { font-size: 13px; color: var(--cj-suave); margin: 8px 0 0; }
@media (max-width: 767px) { .cj-pdf-box details { display: none; } }
@media (min-width: 768px) { .cj-pdf-hint { display: none; } }

/* Subnavegación por anclas */
.cj-subnav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.cj-subnav a { display: inline-block; padding: 6px 13px; border: 1px solid var(--cj-linea); border-radius: 999px; background: #fff; color: var(--cj-guinda) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.cj-subnav a:hover { background: #f8ecec; }

/* Catálogos con búsqueda */
.cj-filtros { display: grid; gap: 12px; grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(150px, 1fr)); background: var(--cj-fondo); border: 1px solid var(--cj-linea); border-radius: 8px; padding: 16px; margin: 0 0 16px; }
.cj-filtros label { display: block; font-size: 13px; font-weight: 700; color: var(--cj-tinta); margin: 0 0 4px; }
.cj .cj-filtros input, .cj .cj-filtros select { display: block; width: 100%; height: 42px; margin: 0; padding: 6px 10px; font-size: 15px; color: var(--cj-tinta); background: #fff; border: 1px solid #cfc6bf; border-radius: 5px; }
@media (max-width: 600px) { .cj-filtros { grid-template-columns: 1fr; } }
.cj-count { font-size: 14px; color: var(--cj-suave); margin: 0 0 14px; }
.cj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cj-list > li { margin: 0; list-style: none; }
.cj-list.cj-grid { gap: 20px; }
.cj-item { background: #fff; border: 1px solid var(--cj-linea); border-radius: 8px; padding: 16px 18px; }
.cj .cj-item h3 { font-size: 17px; line-height: 1.35; font-weight: 700; margin: 0 0 5px; }
.cj .cj-item h3 a { text-decoration: none; color: var(--cj-tinta); }
.cj .cj-item h3 a:hover { color: var(--cj-guinda); text-decoration: underline; }
.cj-item p { margin: 0; }
.cj-more { display: flex; justify-content: center; margin-top: 18px; }
.cj-empty { padding: 26px; text-align: center; background: var(--cj-fondo); border-radius: 8px; color: var(--cj-suave); }
[hidden] { display: none !important; }

/* Personas */
.cj-person { align-items: center; text-align: center; }
.cj-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid var(--cj-oro-claro); margin: 0 0 12px; background: #eee; }
.cj-initials { display: flex; align-items: center; justify-content: center; background: var(--cj-guinda); color: #fff; font-family: var(--cj-serif); font-size: 34px; }
.cj-person .cj-actions { justify-content: center; }
.cj-profile { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; }
.cj-profile-side { text-align: center; background: var(--cj-fondo); border: 1px solid var(--cj-linea); border-radius: 8px; padding: 22px; }
.cj-profile .cj-avatar { width: 160px; height: 160px; }
.cj-profile .cj-initials { font-size: 48px; }
.cj .cj-profile h2 { font-family: var(--cj-serif); font-size: 23px; font-weight: 700; margin: 0 0 8px; }
.cj-profile section { margin: 0 0 30px; }
.cj-profile ul.cj-plain { padding-left: 20px; margin: 0; }
.cj-profile ul.cj-plain li { list-style: disc; margin: 0 0 6px; }
.cj-profile-side .cj-actions { flex-direction: column; align-items: stretch; margin-top: 12px; }
@media (max-width: 767px) { .cj-profile { grid-template-columns: 1fr; gap: 22px; } }

/* Galería de coordinadores */
.cj-gallery { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cj-coord { background: #fff; border: 1px solid var(--cj-linea); border-radius: 8px; overflow: hidden; box-shadow: var(--cj-sombra); }
.cj-coord img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; background: #eee; }
.cj-coord-body { padding: 14px 16px 16px; }
.cj .cj-coord h3 { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 5px; }
.cj-coord p { margin: 0 0 4px; font-size: 14px; }
.cj-coord .cj-periodo { color: var(--cj-guinda); font-weight: 700; }

/* Organigrama */
.cj-org { display: flex; flex-direction: column; align-items: center; }
.cj-org-node { background: #fff; border: 1px solid var(--cj-linea); border-top: 4px solid var(--cj-guinda); border-radius: 8px; padding: 14px 18px; text-align: center; box-shadow: var(--cj-sombra); }
.cj-org-root { width: min(100%, 420px); background: var(--cj-guinda); border-color: var(--cj-guinda); color: #fff; }
.cj .cj-org-root h3, .cj-org-root p, .cj .cj-org-root a:not(.cj-btn) { color: #fff; }
.cj .cj-org-node h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.cj-org-node p { margin: 0; font-size: 14px; }
.cj-org-line { width: 2px; height: 26px; background: var(--cj-oro); }
.cj-org-branches { position: relative; display: grid; gap: 22px; width: 100%; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); padding-top: 26px; align-items: start; }
.cj-org-branches::before { content: ""; position: absolute; top: 0; left: 16.5%; right: 16.5%; height: 2px; background: var(--cj-oro); }
.cj-org-branch { position: relative; }
.cj-org-branch::before { content: ""; position: absolute; top: -26px; left: 50%; width: 2px; height: 26px; background: var(--cj-oro); }
.cj-org-branch details { margin-top: 10px; background: var(--cj-fondo); border: 1px solid var(--cj-linea); border-radius: 6px; padding: 8px 12px; }
.cj-org-branch summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--cj-guinda); }
.cj-org-branch ul { list-style: none; margin: 8px 0 0; padding: 0; }
.cj-org-branch li { list-style: none; margin: 0; padding: 7px 0; border-top: 1px solid var(--cj-linea); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.cj-org-branch li small { display: block; color: var(--cj-suave); }
@media (max-width: 660px) {
  .cj-org-branches::before, .cj-org-branch::before { display: none; }
  .cj-org-branches { padding-top: 0; }
}

/* Cita APA */
.cj-article-head { max-width: 860px; }
.cj-abstract { max-width: 860px; }
.cj-cite { max-width: 860px; margin-top: 12px; padding: 16px 18px; background: var(--cj-fondo); border: 1px solid var(--cj-linea); border-left: 5px solid var(--cj-oro); border-radius: 6px; }
.cj-cite h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.cj-cite p { margin: 0 0 12px; overflow-wrap: anywhere; }
.cj-copied { font-size: 13px; color: #27633a; margin-left: 10px; }

/* Buscador general */
.cj-search-form { display: flex; gap: 8px; margin: 0 0 16px; }
.cj .cj-search-form input { flex: 1; min-width: 0; height: 48px; margin: 0; padding: 8px 14px; font-size: 17px; border: 1px solid #bfb5ad; border-radius: 5px; color: var(--cj-tinta); }
.cj-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.cj .cj-tab { min-height: 34px; padding: 5px 13px; margin: 0; border: 1px solid var(--cj-linea); border-radius: 999px; background: #fff; color: var(--cj-texto); font-size: 14px; font-weight: 600; cursor: pointer; }
.cj .cj-tab[aria-pressed="true"] { background: var(--cj-guinda); border-color: var(--cj-guinda); color: #fff; }
.cj mark { background: #fbeeba; color: inherit; padding: 0 1px; }

/* Página de inicio */
.cj-home { padding: 56px 0; }
.cj-home-alt { background: var(--cj-fondo); border-top: 1px solid var(--cj-linea); border-bottom: 1px solid var(--cj-linea); }
.cj-home-title { text-align: center; max-width: 780px; margin: 0 auto 32px; }
.cj .cj-home-title h2 { font-family: var(--cj-serif); font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; line-height: 1.2; margin: 0 0 10px; color: var(--cj-guinda-osc); }
.cj-home-title p { margin: 0; color: var(--cj-suave); }
.cj-why article { background: #fff; border: 1px solid var(--cj-linea); border-top: 4px solid var(--cj-guinda); border-radius: 8px; padding: 20px; box-shadow: var(--cj-sombra); display: flex; flex-direction: column; }
.cj .cj-why h3 { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.cj-why p { margin: 0 0 10px; font-size: 15px; }
.cj-why a { margin-top: auto; font-size: 14px; font-weight: 700; }
.cj-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.cj-video { position: relative; aspect-ratio: 16 / 9; max-width: 860px; margin: 0 auto; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 40px rgba(60, 25, 20, .22); background: #111; }
.cj-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Enlaces entre investigadores y la revista */
.cj .cj-revista-link { flex-basis: 100%; font-size: 13px; font-weight: 700; text-align: center; }
.cj-semblanza-revista { padding-top: 26px; }
.cj .cj-semblanza-revista > h2, .cj-profile #revista > h2 { font-family: var(--cj-serif); font-size: 23px; font-weight: 700; margin: 0 0 14px; }

/* Enlace destacado en el encabezado de la Revista */
.cj-hero-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.cj .cj-hero-link .cj-btn { background: #fff; border-color: #fff; color: var(--cj-guinda-osc); }
.cj .cj-hero-link .cj-btn:hover { background: var(--cj-oro-claro); border-color: var(--cj-oro-claro); color: var(--cj-guinda-osc); }
.cj .cj-hero-link .cj-hero-url { color: #fff !important; font-size: 14px; text-decoration: underline; overflow-wrap: anywhere; }

/* ---------- Página de inicio ---------- */
/* El CSS antiguo subía el carrusel para compensar un hueco del menú que ya no existe */
.row.carusel { margin-top: 0; position: relative; }
.carusel .item img { width: 100%; height: 500px !important; object-fit: cover; }
.carusel .owl-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 10; text-align: center; }
.carusel .owl-dot { display: inline-block; margin: 0 4px; padding: 0; background: none; border: 0; }
.carusel .owl-dot span { display: block; width: 10px; height: 10px; margin: 0; border-radius: 50%; background: rgba(255, 255, 255, .75); box-shadow: 0 0 0 1px rgba(40, 10, 14, .55); }
.carusel .owl-dot.active span { background: var(--cj-oro); }
@media (max-width: 767px) { .carusel .item img { height: 580px !important; } }

.carr-taza-subtext, .promo-taza-subtitle, .promo-taza-section p { text-align: left; }
.promo-taza-main-title::before, .slider-title::before, .carr-taza-heading::before { display: none !important; }
.promo-taza-section strong { font-family: inherit; font-weight: 700; }

/* Diapositivas de texto: más contraste sobre el logotipo */
.carusel .slider-content-wrapper { display: flex; align-items: center; background: rgba(45, 10, 14, .82) !important; }
.carusel .slider-content-wrapper > .container { margin-top: 0 !important; }
.carusel .slider-title { font-family: var(--cj-serif); font-weight: 700; }
.carusel .slider-content b { font-family: inherit; font-weight: 700; }
.carusel .toggle_btn { background: #fff; padding: 10px 16px; }
.carusel .toggle_btn .toggle_text, .carusel .toggle_btn .arrow { color: var(--cj-guinda-osc) !important; }

/* Títulos de sección */
.cj .cj-home-title h2 { position: relative; padding-top: 14px; }
.cj .cj-home-title h2::before { top: 0; left: 50%; margin-left: -20px; }
.cj strong, .cj b, .cj-link-card strong, .card-body-event strong { font-family: inherit; font-weight: 700; }

/* ¿Por qué estudiar? */
.cj-why { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.cj-why article { flex: 0 1 100%; }
@media (min-width: 600px) { .cj-why article { flex-basis: calc(50% - 10px); } }
@media (min-width: 1000px) { .cj-why article { flex-basis: calc(25% - 15px); } }

/* Historia y accesos */
.cj-story { display: grid; grid-template-columns: 170px 1fr; gap: 34px; align-items: center; max-width: 900px; margin: 0 auto 36px; }
.cj-story img { display: block; width: 100%; }
.cj .cj-story h2 { font-family: var(--cj-serif); font-size: clamp(25px, 3.2vw, 32px); font-weight: 700; line-height: 1.2; margin: 0 0 10px; color: var(--cj-guinda-osc); }
.cj-story p { margin: 0 0 16px; }
.cj .cj-story .cj-eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7b6118; }
.cj-access { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .cj-access { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .cj-story { grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .cj-story img { width: 130px; }
}

/* Eventos */
.cj-events .container-event { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; width: auto; max-width: 100%; }
.cj-events .card-event { display: flex; flex-direction: column; width: auto; margin: 0; background: #fff; border: 1px solid var(--cj-linea); border-radius: 8px; box-shadow: var(--cj-sombra); }
.cj-events .card-header-event img { display: block; width: 100%; height: 380px; object-fit: contain; background: #efe9e2; }
.cj-events .card-body-event { flex: 1; display: block; height: auto; margin: 0; padding: 18px 20px 20px; font-size: 14px; }
.cj-events .tag-event { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 999px; background: var(--cj-oro-claro); color: #6d5310; font-size: 12px; font-weight: 700; line-height: 1.4; text-transform: none; }
.cj .cj-events .card-body-event h5, .cj-events .card-body-event h5 { margin: 0 0 10px; font-family: inherit; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--cj-tinta); text-transform: none; }
.cj-events .card-body-event ul { margin: 0; padding: 0; list-style: none; }
.cj-events .card-body-event li { margin: 0 0 4px; padding: 0; line-height: 1.45; list-style: none; }

/* Redes */
.cj-social { max-width: 500px; margin: 0 auto; overflow: hidden; }
.cj-social .fb-page, .cj-social .fb-page > span, .cj-social .fb-page iframe { display: block; width: 100% !important; }
.promo-taza-section { margin-top: 0 !important; border-top: 0 !important; }

/* ---------- Marco común de las páginas existentes ---------- */
.cj-page .seccion { min-height: 0; width: auto; }
.cj-page header + .container, .cj-page header + .seccion, .cj-page .cj-back + .seccion { padding-top: 24px; }
.cj-legacy-head { padding-bottom: 0; }
.cj-legacy-head .cj-hero { margin-bottom: 32px; }
.cj-page { color: var(--cj-texto); }
.cj-page .container p, .cj-page .container li { text-align: left; }
.cj-page strong, .cj-page b { font-family: inherit; font-weight: 700; color: var(--cj-tinta); }
.cj-page .container > h3, .cj-page .column > h3 { font-family: var(--cj-serif); font-size: clamp(22px, 2.6vw, 27px); font-weight: 700; line-height: 1.25; margin: 34px 0 12px; color: var(--cj-guinda-osc); text-transform: none; }
.cj-page .container > h3::before, .cj-page .column > h3::before { display: none; }
.cj-page .container > h4, .cj-page .column > h4 { font-size: 18px; font-weight: 700; color: var(--cj-tinta); margin: 22px 0 8px; }
.cj-page .decorated { color: var(--cj-tinta); }
.cj-page .decorated::before { background: var(--cj-oro); }
.cj-prose p, .cj-prose li { max-width: 860px; }
.cj-prose p { margin-bottom: 14px; }
.cj-page ul.lists { padding-left: 22px; margin-bottom: 14px; }
.cj-page ul.lists li { list-style: disc; margin-bottom: 5px; }
.cj-page a[style*="color: red"] { color: var(--cj-guinda) !important; font-weight: 700; }
.cj-page .custom-btn { width: auto; min-height: 38px; height: auto; padding: 7px 16px; border: 1px solid var(--cj-guinda); border-radius: 5px; background: #fff; color: var(--cj-guinda); font-weight: 700; box-shadow: none; }
.cj-page .custom-btn:hover { background: #f8ecec; color: var(--cj-guinda-osc); }

/* Tablas */
.cj-page .table { width: 100%; margin: 0 0 24px; background: #fff; border: 1px solid var(--cj-linea); border-collapse: collapse; font-size: 15px; }
.cj-page .table > thead > tr > th { background: var(--cj-guinda) !important; border-color: var(--cj-guinda) !important; color: #fff !important; font-weight: 700; text-align: left !important; padding: 10px 12px; }
.cj-page .table th, .cj-page .table td { border: 1px solid var(--cj-linea) !important; padding: 9px 12px; vertical-align: middle; text-align: left !important; color: var(--cj-texto); }
.cj-page .table tbody th { background: var(--cj-fondo) !important; color: var(--cj-tinta); font-weight: 700; }
.cj-page .table tbody th[colspan] { background: var(--cj-oro-claro) !important; color: #5c4510; font-size: 16px; }
.cj-page .table-striped > tbody > tr:nth-of-type(odd) { background: #fff; }
.cj-page .table td ul { margin: 0; padding: 0; list-style: none; }
.cj-page .table td li { margin: 0; list-style: none; }
.cj-page .table td a { color: var(--cj-guinda); }

/* Enlace de regreso */
.cj-back { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 18px; font-size: 14px; font-weight: 700; }
.cj-back a { color: var(--cj-guinda); }

/* Datos clave y tarjetas de programa */
.cj-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 22px; }
.cj-facts > div { padding: 12px 16px; border: 1px solid var(--cj-linea); border-left: 4px solid var(--cj-oro); border-radius: 6px; background: var(--cj-fondo); }
.cj-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6d5310; }
.cj-facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--cj-tinta); }
.cj-tri { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 0 0 20px; }
.cj-tri .cj-card h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--cj-guinda-osc); }
.cj-tri .cj-card p { margin: 0; font-size: 15px; }
.cj-link-row { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); margin-bottom: 8px; }
.cj-blocks { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 14px 0 24px; align-items: start; }
@media (min-width: 768px) { .cj-blocks { grid-template-columns: repeat(2, 1fr); } }
.cj-block { padding: 16px 18px; border: 1px solid var(--cj-linea); border-radius: 8px; background: #fff; }
.cj-block h4 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--cj-guinda-osc); }
.cj-block ul.lists { margin: 0; padding-left: 18px; }
.cj-block li { font-size: 15px; line-height: 1.5; }
.cj-map { display: block; width: min(100%, 980px); height: auto; margin: 10px auto 22px; border: 1px solid var(--cj-linea); border-radius: 6px; }

/* Contacto */
.cj-contact { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: 26px; align-items: stretch; }
.cj-contact-list { display: grid; gap: 14px; align-content: start; }
.cj-static { cursor: default; }
.cj-static:hover { transform: none; background: #fff; box-shadow: var(--cj-sombra); }
.cj-link-card small a { color: var(--cj-guinda); font-weight: 700; }
.cj-map-frame { min-height: 380px; border: 1px solid var(--cj-linea); border-radius: 8px; overflow: hidden; }
.cj-map-frame iframe { display: block; width: 100% !important; height: 100% !important; min-height: 380px; border: 0; }
@media (max-width: 767px) { .cj-contact { grid-template-columns: 1fr; } }

/* Historia */
.cj-timeline-wrap { padding-bottom: 8px; }
.cj .cj-timeline-wrap h2.cj-h2 { margin-bottom: 18px; }
.cj-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.cj .cj-timeline li { display: block; margin: 0; padding: 14px 16px; list-style: none; border: 1px solid var(--cj-linea); border-top: 4px solid var(--cj-guinda); border-radius: 8px; background: #fff; }
.cj-timeline strong { display: block; margin-bottom: 4px; font-family: var(--cj-serif); font-size: 22px; color: var(--cj-guinda-osc); }
.cj-timeline span { font-size: 14px; line-height: 1.45; }

/* Semblanzas y egresados */
.card_semblanzas, .card_egresados { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: center; width: auto !important; max-width: 1140px; height: auto !important; margin: 20px auto 8px !important; padding: 24px 28px; overflow: visible; background: var(--cj-fondo) !important; border: 1px solid var(--cj-linea); border-radius: 8px; box-shadow: none; }
.card_semblanzas .additional, .card_semblanzas .general, .card_egresados .additional, .card_egresados .general { position: static !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; overflow: visible; }
.card_semblanzas .user-card, .card_egresados .user-card { position: static !important; width: auto !important; height: auto !important; margin: 0 !important; transform: none !important; }
.card_semblanzas .img_card, .card_egresados .img_card { position: static !important; display: block; width: 180px !important; height: 180px !important; margin: 0 auto !important; border-radius: 50%; object-fit: cover; object-position: center top; transform: none !important; }
.card_semblanzas .general p { margin: 0; color: var(--cj-texto); }
.cj-page .card_semblanzas .cj-sem-name { display: block; font-family: var(--cj-serif); font-size: clamp(22px, 3vw, 26px); font-weight: 700; line-height: 1.3; margin-bottom: 6px; color: var(--cj-guinda-osc); }
.card_egresados .general p { margin: 0 0 12px; text-align: left; }
.card_egresados .general p:first-child::first-line { font-family: var(--cj-serif); font-size: 24px; font-weight: 700; color: var(--cj-guinda-osc); }
@media (max-width: 767px) {
  .card_semblanzas, .card_egresados { grid-template-columns: 1fr; gap: 14px; margin: 14px 16px 8px !important; padding: 18px; }
  .card_semblanzas .general p { text-align: center; }
}

/* Correcciones del marco común */
.cj-page footer strong, .cj-page footer b { color: inherit; }
.cj-contact::before, .cj-contact::after, .cj-back::before, .cj-back::after, .cj-timeline-wrap::before, .cj-timeline-wrap::after { display: none; }
.cj-back { justify-content: space-between; }
.card_semblanzas, .card_egresados { position: relative !important; top: auto !important; left: auto !important; right: auto !important; transform: none !important; box-sizing: border-box; width: calc(100% - 40px) !important; }
.cj-semblanza-revista { padding-top: 10px; }
.cj-prose h3 { margin-top: 26px; }
.cj-prose > p:first-child { margin-top: 0; }
