/* ==========================================================================
   EMSER 2026 · interior.css — páginas internas (FRONT-INTERIOR, contrato v1 §2.3)
   Overrides de com_content, com_finder, com_tags, com_contact, com_users, mod_menu
   (sidebar), migas, paginación y mensajes. Consume tokens.css/components.css;
   no define colores sueltos fuera de los tokens salvo variantes de estado.
   ========================================================================== */

/* ------------------------------------------------------------ cabecera de página */
.em-main--interior .em-pagehead { max-width: 80ch; }
.em-pagehead__eyebrow {
  margin: 0 0 10px; font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: var(--pal-ink, var(--em-brand));
}
.em-pagehead__eyebrow a { color: inherit; text-decoration: none; }
.em-pagehead__eyebrow a:hover { text-decoration: underline; }
.em-pagehead__title { font-family: var(--em-font-display); font-weight: 700; letter-spacing: -.02em; color: var(--em-ink); overflow-wrap: anywhere; }
.em-pagehead__lead { margin: 12px 0 0; font-size: 1.125rem; line-height: 1.55; color: var(--em-ink-2); max-width: 68ch; }
.em-pagehead__num { color: var(--pal-ink, var(--em-brand)); margin-right: .3em; }
.em-pagehead__icon {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: .1em;
  width: 1.4em; height: 1.4em; border-radius: 14px; margin-right: .2em;
  background: var(--pal-tint, var(--em-soft)); color: var(--pal-ink, var(--em-brand));
}
.em-pagehead__icon .em-icon { width: .75em; height: .75em; }
.em-pagehead--pal { border-left: 6px solid var(--pal-solid, var(--em-brand)); padding-left: clamp(14px, 2vw, 22px); }

/* ----------------------------------------------------------- disposición 2 columnas */
.em-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: start; }
.em-split__main { min-width: 0; }
.em-split__aside { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) {
  .em-split { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
}
/* Si la plantilla ya pone una barra lateral de módulos, las vistas no abren otra columna. */
.em-layout--sidebar .em-split { grid-template-columns: minmax(0, 1fr); }
.em-split__aside .em-sidebar { position: static; }

.em-section-block { margin: 0 0 clamp(26px, 3.5vw, 40px); }
.em-section-block > h2, .em-section-block__title {
  font-family: var(--em-font-display); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  letter-spacing: -.015em; margin: 0 0 14px; color: var(--em-ink);
}
.em-section-block:focus { outline: none; }

/* ------------------------------------------------------------- caja de ficha */
.em-ficha-box { background: #fff; border-radius: 18px; padding: 18px 20px; box-shadow: var(--em-shadow-xs); }
.em-ficha-box__title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: .78125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--em-brand);
}
.em-ficha-box .em-ficha { display: block; margin: 0; padding: 0; background: none; }
.em-ficha-box .em-ficha dt { margin-top: 12px; }
.em-ficha-box .em-ficha dt:first-child { margin-top: 0; }
.em-ficha-box .em-ficha dt .em-icon { width: .9rem; height: .9rem; vertical-align: -.15em; }
.em-ficha-box__legal { margin: 14px 0 0; font-size: var(--em-fs-xs); color: var(--em-muted); line-height: 1.45; }
.em-ficha-box--inline { margin-top: 24px; }
@media (min-width: 720px) {
  .em-ficha-box--inline .em-ficha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .em-ficha-box--inline .em-ficha dt { margin-top: 0; grid-row-start: auto; }
  .em-ficha-box--inline .em-ficha dd { margin-bottom: 12px; }
}
.em-ficha--compact { display: block; padding: 0; margin: 4px 0 8px; background: none; }
.em-ficha--compact dt { margin-top: 8px; }
.em-ficha--wide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 24px; }
@media (min-width: 720px) { .em-ficha--wide { grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); } .em-ficha--wide dt { margin: 0; align-self: center; } }

/* ------------------------------------------------------------- avisos y apoyos */
.em-callout {
  background: var(--em-soft); border-radius: 18px; padding: 20px 22px; margin: clamp(22px, 3vw, 36px) 0 0;
  border: 1px solid var(--em-line-2);
}
.em-callout__title { margin: 0 0 8px; font-size: 1.0625rem; font-weight: 800; color: var(--em-ink); }
.em-callout p:last-child { margin-bottom: 0; }
.em-callout__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.em-cta-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  background: var(--pal-tint, var(--em-soft)); border-radius: 18px; padding: 18px 20px; margin: 0 0 28px;
}
.em-cta-box p { margin: 0; flex: 1 1 260px; color: var(--em-ink); font-weight: 600; }
.em-actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.em-muted { color: var(--em-muted); }

/* Listas de enlaces en rejilla (recursos, subcategorías, accesos) */
.em-linkgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.em-linkgrid a {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px;
  background: #fff; border-radius: 14px; box-shadow: var(--em-shadow-xs);
  color: var(--em-ink); font-weight: 700; text-decoration: none; line-height: 1.3;
}
.em-linkgrid a:hover { background: var(--em-soft); color: var(--em-brand); }
.em-linkgrid a .em-icon { color: var(--em-brand); }
.em-linkgrid .em-chip__n { margin-left: auto; }
.em-linklist { list-style: none; margin: 0; padding: 0; }
.em-linklist li { padding: 10px 0; border-bottom: 1px solid var(--em-line-2); display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; }
.em-linklist a { font-weight: 700; }
.em-linklist time { font-size: var(--em-fs-s); color: var(--em-muted); }

/* Chips de filtro (enlaces) */
.em-chips { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.em-chips .em-chip, a.em-chip {
  min-height: 40px; padding: 6px 14px; font-size: .75rem; text-decoration: none;
  border: 2px solid transparent;
}
a.em-chip:hover { border-color: var(--pal-ink, var(--em-brand)); }
a.em-chip.is-active, a.em-chip[aria-current] { background: var(--pal-deep, var(--em-brand)); color: #fff; }
.em-chip__n {
  display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--em-pill); background: rgba(255, 255, 255, .7); color: var(--em-ink); font-size: .6875rem;
}
.em-chip--s { min-height: 0; padding: 2px 8px; }

/* Estado vacío con icono */
.em-empty { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: flex-start; }
.em-empty > .em-icon { color: var(--em-muted); flex: none; }
.em-empty > p, .em-empty > div { flex: 1 1 240px; margin: 0; }
.em-empty > p + p { flex-basis: 100%; }
.em-empty--ok > .em-icon { color: var(--em-brand); }

/* Distintivos adicionales */
.em-badge--warn { background: #8a4f06; color: #fff; }
.em-badge--featured { background: var(--em-brand); color: #fff; margin-left: 6px; vertical-align: .15em; }
.em-note .em-icon { color: var(--em-brand); vertical-align: -.2em; }

/* ------------------------------------------------------------------ artículo */
.em-article { max-width: 880px; }
.em-article__head { margin-bottom: 20px; }
.em-article__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 14px 0 0; font-size: var(--em-fs-sm); color: var(--em-muted); font-weight: 600; }
.em-article__flags { display: flex; gap: 6px; margin: 10px 0 0; }
.em-article__edit { margin: 0 0 14px; }
.em-article__figure { margin: 0 0 24px; }
.em-article__figure picture { display: block; }
.em-article__figure img { width: 100%; height: auto; border-radius: 20px; display: block; }
.em-article__figure figcaption { margin-top: 8px; font-size: var(--em-fs-s); color: var(--em-muted); }
.em-article__foot { margin-top: 32px; border-top: 1px solid var(--em-line-2); padding-top: 20px; }

.em-prose { overflow-wrap: break-word; }
.em-prose img { max-width: 100%; }
.em-prose iframe { max-width: 100%; border: 0; border-radius: 14px; }
.em-prose hr { border: 0; border-top: 1px solid var(--em-line-2); margin: 2em 0; }
.em-prose .em-table-wrap table { margin: 0; }

/* Enlaces a documentos y externos dentro del cuerpo */
.em-doclink { font-weight: 700; }
.em-doclink::before {
  content: ""; display: inline-block; width: .95em; height: .95em; margin-right: .3em; vertical-align: -.12em;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M12 18v-6'/%3E%3Cpath d='m9 15 3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M12 18v-6'/%3E%3Cpath d='m9 15 3 3 3-3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.em-doclink__fmt { font-weight: 600; font-size: .875em; color: var(--em-ink-3); white-space: nowrap; }
.em-extlink::after {
  content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .25em; vertical-align: -.05em;
  background-color: currentColor;
  -webkit-mask: url("../images/external.svg") center / contain no-repeat;
  mask: url("../images/external.svg") center / contain no-repeat;
}

/* «También publicado en» (publicación múltiple) */
.em-also { background: var(--em-soft); border-radius: 18px; padding: 18px 20px; margin: 20px 0 0; }
.em-also__title { margin: 0 0 10px; font-size: .78125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--em-brand); }
.em-also__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.em-also__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.em-also__list a { font-weight: 700; }
.em-also__num { font-family: var(--em-font-mono); font-size: .875em; color: var(--em-teal); text-decoration: none; }
.em-also__meta { font-size: var(--em-fs-s); color: var(--em-muted); }

/* Etiquetas */
.em-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.em-tags__label { font-size: var(--em-fs-s); font-weight: 800; color: var(--em-muted); }
.em-tags .em-chips { margin: 0; }

/* Bloque de información genérico (info_block) */
.em-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 12px; font-size: var(--em-fs-s); color: var(--em-muted); }
.em-meta div { display: flex; gap: 4px; }
.em-meta dt { font-weight: 800; }
.em-meta dt::after { content: ":"; }
.em-meta dd { margin: 0; }

.em-readmore { margin: 8px 0 0; }

/* ------------------------------------------------------- categoría en blog/lista */
.em-catblog__desc, .em-catlist__desc { margin-bottom: 28px; }
.em-subcats { margin: 0 0 28px; }
.em-subcats__title, .em-catblog__list-title { font-family: var(--em-font-display); font-size: 1.375rem; margin: 0 0 12px; }
.em-postgrid { list-style: none; margin: 0; padding: 0; }
.em-postgrid__item { display: flex; }
.em-post {
  position: relative; display: flex; flex-direction: column; width: 100%;
  background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 5px 18px rgba(18, 41, 31, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}
.em-post:hover { transform: translateY(-3px); box-shadow: var(--em-shadow-hover); }
.em-post__media { margin: 0; aspect-ratio: 16 / 10; background: #dfe9e3; overflow: hidden; }
.em-post__media picture { display: block; width: 100%; height: 100%; }
.em-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.em-post__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.em-post__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: var(--em-fs-s); font-weight: 700; color: var(--em-muted); }
.em-post__cat { color: var(--em-brand); }
.em-post__title { margin: 0; font-size: 1.125rem; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
.em-post__title a { color: var(--em-ink); text-decoration: none; }
.em-post__title a::after { content: ""; position: absolute; inset: 0; }
.em-post__title a:hover { color: var(--em-brand); }
.em-post__title a:focus-visible { outline: none; }
.em-post:focus-within { outline: 3px solid var(--em-focus); outline-offset: 3px; }
.em-post__intro { margin: 0; color: var(--em-ink-3); font-size: var(--em-fs-base); line-height: 1.55; }
.em-post.is-unpublished { opacity: .8; border: 2px dashed #8a4f06; }
.em-catblog__more { margin-top: 28px; }
.em-catblog__more-title { font-size: 1.125rem; }
.em-feedlink { margin: 24px 0 0; font-size: var(--em-fs-sm); }
.em-feedlink a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.em-pagination-wrap { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; }
.em-pagination-wrap .em-pagination { margin-top: 0; }
.em-pagination__counter { margin: 0; font-size: var(--em-fs-s); color: var(--em-muted); }
.em-pagination__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.em-pagination .is-disabled > span { opacity: .45; box-shadow: none; }
.em-table--list th[scope="row"] { font-weight: 700; }
.em-table--list th[scope="row"] a { color: var(--em-ink); }
.em-table--list td a { white-space: nowrap; font-weight: 700; }

/* ----------------------------------------------------------- buscador y filtros */
.em-tsearch { margin: 0 0 22px; }
.em-tsearch__label { display: block; margin: 0 0 8px; font-weight: 800; color: var(--em-ink); }
.em-tsearch__row { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 10px; min-width: 0; }
.em-tsearch__row .em-filter__field { flex: 1 1 auto; min-width: 0; }
.em-tsearch__row .em-tsearch__go { flex: none; min-width: 48px; white-space: nowrap; }
.em-tsearch__go .em-tsearch__bico { display: none; }
/* Pantallas muy estrechas: el botón queda como ícono (nombre accesible en texto oculto) y el campo, en la misma fila */
@media (max-width: 479.98px) {
  .em-tsearch__row { gap: 8px; }
  .em-tsearch__row .em-filter__field { padding: 0 12px; gap: 8px; }
  .em-tsearch__go { padding: 0; width: 52px; justify-content: center; }
  .em-tsearch__go .em-tsearch__bico { display: block; }
  .em-tsearch__btxt {
    position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
  }
}
.em-filter { margin: 0 0 20px; }
.em-filter__label { display: block; margin: 0 0 8px; font-weight: 800; }
.em-filter__field {
  position: relative; display: flex; align-items: center;
  background: #fff; border: 2px solid #a9bbb1; border-radius: 14px; min-height: 52px; padding: 0 14px; gap: 10px;
}
.em-filter__field:focus-within { border-color: var(--em-brand); box-shadow: 0 0 0 3px rgba(13, 148, 168, .35); }
.em-filter__field > .em-icon { color: var(--em-muted); }
.em-filter__input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 48px; font-size: 1rem; color: var(--em-ink); }
.em-filter__input:focus, .em-filter__input:focus-visible { outline: none; }
.em-filter__input::placeholder { color: #66796e; }
.em-filter__status { margin: 8px 0 0; font-size: var(--em-fs-sm); color: var(--em-ink-3); min-height: 1.4em; }
.em-filter__status:focus { outline: none; }

.em-searchpage__form { margin-bottom: 18px; }
.em-searchpage__advanced { margin-top: 12px; }
.em-searchpage__advanced summary { font-size: var(--em-fs-base); }
.em-searchpage__filters select, .em-searchpage__filters input {
  min-height: 44px; border: 1px solid #a9bbb1; border-radius: 12px; padding: 8px 12px; background: #fff; max-width: 100%;
}
.em-searchpage__filters label { display: block; font-weight: 700; margin: 10px 0 4px; }
.em-searchpage__count { font-size: 1.25rem; margin: 0 0 14px; }
.em-searchpage__suggest { font-weight: 600; }
.em-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.em-result { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--em-shadow-xs); }
.em-result__title { margin: 0 0 4px; font-size: 1.125rem; overflow-wrap: anywhere; }
.em-result__title a { color: var(--em-ink); }
.em-result__title a:hover { color: var(--em-brand); }
.em-result__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 6px; font-size: var(--em-fs-s); color: var(--em-muted); }
.em-result__label { font-weight: 800; }
.em-result__desc { margin: 0; color: var(--em-ink-2); overflow-wrap: anywhere; }
.em-result__url { margin: 6px 0 0; font-size: var(--em-fs-xs); color: var(--em-teal); overflow-wrap: anywhere; }
.em-result__url cite { font-style: normal; }
.js-highlight mark, .em-results mark { background: #ffe7a3; color: inherit; padding: 0 .1em; border-radius: 3px; }

/* --------------------------------------------------------------- formularios */
.em-form fieldset, .em-form__fieldset { border: 0; margin: 0 0 12px; padding: 0; min-width: 0; }
.em-form legend { font-weight: 800; font-size: 1.0625rem; margin-bottom: 10px; }
.em-form .control-group { margin-bottom: 14px; }
.em-form .control-label label, .em-form label { display: inline-block; font-weight: 700; margin-bottom: 6px; }
.em-form input[type="text"], .em-form input[type="email"], .em-form input[type="password"], .em-form input[type="tel"],
.em-form input[type="url"], .em-form select, .em-form textarea, .em-form .form-control {
  width: 100%; max-width: 560px; min-height: 46px; border: 1px solid #a9bbb1; border-radius: 12px; padding: 10px 14px; background: #fff; font-size: 1rem;
}
.em-form textarea { min-height: 140px; }
.em-form .form-check { display: flex; align-items: center; gap: 8px; }
.em-form .form-check-input { width: 22px; height: 22px; }
.em-form .star { color: #a3311d; }
.em-form .invalid { border-color: #a3311d !important; }
.em-form .form-control-feedback, .em-form .invalid-feedback { color: #a3311d; font-weight: 700; font-size: var(--em-fs-sm); }
.em-login { max-width: 560px; }

/* --------------------------------------------------------------- menú lateral */
.em-sidemenu .em-sidebar__list { gap: 2px; }
.em-sidemenu__group {
  display: block; margin: 12px 10px 4px; font-size: .6875rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: var(--em-muted);
}
.em-sidemenu__item:first-child > .em-sidemenu__group { margin-top: 2px; }
.em-sidemenu__sub { list-style: none; margin: 0; padding: 0; }
.em-sidemenu .is-group > .em-sidemenu__sub { margin-left: 0; border-left: 0; padding-left: 0; }
/* Activo sin franja izquierda ni redondeado (pedido del dueño, 8-oct-2026): fondo suave + negrita. */
.em-sidebar__link.is-active, .em-sidebar [aria-current="page"] { background: var(--em-soft); color: var(--em-brand); font-weight: 800; box-shadow: none; border-radius: 0; }
.em-sidebar__num { font-family: var(--em-font-mono); font-size: .8125em; color: var(--em-teal); margin-right: 6px; flex: none; }
.em-split__aside .em-sidebar a { align-items: flex-start; }

/* -------------------------------------------------------------------- migas */
.em-breadcrumbs__item.is-current span { overflow-wrap: anywhere; }

/* ----------------------------------------------------------------- mensajes */
.em-messages:empty { display: none; }
.em-msg { border-radius: 14px; padding: 14px 18px; margin: 0 0 16px; border-left: 6px solid; background: #fff; box-shadow: var(--em-shadow-xs); }
.em-msg__title { margin: 0 0 4px; font-weight: 800; font-size: var(--em-fs-sm); text-transform: uppercase; letter-spacing: .06em; }
.em-msg__text { color: var(--em-ink); }
.em-msg--error { border-color: #a3311d; background: #fdeae5; } .em-msg--error .em-msg__title { color: #8a2817; }
.em-msg--warning { border-color: #8a4f06; background: #fdf6e8; } .em-msg--warning .em-msg__title { color: #6b3d04; }
.em-msg--info { border-color: #0a5c68; background: #eaf6f8; } .em-msg--info .em-msg__title { color: #0a4a54; }
.em-msg--success { border-color: #04693c; background: #e9f6ee; } .em-msg--success .em-msg__title { color: #04532f; }

/* --------------------------------------------------------- módulo artículos */
.em-modarticles__group { font-size: 1rem; margin: 16px 0 6px; }
.em-linklist--dated li { flex-direction: column; gap: 2px; }

/* ------------------------------------------------------------- preferencias */
html[data-em-contrast="high"] .em-post, html[data-em-contrast="high"] .em-result,
html[data-em-contrast="high"] .em-ficha-box, html[data-em-contrast="high"] .em-also,
html[data-em-contrast="high"] .em-callout { border: 2px solid currentColor; box-shadow: none; }
html[data-em-images="hide"] .em-post__media, html[data-em-images="hide"] .em-article__figure { display: none; }
@media (prefers-reduced-motion: reduce) { .em-post, .em-post:hover { transform: none; transition: none; } }
html[data-em-motion="off"] .em-post, html[data-em-motion="off"] .em-post:hover { transform: none; transition: none; }

@media print {
  .em-split__aside, .em-feedlink, .em-pagination-wrap, .em-searchpage__form { display: none !important; }
  .em-split { display: block; }
  .em-prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}

/* Navegación anterior/siguiente del plugin de contenido (pagenavigation) */
.pagenavigation { margin: 28px 0 0; }
.pagenavigation .pagination { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.pagenavigation a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 12px; background: #fff; box-shadow: var(--em-shadow-xs); font-weight: 700; text-decoration: none; }
.pagenavigation a:hover { background: var(--em-soft); }
.pagenavigation [class^="icon-"], .pagenavigation [class*=" icon-"] { display: none; }
.em-prose .em-doclist li { flex-wrap: wrap; }

/* Rejillas como listas semánticas */
ul.em-grid, ol.em-grid { list-style: none; padding: 0; margin: 0 0 18px; }

/* ==========================================================================
   Ronda 2 · páginas internas de lectura (diseño «Pagina Interna Articulo»)
   Artículo con variantes noticia | pagina | documento, herramientas de lectura
   (índice, escuchar, compartir, documentos, ¿útil?, relacionadas, volver arriba)
   y pie de contenido de las vistas propias. docs/analisis-paginas-internas.md
   ========================================================================== */

/* Ancho de lectura del diseño (1120 px) cuando no hay barra lateral de módulos */
.em-page:has(.em-read--wide) { --em-container: 1120px; }
.em-main--interior:has(.em-read--noticia) {
  background:
    radial-gradient(circle at calc(100% - 60px) 40px, rgba(15, 169, 192, .16), rgba(15, 169, 192, 0) 380px) no-repeat,
    var(--em-bg);
}
.em-read.em-article { max-width: none; }

/* ------------------------------------------------------------------ cabecera */
.em-read__top { position: relative; padding-bottom: 2px; }
.em-read--noticia.em-read--wide .em-read__top {
  /* Banda a todo lo ancho sin desbordar la página (border-image pinta fuera de la caja sin crear scroll). */
  border-image: linear-gradient(180deg, rgba(247, 250, 248, 0) 0%, #f0f8f3 100%) fill 0 / / 0 100vw;
}
.em-read__head { max-width: 860px; }
.em-read__eyebrow { margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px;
  font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--pal-ink, var(--em-brand)); }
.em-read__eyebrow a { color: inherit; text-decoration: none; }
.em-read__eyebrow a:hover { text-decoration: underline; }
.em-read__chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px;
  background: var(--pal-tint); color: var(--pal-ink) !important; border-radius: var(--em-pill);
  padding: 6px 12px 6px 9px; font-size: .71875rem; font-weight: 800; letter-spacing: .08em;
}
.em-read__chip:hover { text-decoration: none !important; box-shadow: inset 0 0 0 2px var(--pal-ink); }
.em-read__dot { width: 8px; height: 8px; border-radius: var(--em-pill); background: var(--pal-solid); flex: none; }
.em-read__title {
  margin: 0; font-family: var(--em-font-display); font-weight: 700; color: var(--em-ink);
  font-size: clamp(2.125rem, 1.2rem + 3.3vw, 3.75rem); line-height: 1.04; letter-spacing: -.03em;
  text-wrap: balance; overflow-wrap: break-word;
}
/* Titulares largos (más de 80 caracteres): no más de ~3 líneas en escritorio. */
.em-read__title--long { font-size: clamp(1.625rem, 1.1rem + 2.1vw, 2.75rem); line-height: 1.1; letter-spacing: -.02em; }
.em-read--pagina .em-read__title:not(.em-read__title--long),
.em-read--documento .em-read__title:not(.em-read__title--long) { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
.em-read__lead {
  margin: clamp(16px, 2.4vw, 22px) 0 0; max-width: 60ch;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); line-height: 1.55; color: #2b4038; text-wrap: pretty;
}
.em-read__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 22px;
  font-size: var(--em-fs-sm); color: var(--em-ink-3);
}
.em-read__by { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: #22382e; }
.em-read__avatar {
  width: 30px; height: 30px; border-radius: var(--em-pill); background: var(--em-brand); color: #fff; flex: none;
  display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 800;
}

/* Foto principal (imagen real con alt, D11) */
.em-read__top .em-article__figure { margin: clamp(26px, 4vw, 40px) 0 0; }
.em-read__top .em-article__figure--wide img {
  aspect-ratio: 16 / 8; min-height: 220px; object-fit: cover; object-position: center;
  border-radius: 28px 28px 28px 96px; box-shadow: 0 22px 54px rgba(11, 52, 38, .18);
}
.em-read__top .em-article__figure:not(.em-article__figure--wide) img { border-radius: 24px; }
.em-read__top .em-article__figure figcaption { margin: 12px 4px 0; font-size: var(--em-fs-s); line-height: 1.5; color: var(--em-ink-3); }
@media (max-width: 639px) {
  .em-read__top .em-article__figure--wide img { aspect-ratio: 16 / 10; border-radius: 22px 22px 22px 64px; }
}

/* ------------------------------------------------------------------ cuerpo + columna */
.em-read__grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(30px, 5vw, 56px);
}
.em-read--side .em-read__grid { padding-top: 24px; }
.em-read__body { min-width: 0; max-width: 720px; }
.em-read--side .em-read__body { max-width: 760px; }
.em-read__aside { display: none; min-width: 0; }
.em-read__sticky { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 18px; }
@media (min-width: 1040px) {
  .em-read--aside .em-read__grid { grid-template-columns: minmax(0, 1fr) 280px; }
  .em-read--aside .em-read__aside { display: block; }
  .em-read--aside .em-toc--details, .em-read--aside .em-share--mobile { display: none; }
}

/* Prosa de lectura (18 px / 1,72) */
.em-read__prose { font-size: 1.125rem; line-height: 1.72; color: #22382e; max-width: none; }
.em-read__prose p { text-wrap: pretty; margin: 0 0 1.15em; }
.em-read__prose > * + * { margin-top: 0; }
.em-read__prose h2 {
  margin: 1.9em 0 .6em; font-family: var(--em-font-display); font-weight: 700; color: var(--em-ink);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); line-height: 1.2; letter-spacing: -.02em; scroll-margin-top: 120px;
}
.em-read__prose > h2:first-child { margin-top: 0; }
.em-read__prose h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.em-read__prose ul, .em-read__prose ol { margin: 0 0 1.3em; padding-left: 1.2em; }
.em-read__prose li { line-height: 1.65; }
.em-read__prose li + li { margin-top: .55em; }
.em-read__prose blockquote {
  margin: 1.8em 0; padding: clamp(20px, 3vw, 28px); background: var(--em-dark-2); color: #fff;
  border: 0; border-radius: 22px 22px 22px 64px;
}
.em-read__prose blockquote p { margin: 0; font-family: var(--em-font-display); font-weight: 600; font-size: clamp(1.3125rem, 1.1rem + .8vw, 1.6875rem); line-height: 1.35; color: #fff; }
.em-read__prose blockquote footer, .em-read__prose blockquote cite { display: block; margin-top: 14px; font-size: var(--em-fs-sm); font-weight: 700; font-style: normal; color: #a8e6c6; }
.em-read__prose blockquote a { color: #a8e6c6; }
.em-read__prose figure { margin: 1.6em 0; }
.em-read__prose figure img { border-radius: 20px; }
.em-read__prose figcaption { margin-top: 10px; font-size: var(--em-fs-s); line-height: 1.5; color: var(--em-ink-3); }
.em-read__prose .em-table-wrap { margin: 0 0 1.4em; border-radius: 16px; box-shadow: 0 0 0 1px rgba(18, 41, 31, .1); background: #fff; }
.em-read__prose .em-table-wrap caption { text-transform: uppercase; letter-spacing: .08em; font-size: var(--em-fs-s); color: var(--em-brand); }
.em-read__prose img { height: auto; }
.em-read__prose [data-tts-on], .em-read [data-tts-on] {
  background: #e6f7fa; box-shadow: -10px 0 0 #e6f7fa, 10px 0 0 #e6f7fa; border-radius: 6px; transition: background .2s ease;
}
html[data-em-contrast="high"] .em-read [data-tts-on] { background: #fff2a8 !important; box-shadow: -10px 0 0 #fff2a8, 10px 0 0 #fff2a8; color: #000 !important; }

/* Títulos pequeños de herramientas (índice, compartir) */
.em-tool__title { margin: 0 0 12px; font-size: .71875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; color: var(--em-brand); }

/* ------------------------------------------------------------------ índice */
.em-toc--aside, .em-toc--box, .em-share--aside {
  background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 8px 24px rgba(18, 41, 31, .07);
}
.em-toc--box { margin: 0 0 26px; }
.em-toc__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.em-toc__link {
  display: block; padding: 9px 12px; border-radius: 10px; border-left: 3px solid transparent;
  font-size: .90625rem; font-weight: 600; line-height: 1.35; color: #22382e; text-decoration: none;
}
.em-toc__link:hover { background: var(--em-soft); color: var(--em-brand); }
.em-toc__link[aria-current="true"], .em-toc__link.is-current { border-left-color: #0fa9c0; background: #e6f7fa; color: var(--em-ink); }
.em-toc--details { margin: 0 0 26px; background: var(--em-soft); border-radius: 16px; padding: 4px 16px; }
.em-toc__summary { min-height: 48px; display: flex; align-items: center; font-size: .9375rem; font-weight: 800; cursor: pointer; color: var(--em-ink); }
.em-toc--details .em-toc__list { margin: 0 0 14px; padding-left: 20px; list-style: decimal; gap: 6px; }
.em-toc--details .em-toc__link { display: inline; padding: 0; border: 0; color: var(--em-brand); font-size: .9375rem; }

/* ------------------------------------------------------------------ escuchar */
.em-listen {
  margin-top: 24px; background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: 0 8px 26px rgba(18, 41, 31, .09);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; max-width: 860px;
}
.em-listen[hidden] { display: none; }
/* Nace visible (sin CLS); sin JavaScript no funcionaría, así que se oculta. */
@media (scripting: none) { .em-listen { display: none; } }
.em-listen__play {
  width: 56px; height: 56px; flex: none; border: 0; border-radius: 18px 18px 18px 6px; background: var(--em-teal-2); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px rgba(10, 92, 104, .3);
  transition: transform .16s ease, background .16s ease;
}
.em-listen__play:hover { background: var(--em-brand); transform: translateY(-2px); }
.em-listen__play .em-icon { width: 24px; height: 24px; }
.em-listen__ico--pause, .em-listen.is-playing .em-listen__ico--play { display: none; }
.em-listen.is-playing .em-listen__ico--pause { display: inline-flex; }
.em-listen__info { flex: 1 1 200px; min-width: 0; }
.em-listen__title { margin: 0; font-size: .96875rem; font-weight: 800; color: var(--em-ink); }
.em-listen__status { margin: 3px 0 8px; font-size: var(--em-fs-s); line-height: 1.45; color: var(--em-ink-3); }
/* Aviso cuando el navegador no produce sonido (iPhone en silencio, motor bloqueado…). */
.em-listen.has-notice .em-listen__status { color: #a3311d; font-weight: 700; }
.em-listen__bar { height: 6px; border-radius: var(--em-pill); background: #e2ebe6; overflow: hidden; }
.em-listen__bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0fa9c0, var(--em-brand)); border-radius: var(--em-pill); transition: width .3s ease; }
.em-listen__ctrls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.em-listen__rates { display: flex; gap: 4px; background: var(--em-soft); border-radius: 12px; padding: 4px; }
.em-listen__rate {
  min-width: 48px; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: #22382e;
  font-size: var(--em-fs-s); font-weight: 800; cursor: pointer;
}
.em-listen__rate[aria-pressed="true"] { background: var(--em-teal-2); color: #fff; }
.em-listen__stop {
  min-height: 48px; padding: 0 15px; border: 2px solid rgba(18, 41, 31, .16); border-radius: 12px; background: #fff; color: var(--em-ink);
  font-size: var(--em-fs-sm); font-weight: 800; cursor: pointer;
}
.em-listen__stop:hover:not(:disabled) { border-color: var(--em-ink); }
.em-listen__stop:disabled { opacity: .55; cursor: default; }
.em-listen__follow { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; font-size: var(--em-fs-s); font-weight: 600; color: #22382e; cursor: pointer; }
.em-listen__follow input { width: 20px; height: 20px; margin: 0; accent-color: var(--em-brand); }

/* Mini reproductor (lo crea interior.js mientras se lee); por encima de la barra móvil */
.em-miniplayer {
  position: fixed; left: 18px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); z-index: 79;
  max-width: calc(100vw - 36px); display: flex; align-items: center; gap: 8px;
  background: var(--em-dark-2); color: #fff; border-radius: 16px; padding: 8px 8px 8px 14px; box-shadow: 0 14px 34px rgba(11, 33, 25, .3);
}
.em-miniplayer[hidden] { display: none; }
@media (min-width: 1210px) { .em-miniplayer { bottom: 20px; } }
.em-miniplayer__label { min-width: 0; font-size: var(--em-fs-s); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-miniplayer__btn {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: #0a7d8c; color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.em-miniplayer__btn--stop { background: rgba(255, 255, 255, .14); font-size: 1.125rem; font-weight: 700; }
.em-miniplayer__btn .em-icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ compartir */
.em-share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.em-share__list li[hidden] { display: none; }
.em-share__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px;
  background: var(--em-soft); color: var(--em-brand); font-size: var(--em-fs-sm); font-weight: 800; text-decoration: none; cursor: pointer;
}
.em-share__btn:hover { background: #d8f0e3; color: var(--em-brand); }
.em-share__btn .em-icon { width: 16px; height: 16px; flex: none; }
.em-share--inline { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.em-share--inline .em-tool__title { margin: 0; }

/* ------------------------------------------------------------------ documentos */
.em-rdocs { margin-top: 2.2em; }
.em-read--documento .em-rdocs { margin: 0 0 2em; }
.em-rdocs__title { margin: 0 0 14px; font-size: 1.1875rem; font-weight: 800; color: var(--em-ink); font-family: var(--em-font-sans); letter-spacing: 0; }
.em-rdocs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.em-rdoc {
  display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 14px 16px; color: var(--em-ink);
  box-shadow: 0 0 0 1px rgba(18, 41, 31, .1); text-decoration: none; transition: box-shadow .16s ease, transform .16s ease;
}
.em-rdoc:hover { box-shadow: 0 10px 26px rgba(18, 41, 31, .12); transform: translateY(-2px); color: var(--em-ink); }
.em-rdoc__badge {
  width: 44px; height: 48px; flex: none; border-radius: 10px 10px 10px 4px; background: #fbdcd4; color: #a3311d;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; font-size: .65625rem; font-weight: 900; letter-spacing: .04em;
}
.em-rdoc__badge--sheet { background: #d8f0e3; color: #04693c; }
.em-rdoc__badge--doc, .em-rdoc__badge--slides { background: #d2eff5; color: #0a5c68; }
.em-rdoc__badge--zip { background: #fbe8c4; color: #7f4805; }
.em-rdoc__body { flex: 1; min-width: 0; }
.em-rdoc__title { display: block; font-size: .96875rem; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.em-rdoc__meta { display: block; margin-top: 3px; font-size: var(--em-fs-s); color: var(--em-ink-3); }
.em-rdoc__cta { flex: none; font-size: var(--em-fs-sm); font-weight: 800; color: var(--em-brand); }
@media (max-width: 479px) { .em-rdoc__cta { display: none; } }

/* ------------------------------------------------------------------ pie del artículo */
.em-read__foot { margin-top: 2em; }
.em-read__foot .em-tags { margin: 0; padding-top: 22px; border-top: 1px solid rgba(18, 41, 31, .1); gap: 8px; }
.em-read__foot .em-tags__label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--em-muted); margin-right: 4px; }
.em-read__foot .em-tags .em-chip { background: var(--em-soft); color: var(--em-brand); border-radius: var(--em-pill); padding: 8px 13px; font-size: var(--em-fs-s); font-weight: 700; min-height: 36px; text-transform: none; letter-spacing: 0; }
.em-read__foot .em-tags .em-chip:hover { background: #d8f0e3; }
.em-read__foot .em-also { margin-top: 26px; }
.em-ficha-box--top { margin: 20px 0 8px; max-width: 760px; }
.em-ficha-box--top .em-ficha { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 24px; }
@media (min-width: 720px) {
  .em-ficha-box--top .em-ficha { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-ficha-box--top .em-ficha dt { margin-top: 0; }
  .em-ficha-box--top .em-ficha dd { margin-bottom: 12px; }
}
.em-read--documento .em-read__grid { padding-top: 24px; }
.em-transcript { margin: 1.4em 0 0; }

/* ¿Te fue útil? */
.em-util {
  margin-top: 26px; background: var(--em-soft); border-radius: 18px; padding: 18px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
}
.em-util__title { margin: 0; flex: 1 1 220px; font-size: 1rem; font-weight: 800; color: var(--em-ink); font-family: var(--em-font-sans); letter-spacing: 0; }
.em-util__form { display: flex; gap: 8px; margin: 0; }
.em-util__btn { min-width: 72px; min-height: 46px; border-radius: 12px; justify-content: center; }
.em-util__msg { margin: 0; flex: 1 1 100%; font-size: .875rem; color: #22382e; }
.em-util__msg:empty { display: none; }
.em-util__note { margin: 0; flex: 1 1 100%; font-size: var(--em-fs-xs); color: var(--em-muted); }
.em-util.is-done .em-util__form { display: none; }

/* Volver arriba */
.em-backtop { margin: 28px 0 0; text-align: right; }
.em-backtop[hidden] { display: none; }
.em-backtop__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; font-size: var(--em-fs-sm); font-weight: 700; }
.em-backtop__ico { transform: rotate(180deg); width: 16px; height: 16px; }

/* ------------------------------------------------------------------ relacionadas */
.em-related {
  position: relative; margin-top: clamp(40px, 6vw, 72px); margin-bottom: calc(-1 * clamp(46px, 6vw, 76px));
  padding-block: clamp(40px, 5vw, 64px);
  border-image: linear-gradient(var(--em-soft), var(--em-soft)) fill 0 / / 0 100vw;
}
.em-related__head { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.em-related__title { margin: 0; font-family: var(--em-font-display); font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 700; letter-spacing: -.025em; }
.em-related__all { font-size: var(--em-fs-base); font-weight: 800; color: var(--em-brand); text-decoration: none; }
.em-related__all:hover { text-decoration: underline; }
.em-related__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.em-relcard {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 5px 18px rgba(18, 41, 31, .07); transition: transform .2s ease, box-shadow .2s ease;
}
.em-relcard:hover { transform: translateY(-4px); box-shadow: var(--em-shadow-hover); }
.em-relcard:focus-within { outline: 3px solid var(--em-focus); outline-offset: 3px; }
.em-relcard__media { position: relative; aspect-ratio: 16 / 10; background: #dfe9e3; overflow: hidden; }
.em-relcard__media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--pal-solid); }
.em-relcard__media picture, .em-relcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.em-relcard__media--empty { display: flex; align-items: center; justify-content: center; background: var(--pal-tint, var(--em-soft)); color: var(--pal-ink, var(--em-brand)); }
.em-relcard__media--empty .em-relcard__icon { width: 56px; height: 56px; opacity: .55; }
.em-relcard__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.em-relcard__chip {
  align-self: flex-start; background: var(--pal-tint); color: var(--pal-ink); border-radius: var(--em-pill); padding: 4px 10px;
  font-size: .65625rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
}
.em-relcard__title { margin: 0; font-size: 1.09375rem; font-weight: 800; line-height: 1.3; font-family: var(--em-font-sans); letter-spacing: -.005em; }
.em-relcard__title a { color: var(--em-ink); text-decoration: none; }
.em-relcard__title a::after { content: ""; position: absolute; inset: 0; }
.em-relcard__title a:focus-visible { outline: none; }
.em-relcard__date { margin: auto 0 0; font-size: var(--em-fs-s); color: var(--em-ink-3); }

/* ------------------------------------------------------------------ pie de las vistas del componente */
.em-pagefoot { margin-top: clamp(32px, 4vw, 48px); padding-top: 22px; border-top: 1px solid rgba(18, 41, 31, .1); max-width: 860px; }
.em-pagefoot__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; font-size: var(--em-fs-sm); color: var(--em-ink-3); }
.em-pagefoot__meta div { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.em-pagefoot__meta dt { font-weight: 800; color: var(--em-ink-2); }
.em-pagefoot__meta dt::after { content: ":"; }
.em-pagefoot__meta dd { margin: 0; }
.em-pagefoot .em-share--inline { margin-top: 20px; }

/* Migas: en móvil, el último nivel (título completo) se recorta visualmente a 2 líneas; el texto sigue completo para lectores de pantalla. */
@media (max-width: 639px) {
  .em-breadcrumbs__item.is-current span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ------------------------------------------------------------------ preferencias del panel */
html[data-em-contrast="high"] .em-listen, html[data-em-contrast="high"] .em-toc--aside, html[data-em-contrast="high"] .em-toc--box,
html[data-em-contrast="high"] .em-share--aside, html[data-em-contrast="high"] .em-rdoc, html[data-em-contrast="high"] .em-util,
html[data-em-contrast="high"] .em-relcard, html[data-em-contrast="high"] .em-toc--details { border: 2px solid currentColor; box-shadow: none; }
html[data-em-contrast="high"] .em-read--noticia .em-read__top { border-image: none; }
html[data-em-images="hide"] .em-relcard__media picture, html[data-em-images="hide"] .em-relcard__media img { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .em-rdoc, .em-rdoc:hover, .em-relcard, .em-relcard:hover, .em-listen__play, .em-listen__play:hover { transform: none; transition: none; }
}
html[data-em-motion="off"] .em-rdoc:hover, html[data-em-motion="off"] .em-relcard:hover, html[data-em-motion="off"] .em-listen__play:hover { transform: none; }

@media print {
  .em-listen, .em-miniplayer, .em-share, .em-util, .em-read__aside, .em-related, .em-backtop, .em-toc { display: none !important; }
  .em-read__grid { display: block; padding-top: 12px; }
  .em-read--noticia .em-read__top { border-image: none; }
  .em-main--interior:has(.em-read--noticia) { background: none; }
}
