/* ==========================================================================
   ARCHIVOS SECRETOS — Gabinete del Instituto Fharos
   Misma estética gótica del sitio: negro violáceo, wendia, tinta de vino.
   ========================================================================== */

:root {
    --black: #050307;
    --deep: #09060c;
    --charcoal: #110c15;
    --ash: #1a121f;
    --fog: #2d2233;
    --silver: #978d9d;
    --pearl: #d0c7d5;
    --white: #efe8ef;
    --wendia: #7b2d8b;
    --wendia-light: #a855c8;
    --wendia-pale: #d4a0e8;
    --wendia-glow: rgba(123, 45, 139, 0.45);
    --sangre: #6e1430;
    --sangre-light: #b03a5b;
    --ambar: #c9913a;
    --papel: #130e17;
    --papel-2: #19121e;
    --tinta: #c9bfcf;
    --maquina: 'Special Elite', 'Courier New', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--tinta);
    font-family: 'Cormorant Garamond', Georgia, serif;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9997;
    opacity: .5;
}

button { font: inherit; color: inherit; }

/* ============================================
   PANEL — EL GABINETE
   ============================================ */
.panel-control {
    display: none;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: calc(var(--nav-h, 64px) + 50px) 20px 80px;
    position: relative;
    z-index: 4;
}

.panel-control.activo { display: flex; }

.panel-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 640px;
    animation: subir 1.2s ease both;
}

@keyframes subir { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.sello-cabecera {
    width: 84px;
    height: 84px;
    margin: 0 auto 24px;
    color: var(--wendia-pale);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 35% 30%, #6a2a7a, #3a1145 60%, #1e0824);
    box-shadow: 0 0 0 4px rgba(58, 17, 69, .5), 0 0 40px var(--wendia-glow), inset 0 -4px 10px rgba(0, 0, 0, .6);
}

.sello-cabecera svg { width: 62px; height: 62px; }

.eyebrow {
    font-size: .74rem;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--wendia-light);
    margin-bottom: 18px;
}

.panel-header h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 6vw, 3.6rem);
    color: var(--white);
    letter-spacing: .05em;
    line-height: 1.1;
    margin-bottom: 14px;
    text-shadow: 0 0 34px rgba(168, 85, 200, .3);
}

.panel-header .subtitulo {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--silver);
    margin-bottom: 26px;
}

.advertencia {
    margin-top: 22px;
    font-family: var(--maquina);
    font-size: .78rem;
    letter-spacing: .14em;
    color: var(--sangre-light);
}

/* Sobres lacrados */
.grid-botones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 26px;
    max-width: 1080px;
    width: 100%;
}

.sobre {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 34px 30px 30px;
    background:
        linear-gradient(160deg, transparent 0 calc(50% - .5px), rgba(212, 160, 232, .07) 50%, transparent calc(50% + .5px)) top / 100% 90px no-repeat,
        linear-gradient(20deg, transparent 0 calc(50% - .5px), rgba(212, 160, 232, .07) 50%, transparent calc(50% + .5px)) top / 100% 90px no-repeat,
        linear-gradient(180deg, var(--papel-2), var(--papel));
    border: 1px solid rgba(168, 85, 200, .18);
    cursor: pointer;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1), border-color .4s, box-shadow .4s;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .55), inset 0 0 0 4px var(--black), inset 0 0 0 5px rgba(168, 85, 200, .08);
    animation: subir 1s ease both;
}

.sobre:nth-child(2) { animation-delay: .12s; }
.sobre:nth-child(3) { animation-delay: .24s; }

.sobre:hover, .sobre:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 200, .45);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 50px rgba(123, 45, 139, .15), inset 0 0 0 4px var(--black), inset 0 0 0 5px rgba(168, 85, 200, .18);
}

.sobre-num {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--wendia);
    margin-bottom: 26px;
}

.sobre-codigo {
    font-family: var(--maquina);
    font-size: .72rem;
    letter-spacing: .12em;
    color: var(--silver);
    margin-bottom: 10px;
}

.sobre .titulo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.3rem;
    color: var(--white);
    letter-spacing: .04em;
    margin-bottom: 14px;
    padding-right: 66px;
}

.sobre-codigo { padding-right: 66px; }

.sobre .descripcion {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--silver);
    margin-bottom: 24px;
}

.sobre-pie {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nivel-clasif {
    font-family: var(--maquina);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--wendia-pale);
    border: 1px solid rgba(168, 85, 200, .35);
    padding: 4px 10px;
}

.nivel-clasif.rojo { color: #e47a95; border-color: rgba(176, 58, 91, .55); }

.sobre .abrir {
    font-size: .72rem;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--wendia);
    transition: color .3s, letter-spacing .3s;
}

.sobre:hover .abrir { color: var(--wendia-pale); letter-spacing: .32em; }

.lacre {
    position: absolute;
    top: 64px;
    right: 26px;
    width: 58px;
    height: 58px;
    border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
    display: grid;
    place-items: center;
    color: rgba(240, 200, 255, .75);
    background: radial-gradient(circle at 35% 30%, #7a3290, #4a1658 55%, #26082e);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .6), inset 0 -3px 6px rgba(0, 0, 0, .5), inset 0 2px 3px rgba(255, 255, 255, .12);
    transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.lacre svg { width: 44px; height: 44px; }
.sobre:hover .lacre { transform: rotate(-14deg) scale(1.06); }

.sobre.sellado .lacre {
    background: radial-gradient(circle at 35% 30%, #a3324f, #6e1430 55%, #3a0817);
    color: rgba(255, 210, 220, .7);
    animation: latir 2.6s ease-in-out infinite;
}

@keyframes latir {
    0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, .6), 0 0 0 rgba(176, 58, 91, 0), inset 0 -3px 6px rgba(0, 0, 0, .5); }
    50% { box-shadow: 0 4px 12px rgba(0, 0, 0, .6), 0 0 26px rgba(176, 58, 91, .45), inset 0 -3px 6px rgba(0, 0, 0, .5); }
}

/* ============================================
   SECCIONES
   ============================================ */
.seccion {
    display: none;
    min-height: 100vh;
    padding: calc(var(--nav-h, 64px) + 24px) 20px 60px;
    position: relative;
    z-index: 4;
}

.seccion.activa { display: block; animation: subir .6s ease both; }

.barra-superior {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 16px 0;
    margin: 0 auto 36px;
    max-width: 1200px;
    border-bottom: 1px solid rgba(168, 85, 200, .15);
}

.ruta {
    font-size: .8rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--silver);
}

.ruta span { color: var(--wendia); margin: 0 .5em; }
.ruta strong { font-weight: 400; color: var(--wendia-pale); }

.btn-volver {
    background: transparent;
    border: 1px solid rgba(168, 85, 200, .3);
    color: var(--pearl);
    padding: 10px 20px;
    cursor: pointer;
    font-size: .74rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    transition: all .3s;
}

.btn-volver:hover { border-color: var(--wendia-light); color: var(--white); background: rgba(123, 45, 139, .12); }

.contenedor-seccion { max-width: 1200px; margin: 0 auto; }

/* ============================================
   EXPEDIENTES
   ============================================ */
.grid-expedientes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 22px;
    align-items: start;
}

.expediente {
    position: relative;
    background: linear-gradient(180deg, var(--papel-2), var(--papel));
    border: 1px solid rgba(168, 85, 200, .16);
    cursor: pointer;
    transition: border-color .4s, box-shadow .4s, transform .4s;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
}

/* Pestaña de carpeta */
.expediente::before {
    content: '';
    position: absolute;
    top: -9px;
    left: 22px;
    width: 92px;
    height: 10px;
    background: var(--papel-2);
    border: 1px solid rgba(168, 85, 200, .16);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
}

.expediente:hover { border-color: rgba(168, 85, 200, .38); transform: translateY(-3px); }
.expediente.expandido { border-color: rgba(168, 85, 200, .45); box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(123, 45, 139, .12); }

.exp-header {
    position: relative;
    padding: 28px 26px 24px;
}

.exp-clasif {
    display: inline-block;
    font-family: var(--maquina);
    font-size: .74rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--wendia-pale);
    border: 2px solid currentColor;
    padding: 3px 10px;
    margin-bottom: 16px;
    transform: rotate(-3deg);
    opacity: .85;
}

.exp-clasif.ultra { color: #e47a95; }
.exp-clasif.peligro { color: var(--ambar); }

.exp-titulo {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--white);
    letter-spacing: .06em;
    margin-bottom: 8px;
}

.exp-codigo {
    font-family: var(--maquina);
    font-size: .74rem;
    letter-spacing: .08em;
    color: var(--silver);
}

.exp-toggle {
    position: absolute;
    right: 24px;
    bottom: 26px;
    width: 14px;
    height: 14px;
}

.exp-toggle::before, .exp-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--wendia-light);
    transition: transform .4s;
}

.exp-toggle::after { transform: rotate(90deg); }
.expediente.expandido .exp-toggle::after { transform: rotate(0); }

.exp-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .6s ease, padding .5s ease;
    padding: 0 26px;
    border-top: 1px dashed transparent;
}

.expediente.expandido .exp-body {
    max-height: 600px;
    padding: 20px 26px 26px;
    border-top-color: rgba(168, 85, 200, .18);
}

.exp-body ul { list-style: none; margin-bottom: 22px; }

.exp-body li {
    font-family: var(--maquina);
    font-size: .82rem;
    line-height: 1.6;
    color: var(--tinta);
    padding: 9px 0 9px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    position: relative;
}

.exp-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 7px;
    height: 7px;
    background: var(--flor, none) center/contain no-repeat;
}

.tachado {
    background: #050307;
    color: transparent;
    padding: 0 4px;
    user-select: none;
    border-radius: 1px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .05);
}

.btn-ver-mas, .btn-revelar, .terminal-btn-acceso {
    background: linear-gradient(180deg, rgba(123, 45, 139, .18), rgba(58, 17, 69, .25));
    border: 1px solid rgba(168, 85, 200, .45);
    color: var(--white);
    padding: 12px 22px;
    cursor: pointer;
    font-size: .76rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    transition: all .35s;
}

.btn-ver-mas:hover, .btn-revelar:hover, .terminal-btn-acceso:hover {
    background: var(--wendia);
    border-color: var(--wendia-pale);
    box-shadow: 0 0 26px var(--wendia-glow);
}

/* ============================================
   MODALES — DOCUMENTOS
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 24px;
    overflow-y: auto;
}

.modal-overlay.activo { display: flex; animation: subir .35s ease both; }

.modal-documento {
    position: relative;
    max-width: 720px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    background:
        repeating-linear-gradient(180deg, transparent 0 31px, rgba(212, 160, 232, .035) 31px 32px),
        linear-gradient(180deg, var(--papel-2), var(--papel));
    border: 1px solid rgba(168, 85, 200, .25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(168, 85, 200, .15);
}

.sello-modal {
    font-family: var(--maquina);
    font-size: .78rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--wendia-pale);
    border: 2px solid currentColor;
    padding: 4px 14px;
    transform: rotate(-3deg);
}

.sello-modal.rojo { color: #e47a95; }
.sello-modal.ambar { color: var(--ambar); }

.modal-cerrar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(168, 85, 200, .3);
    color: var(--pearl);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: all .3s;
}

.modal-cerrar:hover { color: var(--white); border-color: var(--wendia-pale); background: rgba(123, 45, 139, .2); }

.modal-body { padding: 30px 32px 34px; }

.modal-body h2 {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 400;
    font-size: 1.35rem;
    color: var(--white);
    letter-spacing: .04em;
    margin-bottom: 22px;
}

.ficha-datos {
    padding: 18px 20px;
    border-left: 2px solid var(--wendia);
    background: rgba(5, 3, 7, .45);
}

.ficha-datos p {
    font-family: var(--maquina);
    font-size: .84rem;
    line-height: 1.65;
    color: var(--tinta);
    margin: 8px 0;
}

.ficha-datos strong { font-weight: 400; color: var(--wendia-pale); }

.nota-margen {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--wendia-pale);
    margin: 26px 0 6px;
    padding-left: 22px;
    position: relative;
    transform: rotate(-.6deg);
}

.nota-margen::before {
    content: '';
    position: absolute;
    left: 0;
    top: .3em;
    width: 12px;
    height: 12px;
    background: var(--flor, none) center/contain no-repeat;
}

.btn-revelar { margin: 24px 0 0; }

.secreto {
    display: none;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(176, 58, 91, .45);
    background: linear-gradient(180deg, rgba(110, 20, 48, .14), rgba(5, 3, 7, .6));
}

.secreto.activo { display: block; animation: tinta .8s ease both; }

@keyframes tinta { from { opacity: 0; filter: blur(4px); } to { opacity: 1; filter: none; } }

.secreto p {
    font-family: var(--maquina);
    font-size: .84rem;
    line-height: 1.7;
    color: #f0b9c7;
}

.secreto p + p { margin-top: 10px; }

.marca-agua {
    margin-top: 30px;
    text-align: right;
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: .85rem;
    color: #4a3f50;
}

/* ============================================
   MURO DE EVIDENCIAS
   ============================================ */
.muro-evidencias {
    position: relative;
    padding: 46px 34px;
    border: 1px solid rgba(168, 85, 200, .15);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(58, 17, 69, .35), transparent 70%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .012) 0 2px, transparent 2px 6px),
        #0b080e;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, .8);
}

.hilos {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.muro-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
    gap: 44px 34px;
}

.evidencia-item {
    position: relative;
    background: #e9e1d6;
    padding: 12px 12px 18px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .65);
    transform: rotate(var(--rot, 0deg));
    transition: transform .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s;
}

.evidencia-item:nth-child(1) { --rot: -2.5deg; }
.evidencia-item:nth-child(2) { --rot: 1.8deg; }
.evidencia-item:nth-child(3) { --rot: -1deg; }
.evidencia-item:nth-child(4) { --rot: 2.6deg; }
.evidencia-item:nth-child(5) { --rot: -2deg; }
.evidencia-item:nth-child(6) { --rot: 1.2deg; }

.evidencia-item:hover { transform: rotate(0) scale(1.04); z-index: 3; box-shadow: 0 24px 50px rgba(0, 0, 0, .75); }

.chincheta {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-left: -8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #e9a2c0, #a3324f 45%, #4a0a1e);
    box-shadow: 0 3px 5px rgba(0, 0, 0, .6);
    z-index: 4;
}

.evidencia-img {
    aspect-ratio: 1;
    background: radial-gradient(circle at 50% 40%, #1d1522, #0a070c);
    overflow: hidden;
    filter: sepia(.15) contrast(1.05);
}

.evidencia-img svg { width: 100%; height: 100%; display: block; }

.evidencia-item figcaption { display: block; padding-top: 12px; }

.evidencia-tag {
    display: block;
    font-family: var(--maquina);
    font-size: .7rem;
    letter-spacing: .14em;
    color: #8a1f3e;
    margin-bottom: 4px;
}

.evidencia-titulo {
    display: block;
    font-family: 'IM Fell English', serif;
    font-size: 1.12rem;
    color: #1a1219;
    margin-bottom: 6px;
}

.evidencia-desc {
    display: block;
    font-family: var(--maquina);
    font-size: .76rem;
    line-height: 1.55;
    color: #3d3340;
}

/* ============================================
   NIVEL 5 — LA CERRADURA
   ============================================ */
.terminal-acceso {
    max-width: 560px;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--papel-2), var(--papel));
    border: 1px solid rgba(168, 85, 200, .22);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

.terminal-acceso-header {
    text-align: center;
    padding: 28px 24px 22px;
    border-bottom: 1px solid rgba(168, 85, 200, .15);
}

.terminal-acceso-header h2 {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--white);
}

.terminal-acceso-header .nivel {
    margin-top: 8px;
    font-family: var(--maquina);
    font-size: .76rem;
    letter-spacing: .14em;
    color: #e47a95;
}

.terminal-body { padding: 36px 30px 34px; text-align: center; }

.icono-candado {
    width: 84px;
    height: 98px;
    margin: 0 auto 26px;
    display: block;
    filter: drop-shadow(0 0 16px var(--wendia-glow));
}

.terminal-input-line { display: flex; justify-content: center; gap: 12px; margin-bottom: 22px; }

.terminal-input-line input {
    width: 58px;
    height: 70px;
    background: linear-gradient(180deg, #050307, #140d18 50%, #050307);
    border: 1px solid rgba(168, 85, 200, .4);
    border-radius: 4px;
    color: var(--wendia-pale);
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem;
    text-align: center;
    outline: none;
    box-shadow: inset 0 6px 12px rgba(0, 0, 0, .8), inset 0 -6px 12px rgba(0, 0, 0, .8);
    transition: border-color .3s, box-shadow .3s;
}

.terminal-input-line input:focus {
    border-color: var(--wendia-pale);
    box-shadow: inset 0 6px 12px rgba(0, 0, 0, .8), 0 0 18px var(--wendia-glow);
}

.terminal-input-line.error { animation: temblor .45s; }
.terminal-input-line.error input { border-color: var(--sangre-light); }

@keyframes temblor {
    0%, 100% { transform: none; }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

.terminal-btn-acceso { width: 100%; padding: 15px; }

.terminal-pista {
    margin-top: 20px;
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--silver);
}

.terminal-log {
    margin-top: 16px;
    min-height: 1.4em;
    font-family: var(--maquina);
    font-size: .8rem;
    letter-spacing: .08em;
}

.terminal-log .ok { color: var(--wendia-pale); }
.terminal-log .mal { color: #e47a95; }

.contenido-desbloqueado { display: none; padding: 30px; }
.contenido-desbloqueado.activo { display: block; animation: tinta 1.2s ease both; }

.documento-secreto {
    position: relative;
    padding: 30px 28px;
    background:
        repeating-linear-gradient(180deg, transparent 0 31px, rgba(212, 160, 232, .04) 31px 32px),
        #0d0911;
    border: 1px solid rgba(176, 58, 91, .35);
}

.documento-secreto::before {
    content: 'Destruir';
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--maquina);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #e47a95;
    border: 2px solid currentColor;
    padding: 3px 10px;
    transform: rotate(6deg);
    opacity: .7;
}

.documento-secreto h3 {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--wendia-pale);
    margin: 0 90px 18px 0;
    line-height: 1.4;
}

.documento-secreto p {
    font-family: 'IM Fell English', serif;
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--tinta);
    margin-bottom: 14px;
}

.documento-secreto .nota-gris { font-style: italic; color: var(--silver); font-size: .98rem; }
.documento-secreto .datos { font-family: var(--maquina); font-size: .82rem; margin-top: 18px; }
.documento-secreto strong { font-weight: 400; color: var(--wendia-pale); }
.documento-secreto .fin { text-align: center; color: #e47a95; font-style: italic; margin-top: 22px; }

/* ============================================
   PIE
   ============================================ */
footer {
    position: relative;
    z-index: 4;
    border-top: 1px solid rgba(168, 85, 200, .14);
    padding: 56px 20px;
    text-align: center;
}

.footer-logo { font-family: 'Cinzel Decorative', serif; font-size: 1.3rem; color: var(--white); margin-bottom: 12px; }
.footer-author { font-family: 'IM Fell English', serif; font-style: italic; color: var(--wendia-light); }
.footer-author a { color: inherit; }
.footer-copy { margin-top: 18px; font-family: var(--maquina); font-size: .72rem; letter-spacing: .14em; color: #5d5263; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 720px) {
    .panel-control { padding: calc(var(--nav-h, 56px) + 30px) 16px 60px; }
    .panel-header { margin-bottom: 36px; }
    .sello-cabecera { width: 68px; height: 68px; }
    .sello-cabecera svg { width: 50px; height: 50px; }
    .eyebrow { letter-spacing: .26em; font-size: .68rem; }
    .grid-botones { gap: 18px; }
    .sobre { padding: 26px 22px 22px; }
    .lacre { top: 22px; right: 18px; width: 48px; height: 48px; }
    .lacre svg { width: 36px; height: 36px; }
    .sobre-num { margin-bottom: 18px; }

    .seccion { padding: calc(var(--nav-h, 56px) + 12px) 14px 50px; }
    .barra-superior { margin-bottom: 26px; }
    .ruta { letter-spacing: .16em; font-size: .72rem; }
    .btn-volver { width: 100%; }

    .muro-evidencias { padding: 34px 16px; }
    .muro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 14px; }
    .evidencia-item { padding: 8px 8px 12px; }
    .evidencia-titulo { font-size: .98rem; }
    .evidencia-desc { font-size: .7rem; }

    .modal-overlay { padding: 0; }
    .modal-header { padding: 18px 70px 18px 22px; }
    .modal-body { padding: 24px 22px 40px !important; }

    .terminal-body { padding: 28px 18px; }
    .terminal-input-line input { width: 52px; height: 62px; font-size: 1.5rem; }
    .contenido-desbloqueado { padding: 16px; }
    .documento-secreto { padding: 54px 18px 22px; }
    .documento-secreto h3 { margin-right: 0; }
}

@media (max-width: 380px) {
    .muro-grid { grid-template-columns: 1fr; }
}
