:root {
  color-scheme: light;
  --tinta: #171d35;
  --tinta-media: #484f62;
  --papel: #f7f5ee;
  --blanco: #fffefa;
  --linea: #d8d5cf;
  --lila: #c9c5ff;
  --durazno: #ffc6ac;
  --serif: Georgia, 'DejaVu Serif', serif;
  --sans: 'Ubuntu Sans', 'DejaVu Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.6 var(--sans); color: var(--tinta); background: var(--papel); }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 5vw, 4.4rem); letter-spacing: -.05em; }
h3 { font-size: clamp(1.85rem, 3vw, 2.65rem); letter-spacing: -.035em; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: .15em; }
:focus-visible { outline: 3px solid #6760c5; outline-offset: 4px; }
.oscuro :is(.barra, .portada, .mapa, .proyecto, .pie) :focus-visible { outline-color: var(--durazno); }
.salto { position: absolute; top: .5rem; left: .5rem; z-index: 2; padding: .5rem 1rem; transform: translateY(-150%); background: white; }
.salto:focus { transform: none; }
.ancho { width: min(100% - 7rem, 1180px); margin-inline: auto; }
.oscuro { background: var(--tinta); color: var(--papel); }
.claro { background: var(--papel); color: var(--tinta); }
.barra { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #444961; }
.marca { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; text-decoration: none; white-space: nowrap; }
.marca-icono { display: inline-block; width: 1.1rem; height: 1.3rem; border: 1px solid var(--lila); border-radius: 2px; background: repeating-linear-gradient(to bottom, transparent 0 3px, var(--lila) 3px 4px) center / 7px 9px no-repeat; }
.barra nav { display: flex; gap: clamp(.65rem, 3vw, 2.1rem); flex-wrap: wrap; font-size: .9rem; }
.barra nav a { text-decoration: none; }
.barra nav a:hover { text-decoration: underline; }
.portada { min-height: 540px; padding-block: clamp(3.2rem, 7vw, 6.2rem); display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem; }
.sobrelinea { font-size: .875rem; font-weight: 750; letter-spacing: .085em; text-transform: uppercase; }
.portada .sobrelinea, .proyecto .sobrelinea { color: var(--lila); }
.portada h1 { font-size: clamp(3.5rem, 7.5vw, 7.3rem); letter-spacing: -.065em; margin: .9rem 0 1.25rem; }
.portada h1 em { font-weight: inherit; color: var(--durazno); }
.presentacion > p:nth-of-type(2) { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 34ch; color: #e8e6ef; }
.boton { display: inline-flex; justify-content: center; align-items: center; padding: .65rem .95rem; min-height: 44px; border: 1px solid currentColor; font-size: .9rem; font-weight: 730; text-decoration: none; }
.boton:hover { background: #e7e2ff; color: var(--tinta); }
.principal { margin-top: 1.55rem; background: var(--lila); color: var(--tinta); border-color: var(--lila); padding-inline: 1.15rem; }
.escena { position: relative; isolation: isolate; min-height: 390px; container-type: inline-size; }
.escena::before { content: ''; position: absolute; z-index: -1; inset: 0 3% 2rem 0; background: radial-gradient(circle, #646882 1px, transparent 1.25px) 0 0 / 16px 16px; mask-image: radial-gradient(ellipse, #000 28%, transparent 80%); }
.ficha { position: absolute; padding: 1.2rem; box-shadow: 0 16px 45px #0c102c80; width: 78%; }
.ficha-grilla { top: 1.2rem; left: 3%; transform: rotate(-7deg); background: #d5d3ff; color: var(--tinta); }
.ficha-carta { top: 10rem; right: 1%; transform: rotate(6deg); background: #fff7eb; color: var(--tinta); }
.ficha-cabecera { display: flex; justify-content: space-between; gap: .5rem; border-bottom: 1px solid #171d3540; padding-bottom: .55rem; font-size: clamp(.72rem, 3.4cqw, .875rem); font-weight: 700; }
.ficha-identidad { padding-block: .65rem .35rem; font: clamp(1.25rem, 5.6cqw, 2.1rem)/1.15 var(--serif); }
.ficha-nota { display: flex; align-items: center; justify-content: space-between; padding: 0 .55rem; background: #edeaff; }
.ficha-nota strong { font-family: var(--serif); font-size: 1.45rem; }
.ficha-carta p { font-family: var(--serif); margin-block: .65rem; }
.ficha-aviso { padding: .55rem; border-left: 3px solid #ab432f; background: #f9ddcf; font-weight: 710; }
.ficha-firma { text-align: right; margin-top: .65rem; font-size: .8rem; }
.ficticio { position: absolute; bottom: 0; right: 1%; font-size: .875rem; color: #d4d2e2; }
.mapa { background: #242b48; border-block: 1px solid #444961; }
.mapa ol { list-style: none; padding: 0; display: flex; }
.mapa li { flex: 1; text-align: center; border-right: 1px solid #444961; }
.mapa li:first-child { border-left: 1px solid #444961; }
.mapa a { display: block; padding: .8rem .3rem; text-decoration: none; font-size: .9rem; font-weight: 720; }
.mapa a:hover { background: #373d63; text-decoration: underline; }
.introduccion { padding-block: 5rem 3.2rem; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.introduccion h2 { font-size: clamp(2.4rem, 5vw, 4.05rem); }
.claro .sobrelinea { color: #504a92; margin-bottom: .7rem; }
.introduccion .sobrelinea { grid-column: 1 / -1; }
.introduccion > p:last-child { margin-top: .35rem; font-size: 1.075rem; color: var(--tinta-media); }
.paso { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(1rem, 3vw, 2.25rem); align-items: start; border-top: 1px solid var(--linea); padding-block: 2.5rem; }
.paso-rol { color: #504a92; font-size: .875rem; font-weight: 750; padding-top: .25rem; }
.paso-texto p { margin-top: .8rem; color: var(--tinta-media); }
.muestra { min-width: 0; background: var(--blanco); border: 1px solid var(--linea); border-radius: 5px; padding: 1.15rem; }
.muestra-titulo, .muestra figcaption { font-weight: 750; line-height: 1.35; }
.nota { font-size: .875rem; color: var(--tinta-media); margin-top: .3rem; }
.periodos dl { margin-top: .5rem; }
.periodos dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .75rem; padding-block: .5rem; border-top: 1px solid #e7e3db; }
.periodos dt { color: var(--tinta-media); font-size: .875rem; }
.periodos dd { font-weight: 650; }
details { border-top: 1px solid #e7e3db; margin-top: .45rem; }
summary { cursor: pointer; padding: .55rem 0; font-weight: 720; }
summary:hover { color: #504a92; }
.correo { padding: .4rem 0 .7rem; overflow-wrap: anywhere; }
.asunto { display: block; border-bottom: 1px solid #ddd; padding-bottom: .7rem; margin-bottom: .7rem; font-weight: 740; line-height: 1.4; }
.correo span { overflow-wrap: anywhere; }
.resultado-guardado { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.resultado-guardado > div { background: #efedf9; padding: .55rem .65rem; }
.resultado-guardado dt { font-size: .875rem; }
.resultado-guardado dd { font: 1.65rem var(--serif); }
.resultado-guardado dd.pendiente { font: 700 .875rem/2 var(--sans); color: #8b392e; }
.seguimiento details > p { margin-top: .45rem; font-size: .875rem; }
table { width: 100%; border-collapse: collapse; line-height: 1.35; }
th, td { padding: .45rem .5rem; border: 1px solid var(--linea); text-align: left; }
thead th { background: #eeebfb; vertical-align: bottom; }
.grilla-revision { margin-top: .85rem; font-size: .9375rem; }
.grilla-revision th, .grilla-revision td { padding: .55rem .65rem; vertical-align: top; }
.grilla-revision thead th { background: #e8e3f7; }
.grilla-revision tbody th { width: 43%; background: #f7f5fa; font-weight: 600; }
.grilla-revision tbody tr:first-child td { font-weight: 750; }
.documentos { background: #ebe8f9; padding-block: 4rem 3.2rem; }
.entradilla { max-width: 70ch; margin-top: .9rem; }
.salidas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; margin-block: 1.75rem 1rem; }
.salida { border: 1px solid #cbc5e1; border-radius: 6px; background: var(--blanco); overflow: hidden; display: flex; flex-direction: column; }
.miniatura { padding: clamp(.8rem, 3vw, 2.1rem); background: #dad5ec; }
.salida-texto { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.salida-texto p { margin-top: .55rem; margin-bottom: 1rem; color: var(--tinta-media); }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; font-weight: 725; }
.salida .acciones { margin-top: auto; }
.salida .acciones > a:not(.boton) { font-size: .9rem; }
.proyecto { padding-block: 4.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.proyecto h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin-top: .65rem; }
.proyecto p + p, .proyecto .acciones { margin-top: .85rem; }
.proyecto p { color: #e8e6ef; }
.proyecto a { color: var(--lila); }
.pie { border-top: 1px solid #454c68; padding-block: 1.3rem; font-size: .875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }

.hoja-fondo { background: #e8e5f3; }
.hoja-nav, .hoja { width: min(100% - 2rem, 920px); margin-inline: auto; }
.hoja-nav { padding-block: 1rem; justify-content: space-between; }
.hoja { margin-bottom: 2rem; padding: clamp(1rem, 5vw, 3rem); background: white; border: 1px solid #ccc6db; }
.hoja h1 { margin-block: .45rem .75rem; font-size: clamp(1.8rem, 4.6vw, 3.7rem); letter-spacing: -.045em; }
.hoja .identidad { display: flex; flex-wrap: wrap; gap: .15rem 1rem; margin-block: 1rem 1.4rem; padding: .6rem 0; border-block: 1px solid var(--linea); }
.hoja .identidad strong { font-size: 1.1rem; }
.hoja h2 { font-size: 1.25rem; letter-spacing: -.02em; margin-top: 1rem; }
.hoja p { margin-top: .65rem; }
.tabla-desplazable { overflow-x: auto; }
.historial { font-size: .875rem; }
.historial th { min-width: 5rem; }
.historial th:first-child { min-width: 8rem; }
.enProceso { background: #f4cccc; color: #990000; }
.suficiente { background: #d4edbc; color: #11734b; }
.avanzado { background: #bfe1f6; color: #0a53a8; }
.futuro { background: #e8eaed; }
.resultado { background: #fdf0ef; border-left: 3px solid #a50e0e; padding: .65rem .8rem; font-weight: 750; }
.hoja .resultado { margin-bottom: 1rem; }
.recupera { background: #fdf0ef; font-weight: 750; }
.recupera td:last-child { color: #a50e0e; }
.firma { text-align: right; }
.documento-nota { border-top: 1px solid var(--linea); margin-top: 1.5rem; padding-top: .6rem; }

@media (max-width: 900px) {
  .ancho { width: calc(100% - 3.5rem); }
  .portada { min-height: 0; gap: 1.5rem; }
  .paso { grid-template-columns: 1fr 1fr; }
  .paso-rol { grid-column: 1 / -1; margin-bottom: -.7rem; }
}
@media (max-width: 670px) {
  .ancho { width: calc(100% - 2rem); }
  .barra { flex-direction: column; align-items: flex-start; justify-content: center; gap: .25rem; padding-block: .55rem; }
  .barra nav a { display: inline-flex; min-height: 36px; align-items: center; }
  .portada, .introduccion, .paso, .salidas, .proyecto { grid-template-columns: 1fr; }
  .portada { padding-block: 2.65rem 1.6rem; }
  .escena { width: min(100%, 440px); margin-inline: auto; min-height: 390px; }
  .introduccion { padding-block: 3rem 2rem; row-gap: .65rem; }
  .paso { padding-block: 1.65rem; row-gap: 1rem; }
  .proyecto, .documentos { padding-block: 2.75rem; }
  .mapa ol { width: 100%; }
  .mapa li:first-child { border-left: 0; }
  .mapa li:last-child { border-right: 0; }
  .mapa a { font-size: .795rem; padding-inline: .12rem; }
}
@media (max-width: 385px) {
  .ficha { width: 88%; }
  .escena { min-height: 410px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@page { size: A4 portrait; margin: 12mm; }
@media print {
  .hoja-fondo { background: white; }
  .hoja-nav { display: none; }
  .hoja { width: 100%; margin: 0; border: 0; padding: 0; font-size: 10pt; print-color-adjust: exact; }
  .hoja h1 { font-size: 24pt; }
  .hoja table { font-size: 8pt; }
  .hoja th { min-width: 0; }
  .hoja th, .hoja td { padding: .26rem; overflow-wrap: anywhere; }
  .hoja h2, .hoja tr { break-inside: avoid; }
  .hoja .tabla-desplazable { overflow: visible; }
}

.accesos { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.15rem; }
.accesos .principal { margin: 0; }
.accesos > a + a { font-size: .95rem; font-weight: 680; }
.salida .miniatura { display: block; height: clamp(15rem, 27vw, 22rem); padding: 1.5rem 12% 0; overflow: hidden; }
.salida .miniatura img { display: block; width: 100%; box-shadow: 0 5px 19px #28214137; }
.salida .miniatura:focus-visible { outline-offset: -5px; }
.paso-texto a { font-weight: 720; color: #504a92; }

.proyecto .credito { color: var(--lila); font-weight: 720; }
