/* Acceso y administración del portal. Comparte colores y recursos del buscador. */
.portal { --tinta: #283343; --suave: #697386; }
.portal .marca-enlace { color: var(--tinta); text-decoration: none; }
.portal .marca-info { display: block; }
.portal .marca-info > span { display: block; margin-top: 3px; color: var(--suave); font-size: 12px; }
.saltar-contenido { position: fixed; top: -80px; left: 20px; z-index: 20; padding: 12px 18px; background: white; border: 2px solid var(--rojo); border-radius: 7px; }
.saltar-contenido:focus { top: 12px; }
.acceso-privado { display: flex; align-items: center; gap: 8px; color: var(--suave); font-size: 12px; white-space: nowrap; }
.acceso-privado > span { color: #389375; font-size: 10px; }
.portal-navegacion { display: flex; align-items: center; gap: 20px; }
.portal-navegacion > a { font-size: 12px; color: #667085; font-weight: 600; }
.portal-navegacion > a[aria-current] { color: var(--rojo); }
.portal-identidad { border-left: 1px solid var(--borde); padding-left: 20px; min-width: 0; }
.portal-identidad > span { display: block; font-size: 11px; color: #475467; max-width: 245px; overflow: hidden; text-overflow: ellipsis; }
.portal-identidad > small { display: block; font-size: 10px; color: #8a93a2; margin-top: 4px; }
.formulario-salir { margin: 0; display: block; flex: 0 0 auto; }
.pagina-acceso { min-height: 100vh; background: linear-gradient(120deg, #f6f7f9 45%, #f0f2f5 100%); }
.acceso-contenedor { display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center; padding-top: 76px; padding-bottom: 70px; }
.acceso-presentacion h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.24; letter-spacing: -1px; margin: 14px 0 22px; }
.acceso-presentacion > p:not(.etiqueta) { max-width: 455px; color: var(--suave); font-size: 14px; line-height: 1.8; margin-bottom: 35px; }
.acceso-detalle { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 24px; max-width: 410px; }
.acceso-detalle > span { display: grid; place-items: center; flex: 0 0 33px; height: 33px; border: 1px solid #dbe4de; border-radius: 9px; background: #f8fcf9; color: #2a6f50; font-weight: 600; }
.acceso-detalle strong { font-size: 13px; font-weight: 600; }
.acceso-detalle p { color: var(--suave); font-size: 12px; line-height: 1.65; margin: 6px 0 0; }
.acceso-fuente { color: #8a93a2; font-size: 11px; margin-top: 42px; }
.acceso-tarjeta { padding: 33px; margin: 0; box-shadow: 0 10px 45px #25304206; }
.acceso-icono { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; background: #fceef0; color: var(--rojo); margin-bottom: 28px; }
.acceso-icono svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.acceso-tarjeta h2 { font-size: 23px; letter-spacing: -.5px; line-height: 1.25; margin: 10px 0 12px; }
.acceso-descripcion { font-size: 13px; line-height: 1.75; color: var(--suave); margin: 0 0 25px; }
.acceso-descripcion strong { font-weight: 600; color: #475467; overflow-wrap: anywhere; }
.portal-formulario { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
.portal-campo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.portal-campo label { font-weight: 600; color: #344054; font-size: 12px; }
.portal-campo input, .portal-campo select { width: 100%; min-width: 0; height: 46px; padding: 10px 12px; border: 1px solid #cfd4dd; background: white; color: #344054; border-radius: 7px; font-size: 13px; }
.portal-campo input::placeholder { color: #98a1af; }
.portal-campo input:focus { outline: 3px solid #bd2d371b; outline-offset: 0; border-color: var(--rojo); }
.portal-campo input[aria-invalid=true] { border-color: var(--rojo); }
.portal-campo small { font-size: 11px; color: #7c8595; line-height: 1.55; }
.portal-campo .entrada-codigo { text-align: center; font-size: 28px; height: 61px; letter-spacing: 9px; font-variant-numeric: tabular-nums; padding-left: 21px; }
.entrada-codigo::placeholder { color: #c1c6d0; }
.acceso-boton { width: 100%; justify-content: space-between; margin-top: 2px; padding: 0 16px; height: 46px; }
.acceso-boton > span { font-size: 20px; font-weight: 400; }
.acceso-seguridad { font-size: 11px; line-height: 1.6; text-align: center; color: #8a93a2; border-top: 1px solid #eef0f3; margin: 24px 0 0; padding-top: 18px; }
.error-campo { color: #aa2b35; font-size: 12px; line-height: 1.6; margin: 0; }
.error-general { background: #fff3f3; padding: 11px 13px; border-radius: 7px; border: 1px solid #f3d8dc; }
.acceso-reenvio { border-top: 1px solid #eef0f3; padding-top: 19px; margin-top: 24px; text-align: center; }
.acceso-reenvio > p { font-size: 11px; color: #7c8595; line-height: 1.7; margin: 0 0 13px; }
.acceso-reenvio form { display: block; margin: 0 0 12px; }
.acceso-reenvio > a { font-size: 12px; color: #7c8595; }
.enlace-boton { font: inherit; font-size: 12px; font-weight: 600; border: 0; background: transparent; color: var(--rojo); padding: 4px; cursor: pointer; }
.enlace-boton:not(:disabled):hover { text-decoration: underline; }
.enlace-boton:disabled { color: #8a93a2; cursor: default; font-weight: 400; }
.aviso-local { background: #fff9ee; border: 1px solid #f0e1c4; border-radius: 8px; padding: 12px 14px; margin-top: 24px; color: #876528; }
.aviso-local strong { display: block; font-size: 11px; }
.aviso-local p { font-size: 11px; line-height: 1.65; margin: 4px 0 0; }
.introduccion-usuarios { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.introduccion-usuarios h1 { font-size: 28px; }
.introduccion-usuarios > div > p:last-child { font-size: 13px; color: var(--suave); margin: 0; }
.volver-buscador { font-size: 12px; font-weight: 600; white-space: nowrap; }
.usuarios-disposicion { display: grid; grid-template-columns: 310px minmax(0, 1fr); align-items: start; gap: 24px; }
.agregar-usuario { padding: 25px; }
.agregar-usuario h2, .lista-usuarios h2 { font-size: 16px; margin: 0; letter-spacing: -.2px; }
.agregar-usuario > p { color: var(--suave); font-size: 12px; line-height: 1.7; margin: 12px 0 23px; }
.agregar-usuario .boton { width: 100%; min-width: 0; padding: 0 12px; }
.opcional { font-size: 10px; font-weight: 400; color: #9299a6; margin-left: 5px; }
.agregar-usuario .nota-agregar { border-top: 1px solid #eef0f3; font-size: 11px; margin: 21px 0 0; padding-top: 15px; }
.lista-usuarios { overflow: hidden; }
.encabezado-usuarios { display: flex; align-items: center; justify-content: space-between; padding: 23px; gap: 15px; border-bottom: 1px solid var(--borde); }
.encabezado-usuarios p { color: var(--suave); font-size: 11px; line-height: 1.6; margin: 7px 0 0; }
.cantidad-usuarios { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; background: #f1f3f6; color: #667085; border-radius: 50%; font-size: 12px; }
.tabla-usuarios-contenedor { overflow-x: auto; }
.tabla-usuarios { min-width: 590px; }
.tabla-usuarios th { font-size: 10px; padding: 12px 20px; }
.tabla-usuarios td { font-size: 11px; padding: 18px 20px; vertical-align: middle; }
.tabla-usuarios td:first-child { width: 44%; font-weight: 400; }
.tabla-usuarios td:nth-child(2) { width: 19%; }
.tabla-usuarios td:nth-child(3) { width: 15%; }
.tabla-usuarios td:last-child { width: 22%; text-align: right; }
.tabla-usuarios td > strong { display: block; font-size: 12px; font-weight: 600; margin-bottom: 3px; }
.correo-usuario { display: block; font-size: 11px; color: #475467; }
.usuario-propio { display: block; font-size: 10px; color: #98a0ac; margin-top: 3px; }
.rol-usuario { color: #667085; }
.estado-usuario { padding: 4px 8px; border-radius: 5px; color: #778292; background: #f1f3f6; font-size: 10px; white-space: nowrap; }
.estado-usuario.activo { background: #edf8f1; color: #28704c; }
.formulario-estado { display: block; }
.accion-usuario { background: white; border: 1px solid #dce1e8; color: #3b7955; padding: 7px 10px; border-radius: 6px; font: inherit; font-size: 11px; cursor: pointer; }
.accion-usuario:hover { background: #f7f9fb; }
.accion-usuario.desactivar { color: #8a6570; }
.cuenta-protegida { font-size: 10px; color: #98a0ac; }
.nota-usuarios { border-top: 1px solid var(--borde); margin: 0; padding: 15px 23px; color: #86909f; font-size: 11px; line-height: 1.7; }
.historial-busquedas { display: flex; align-items: center; gap: 20px; padding: 16px 20px; margin-bottom: 24px; background: #f0f2f5; border: 1px solid #e4e7ec; border-radius: 10px; }
.historial-busquedas > div:first-child { min-width: 180px; }
.historial-busquedas label { display: block; color: #475467; font-size: 12px; }
.historial-busquedas p { font-size: 11px; color: #818b9b; margin: 4px 0 0; }
.historial-busquedas select { min-width: 0; flex: 1; height: 39px; border: 1px solid #cfd4dd; padding: 0 10px; font: inherit; font-size: 12px; color: #526071; border-radius: 7px; background: white; }
.historial-busquedas select:disabled { color: #8b95a5; }
.historial-busquedas select:focus-visible { outline: 2px solid #bd2d374d; border-color: var(--rojo); }
.historial-estado { font-size: 11px; color: #8a6570; }
.coincidencia-busqueda { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: -6px 0 24px; padding: 22px 24px; border-color: #cdded8; background: #f7fbf9; }
.coincidencia-busqueda > div:first-child { min-width: 0; }
.coincidencia-busqueda .etiqueta { color: #39745d; margin: 0 0 7px; }
.coincidencia-busqueda h2 { margin: 0 0 9px; font-size: 16px; letter-spacing: -.2px; }
.coincidencia-busqueda p:not(.etiqueta) { color: #596b64; font-size: 12px; line-height: 1.7; margin: 4px 0; overflow-wrap: anywhere; }
.coincidencia-busqueda .ayuda-coincidencia { font-size: 11px; color: #78877f; }
.acciones-coincidencia { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; flex: 0 0 auto; }
.acciones-coincidencia .boton { font-size: 12px; text-decoration: none; min-height: 40px; height: auto; padding: 11px 16px; white-space: normal; text-align: center; }
.portal .resultado .resumen .actualizacion-busqueda { font-size: 11px; line-height: 1.7; margin-top: 7px; color: #7a8594; overflow-wrap: anywhere; }
.acciones-usuario { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.formulario-rol { display: flex; align-items: flex-start; flex-direction: column; gap: 7px; margin-top: 0; }
.selector-rol { max-width: 150px; padding: 7px 6px; border: 1px solid #dce1e8; border-radius: 6px; font: inherit; font-size: 11px; color: #475467; background: white; }
.eliminar-usuario { color: #ab3541; text-decoration: none; border: 1px solid #edd7db; background: white; border-radius: 6px; padding: 7px 10px; font-size: 11px; white-space: nowrap; }
.eliminar-usuario:hover { background: #fff5f5; }
.auditoria-usuarios { margin-top: 28px; overflow: hidden; }
.tabla-auditoria { min-width: 720px; }
.tabla-auditoria th, .tabla-auditoria td { padding: 14px 20px; font-size: 11px; }
.tabla-auditoria td { overflow-wrap: anywhere; }
.tabla-auditoria td:first-child { width: auto; font-weight: 400; white-space: nowrap; }
.tabla-auditoria td:nth-child(n) { width: auto; text-align: left; }
.eliminar-cuenta { max-width: 660px; margin: 20px auto 60px; padding: 30px; }
.eliminar-cuenta h1, .eliminar-cuenta h2 { font-size: 23px; line-height: 1.35; margin: 10px 0 16px; }
.eliminar-cuenta p { font-size: 13px; line-height: 1.8; color: #667085; overflow-wrap: anywhere; }
.nota-eliminar { background: #fff6ee; border: 1px solid #f0dfcb; border-radius: 7px; padding: 12px 15px; margin: 18px 0; }
.acciones-confirmacion { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.acciones-confirmacion a { color: #667085; font-size: 12px; }
.boton-eliminar { background: #a92e3c; color: white; border-color: #a92e3c; }
.mensajes-portal .aviso { line-height: 1.6; }
@media (max-width: 1100px) {
  .portal .cabecera { flex-wrap: wrap; padding: 16px 28px; }
  .portal-navegacion { margin-left: auto; gap: 17px; }
  .portal-identidad { padding-left: 16px; }
  .acceso-contenedor { gap: 45px; grid-template-columns: 1fr 390px; padding-top: 55px; }
  .usuarios-disposicion { grid-template-columns: 280px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 850px) {
  .portal-identidad > span { max-width: 195px; }
  .acceso-contenedor { gap: 28px; grid-template-columns: 1fr 365px; }
  .acceso-presentacion h1 { font-size: 28px; }
  .acceso-tarjeta { padding: 28px; }
  .acceso-presentacion > p:not(.etiqueta) { font-size: 13px; }
  .usuarios-disposicion { grid-template-columns: 1fr; }
  .agregar-usuario .portal-formulario { display: grid; grid-template-columns: 1fr 1.5fr; align-items: start; }
  .agregar-usuario .portal-formulario .boton { grid-column: 1 / -1; justify-self: start; width: auto; min-width: 180px; }
}
@media (max-width: 650px) {
  .portal .cabecera { padding: 16px 20px; }
  .portal-navegacion { flex-wrap: wrap; width: 100%; gap: 15px; justify-content: flex-start; border-top: 1px solid #eef0f3; padding-top: 12px; }
  .portal-identidad { margin-left: auto; border: 0; padding: 0; }
  .portal-identidad > span { max-width: 210px; }
  .portal-identidad > small { display: none; }
  .formulario-salir { margin-left: auto; }
  .acceso-privado { margin-left: auto; font-size: 11px; }
  .acceso-contenedor { display: flex; flex-direction: column; gap: 25px; padding: 32px 20px 45px; align-items: stretch; max-width: 480px; }
  .acceso-presentacion h1 { font-size: 28px; margin: 11px 0 14px; }
  .acceso-presentacion > p:not(.etiqueta) { margin-bottom: 0; font-size: 13px; }
  .acceso-detalle, .acceso-fuente { display: none; }
  .acceso-tarjeta { padding: 26px; }
  .acceso-tarjeta h2 { font-size: 22px; }
  .acceso-icono { margin-bottom: 22px; }
  .introduccion-usuarios { align-items: flex-start; flex-direction: column; gap: 15px; }
  .introduccion-usuarios h1 { font-size: 26px; }
  .agregar-usuario { padding: 23px; }
  .agregar-usuario .portal-formulario { display: flex; }
  .agregar-usuario .portal-formulario .boton { width: 100%; }
  .historial-busquedas { align-items: stretch; flex-direction: column; gap: 12px; padding: 16px; }
  .historial-busquedas select { flex: auto; width: 100%; }
  .coincidencia-busqueda { flex-direction: column; align-items: stretch; padding: 20px; }
  .acciones-coincidencia { flex-direction: column; align-items: stretch; }
  .acciones-coincidencia .boton { width: 100%; justify-content: center; }
  .eliminar-cuenta { padding: 23px; }
}
@media (max-width: 430px) {
  .portal .marca { width: 100%; }
  .portal-navegacion > a { font-size: 11px; }
  .portal-identidad { order: 4; width: 100%; margin-top: 0; }
  .formulario-salir { margin-left: auto; }
  .portal-identidad > span { max-width: none; font-size: 10px; color: #8a93a2; }
  .pagina-acceso .marca { width: auto; }
  .pagina-acceso .marca-info { display: none; }
  .acceso-tarjeta { padding: 24px 20px; }
}
