/* Entrada del portal ONWIFIX, H2 «Cuadro» (diseno/portal-entrada/condensada/final/, Alfa 05/11/2026; NOTAS.md y referencia.html).
   Plantilla: views/login.xml (acog_core.portal_entrada). Colores y medidas de la referencia; contrastes en NOTAS.md. */
:root { --h2-tinta: #172049; --h2-panel: #F3F5F9; --h2-azul: #3B63E0; --h2-gris: #5E6577; --h2-borde: #DDE1EA; --h2-campo: #8A93A7; --h2-rojo: #B3261E; }
html, body { background: var(--h2-panel) !important; }
#wrapwrap, main#wrapwrap > main { background: var(--h2-panel); }
.h2 { min-height: 100vh; display: flex; flex-direction: column; font-family: 'IBM Plex Sans', system-ui, sans-serif; color: var(--h2-tinta); background: var(--h2-panel); }
.h2 a { color: inherit; }
.h2-in { width: 100%; max-width: 1012px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.h2-bar { background: #fff; border-bottom: 1px solid var(--h2-borde); }
.h2-bari { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.h2-logo { display: inline-flex; align-items: center; min-height: 44px; }
.h2-logo img { height: 20px; width: auto; display: block; }
.h2-langs { display: inline-flex; border: 1px solid var(--h2-borde); border-radius: 10px; overflow: hidden; }
.h2-langs a { width: 48px; height: 44px; display: inline-flex; align-items: center; justify-content: center; font: 500 13px/1 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .08em; color: var(--h2-gris); text-decoration: none; background: #fff; }
.h2-langs a[aria-current="true"] { background: var(--h2-tinta); color: #fff; }
.h2-main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; padding-top: 56px; padding-bottom: 56px; }
.h2-banner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--h2-borde); border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; font-size: 14px; }
.h2-banner > span { display: flex; flex-direction: column; gap: 2px; }
.h2-kick { font: 500 11px/1.4 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--h2-azul); }
.h2-bt { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: var(--h2-azul); color: #fff !important; font-weight: 600; text-decoration: none; }
.h2-consent { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--h2-gris); }
.h2-card { display: grid; grid-template-columns: 372px minmax(0, 1fr); background: #fff; border: 1px solid var(--h2-borde); border-radius: 18px; overflow: hidden; }
.h2-izq { background: var(--h2-tinta); color: #fff; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.h2-hola { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.2; color: #fff; }
.h2-mono { margin: 10px 0 0; font: 400 12px/1.4 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .1em; color: #B9C2E6; }
.h2-luces { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.h2-luces li { height: 42px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.14); font: 400 13px/1 'IBM Plex Mono', ui-monospace, monospace; color: #C9D1EE; }
.h2-luces i { width: 10px; height: 10px; border-radius: 50%; background: #4CC38A; box-shadow: 0 0 0 4px rgba(76,195,138,.22); flex: none; }
.h2-form { padding: 36px; display: flex; flex-direction: column; }
.h2-already { margin: 0 0 12px; font-size: 14px; color: var(--h2-gris); }
.h2-l { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.h2-l + .h2-i, .h2-pwf { margin-bottom: 0; }
.h2-i { width: 100%; height: 52px; box-sizing: border-box; border: 1.5px solid var(--h2-campo); border-radius: 10px; padding: 0 14px; font: 400 16px 'IBM Plex Sans', system-ui, sans-serif; color: var(--h2-tinta); background: #fff; }
.h2-i::placeholder { color: var(--h2-gris); }
.h2-i:focus { outline: 2px solid var(--h2-azul); outline-offset: 1px; }
#pe-em { margin-bottom: 18px; }
.h2-pwf { position: relative; }
.h2-pwf .h2-i { padding-right: 96px; }
.h2-i.h2-bad { border: 2px solid var(--h2-rojo); }
.h2-ver { position: absolute; right: 4px; top: 4px; bottom: 4px; display: inline-flex; align-items: center; justify-content: center; min-width: 72px; padding: 0 12px; border: 0; background: none; color: var(--h2-azul); font-weight: 600; font-size: 14px; cursor: pointer; }
.h2-err { margin: 10px 0 0; padding: 4px 0 4px 12px; border-left: 3px solid var(--h2-rojo); color: var(--h2-rojo); font-size: 14px; }
.h2-olv { align-self: flex-end; display: inline-flex; align-items: center; min-height: 44px; margin: -2px 0 -4px; color: var(--h2-azul) !important; font-weight: 600; font-size: 14px; text-decoration: none; }
.h2-go { height: 54px; border: 0; border-radius: 10px; background: var(--h2-azul); color: #fff; font: 600 17px 'IBM Plex Sans', system-ui, sans-serif; cursor: pointer; margin-top: 4px; }
.h2-pk { height: 52px; margin-top: 12px; border: 1.5px solid var(--h2-campo); border-radius: 10px; background: #fff; color: var(--h2-tinta); font: 600 15px 'IBM Plex Sans', system-ui, sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.h2-pk[hidden] { display: none; }
.h2-puertas { margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; font-size: 14px; color: var(--h2-gris); white-space: nowrap; }
.h2-puertas > span:not(.h2-sep) { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.h2-puertas a { color: var(--h2-tinta) !important; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.h2-ar { color: var(--h2-azul); flex: none; }
.h2-sep { display: inline-flex; align-items: center; }
.h2-dentro { text-align: center; margin: 32px 0 0; font-size: 14px; color: var(--h2-gris); }
.h2-dentro a { color: var(--h2-azul) !important; font-weight: 600; text-decoration: none; }
.h2-pie { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; align-items: center; padding-top: 16px; padding-bottom: 16px; font-size: 13px; color: var(--h2-gris); }
.h2-pie b { color: var(--h2-tinta); font-weight: 600; }
.h2-nw { white-space: nowrap; }
.h2-fl { display: inline-flex; gap: 20px; }
.h2-fl a { display: inline-flex; align-items: center; min-height: 44px; color: var(--h2-tinta) !important; }
.h2-odoo { display: none !important; }
.h2-pie { flex: none; max-width: none; border-top: 1px solid var(--h2-borde); background: #fff; padding-left: max(16px, calc((100% - 980px) / 2)); padding-right: max(16px, calc((100% - 980px) / 2)); padding-top: 14px; padding-bottom: 14px; }
.h2-ver { line-height: 1; padding-top: 0; padding-bottom: 0; }
.h2-grupo { white-space: nowrap; color: var(--h2-tinta) !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--h2-campo); }
.h2-cod { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; box-sizing: border-box; margin-top: 12px; border: 1.5px solid var(--h2-campo); border-radius: 10px; background: #fff; color: var(--h2-tinta) !important; font: 600 15px 'IBM Plex Sans', system-ui, sans-serif; text-decoration: none; }
.h2-solo .h2-main { align-items: center; }
.h2-cardc { width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--h2-borde); border-radius: 18px; overflow: hidden; }
.h2-t { margin: 0 0 8px; font-size: 26px; font-weight: 600; line-height: 1.2; }
.h2-s { margin: 0 0 24px; font-size: 15px; line-height: 1.5; color: var(--h2-gris); overflow-wrap: anywhere; }
.h2-s b { color: var(--h2-tinta); font-weight: 600; }
.h2-c6 { font: 500 24px 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .24em; text-align: center; }
.h2-c6::placeholder { letter-spacing: .24em; color: #B4BCCD; }
.h2-otra { padding-top: 0; }
.h2-solo .h2-go { margin-top: 20px; }
.h2-vuelta { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 0; background: none; color: var(--h2-azul) !important; font: 600 14px 'IBM Plex Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
/* Con enlace de comunidad (?c=) o de colaborador (?g=): la franja arriba y destacada, el cuadro de entrar debajo y discreto
   (Alfa, 09/11/2026). Plantilla: .h2-con en acog_core.portal_entrada. */
.h2-con .h2-main { justify-content: flex-start; padding-top: 40px; }
.h2-con .h2-banner { display: block; background: var(--h2-tinta); color: #fff; border: 0; border-radius: 18px; padding: 32px 36px; margin-bottom: 24px; font-size: 16px; }
.h2-con .h2-kick { color: #B9C2E6; }
.h2-bh { margin: 6px 0 0; font-size: 30px; font-weight: 600; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.h2-bp { margin: 12px 0 0; max-width: 640px; font-size: 16px; line-height: 1.5; color: #DCE1F3; }
.h2-bx { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font: 500 13px/1.4 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .04em; color: #fff; }
.h2-bx i { width: 10px; height: 10px; border-radius: 50%; background: #4CC38A; box-shadow: 0 0 0 4px rgba(76,195,138,.22); flex: none; }
.h2-con .h2-bt { gap: 10px; min-height: 52px; margin-top: 22px; padding: 0 24px; font-size: 16px; }
.h2-con .h2-consent { margin-top: 14px; color: #B9C2E6; }
.h2-bt .h2-ar { color: #fff; }
.h2-con .h2-card { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.h2-con .h2-form { padding: 28px 32px; }
.h2-con .h2-puertas { flex-direction: column; align-items: center; }
.h2-con .h2-sep { display: none; }
.h2-con .h2-already { margin: 0 0 16px; font-size: 18px; font-weight: 600; color: var(--h2-tinta); }
@media (max-width: 720px) {
  .h2-bari { height: 60px; }
  .h2-logo img { height: 22px; }
  .h2-in { padding: 0 20px; }
  .h2-main { justify-content: flex-start; padding-top: 20px; padding-bottom: 32px; }
  .h2-card { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .h2-izq { padding: 28px 24px 24px; gap: 22px; }
  .h2-hola { font-size: 28px; }
  .h2-mono { font-size: 11px; margin-top: 8px; }
  .h2-luces { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; }
  .h2-luces li { height: 20px; font-size: 12px; gap: 10px; border-bottom: 0; }
  .h2-luces i { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(76,195,138,.22); }
  .h2-form { padding: 28px 24px 24px; }
  .h2-otra { padding-top: 0; }
  .h2-cardc { border-radius: 20px; }
  .h2-t { font-size: 24px; }
  #pe-em { margin-bottom: 20px; }
  .h2-l { margin-bottom: 8px; }
  .h2-olv { margin: 2px 0 8px; }
  .h2-puertas { flex-direction: column; align-items: center; margin-top: 18px; border-top: 1px solid var(--h2-borde); padding-top: 12px; }
  .h2-puertas > span:not(.h2-sep) { min-height: 44px; }
  .h2-sep { display: none; }
  .h2-dentro { margin-top: 24px; }
  .h2-con .h2-main { padding-top: 16px; }
  .h2-con .h2-banner { padding: 22px 20px; border-radius: 16px; margin-bottom: 20px; }
  .h2-bh { font-size: 24px; }
  .h2-bp { margin-top: 10px; font-size: 15px; }
  .h2-con .h2-bt { display: flex; justify-content: center; width: 100%; box-sizing: border-box; margin-top: 18px; }
  .h2-con .h2-form { padding: 22px 20px; }
  .h2-con .h2-puertas { flex-direction: column; align-items: center; }
.h2-con .h2-sep { display: none; }
.h2-con .h2-already { font-size: 16px; }
  .h2-pie { flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); line-height: 1.5; }
  .h2-fl a { min-height: 44px; }
}
