/* EPISTEME 01 · expediente filosófico */
:root {
    --ep-ink: #162035;
    --ep-muted: #667085;
    --ep-paper: #f7f3ea;
    --ep-white: #fffdf8;
    --ep-line: #d7d0c2;
    --ep-navy: #101a2b;
    --ep-red: #a1393f;
    --ep-gold: #c59232;
    --ep-teal: #147d78;
}

.acceso-episteme01 {
    position: relative;
    isolation: isolate;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin-top: 22px;
    padding: 26px 28px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(112deg, #3e1930 0%, #67293f 48%, #193d4b 100%);
    border: 1px solid rgba(239, 188, 99, .55);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(18, 14, 32, .23);
}

.acceso-episteme01::before {
    content: "EPISTEME";
    position: absolute;
    z-index: -1;
    right: -8px;
    top: -24px;
    color: rgba(255,255,255,.035);
    font-size: clamp(4rem, 11vw, 9rem);
    font-weight: 950;
    letter-spacing: -.06em;
}

.acceso-episteme01__sello {
    display: grid;
    place-items: center;
    width: 72px;
    height: 82px;
    color: #ffe5a8;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,229,168,.55);
    border-radius: 8px 8px 18px 8px;
    font: 900 1.2rem ui-monospace, monospace;
    transform: rotate(-3deg);
}

.acceso-episteme01 small { display: block; margin-bottom: 5px; color: #ffd780; font-size: .72rem; font-weight: 900; letter-spacing: .13em; }
.acceso-episteme01 h3 { margin: 0 0 7px; color: #fff; font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.1; }
.acceso-episteme01 p { max-width: 760px; margin: 0; color: #eadde2; line-height: 1.5; }

#abrirEpisteme01IA {
    min-width: 210px;
    min-height: 58px;
    padding: 14px 24px;
    color: #311424;
    background: linear-gradient(105deg, #f9cf74, #fff3c6);
    border: 0;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(15, 7, 20, .3);
    font: 900 .98rem inherit;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
#abrirEpisteme01IA:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 16px 32px rgba(15, 7, 20, .4); }
#abrirEpisteme01IA:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

body.ep1-sin-scroll { overflow: hidden !important; }
.ep1-overlay { position: fixed; inset: 0; z-index: 100000; display: none; overflow: auto; color: var(--ep-ink); background: #e7e2d7; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.ep1-overlay.abierto { display: block; }
.ep1-overlay * { box-sizing: border-box; }
.ep1-app { min-height: 100vh; background-image: linear-gradient(rgba(35,45,60,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(35,45,60,.035) 1px, transparent 1px); background-size: 26px 26px; }

.ep1-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; min-height: 78px; padding: 13px max(24px, calc((100vw - 1480px) / 2)); color: #fff; background: var(--ep-navy); border-bottom: 4px solid var(--ep-red); box-shadow: 0 8px 24px rgba(16,26,43,.2); }
.ep1-header__marca { display: grid; }
.ep1-header__marca span { color: #e7bd63; font-size: .66rem; font-weight: 950; letter-spacing: .18em; }
.ep1-header__marca strong { font-family: Georgia, serif; font-size: 1.28rem; }
.ep1-header__centro { color: #c8cfda; font-size: .78rem; font-weight: 750; }
.ep1-header__tools { justify-self: end; display: flex; align-items: center; gap: 12px; }
.ep1-header time { min-width: 76px; padding: 8px 11px; text-align: center; color: #f4d78e; border: 1px solid #4c5667; border-radius: 5px; font: 850 .86rem ui-monospace, monospace; }
.ep1-header__tools button { width: 42px; height: 42px; color: #fff; background: transparent; border: 1px solid #50596a; border-radius: 5px; font-size: 1.6rem; cursor: pointer; }
.ep1-lente-mini { padding: 7px 11px; color: #fff; border: 1px solid var(--lente); border-left: 5px solid var(--lente); border-radius: 4px; font-weight: 850; }

.ep1-progreso { position: sticky; top: 78px; z-index: 25; display: flex; justify-content: center; gap: 3px; padding: 8px 15px; background: rgba(247,243,234,.96); border-bottom: 1px solid #cfc8bb; backdrop-filter: blur(9px); }
.ep1-progreso span { display: flex; align-items: center; gap: 7px; min-width: 120px; padding: 6px 10px; color: #8a8490; font-size: .72rem; font-weight: 850; }
.ep1-progreso b { display: grid; place-items: center; width: 24px; height: 24px; color: #77717b; background: #ddd8cf; border-radius: 50%; font-size: .65rem; }
.ep1-progreso .actual { color: var(--ep-ink); }
.ep1-progreso .actual b { color: #fff; background: var(--ep-red); }
.ep1-progreso .listo { color: #3c6e66; }
.ep1-progreso .listo b { color: #fff; background: var(--ep-teal); }

.ep1-registro { width: min(1260px, calc(100% - 40px)); margin: 44px auto; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: var(--ep-white); border: 1px solid #cfc7b8; border-radius: 10px; box-shadow: 0 24px 70px rgba(32,29,32,.17); }
.ep1-portada { position: relative; padding: clamp(38px, 6vw, 76px); color: #fff; background: linear-gradient(145deg, #141d30, #24243d 66%, #4c2435); }
.ep1-portada::after { content: "CONFIDENCIAL"; position: absolute; right: 28px; bottom: 34px; padding: 9px 16px; color: rgba(240,120,120,.42); border: 3px solid rgba(240,120,120,.28); border-radius: 4px; font-weight: 950; letter-spacing: .18em; transform: rotate(-8deg); }
.ep1-clasificado { display: inline-block; padding: 7px 9px; color: #231b13; background: #e7bd63; font-size: .66rem; font-weight: 950; letter-spacing: .12em; }
.ep1-numero { margin: 30px 0 8px !important; color: #b8c0cf !important; font: 750 .75rem ui-monospace, monospace; letter-spacing: .12em; }
.ep1-portada h1 { max-width: 680px; margin: 0 0 20px; font-family: Georgia, serif; font-size: clamp(2.6rem, 5vw, 5rem); font-weight: 600; line-height: .97; letter-spacing: -.04em; }
.ep1-portada h1 em { color: #f2ce78; }
.ep1-portada > p { max-width: 650px; margin: 0; color: #d0d5de; font-size: 1.03rem; line-height: 1.7; }
.ep1-fases { display: flex; flex-wrap: wrap; gap: 8px; margin: 38px 0; }
.ep1-fases span { padding: 8px 10px; color: #e8dcbf; border: 1px solid #5b6070; border-radius: 4px; font: 800 .7rem ui-monospace, monospace; }
.ep1-portada aside { max-width: 610px; padding: 15px 18px; color: #d9dce3; background: rgba(255,255,255,.06); border-left: 4px solid #e7bd63; line-height: 1.5; }
.ep1-form { align-self: center; padding: clamp(30px, 5vw, 62px); }
.ep1-kicker, .ep1-seccion-cab span, .ep1-alianza > span { color: var(--ep-red); font-size: .68rem; font-weight: 950; letter-spacing: .14em; }
.ep1-form h2 { margin: 7px 0 26px; font-family: Georgia, serif; font-size: 2rem; }
.ep1-form label, .ep1-campo, .ep1-alianza label { display: grid; gap: 7px; margin-bottom: 15px; }
.ep1-form label > span, .ep1-campo > span, .ep1-alianza label > span { color: #3d4554; font-size: .78rem; font-weight: 850; }
.ep1-form input, .ep1-form select, .ep1-form textarea, .ep1-campo select, .ep1-campo textarea, .ep1-alianza select { width: 100%; min-height: 46px; padding: 11px 13px; color: var(--ep-ink); background: #fff; border: 1px solid #bdb6aa; border-radius: 5px; outline: none; font: inherit; }
.ep1-form textarea, .ep1-campo textarea { resize: vertical; line-height: 1.5; }
.ep1-form input:focus, .ep1-form select:focus, .ep1-form textarea:focus, .ep1-campo select:focus, .ep1-campo textarea:focus, .ep1-alianza select:focus { border-color: var(--ep-red); box-shadow: 0 0 0 3px rgba(161,57,63,.12); }
.ep1-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.ep1-error { min-height: 1.25em; color: #a5272e; font-size: .82rem; font-weight: 800; }

.ep1-boton { min-height: 47px; padding: 11px 19px; border-radius: 5px; font-family: inherit; font-size: .88rem; font-weight: 900; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.ep1-boton.primario { color: #fff; background: var(--ep-red); border: 1px solid var(--ep-red); box-shadow: 0 7px 16px rgba(122,37,43,.2); }
.ep1-boton.primario:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(122,37,43,.28); }
.ep1-boton.secundario { color: #364052; background: #fff; border: 1px solid #bdb7ad; }
.ep1-acciones { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #d8d2c7; }

.ep1-tablero { width: min(1280px, calc(100% - 40px)); margin: 34px auto 60px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; }
.ep1-caso, .ep1-mision, .ep1-hoja, .ep1-maletin, .ep1-intro-lente, .ep1-pruebas-mini, .ep1-alianza, .ep1-protocolo { background: var(--ep-white); border: 1px solid #cbc4b8; border-radius: 8px; box-shadow: 0 10px 30px rgba(28,30,35,.08); }
.ep1-caso { overflow: hidden; }
.ep1-caso__cab { display: flex; justify-content: space-between; gap: 12px; padding: 13px 19px; color: #fff; background: #1a2538; font: 800 .68rem ui-monospace, monospace; letter-spacing: .09em; }
.ep1-caso__cab b { color: #f2c86e; }
.ep1-caso__cuerpo { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ep-line); }
.ep1-caso__cuerpo div { padding: 22px; }
.ep1-caso__cuerpo div + div { border-left: 1px solid var(--ep-line); }
.ep1-caso__cuerpo small { display: block; margin-bottom: 6px; color: #7a7480; font-size: .65rem; font-weight: 900; letter-spacing: .1em; }
.ep1-caso__cuerpo strong { font-size: 1.02rem; }
.ep1-caso blockquote { margin: 28px; padding: 24px 26px; color: #222b3b; background: #f0eadf; border-left: 5px solid var(--ep-red); font-family: Georgia, serif; font-size: clamp(1.35rem, 2.5vw, 2.1rem); line-height: 1.35; }
.ep1-caso > p { margin: 0; padding: 0 28px 30px; color: #596273; line-height: 1.65; }
.ep1-mision { align-self: start; padding: 30px; border-top: 7px solid var(--ep-gold); }
.ep1-mision > span { color: #8e6720; font-size: .68rem; font-weight: 950; letter-spacing: .14em; }
.ep1-mision h2 { margin: 8px 0 18px; font-family: Georgia, serif; font-size: 2rem; }
.ep1-mision ol { margin: 0 0 26px; padding-left: 22px; color: #515b6a; line-height: 1.65; }
.ep1-mision .ep1-boton { width: 100%; }

.ep1-area, .ep1-interrogatorio, .ep1-dictamen, .ep1-giro, .ep1-sintesis, .ep1-resultado { width: min(1420px, calc(100% - 40px)); margin: 30px auto 70px; }
.ep1-intro-lente { display: grid; grid-template-columns: 1fr 320px; gap: 30px; padding: 28px 34px; border-left: 8px solid var(--lente); }
.ep1-intro-lente span { color: var(--lente); font-size: .68rem; font-weight: 950; letter-spacing: .14em; }
.ep1-intro-lente h2 { margin: 8px 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 3.2vw, 3rem); }
.ep1-intro-lente p { margin: 0; color: #5c6574; line-height: 1.55; }
.ep1-intro-lente aside { display: grid; align-content: center; gap: 6px; padding: 18px; background: #f0ece3; border: 1px dashed #bdb4a4; }
.ep1-intro-lente aside small { color: #80796e; font-size: .65rem; font-weight: 900; letter-spacing: .1em; }
.ep1-maletin { margin-top: 20px; padding: clamp(24px, 4vw, 42px); }
.ep1-seccion-cab { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.ep1-seccion-cab h2 { margin: 6px 0; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.ep1-seccion-cab p { margin: 0; color: var(--ep-muted); }
.ep1-contador { min-width: 80px; padding: 10px; text-align: center; color: #756f65; background: #f0ece4; border: 1px solid #d1c9bc; border-radius: 6px; font: 850 1rem ui-monospace, monospace; }
.ep1-contador b { color: var(--ep-red); font-size: 1.55rem; }
.ep1-evidencias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ep1-evidencia { position: relative; min-height: 225px; padding: 19px; color: var(--ep-ink); text-align: left; background: #fffdfa; border: 1px solid #cfc7ba; border-radius: 6px; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.ep1-evidencia:hover { transform: translateY(-3px); border-color: #9c7960; box-shadow: 0 9px 18px rgba(43,35,30,.1); }
.ep1-evidencia > span { color: #8b3a3f; font-size: .62rem; font-weight: 950; letter-spacing: .12em; }
.ep1-evidencia > b { position: absolute; right: 15px; top: 14px; color: #afa79a; font: 800 .72rem ui-monospace, monospace; }
.ep1-evidencia h3 { margin: 16px 0 8px; font-family: Georgia, serif; font-size: 1.22rem; }
.ep1-evidencia strong { display: block; color: #343d4d; font-size: .87rem; }
.ep1-evidencia p { margin: 10px 0 28px; color: #6b7280; font-size: .78rem; line-height: 1.5; }
.ep1-evidencia i { position: absolute; left: 19px; bottom: 16px; color: #928b80; font-size: .62rem; font-style: normal; font-weight: 950; letter-spacing: .1em; }
.ep1-evidencia.seleccionada { background: #fff8e5; border: 2px solid var(--ep-gold); box-shadow: inset 0 0 0 3px #fff, 0 8px 18px rgba(112,81,26,.13); }
.ep1-evidencia.seleccionada i { color: #8e651c; }

.ep1-hoja { padding: clamp(28px, 5vw, 58px); }
.ep1-interrogatorio { max-width: 1050px; }
.ep1-sello { flex: 0 0 auto; padding: 12px 16px; color: var(--lente); border: 3px double var(--lente); border-radius: 3px; font-weight: 950; letter-spacing: .08em; transform: rotate(-3deg); }
.ep1-preguntas { display: grid; gap: 16px; }
.ep1-preguntas fieldset, .ep1-veredictos { margin: 0; padding: 20px; border: 1px solid #d0c8bb; border-radius: 6px; }
.ep1-preguntas legend, .ep1-veredictos legend { padding: 0 8px; font-weight: 850; }
.ep1-preguntas legend b { margin-right: 10px; color: var(--ep-red); font: 900 .72rem ui-monospace, monospace; }
.ep1-preguntas label { display: inline-flex; align-items: center; margin: 10px 14px 0 0; cursor: pointer; }
.ep1-preguntas label span { padding: 10px 12px; color: #444d5d; background: #f3efe7; border: 1px solid transparent; border-radius: 4px; font-size: .85rem; }
.ep1-preguntas input { position: absolute; opacity: 0; }
.ep1-preguntas input:checked + span { color: #fff; background: #314d64; border-color: #314d64; }

.ep1-dictamen { display: grid; grid-template-columns: 310px 1fr; gap: 20px; align-items: start; }
.ep1-pruebas-mini { position: sticky; top: 135px; padding: 20px; }
.ep1-pruebas-mini > span { color: var(--ep-red); font-size: .63rem; font-weight: 950; letter-spacing: .12em; }
.ep1-pruebas-mini > div { display: grid; gap: 8px; margin-top: 14px; }
.ep1-pruebas-mini article { display: grid; gap: 3px; padding: 13px; background: #f1ece2; border-left: 4px solid var(--ep-gold); }
.ep1-pruebas-mini article b { color: #8e3e43; font-size: .6rem; letter-spacing: .08em; }
.ep1-pruebas-mini article strong { font-size: .84rem; }
.ep1-pruebas-mini article small { color: #73706b; line-height: 1.35; }
.ep1-veredictos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.ep1-veredictos label { cursor: pointer; }
.ep1-veredictos input { position: absolute; opacity: 0; }
.ep1-veredictos label > span { display: grid; gap: 6px; height: 100%; padding: 18px; background: #f3efe7; border: 2px solid transparent; border-radius: 5px; }
.ep1-veredictos small { color: #727887; line-height: 1.4; }
.ep1-veredictos input:checked + span { color: #fff; background: #27364b; border-color: #c89d49; }
.ep1-veredictos input:checked + span small { color: #d7dce4; }
.ep1-campo small { justify-self: end; color: #777f8e; }

.ep1-alerta { padding: clamp(28px, 5vw, 55px); color: #fff; text-align: center; background: #8f2c34; border-radius: 7px 7px 0 0; }
.ep1-alerta span { color: #ffd995; font-size: .7rem; font-weight: 950; letter-spacing: .14em; }
.ep1-alerta h1 { margin: 8px 0 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4.4rem); }
.ep1-nuevas-pruebas { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; background: #222c3d; }
.ep1-nuevas-pruebas article { padding: 30px; color: #fff; }
.ep1-nuevas-pruebas article b { color: #eec76f; font-size: .67rem; letter-spacing: .1em; }
.ep1-nuevas-pruebas article h3 { margin: 8px 0; font-family: Georgia, serif; font-size: 1.55rem; }
.ep1-nuevas-pruebas article p { margin: 0; color: #ccd2dc; line-height: 1.5; }
.ep1-vs { display: grid; place-items: center; padding: 14px; color: #fff; background: #111827; font-size: .65rem; font-weight: 950; letter-spacing: .13em; }
.ep1-hoja--giro { border-radius: 0 0 8px 8px; }

.ep1-sintesis { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.ep1-alianza { position: sticky; top: 134px; padding: 28px; border-top: 7px solid var(--ep-red); }
.ep1-alianza h1 { margin: 8px 0 12px; font-family: Georgia, serif; font-size: 2.15rem; line-height: 1.05; }
.ep1-alianza > p { color: #606978; line-height: 1.55; }
.ep1-alianza label { margin-top: 24px; }
.ep1-alianza-info { padding: 15px; color: #525d6c; background: #f0ece3; border-left: 4px solid var(--ep-gold); font-size: .83rem; line-height: 1.45; }
.ep1-protocolo { padding: clamp(25px, 4vw, 44px); }
.ep1-protocolo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ep1-protocolo__grid button { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; min-height: 88px; padding: 14px; color: var(--ep-ink); text-align: left; background: #f4f0e8; border: 1px solid #cbc4b7; border-radius: 5px; cursor: pointer; }
.ep1-protocolo__grid button > b { display: grid; place-items: center; width: 38px; height: 38px; color: #717987; background: #fff; border: 1px solid #c7c1b7; border-radius: 50%; }
.ep1-protocolo__grid strong, .ep1-protocolo__grid small { display: block; }
.ep1-protocolo__grid small { margin-top: 4px; color: #737b88; line-height: 1.4; }
.ep1-protocolo__grid button.seleccionado { color: #fff; background: #293b4f; border-color: #293b4f; }
.ep1-protocolo__grid button.seleccionado > b { color: #172536; background: #f0c96f; border-color: #f0c96f; }
.ep1-protocolo__grid button.seleccionado small { color: #d6dce4; }
.ep1-protocolo__ruta, .ep1-ruta-final { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding: 17px; color: #737b87; background: #ebe6dc; border: 1px dashed #bcb3a4; }
.ep1-protocolo__ruta span, .ep1-ruta-final span { display: inline-flex; align-items: center; gap: 6px; color: #263649; font-weight: 850; }
.ep1-protocolo__ruta span b, .ep1-ruta-final span b { display: grid; place-items: center; width: 25px; height: 25px; color: #fff; background: var(--ep-red); border-radius: 50%; font-size: .66rem; }
.ep1-protocolo__ruta i, .ep1-ruta-final i { color: #a13a40; font-style: normal; font-weight: 950; }

.ep1-guardando { min-height: calc(100vh - 78px); display: grid; place-content: center; justify-items: center; text-align: center; }
.ep1-guardando > div { width: 64px; height: 76px; border: 5px solid #c9c2b7; border-top-color: var(--ep-red); border-radius: 4px 4px 18px 4px; animation: ep1pulso .9s ease-in-out infinite alternate; }
@keyframes ep1pulso { to { transform: rotate(-5deg) scale(1.05); border-top-color: var(--ep-gold); } }
.ep1-guardando h2 { margin: 20px 0 5px; font-family: Georgia, serif; }
.ep1-guardando p { color: var(--ep-muted); }

.ep1-resultado { max-width: 1120px; overflow: hidden; background: var(--ep-white); border: 1px solid #c9c2b6; border-radius: 8px; box-shadow: 0 20px 60px rgba(23,25,29,.15); }
.ep1-resultado__cab { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: clamp(30px, 5vw, 58px); color: #fff; background: linear-gradient(120deg, #162337, #4c2638); }
.ep1-resultado__cab span { color: #f1cd7d; font-size: .68rem; font-weight: 950; letter-spacing: .13em; }
.ep1-resultado__cab h1 { margin: 7px 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 5vw, 4rem); }
.ep1-resultado__cab p { margin: 0; color: #d6d8df; }
.ep1-calificacion { display: grid; grid-template-columns: auto auto; align-items: end; padding: 15px 20px; border: 1px solid rgba(255,255,255,.25); }
.ep1-calificacion strong { font: 700 4.6rem Georgia, serif; line-height: .8; }
.ep1-calificacion > span { color: #d8c9ca; }
.ep1-calificacion small { grid-column: 1 / -1; margin-top: 8px; color: #f2cc77; text-align: right; font-weight: 900; }
.ep1-acta { padding: clamp(27px, 5vw, 52px); }
.ep1-acta__folio { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--ep-line); }
.ep1-acta__folio span { color: #817a70; font-size: .66rem; font-weight: 900; letter-spacing: .1em; }
.ep1-acta__folio strong { margin-right: auto; color: var(--ep-red); font: 950 1.25rem ui-monospace, monospace; letter-spacing: .07em; }
.ep1-acta__folio button { padding: 6px 10px; color: #fff; background: #35475c; border: 0; border-radius: 4px; cursor: pointer; }
.ep1-acta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.ep1-acta__grid article { padding: 18px; background: #f1ede5; border: 1px solid #d8d1c5; }
.ep1-acta__grid article.ancho { grid-column: 1 / -1; }
.ep1-acta__grid small { color: #8b3d42; font-size: .63rem; font-weight: 950; letter-spacing: .1em; }
.ep1-acta__grid h3 { margin: 7px 0; font-family: Georgia, serif; font-size: 1.4rem; }
.ep1-acta__grid p { margin: 0; color: #586170; line-height: 1.55; }
.ep1-ruta-final { margin-top: 10px; background: #fff; }
.ep1-entrega { display: flex; justify-content: space-between; gap: 20px; padding: 18px; background: #242f41; color: #fff; }
.ep1-entrega p { margin: 4px 0 0; color: #d2d7df; font-size: .84rem; line-height: 1.4; }
.ep1-entrega > span { align-self: center; min-width: 190px; padding: 10px; text-align: center; border: 1px solid; font-size: .64rem; font-weight: 950; letter-spacing: .08em; }
.ep1-entrega > span.ok { color: #91e0c5; border-color: #54aa8d; }
.ep1-entrega > span.local { color: #ffd68a; border-color: #c59a4b; }

@media (max-width: 1050px) {
    .ep1-evidencias { grid-template-columns: repeat(3, 1fr); }
    .ep1-sintesis { grid-template-columns: 290px 1fr; }
}

@media (max-width: 820px) {
    .acceso-episteme01 { grid-template-columns: 62px 1fr; }
    .acceso-episteme01__sello { width: 58px; height: 66px; }
    #abrirEpisteme01IA { grid-column: 1 / -1; width: 100%; }
    .ep1-header { grid-template-columns: 1fr auto; }
    .ep1-header__centro { display: none; }
    .ep1-registro, .ep1-tablero, .ep1-dictamen, .ep1-sintesis { grid-template-columns: 1fr; }
    .ep1-intro-lente { grid-template-columns: 1fr; }
    .ep1-evidencias { grid-template-columns: repeat(2, 1fr); }
    .ep1-pruebas-mini, .ep1-alianza { position: static; }
    .ep1-veredictos { grid-template-columns: 1fr; }
    .ep1-progreso { justify-content: start; overflow-x: auto; }
    .ep1-progreso span { min-width: auto; }
    .ep1-progreso span:not(.actual) { font-size: 0; }
}

@media (max-width: 560px) {
    .acceso-episteme01 { grid-template-columns: 1fr; padding: 22px 18px; }
    .ep1-header { min-height: 68px; padding: 10px 12px; }
    .ep1-header__marca strong { font-size: 1rem; }
    .ep1-header time { display: none; }
    .ep1-progreso { top: 68px; }
    .ep1-registro, .ep1-tablero, .ep1-area, .ep1-interrogatorio, .ep1-dictamen, .ep1-giro, .ep1-sintesis, .ep1-resultado { width: calc(100% - 18px); margin-top: 12px; }
    .ep1-portada, .ep1-form, .ep1-maletin, .ep1-hoja, .ep1-protocolo { padding: 23px 18px; }
    .ep1-portada h1 { font-size: 2.5rem; }
    .ep1-dos, .ep1-evidencias, .ep1-protocolo__grid, .ep1-acta__grid { grid-template-columns: 1fr; }
    .ep1-caso__cuerpo { grid-template-columns: 1fr; }
    .ep1-caso__cuerpo div + div { border-left: 0; border-top: 1px solid var(--ep-line); }
    .ep1-caso blockquote { margin: 18px; padding: 18px; }
    .ep1-nuevas-pruebas { grid-template-columns: 1fr; }
    .ep1-seccion-cab, .ep1-acciones, .ep1-entrega { flex-direction: column; }
    .ep1-acciones button { width: 100%; }
    .ep1-acta__grid article.ancho { grid-column: auto; }
    .ep1-entrega > span { width: 100%; }
}

@media print {
    body > *:not(#ep1Overlay) { display: none !important; }
    .ep1-overlay { position: static; display: block !important; background: #fff; }
    .ep1-header, .ep1-acciones { display: none !important; }
    .ep1-resultado { width: 100%; margin: 0; box-shadow: none; }
}
