/* Manual de usuario de ATHENE NOCTUA 1.10.0 · pantalla e impresión (PDF). Colores de la marca: petróleo, marfil y dorado. */
:root {
    --petroleo: #073b3f;
    --petroleo-medio: #0b4b4c;
    --marfil: #faf7ef;
    --oro: #946b22;
    --oro-claro: #d8b46d;
    --texto: #1f2d33;
    --texto-suave: #52666f;
    --borde: #d9e1e4;
    --aviso-fondo: #fff2df;
    --aviso-borde: #925910;
    --nota-fondo: #e8f2ef;
    --nota-borde: #155e5c;
    --importante-fondo: #fdeaea;
    --importante-borde: #a33b3b;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
    margin: 0;
    color: var(--texto);
    background: #fff;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.6;
}
.saltar { position: absolute; left: 12px; top: -60px; padding: 10px 16px; background: var(--petroleo); color: #fff; border-radius: 6px; z-index: 10; }
.saltar:focus { top: 12px; outline: 3px solid var(--oro-claro); }
main { max-width: 900px; margin: 0 auto; padding: 0 24px 64px; }
a { color: var(--petroleo-medio); }
a:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; color: var(--petroleo); line-height: 1.25; }
h2 { font-size: 1.9rem; margin: 3.2rem 0 1rem; padding-bottom: .4rem; border-bottom: 3px solid var(--oro-claro); }
h3 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
h4 { font-size: 1.1rem; margin: 1.4rem 0 .4rem; }
p, li { max-width: 72ch; }
kbd { font-family: Consolas, "Courier New", monospace; font-size: .9em; padding: 1px 6px; border: 1px solid #8a9aa0; border-bottom-width: 2px; border-radius: 4px; background: #f6f8f9; }
code { font-family: Consolas, "Courier New", monospace; font-size: .92em; background: #f1f4f5; padding: 1px 4px; border-radius: 3px; overflow-wrap: anywhere; }
.boton { font-weight: 600; white-space: nowrap; }
.boton::before { content: "«"; }
.boton::after { content: "»"; }

/* Portada */
.portada { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.portada .marca { display: flex; align-items: center; gap: 24px; }
.portada img { width: 110px; height: 110px; }
.portada h1 { font-size: 3rem; letter-spacing: 6px; margin: 0; }
.portada .subtitulo { color: var(--oro); text-transform: uppercase; letter-spacing: 3px; font-weight: 700; margin: .4rem 0 0; }
.portada .titulo-manual { font-size: 2rem; margin: 3rem 0 .3rem; color: var(--texto); font-family: Georgia, serif; }
.portada .version { font-size: 1.2rem; color: var(--texto-suave); margin: 0; }
.portada .nota-portada { margin-top: 3rem; padding: 16px 20px; border-left: 4px solid var(--nota-borde); background: var(--nota-fondo); max-width: 70ch; }

/* Índice */
nav.indice { margin-top: 2rem; }
nav.indice ol { padding-left: 1.6rem; columns: 2; column-gap: 40px; }
nav.indice li { break-inside: avoid; margin: .15rem 0; }

/* Figuras */
figure { margin: 1.6rem 0; }
figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--borde); border-radius: 6px; }
figure.pequena img { max-width: 60%; }
figure.mediana img { max-width: 80%; }
figcaption { font-size: .9rem; color: var(--texto-suave); margin-top: .5rem; }

/* Cuadros de aviso */
.cuadro { margin: 1.4rem 0; padding: 14px 18px; border-left: 5px solid; border-radius: 6px; }
.cuadro > :first-child { margin-top: 0; }
.cuadro > :last-child { margin-bottom: 0; }
.cuadro .etiqueta { font-weight: 700; display: block; margin-bottom: .2rem; }
.nota { background: var(--nota-fondo); border-color: var(--nota-borde); }
.aviso { background: var(--aviso-fondo); border-color: var(--aviso-borde); }
.importante { background: var(--importante-fondo); border-color: var(--importante-borde); }

/* Tablas */
table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
caption { text-align: left; font-weight: 700; color: var(--petroleo); padding-bottom: .4rem; }
th, td { border: 1px solid var(--borde); padding: 8px 10px; text-align: left; vertical-align: top; }
thead th { background: #f0f5f3; color: var(--petroleo); }
tbody th { font-weight: 600; background: #fafbfb; }

/* Cuadro de cierre (sesión, ventana, bandeja) */
.cierre { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 1.6rem 0; }
.cierre section { border: 2px solid var(--borde); border-radius: 10px; padding: 14px 16px; background: #fff; }
.cierre h4 { margin: 0 0 .4rem; }
.cierre .resultado { font-weight: 700; margin: .4rem 0; }
.cierre .sigue { border-color: #b87320; }
.cierre .sigue .resultado { color: #925910; }
.cierre .detiene { border-color: var(--petroleo-medio); background: var(--marfil); }
.cierre .detiene .resultado { color: var(--petroleo); }
.cierre p { margin: .3rem 0; font-size: .95rem; }

dl.glosario dt { font-weight: 700; color: var(--petroleo); margin-top: .8rem; }
dl.glosario dd { margin: .15rem 0 0 1.2rem; }
.faq h4 { margin-bottom: .2rem; }
.pie-documento { margin-top: 4rem; font-size: .85rem; color: var(--texto-suave); border-top: 1px solid var(--borde); padding-top: 1rem; }

@media (max-width: 700px) {
    nav.indice ol { columns: 1; }
    .cierre { grid-template-columns: minmax(0, 1fr); }
    figure.pequena img, figure.mediana img { max-width: 100%; }
    .portada h1 { font-size: 2.1rem; letter-spacing: 3px; }
}

/* Impresión / PDF */
@page { size: A4; margin: 18mm 17mm 20mm; }
@media print {
    html { font-size: 10.5pt; }
    main { max-width: none; padding: 0; }
    .saltar { display: none; }
    .portada { min-height: auto; height: 250mm; break-after: page; }
    nav.indice { break-after: page; }
    section.capitulo { break-before: page; }
    h2 { margin-top: 0; }
    h2, h3, h4 { break-after: avoid; }
    figure, .cuadro, .cierre, table, tr { break-inside: avoid; }
    figure img { max-height: 150mm; width: auto; }
    a { color: var(--petroleo-medio); text-decoration: none; }
    p, li { orphans: 3; widows: 3; }
}
.portada .marca { background: var(--petroleo); color: #fff; padding: 28px 32px; border-radius: 14px; }
.portada .marca h1 { color: #fff; }
.portada .marca .subtitulo { color: var(--oro-claro); }
@media print { .portada .marca { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .cuadro, .cierre section, thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.cierre .titulo-tarjeta { font-family: Georgia, "Times New Roman", serif; color: var(--petroleo); font-weight: 700; font-size: 1.05rem; margin: 0 0 .4rem; }
.faq h3 { font-size: 1.1rem; margin: 1.3rem 0 .3rem; }
@media print {
    .portada h1 { white-space: nowrap; font-size: 2.6rem; }
    h2.titulo-largo { white-space: nowrap; font-size: 1.45rem; }
    h3 { white-space: normal; }
}
