/* Bóveda · estilos propios (la base común está en base/, sin modificar) */
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--tint); color: var(--ink); font-family: var(--fuente-texto); }
main { flex: 1; width: min(860px, calc(100% - 32px)); margin: 24px auto; display: grid; gap: 16px; align-content: start; }
.cabecera { background: var(--surface); border-bottom: 1px solid var(--line); }
.cabecera__dentro { max-width: 860px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.logo { height: 34px; width: auto; display: block; }
.logo--oscuro { display: none; }
html[data-tema="oscuro"] .logo--claro { display: none; }
html[data-tema="oscuro"] .logo--oscuro { display: block; }
.cabecera__nombre { flex: 1; font: 700 15px var(--fuente-titulo); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); padding-left: 12px; border-left: 1px solid var(--line); }
html[data-tema="oscuro"] .cabecera__nombre { color: #fff; }
.ce-pestanas { justify-content: center; }
.pantalla { display: grid; gap: 16px; }
.pantalla[hidden] { display: none; }
.pantalla.ce-tarjeta { max-width: 520px; width: 100%; justify-self: center; }
h1 { font: 700 22px var(--fuente-titulo); color: var(--teal); margin: 0 0 6px; }
h2 { font: 700 17px var(--fuente-titulo); color: var(--teal-deep); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
html[data-tema="oscuro"] h1, html[data-tema="oscuro"] h2 { color: #fff; }
.lead, .ayuda { color: var(--muted); line-height: 1.55; margin: 0 0 16px; }
.ayuda { font-size: 13px; margin: -6px 0 4px; }
.cargando { text-align: center; color: var(--muted); }
.formulario { display: grid; gap: 14px; }
.formulario .ce-campo input { width: 100%; box-sizing: border-box; }
.fila { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.msg { min-height: 1.3em; margin: 0; font-size: 14px; }
.msg.err { color: #b42318; }
.msg.ok { color: var(--teal-deep); }
html[data-tema="oscuro"] .msg.err { color: #ff8a80; }
html[data-tema="oscuro"] .msg.ok { color: #7fd6d1; }
.enlace { background: none; border: 0; padding: 6px 4px; font: 600 14px var(--fuente-ui); color: var(--teal); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; border-radius: 6px; }
.enlace:hover { color: var(--orange-text); }
html[data-tema="oscuro"] .enlace { color: #7fd6d1; }
.mono { font-family: var(--fuente-mono); }
.codigo { font: 400 clamp(17px, 4.4vw, 22px) var(--fuente-mono); letter-spacing: .04em; text-align: center; padding: 18px 12px; border: 2px dashed var(--teal); border-radius: 12px; background: var(--tint); color: var(--ink); overflow-wrap: anywhere; user-select: all; margin: 0 0 16px; }
.casilla { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: 15px; }
.casilla input { width: 20px; height: 20px; accent-color: var(--teal); }

.zona { border: 2px dashed var(--line); border-radius: 14px; padding: 26px 18px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; margin-bottom: 14px; }
.zona b { color: var(--teal); }
.zona:hover, .zona.sobre { border-color: var(--teal); background: var(--tint); }
.zona[aria-disabled] { opacity: .55; cursor: progress; }
.subida { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.subida[hidden] { display: none; }
.subida p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }

.lista-cabeza { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.lista-cabeza h2 { margin: 0; }
.buscar { min-width: 200px; }
.lista { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lista:empty { display: none; }
.lista li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.lista li:first-child { border-top: 0; }
.lista .ic { flex: none; width: 42px; height: 42px; border-radius: 10px; background: var(--tint); display: grid; place-items: center; font: 700 10px var(--fuente-titulo); color: var(--teal-deep); }
html[data-tema="oscuro"] .lista .ic { color: #fff; }
.lista .nom { flex: 1; min-width: 0; }
.lista .nom b { display: block; font-size: 14.5px; overflow-wrap: anywhere; }
.lista .nom small { color: var(--muted); font-size: 12.5px; }
.acciones { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.acciones .ce-boton { padding: 6px 12px; min-height: 0; font-size: 13px; }
.quitar { color: #b42318 !important; border-color: #f0c8c3 !important; }
html[data-tema="oscuro"] .quitar { color: #ff8a80 !important; }
.vacio { color: var(--muted); text-align: center; margin: 8px 0 0; }
@media (max-width: 560px) {
  .lista li { flex-wrap: wrap; }
  .acciones { width: 100%; justify-content: flex-start; padding-left: 54px; }
}

.pasos { padding-left: 20px; line-height: 1.6; }
.qr { width: 200px; height: 200px; background: #fff; border-radius: 12px; border: 1px solid var(--line); margin: 8px 0; }
.qr svg { width: 100%; height: 100%; display: block; }
.clave-totp { font-size: 15px; letter-spacing: .06em; overflow-wrap: anywhere; }
.respaldos { columns: 2; padding: 0; list-style: none; font-size: 17px; line-height: 2; }

/* Hoja de recuperación: solo al imprimir */
#hoja { display: none; }
@media print {
  @page { size: auto; margin: 18mm; }
  body > *:not(#hoja) { display: none !important; }
  body { background: #fff; display: block; min-height: 0; }
  #hoja { display: block; color: #26302f; font-family: var(--fuente-texto); }
  #hoja [hidden] { display: none; }
  .hoja__logo { width: 70mm; height: auto; margin-bottom: 10mm; }
  #hoja h1 { font-size: 20pt; color: #027a76; }
  #hoja h2 { font-size: 13pt; color: #014f4c; margin-top: 9mm; }
  .hoja__sitio { color: #66736f; margin: 0 0 4mm; }
  .hoja__codigo { font-size: 20pt; letter-spacing: .05em; border: 1.5pt dashed #027a76; border-radius: 4mm; padding: 6mm; text-align: center; }
  #hoja ul { columns: 2; list-style: none; padding: 0; font-size: 14pt; line-height: 1.9; }
  .hoja__fecha { margin-top: 10mm; color: #66736f; }
  .hoja__nota { border-left: 3pt solid #ff9444; padding-left: 4mm; }
}
@media (max-width: 560px) {
  .cabecera__dentro { gap: 8px; padding: 10px 12px; }
  .logo { height: 24px; }
  .cabecera__nombre { font-size: 12px; padding-left: 8px; letter-spacing: .08em; }
  #bloquear { padding: 6px 12px; min-height: 0; font-size: 13px; }
}
