/* Página "En portada": ventana flotante (dialog) con el resumen de cada persona. */
.ep-abrir { margin: var(--sp-3) 0 var(--sp-2); }
.ep-mas { font-size: 1.3em; line-height: 1; margin-left: var(--sp-2); }

.ep-modal { width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); }
.ep-modal .modal__box { max-height: calc(100dvh - 32px); }
.ep-modal .modal__head { align-items: center; }
.ep-modal .modal__title { font-size: clamp(26px, 3.2vw, 38px); }
.ep-m__cuerpo { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: var(--sp-6); padding: var(--sp-6); }
.ep-m__portada img { display: block; width: 100%; height: auto; box-shadow: var(--shadow-pop); }
.ep-m__texto { min-width: 0; }
.ep-m__sub { font-family: var(--font-head); font-size: var(--fs-sm); letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-deep); margin: var(--sp-5) 0 var(--sp-2); }
.ep-m__sub:first-child { margin-top: 0; }
.ep-m__texto p { margin: 0 0 var(--sp-3); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; }
.ep-m__lead { font-size: clamp(18px, 1.8vw, 21px) !important; }
.ep-m__contacto { list-style: none; margin: 0 0 var(--sp-3); padding: 0; display: grid; gap: var(--sp-2); }
.ep-m__contacto li { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: baseline; font-size: 17px; }
.ep-m__tipo { min-width: 92px; font-family: var(--font-head); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-mute); }
.ep-m__contacto a { overflow-wrap: anywhere; }
.ep-m__aviso { color: var(--fg-mute); font-size: var(--fs-xs) !important; }
@media (max-width: 700px) {
  .ep-m__cuerpo { grid-template-columns: 1fr; padding: var(--sp-4); gap: var(--sp-4); }
  .ep-m__portada { max-width: 180px; }
}

/* Regla de la casa: texto justificado y sin cortar palabras (sin guiones ni palabras partidas en dos renglones). */
.ep-m__texto p, .ep-m__lead { text-align: justify; text-justify: inter-word; hyphens: none; -webkit-hyphens: none; word-break: normal; overflow-wrap: normal; }
.ep-m__contacto a { overflow-wrap: anywhere; }
.ep-modal { width: min(940px, calc(100vw - 32px)); }
