[hidden] { display: none !important; }
body { background: white; color: var(--ink); }
.skip { position: absolute; top: -6rem; z-index: 5; padding: .8rem; background: white; }
.skip:focus { top: 0; }
.barra { min-height: 68px; display: flex; align-items: center; gap: 18px; padding: 8px clamp(14px, 4vw, 64px); border-bottom: 1px solid var(--line); }
.barra .brand { color: var(--ink); font-size: 23px; white-space: nowrap; }
.ruta { font-size: 14px; color: var(--muted); flex: 1; }
.privado { display: flex; min-height: calc(100vh - 68px); }
#arbol { flex: 0 0 224px; padding: 18px 10px; border-right: 1px solid var(--line); background: #fafafb; }
#arbol .navigation { gap: 3px; }
#arbol .leaf-link:disabled { color: #656a75; opacity: 1; cursor: default; }

#contenido { width: 100%; min-width: 0; max-width: 960px; padding: 32px clamp(16px, 4vw, 58px) 60px; margin: 0 auto; }
#contenido h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 650; overflow-wrap: anywhere; }
#acceso, #cuenta { max-width: 430px; margin: 6vh auto 0; }
#ingreso .primary { justify-self: start; }
#estado { min-height: 1.6em; margin-top: 18px; color: #454d5a; }
.encabezado, .botones, #retorno { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.encabezado h1 { margin: 0; }
#proyectos { list-style: none; padding: 0; }
#proyectos li { border-bottom: 1px solid var(--line); }
#proyectos button, .vuelta { min-height: 44px; text-align: left; color: var(--accent); font-weight: 600; overflow-wrap: anywhere; }
#retorno { padding: 16px; margin: 18px 0; border: 1px solid var(--line); border-radius: 8px; }
#retorno strong, #retorno .meta { display: block; overflow-wrap: anywhere; }
#retorno strong { margin: 4px 0; }
#ficha { gap: 0; }
#ficha:not(.alta-guiada) .solo-alta { display: none; }
.numero-paso { color: var(--muted); font-weight: 400; }
.acciones-paso { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px 16px; }
.acciones-paso button { min-height: 44px; }
#ficha > details { border-top: 1px solid var(--line); }
#ficha summary { min-height: 46px; padding: 13px 2px; cursor: pointer; font-weight: 600; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 1px 0 18px; }
.campos .ancha { grid-column: 1 / -1; }
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #a1a8b6; background: white; color: var(--ink); border-radius: 6px; padding: 9px 11px; }
.ayuda { padding: 0 12px; margin-bottom: 12px; background: #f6f7fa; border-radius: 6px; font-size: 14px; }
.ayuda p { padding-bottom: 12px; }
.botones { padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .barra { flex-wrap: wrap; gap: 6px; padding: 8px 10px; }
  .barra .brand { font-size: 18px; margin-right: auto; }
  .barra .secondary { min-height: 44px; padding: 8px; font-size: 13px; }
  .ruta { display: none; }
  #contenido { padding: 20px 15px 40px; }
  #arbol { position: fixed; inset: 0 auto 0 0; z-index: 3; width: min(310px, 94vw); background: white; overflow: auto; box-shadow: 5px 0 24px #24262c26; }
  #arbol .nav-branch summary, #arbol .leaf-link { min-height: 44px; }
  .campos { grid-template-columns: minmax(0, 1fr); }
  #retorno .primary { width: 100%; }
  #acceso { margin-top: 18px; }
}
#proyectos a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }

#aprobacion { margin-block: 24px; overflow-wrap: anywhere; }
#aprobacion .ayuda summary { cursor: pointer; padding-block: 12px; }
#datos-pdf { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; }
#datos-pdf dt { color: var(--muted); }
#datos-pdf dd { margin: 0; }
#aprobacion button, #cerrar-pdf { min-height: 44px; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#lector-pdf { width: min(60rem, 96vw); max-width: 96vw; max-height: 95vh; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
#consulta-cancelar-pdf { max-width: min(28rem, 94vw); border: 1px solid var(--line); border-radius: 8px; padding: 20px; overflow-wrap: anywhere; }
#consulta-cancelar-pdf button { min-height: 44px; margin-block: 3px; }
#consulta-cancelar-pdf::backdrop, #lector-pdf::backdrop { background: #262c3d66; }
#titulo-lector { flex: 1; min-width: 0; margin: 0; overflow-wrap: anywhere; }
#lector-pdf iframe { display: block; margin-top: 12px; width: 100%; height: 70vh; border: 0; }
#estado-lector:empty { display: none; }

#equipo, #consulta-asesor, #canje, #compartidos { overflow-wrap: anywhere; }
#equipo form { max-width: 35rem; }
#equipo form button, #equipo li button { justify-self: start; }
#equipo li { margin-block: .5rem; }
#equipo li button { margin-inline-start: .5rem; }
#equipo button, #canje button, #consulta-asesor button, #comprobar-asesoria button, #reintentar-compartidos, #confirmar-equipo button { min-height: 44px; }
#confirmar-equipo { max-width: min(32rem, 94vw); padding: 20px; border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
#confirmar-equipo::backdrop { background: #262c3d66; }
#alcance-equipo { white-space: pre-line; }
#entrega-local { margin-block: 1rem; }
.ficha-lectura dd { margin: 0 0 .75rem; }
#compartidos a { display: inline-flex; align-items: center; min-height: 44px; }

#cuenta button, #olvido, #usar-version { min-height: 44px; }
#valores-remotos dd { overflow-wrap: anywhere; white-space: pre-wrap; margin: .25rem 0 .8rem; }
@media (max-width: 700px) { .field input, .field select, .field textarea { font-size: 16px; } #lector-pdf { max-height: 92dvh; } #lector-pdf iframe { height: 62dvh; } }

.cabecera-arbol { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-inline-start: 10px; color: #363c47; font-size: 14px; background: inherit; }
#cerrar-arbol { flex: none; width: 44px; height: 44px; margin: 0; border-radius: 6px; font-size: 18px; }
#cerrar-arbol:hover { background: #eef1f6; }
#arbol .nav-branch > summary { width: 100%; }
#arbol .navigation [aria-current="page"] { color: #263e9b; background: #eef2fc; border-inline-start: 3px solid #3656af; padding-inline-start: 6px; font-weight: 700; }
#arbol :is(button,summary):focus-visible, #sugerencias-tarea button:focus-visible { outline: 2px solid #2850bc; outline-offset: -2px; }
.opcion-perfil { min-width: 0; }
.opcion-perfil .field + .field { margin-top: .5rem; }
#titulo-sugerencias { font-size: 13px; font-weight: 550; }
#sugerencias-tarea { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 6px; }
#sugerencias-tarea button { border: 1px solid #bfcbe3; border-radius: 6px; color: #273e80; padding: 8px 12px; min-height: 44px; text-align: start; }
#sugerencias-tarea button:hover { background: #f0f4fc; }
#ejemplo-guia { margin: 0; font-size: 14px; line-height: 1.5; color: #495465; }
@media (min-width: 701px) {
  #arbol { position: sticky; top: 0; align-self: flex-start; height: 100vh; overflow-y: auto; }
}
@media (max-width: 700px) {
  #arbol { padding-block-start: 0; overscroll-behavior: contain; }
  #arbol .cabecera-arbol { position: sticky; top: 0; z-index: 1; min-height: 54px; border-bottom: 1px solid var(--line); background: white; }
  #arbol { scroll-padding-block: 58px 8px; }
  #arbol .navigation .nav-branch .leaf-link { min-height: 44px; }
  #fondo-arbol { position: fixed; inset: 0; z-index: 2; background: #1c25384d; }
  body:has(#arbol[aria-modal="true"]) { overflow: hidden; }
}

.campo-perfil { position: relative; align-self: start; }
.campo-perfil label { font-weight: 600; }
.nota-campo { color: #505865; font-size: .9rem; line-height: 1.45; font-weight: 400; }
.opciones-busqueda { position: absolute; inset: 100% 0 auto; z-index: 2; max-height: min(13rem, 38vh); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 3px; list-style: none; background: white; color: var(--ink); border: 1px solid #8b93a3; border-radius: 6px; }
.opciones-busqueda li { padding: 10px; min-height: 44px; cursor: pointer; }
.opciones-busqueda li:hover, .opciones-busqueda [aria-selected=true] { background: #e9edf9; }

@font-face {
  font-family: "Source Sans 3";
  src: url("/fuentes/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Spectral;
  src: url("/fuentes/spectral-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --letra: "Source Sans 3", system-ui, sans-serif;
  --editorial: Spectral, Georgia, serif;
  --cobalto: #244bc8;
  --grafito: #26282c;
}
.barra .brand { display: inline-flex; gap: .45rem; align-items: center; font: 600 1.65rem/1 var(--letra); letter-spacing: -.055em; }
.brand img { color-scheme: light; display: block; width: 1.15em; height: 1.15em; }
.entrada-publica { color: var(--grafito); font: 400 1.125rem/1.5 var(--letra); }
.entrada-publica .barra { min-height: 82px; padding-inline: max(6vw, calc((100% - 1216px) / 2)); border-bottom: 1px solid #d9dadd; }
.entrada-publica .barra .brand { font-size: 1.9rem; }
.entrada-publica .privado { min-height: calc(100svh - 82px); }
.entrada-publica #contenido {
  display: grid; grid-template-columns: 1.12fr 1fr; align-content: center; align-items: center;
  gap: clamp(3rem, 7vw, 7.5rem); width: 88%; max-width: 1216px;
  padding: clamp(3rem, 8vh, 6rem) 0 clamp(4rem, 12vh, 9rem);
}
#presentacion { min-width: 0; grid-column: 1; grid-row: 1; }
.titular span { display: block; }
.titular { margin: 0; max-width: none; font: 400 clamp(3.65rem, 5.85vw, 5.85rem)/.99 var(--editorial); letter-spacing: -.06em; color: var(--grafito); }
.bajada { max-width: 37ch; margin: 1.35rem 0 0; color: #53585e; font: 400 clamp(1.15rem, 1.6vw, 1.38rem)/1.44 var(--letra); }
.cuaderno { display: block; width: min(93%, 26.5rem); height: auto; margin: 2.1rem 0 0 -.55rem; }
.entrada-publica #contenido .panel-acceso {
  width: 100%; min-width: 0; max-width: 31rem; margin: 0; grid-column: 2; grid-row: 1;
  padding: 1.55rem 0 1.55rem clamp(2.65rem, 5.5vw, 5rem); border-left: 1px solid #ccced1;
}
.entrada-publica #contenido h1 { margin: 0; font: 400 clamp(2.2rem, 3.1vw, 3rem)/1.12 var(--editorial); letter-spacing: -.05em; }
.orientacion { margin: .65rem 0 1.8rem; color: #52575e; font-size: 1.04rem; line-height: 1.45; }
.panel-acceso .work-form { display: grid; gap: 1.1rem; margin: 0; }
.panel-acceso .field { display: grid; gap: .4rem; font: 600 1rem/1.4 var(--letra); }
.panel-acceso .field input { color: var(--grafito); min-height: 49px; padding: .62rem .8rem; border: 1px solid #8c9299; border-radius: 3px; font: 400 1.125rem/1.4 var(--letra); }
.panel-acceso .primary, #confirmacion .primary { background: var(--cobalto); color: white; }
.panel-acceso .primary { width: 100%; min-height: 49px; margin-top: .25rem; border-radius: 3px; font: 600 1.08rem/1.4 var(--letra); }
.panel-acceso .primary:disabled { background: #54627e; cursor: wait; }
.panel-acceso .vuelta { display: inline-flex; align-items: center; margin: .65rem 0 0; padding: .35rem 0; text-decoration: underline; text-underline-offset: .2em; font: 500 1rem/1.4 var(--letra); color: var(--cobalto); }
#longitud-clave { margin: -.7rem 0 0; font-size: 1rem; color: #555a60; }
#estado { font: 400 1rem/1.45 var(--letra); margin: .8rem 0 0; min-height: 0; overflow-wrap: anywhere; }
#estado:empty { margin: 0; }
#estado[data-tipo=error] { color: #89392e; }
#estado[data-tipo=guardado] { width: fit-content; max-width: 100%; background: #f0f3f5; border-left: 3px solid #55666b; padding: .5rem .8rem; }
#contenido:focus, #contenido :is(h1,h2)[tabindex="-1"]:focus { outline: 0; }
#contenido:focus-visible > section:not([hidden]) h1, #contenido :is(h1,h2)[tabindex="-1"]:focus-visible {
  text-decoration: underline; text-decoration-color: var(--cobalto); text-decoration-thickness: 2px; text-underline-offset: .16em;
}
:is(input, button, a, select, textarea, summary):focus-visible { outline: 2px solid var(--cobalto); outline-offset: 3px; }
#confirmacion {
  width: min(28rem, calc(100% - 2rem)); max-width: 100%; max-height: calc(100dvh - 2rem);
  overflow: auto; overscroll-behavior: contain; padding: clamp(1.3rem, 4vw, 2rem); margin: auto;
  background: white; color: var(--grafito); border: 1px solid #8a909a; border-radius: 6px;
  box-shadow: 0 12px 48px #161d2c24; font: 400 1.08rem/1.48 var(--letra);
}
#confirmacion::backdrop { background: #22263165; }
#confirmacion h2 { font: 400 2rem/1.15 var(--editorial); letter-spacing: -.045em; margin: 0; }
#detalle-confirmacion { margin: .85rem 0 1.6rem; color: #4f545d; overflow-wrap: anywhere; }
.acciones-confirmacion { display: flex; gap: .65rem; flex-wrap: wrap; }
.acciones-confirmacion button { flex: 1 1 auto; border-radius: 3px; min-height: 46px; padding: .55rem .85rem; font: 600 1rem/1.3 var(--letra); }
.acciones-confirmacion .secondary { border-color: #969da8; color: var(--grafito); }
@media (max-width: 820px) {
  .entrada-publica .barra { min-height: 66px; padding-inline: max(1.35rem, calc((100% - 32rem) / 2)); }
  .entrada-publica .barra .brand { font-size: 1.6rem; }
  .entrada-publica #contenido { display: flex; flex-direction: column; align-items: stretch; gap: 2.3rem; width: min(100%, 36rem); padding: 2.15rem clamp(1.35rem, 5.5vw, 2rem) 2.5rem; }
  .entrada-publica #contenido .panel-acceso { order: -1; width: 100%; max-width: none; padding: 0; border: 0; }
  #presentacion { border-top: 1px solid #d5d7da; padding-top: 1.6rem; }
  .titular { font-size: clamp(2.25rem, 8vw, 3rem); max-width: 16ch; }
  .bajada { font-size: 1.08rem; margin-top: .75rem; }
  .cuaderno { width: min(70%, 15rem); margin-top: 1rem; }
  .entrada-publica:has(#cuenta:not([hidden])) #presentacion { display: none; }
  .orientacion { margin-bottom: 1.35rem; }
}
@media (max-width: 420px) { .acciones-confirmacion { flex-direction: column; } }
