/**
 * Ecosistema de Publicación EPO
 * Sistema Visual Oficial v1.0 — EPO Divi Child 2.4.0
 */

:root {
    --epo-azul-900: #0f2947;
    --epo-azul-800: #173b66;
    --epo-azul-700: #24588a;
    --epo-azul-100: #eef6ff;
    --epo-rojo-700: #a52626;
    --epo-verde-spotify: #1db954;
    --epo-dorado-600: #b8893e;
    --epo-dorado-300: #eadfc9;
    --epo-texto-900: #172033;
    --epo-texto-700: #334155;
    --epo-texto-500: #64748b;
    --epo-borde: #dce7f1;
    --epo-fondo: #f7fbff;
    --epo-blanco: #ffffff;

    --epo-radio-sm: 10px;
    --epo-radio-md: 16px;
    --epo-radio-lg: 20px;
    --epo-radio-xl: 24px;
    --epo-radio-pill: 999px;

    --epo-sombra-sm: 0 7px 20px rgba(15, 23, 42, 0.05);
    --epo-sombra-md: 0 9px 28px rgba(15, 23, 42, 0.07);
    --epo-sombra-lg: 0 16px 42px rgba(15, 23, 42, 0.14);

    --epo-espacio-1: 6px;
    --epo-espacio-2: 10px;
    --epo-espacio-3: 14px;
    --epo-espacio-4: 18px;
    --epo-espacio-5: 22px;
    --epo-espacio-6: 30px;
    --epo-espacio-7: 38px;
}

.epo-oracion-dinamica,
.epo-oracion-dinamica * {
    box-sizing: border-box;
}

.epo-oracion-dinamica {
    width: 100%;
    padding: 30px 18px 60px;
    color: var(--epo-texto-700);
    background:
        radial-gradient(circle at 10% 4%, rgba(59, 130, 246, 0.08), transparent 27%),
        linear-gradient(180deg, var(--epo-fondo) 0%, var(--epo-blanco) 24%, var(--epo-fondo) 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.epo-oracion-dinamica__contenedor {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.epo-breadcrumbs {
    margin: 0 0 var(--epo-espacio-4);
    color: var(--epo-texto-500);
    font-size: 13px;
    line-height: 1.5;
}

.epo-breadcrumbs a {
    color: var(--epo-azul-800);
    font-weight: 700;
    text-decoration: none;
}

.epo-breadcrumbs a:hover {
    text-decoration: underline;
}

.epo-breadcrumbs span {
    margin: 0 5px;
}

.epo-hero-oracion {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 46px 36px;
    color: var(--epo-blanco);
    background: linear-gradient(135deg, rgba(15, 41, 71, 0.99), rgba(43, 100, 154, 0.96));
    border-radius: var(--epo-radio-xl);
    box-shadow: var(--epo-sombra-lg);
    text-align: center;
}

.epo-hero-oracion::before,
.epo-hero-oracion::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    pointer-events: none;
}

.epo-hero-oracion::before {
    top: -100px;
    right: -75px;
    width: 245px;
    height: 245px;
}

.epo-hero-oracion::after {
    bottom: -125px;
    left: -85px;
    width: 280px;
    height: 280px;
}

.epo-hero-oracion__contenido {
    position: relative;
    z-index: 1;
}

.epo-etiqueta {
    display: inline-block;
    margin-bottom: 13px;
    padding: 7px 15px;
    color: var(--epo-blanco);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--epo-radio-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.85px;
    text-transform: uppercase;
}

.epo-hero-oracion h1 {
    max-width: 780px;
    margin: 0 auto 13px;
    color: var(--epo-blanco);
    font-size: clamp(31px, 5vw, 49px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.12;
}

.epo-subtitulo-principal {
    max-width: 690px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    line-height: 1.65;
}

.epo-bloque {
    margin-bottom: var(--epo-espacio-5);
    padding: var(--epo-espacio-6) 32px;
    background: var(--epo-blanco);
    border: 1px solid var(--epo-borde);
    border-radius: var(--epo-radio-lg);
    box-shadow: var(--epo-sombra-md);
}

.epo-bloque h2 {
    margin: 0 0 15px;
    color: var(--epo-azul-800);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.epo-bloque h3 {
    margin: 22px 0 8px;
    color: var(--epo-texto-900);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.epo-bloque p,
.epo-bloque li {
    color: var(--epo-texto-700);
    font-size: 16px;
    line-height: 1.78;
}

.epo-bloque p {
    margin: 0 0 15px;
}

.epo-bloque p:last-child {
    margin-bottom: 0;
}

.epo-bloque ul,
.epo-bloque ol {
    margin: 10px 0 0;
    padding-left: 24px;
}

.epo-texto-oracion {
    position: relative;
    padding: 36px 36px 31px;
    background: linear-gradient(180deg, #fffdf8 0%, var(--epo-blanco) 100%);
    border: 1px solid var(--epo-dorado-300);
    border-left: 5px solid var(--epo-dorado-600);
    border-radius: var(--epo-radio-md);
}

.epo-texto-oracion::before {
    content: "🙏";
    display: block;
    margin-bottom: 13px;
    font-size: 28px;
    line-height: 1;
    text-align: center;
}

.epo-texto-oracion p {
    max-width: 730px;
    margin-right: auto;
    margin-left: auto;
    color: #263347;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.85;
}

.epo-texto-oracion .epo-amen {
    margin-top: 23px;
    color: var(--epo-rojo-700);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.epo-reflexion {
    background: linear-gradient(145deg, #ffffff 0%, #f9fcff 100%);
}

.epo-destacado-biblico {
    margin: 22px 0 0;
    padding: 20px 22px;
    background: var(--epo-azul-100);
    border-left: 4px solid #4386c5;
    border-radius: var(--epo-radio-sm);
}

.epo-destacado-biblico p {
    margin: 0;
    color: #244566;
    font-style: italic;
}

.epo-destacado-biblico cite {
    display: block;
    margin-top: 8px;
    color: var(--epo-texto-500);
    font-size: 13px;
    font-style: normal;
    font-weight: 700;
}

.epo-media-oracion,
.epo-despedida {
    text-align: center;
}

.epo-media-oracion {
    background: linear-gradient(145deg, #effcf4 0%, #ffffff 68%);
    border-color: rgba(29, 185, 84, 0.22);
}

.epo-media-oracion__acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.epo-boton,
.epo-boton-biblioteca {
    display: inline-flex;
    min-height: 48px;
    padding: 12px 23px;
    align-items: center;
    justify-content: center;
    border-radius: var(--epo-radio-pill);
    color: var(--epo-blanco) !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.epo-boton:hover,
.epo-boton-biblioteca:hover {
    transform: translateY(-2px);
    filter: brightness(1.02);
}

.epo-boton:focus-visible,
.epo-boton-biblioteca:focus-visible,
.epo-breadcrumbs a:focus-visible {
    outline: 3px solid rgba(67, 134, 197, 0.38);
    outline-offset: 3px;
}

.epo-boton-spotify {
    background: linear-gradient(135deg, var(--epo-verde-spotify), #1ed760);
    box-shadow: 0 9px 22px rgba(29, 185, 84, 0.26);
}

.epo-boton-youtube {
    background: linear-gradient(135deg, #c62828, #e53935);
    box-shadow: 0 9px 22px rgba(198, 40, 40, 0.23);
}

.epo-despedida {
    background:
        radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.09), transparent 48%),
        linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
}

.epo-despedida-icono {
    display: flex;
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    align-items: center;
    justify-content: center;
    background: var(--epo-blanco);
    border: 1px solid var(--epo-borde);
    border-radius: 50%;
    box-shadow: var(--epo-sombra-sm);
    font-size: 26px;
}

.epo-regreso-biblioteca {
    margin-top: 22px;
    text-align: center;
}

.epo-boton-biblioteca {
    background: linear-gradient(135deg, var(--epo-azul-800), #28649a);
    box-shadow: 0 9px 22px rgba(23, 59, 102, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    .epo-boton,
    .epo-boton-biblioteca {
        transition: none;
    }
}

@media (max-width: 700px) {
    .epo-oracion-dinamica {
        padding: 16px 8px 40px;
    }

    .epo-breadcrumbs {
        padding: 0 6px;
        font-size: 12px;
    }

    .epo-hero-oracion {
        padding: 34px 17px;
        border-radius: 18px;
    }

    .epo-hero-oracion h1 {
        font-size: 31px;
    }

    .epo-subtitulo-principal {
        font-size: 15px;
        line-height: 1.55;
    }

    .epo-bloque {
        margin-bottom: 14px;
        padding: 23px 17px;
        border-radius: var(--epo-radio-md);
    }

    .epo-bloque h2 {
        font-size: 23px;
    }

    .epo-bloque p,
    .epo-bloque li {
        font-size: 15px;
    }

    .epo-texto-oracion {
        padding: 27px 17px 24px;
    }

    .epo-texto-oracion p {
        font-size: 17px;
        line-height: 1.78;
    }

    .epo-media-oracion__acciones {
        display: grid;
        grid-template-columns: 1fr;
    }

    .epo-boton,
    .epo-boton-biblioteca {
        width: 100%;
    }
}

/* ==================================================
   EPO 3.1 — MOTOR DE RELACIONES Y RECOMENDACIONES
================================================== */

.epo-recomendaciones > p {
    max-width: 720px;
}

.epo-recomendaciones__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 19px;
}

.epo-recomendacion-card {
    display: flex;
    min-height: 142px;
    padding: 19px;
    align-items: flex-start;
    gap: 13px;
    color: var(--epo-texto-700, #334155) !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbfe 100%);
    border: 1px solid var(--epo-borde, #dce7f1);
    border-radius: var(--epo-radio-md, 16px);
    box-shadow: var(--epo-sombra-sm, 0 7px 19px rgba(15, 23, 42, 0.04));
    text-decoration: none !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.epo-recomendacion-card:hover {
    transform: translateY(-4px);
    border-color: rgba(23, 59, 102, 0.25);
    box-shadow: 0 13px 28px rgba(15, 23, 42, 0.09);
}

.epo-recomendacion-card:focus-visible {
    outline: 3px solid rgba(67, 134, 197, 0.38);
    outline-offset: 3px;
}

.epo-recomendacion-card__icono {
    display: flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--epo-azul-100, #eef6ff);
    border-radius: 12px;
    font-size: 21px;
}

.epo-recomendacion-card__contenido {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.epo-recomendacion-card__titulo {
    color: var(--epo-azul-800, #173b66);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
}

.epo-recomendacion-card__descripcion {
    margin-top: 7px;
    color: var(--epo-texto-500, #64748b);
    font-size: 13px;
    line-height: 1.5;
}

.epo-recomendacion-card__accion {
    margin-top: auto;
    padding-top: 10px;
    color: var(--epo-rojo-700, #a52626);
    font-size: 13px;
    font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
    .epo-recomendacion-card {
        transition: none;
    }
}

@media (max-width: 700px) {
    .epo-recomendaciones__grid {
        grid-template-columns: 1fr;
    }

    .epo-recomendacion-card {
        min-height: 126px;
        padding: 17px;
    }
}

/* EPO Framework 3.2.1 — Dynamic Rendering Engine */
.epo-acciones-rapidas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: -7px 0 24px;
}

.epo-acciones-rapidas a {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 17px;
    align-items: center;
    justify-content: center;
    color: var(--epo-azul-800);
    background: var(--epo-blanco);
    border: 1px solid var(--epo-borde);
    border-radius: var(--epo-radio-pill);
    box-shadow: var(--epo-sombra-sm);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.epo-acciones-rapidas a:hover {
    transform: translateY(-2px);
    box-shadow: var(--epo-sombra-md);
}

.epo-acciones-rapidas a:focus-visible {
    outline: 3px solid rgba(67, 134, 197, 0.38);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .epo-acciones-rapidas a { transition: none; }
}

/* ==================================================
   EPO 3.3 — BIBLIOTECAS Y ARCHIVOS AUTOMÁTICOS
================================================== */
.epo-library {
    padding: 28px 14px 64px;
    background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
}

.epo-library__container {
    width: min(1160px, 100%);
    margin: 0 auto;
}

.epo-library-hero {
    margin: 16px 0 28px;
    padding: 48px clamp(22px, 5vw, 70px);
    color: #fff;
    background: radial-gradient(circle at 92% 10%, rgba(255,255,255,.12) 0 90px, transparent 91px), linear-gradient(135deg, #173b66, #2c7fc4);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(23, 59, 102, .20);
    text-align: center;
}

.epo-library-hero__eyebrow {
    display: inline-flex;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.epo-library-hero h1 {
    margin: 16px auto 10px;
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.epo-library-hero > p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255,255,255,.92);
    font-size: 17px;
    line-height: 1.65;
}

.epo-library-search {
    max-width: 760px;
    margin: 27px auto 0;
    text-align: left;
}

.epo-library-search label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.epo-library-search__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 9px;
}

.epo-library-search input,
.epo-library-search button {
    min-height: 50px;
    border: 0;
    border-radius: 13px;
    font: inherit;
}

.epo-library-search input {
    padding: 0 17px;
    color: #172033;
    background: #fff;
}

.epo-library-search button {
    padding: 0 22px;
    color: #fff;
    background: #a52626;
    font-weight: 800;
    cursor: pointer;
}

.epo-library-search input:focus-visible,
.epo-library-search button:focus-visible {
    outline: 3px solid rgba(255,255,255,.68);
    outline-offset: 3px;
}

.epo-library-results__meta {
    margin: 0 0 15px;
    color: #64748b;
    font-weight: 700;
}

.epo-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.epo-library-card {
    min-width: 0;
}

.epo-library-card__link {
    display: flex;
    height: 100%;
    min-height: 280px;
    flex-direction: column;
    overflow: hidden;
    color: #334155 !important;
    background: #fff;
    border: 1px solid #dce7f1;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.epo-library-card__link:hover {
    transform: translateY(-4px);
    border-color: rgba(23,59,102,.25);
    box-shadow: 0 16px 35px rgba(15,23,42,.12);
}

.epo-library-card__link:focus-visible {
    outline: 3px solid rgba(44,127,196,.38);
    outline-offset: 4px;
}

.epo-library-card__media {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #eaf2f9;
}

.epo-library-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.epo-library-card__link:hover img {
    transform: scale(1.035);
}

.epo-library-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.epo-library-card__eyebrow {
    color: #a52626;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.epo-library-card__title {
    margin: 8px 0 10px;
    color: #173b66;
    font-size: 22px;
    line-height: 1.25;
}

.epo-library-card__description {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.58;
}

.epo-library-card__action {
    margin-top: auto;
    padding-top: 17px;
    color: #a52626;
    font-weight: 800;
}

.epo-library-empty {
    padding: 55px 24px;
    background: #fff;
    border: 1px solid #dce7f1;
    border-radius: 20px;
    text-align: center;
}

.epo-library-empty h2 {
    color: #173b66;
}

.epo-library-pagination {
    margin-top: 30px;
}

.epo-library-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.epo-library-pagination a,
.epo-library-pagination span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    padding: 8px 13px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce7f1;
    border-radius: 10px;
    text-decoration: none;
}

.epo-library-pagination .current {
    color: #fff;
    background: #173b66;
    border-color: #173b66;
}

@media (prefers-reduced-motion: reduce) {
    .epo-library-card__link,
    .epo-library-card__media img { transition: none; }
}

@media (max-width: 900px) {
    .epo-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .epo-library { padding-inline: 9px; }
    .epo-library-hero { padding: 34px 18px; border-radius: 18px; }
    .epo-library-search__row { grid-template-columns: 1fr; }
    .epo-library-search button { width: 100%; }
    .epo-library-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Explorer Engine EPO — Sprint 4B
   ========================================================= */
.epo-explorer {
    margin: 22px 0;
    padding: 26px;
    background: #fff;
    border: 1px solid #dce7f1;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
}

.epo-explorer__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.epo-explorer__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #a52626;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.epo-explorer__heading h2 {
    margin: 0;
    color: #173b66;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.epo-explorer__clear {
    flex: 0 0 auto;
    padding: 9px 13px;
    color: #a52626 !important;
    background: #fff6f6;
    border: 1px solid #f0caca;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
}

.epo-explorer__clear:hover {
    background: #fdecec;
}

.epo-explorer__group h3 {
    margin: 0 0 12px;
    color: #334155;
    font-size: 15px;
}

.epo-explorer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.epo-explorer-chip {
    display: inline-flex;
    min-height: 39px;
    padding: 8px 11px 8px 14px;
    align-items: center;
    gap: 8px;
    color: #334155 !important;
    background: #f8fbfd;
    border: 1px solid #dce7f1;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none !important;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}

.epo-explorer-chip:hover {
    transform: translateY(-1px);
    background: #edf5fb;
    border-color: #a9c4dc;
}

.epo-explorer-chip.is-active {
    color: #fff !important;
    background: #173b66;
    border-color: #173b66;
}

.epo-explorer-chip.is-empty:not(.is-active) {
    color: #7b8797 !important;
    background: #fbfcfd;
}

.epo-explorer-chip__count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    color: #526477;
    background: rgba(23, 59, 102, .08);
    border-radius: 999px;
    font-size: 11px;
}

.epo-explorer-chip.is-active .epo-explorer-chip__count {
    color: #173b66;
    background: #fff;
}

.epo-explorer-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e8eef4;
    align-items: end;
}

.epo-explorer-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.epo-explorer-field > span {
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.epo-explorer-field select {
    width: 100%;
    min-height: 46px;
    padding: 0 35px 0 12px;
    color: #243447;
    background-color: #f8fbfd;
    border: 1px solid #cfdde9;
    border-radius: 11px;
    font: inherit;
    font-size: 13px;
}

.epo-explorer-form__submit {
    min-height: 46px;
    padding: 0 18px;
    color: #fff;
    background: #173b66;
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.epo-explorer-chip:focus-visible,
.epo-explorer__clear:focus-visible,
.epo-explorer-field select:focus-visible,
.epo-explorer-form__submit:focus-visible {
    outline: 3px solid rgba(44, 127, 196, .38);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .epo-explorer-chip { transition: none; }
}

@media (max-width: 1050px) {
    .epo-explorer-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .epo-explorer-form__submit { width: 100%; }
}

@media (max-width: 620px) {
    .epo-explorer { padding: 20px 16px; border-radius: 17px; }
    .epo-explorer__heading { display: block; }
    .epo-explorer__clear { display: inline-flex; margin-top: 13px; }
    .epo-explorer-form { grid-template-columns: 1fr; }
    .epo-explorer-chip { width: 100%; justify-content: space-between; border-radius: 12px; }
}

/* =========================================================
   Sprint 5 — Discovery Engine
   ========================================================= */
.epo-discovery {
    padding: clamp(24px, 4vw, 38px);
    overflow: hidden;
}

.epo-discovery__heading {
    max-width: 760px;
    margin-bottom: 22px;
}

.epo-discovery__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #9a5b22;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.epo-discovery__heading h2 { margin-bottom: 8px; }
.epo-discovery__heading p { margin: 0; color: #586778; }

.epo-discovery__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.epo-discovery-card {
    display: flex;
    min-width: 0;
    padding: 18px;
    gap: 14px;
    color: #172b45 !important;
    background: linear-gradient(145deg, #fff 0%, #f7fafc 100%);
    border: 1px solid #d9e4ee;
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(26, 54, 86, .06);
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.epo-discovery-card:hover {
    transform: translateY(-4px);
    border-color: #a8c5df;
    box-shadow: 0 15px 34px rgba(26, 54, 86, .12);
}

.epo-discovery-card__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    background: #edf4fa;
    border-radius: 13px;
    font-size: 21px;
}

.epo-discovery-card__body { display: flex; min-width: 0; flex-direction: column; }
.epo-discovery-card__reason { margin-bottom: 5px; color: #8c6329; font-size: 10px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.epo-discovery-card__title { color: #173b66; font-size: 17px; font-weight: 850; line-height: 1.25; }
.epo-discovery-card__description { margin-top: 7px; color: #5b6877; font-size: 13px; line-height: 1.55; }
.epo-discovery-card__action { margin-top: auto; padding-top: 13px; color: #a5512e; font-size: 12px; font-weight: 850; }

.epo-discovery-card:focus-visible {
    outline: 3px solid rgba(44, 127, 196, .42);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .epo-discovery-card { transition: none; }
}

@media (max-width: 900px) {
    .epo-discovery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .epo-discovery__grid { grid-template-columns: 1fr; }
    .epo-discovery-card { padding: 16px; }
}
