.gc-access {
    position: fixed; inset: 0; z-index: 1; overflow: auto;
    color: #17343e; background: #fff;
    font-family: system-ui, -apple-system, sans-serif;
}
.gc-access *, .gc-access *::before, .gc-access *::after { box-sizing: border-box; }
.gc-access__layout {
    min-height: 100%;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.gc-poster {
    display: flex; flex-direction: column; position: relative; overflow: hidden;
    background: #164752; color: #faf7e6;
}
.gc-poster__heading { position: relative; z-index: 1; padding: clamp(32px, 4.4vw, 76px); padding-bottom: 0; margin-bottom: auto; }
/* Degradado oscuro detrás del texto (arriba el titular y las ventajas, abajo la confianza): la foto
   tiene cielo claro y muelles con reflejos, y sin él el texto blanco no se lee en todas las zonas. */
.gc-poster::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 20, 29, .86) 0%, rgba(8, 20, 29, .66) 38%, rgba(8, 20, 29, .18) 62%, rgba(8, 20, 29, .30) 78%, rgba(8, 20, 29, .88) 100%);
}
.gc-poster__lead { margin: 22px 0 0; max-width: 30em; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; color: rgba(250, 247, 230, .88); }
.gc-benefits { list-style: none; margin: 26px 0 0; padding: 0; max-width: 580px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.gc-benefits li {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border: 1px solid rgba(250, 247, 230, .16); border-radius: 10px;
    background: rgba(8, 20, 29, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    font-size: 14.5px; font-weight: 600; line-height: 1.3; color: #faf7e6;
}
.gc-check {
    flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e3efa2; color: #164752; font-size: 13px; font-weight: 800; line-height: 1;
}
/* Confianza: avatares superpuestos (iconos, no fotos) y «Más de N transportistas…». */
.gc-trust { position: relative; z-index: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; padding: 0 clamp(32px, 4.4vw, 76px) clamp(28px, 4vw, 56px); }
.gc-avatars { display: flex; align-items: center; }
.gc-av {
    width: 42px; height: 42px; margin-left: -12px; border-radius: 50%; border: 3px solid #164752;
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px; color: #fff;
}
.gc-av:first-child { margin-left: 0; }
.gc-av--1 { background: #2f7d8c; }
.gc-av--2 { background: #3984a0; }
.gc-av--3 { background: #5b8f3e; }
.gc-av--4 { background: #075367; }
.gc-av--more { width: auto; min-width: 52px; padding: 0 12px; border-radius: 21px; background: #e3efa2; color: #164752; font-size: 13px; font-weight: 800; }
.gc-trust__text { margin: 0; font-size: 15.5px; line-height: 1.4; color: rgba(250, 247, 230, .82); }
.gc-trust__text strong { color: #fff; }
.gc-kicker {
    display: flex; align-items: center; gap: 12px;
    font: 600 11px/1.4 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase;
}
.gc-poster h2 { margin: clamp(30px, 6vh, 75px) 0 0; color: inherit; font: 500 clamp(36px, 3.7vw, 68px)/1.14 system-ui, sans-serif; letter-spacing: normal; }
.gc-poster h2 em { display: block; color: #e3efa2; font: italic 1.05em/1.14 Georgia, serif; letter-spacing: normal; }
.gc-landscape { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.gc-access__main { background: #fff; position: relative; display: grid; align-items: center; justify-items: center; padding: 96px clamp(26px, 5vw, 96px); }
.gc-access__tools { position: absolute; right: 10px; top: 8px; }
.gc-access__form { width: min(100%, 392px); min-width: 0; }
.gc-logo { display: block; width: min(72%, 260px); height: auto; margin: 0 auto 34px; }
.gc-access h1 { margin: 0; font: 600 clamp(34px, 3.4vw, 52px)/1.16 system-ui, sans-serif; letter-spacing: normal; color: inherit; }
.gc-access__form p { margin: 14px 0 0; font-size: 16px; color: #52666c; line-height: 1.5; overflow-wrap: anywhere; }
.gc-access__form .gc-register { margin-top: 34px; padding-top: 22px; border-top: 1px solid #e4ebed; font-size: 15px; text-align: center; }
.gc-register a { color: #075367; font-weight: 650; text-underline-offset: 3px; }
.gc-register a:focus-visible { outline: 2px solid #3984a0; outline-offset: 3px; }
.gc-form { display: grid; gap: 16px; margin-top: 34px; }
.gc-form .it-otp__boxes { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 7px; }
.gc-form .it-otp__box { width: 100%; min-width: 0; }
.gc-submit {
    display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px;
    padding: 12px 20px; border: 0; border-radius: 6px; background: var(--marca-azul); color: #fff;
    font: 650 16px/1.3 system-ui, sans-serif; cursor: pointer;
}
.gc-submit span { font-size: 23px; font-weight: 400; line-height: 1; }
.gc-submit:hover { background: var(--marca-azul-oscuro); }
.gc-submit:disabled, .gc-code-address button:disabled { opacity: .7; cursor: wait; }
.gc-access h1.gc-code-title { font-size: clamp(28px, 3vw, 36px); }
.gc-code-address { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.gc-code-address strong { overflow-wrap: anywhere; }
.gc-code-address button { padding: 4px 0; border: none; background: transparent; font: inherit; color: #075367; text-decoration: underline; cursor: pointer; }
.gc-code-form { margin-top: 24px; }
.gc-code-label { font-size: 14px; font-weight: 600; margin-bottom: -8px; }
.gc-form button:focus-visible { outline: 3px solid #3984a0; outline-offset: 3px; }
/* ===== Registro de cooperativas (/registro, Pages/Registro.razor) ===== */
.gc-access__form--registro { width: min(100%, 470px); }
.gc-access--registro .gc-logo { width: min(60%, 210px); margin-bottom: 26px; }
.gc-access h1.gc-reg-title { font-size: clamp(28px, 2.6vw, 38px); }
.gc-steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; counter-reset: none; }
.gc-steps li {
    display: flex; align-items: center; gap: 8px; min-width: 0; padding-bottom: 8px;
    border-bottom: 3px solid #e4ebed; color: #7a8b90; font-size: 13px; font-weight: 650;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gc-steps li span {
    flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #eef3f4; color: #52666c; font-size: 12px; font-weight: 800;
}
.gc-steps li.on { color: #17343e; border-color: var(--marca-azul); }
.gc-steps li.on span { background: var(--marca-azul); color: #fff; }
.gc-steps li.done { color: #2e7d4f; border-color: #2e9e57; }
.gc-steps li.done span { background: #2e9e57; color: #fff; }
.gc-reg-form { gap: 14px; margin-top: 26px; }
.gc-reg-fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.gc-reg-aviso {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 8px;
    background: #eef6f8; border: 1px solid #b9d6df; color: #17343e; font-size: 14.5px; line-height: 1.45;
}
.gc-reg-aviso i { margin-top: 3px; color: #075367; }
.gc-reg-aviso a { color: #075367; font-weight: 650; text-underline-offset: 3px; }
/* Documentos legales del paso 2: una fila por documento; se abre su ventana y se acepta al leerlo. */
.gc-legal-lista { display: grid; gap: 8px; margin-top: 2px; }
.gc-legal-lista__titulo { font-size: 14px; font-weight: 600; color: #17343e; }
.gc-legal-lista__error { font-size: 13px; color: #b42318; }
.gc-legal-fila {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 10px 14px;
    border: 1px solid #c9d5d8; border-radius: 6px; background: #fff; color: #17343e;
    font: 600 14.5px/1.3 system-ui, sans-serif; text-align: left; cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.gc-legal-fila:hover { border-color: #3984a0; background: #f3f7f8; }
.gc-legal-fila:focus-visible { outline: 3px solid #3984a0; outline-offset: 2px; }
.gc-legal-fila:disabled { opacity: .6; cursor: wait; }
.gc-legal-fila__icono { flex: 0 0 18px; color: #075367; font-size: 16px; text-align: center; }
.gc-legal-fila__nombre { flex: 1; min-width: 0; }
.gc-legal-fila__estado { flex: 0 0 auto; font-size: 12.5px; font-weight: 650; color: #075367; }
.gc-legal-fila__ir { flex: 0 0 auto; font-size: 12px; color: #7a8b90; }
.gc-legal-fila--ok { border-color: #2e9e57; background: #f1faf4; }
.gc-legal-fila--ok .gc-legal-fila__icono, .gc-legal-fila--ok .gc-legal-fila__estado { color: #2e7d4f; }
.gc-legal-fila--error { border-color: #b42318; background: #fff6f5; }
.gc-legal-fila--error .gc-legal-fila__estado { color: #b42318; }
/* La ventana del documento (como las de la aplicación, ItModalHost: tarjeta blanca, fondo con blur). */
.gc-legal-modal {
    position: fixed; inset: 0; z-index: 99990; display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(8, 20, 29, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    font-family: system-ui, -apple-system, sans-serif; animation: gcLegalFade .12s ease;
}
.gc-legal-modal *, .gc-legal-modal *::before, .gc-legal-modal *::after { box-sizing: border-box; }
@keyframes gcLegalFade { from { opacity: 0; } to { opacity: 1; } }
.gc-legal-modal__card {
    position: relative; display: flex; flex-direction: column; width: min(820px, 100%); height: min(86vh, 900px);
    background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); overflow: hidden;
}
.gc-legal-modal__x {
    position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: #eef3f4; color: #17343e; font-size: 16px; cursor: pointer;
}
.gc-legal-modal__x:hover { background: #e1eaec; }
.gc-legal-modal__header { padding: 18px 60px 14px 22px; font: 600 18px/1.3 system-ui, sans-serif; color: #17343e; border-bottom: 1px solid #e4ebed; }
.gc-legal-modal__progreso { flex: 0 0 3px; height: 3px; background: #eef3f4; }
.gc-legal-modal__progreso > span { display: block; height: 100%; background: var(--marca-azul); transition: width .2s ease; }
.gc-legal-modal__progreso--ok > span { background: #2e9e57; }
.gc-legal-modal__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 26px 30px; scrollbar-gutter: stable; }
.gc-legal-modal__body:focus-visible { outline: 2px solid #3984a0; outline-offset: -2px; }
.gc-legal-modal__footer {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    padding: 14px 22px; border-top: 1px solid #e4ebed; background: #f7fafb;
}
.gc-legal-modal__pista { font-size: 13.5px; color: #52666c; }
.gc-legal-modal__pista i { margin-right: 4px; color: #075367; }
.gc-legal-modal__botones { display: flex; gap: 10px; margin-left: auto; }
.gc-legal-modal__botones .gc-reg-atras { min-height: 46px; }
.gc-legal-modal .gc-legal-modal__aceptar { width: auto; min-height: 46px; gap: 14px; padding: 10px 22px; }
.gc-legal-modal .gc-legal-modal__aceptar:disabled { opacity: .5; cursor: not-allowed; }
.gc-legal-modal__x:focus-visible, .gc-legal-modal__botones button:focus-visible { outline: 3px solid #3984a0; outline-offset: 2px; }
@media (max-width: 600px) {
    .gc-legal-modal { padding: 8px; }
    .gc-legal-modal__card { height: calc(100% - 8px); }
    .gc-legal-modal__body { padding: 16px 16px; }
    .gc-legal-modal__footer { padding: 10px 12px; }
    .gc-legal-modal__botones { width: 100%; }
    .gc-legal-modal__botones button { flex: 1; justify-content: center; }
}
.gc-reg-acciones { display: flex; gap: 12px; align-items: stretch; margin-top: 4px; }
.gc-reg-acciones .gc-submit { flex: 1; }
.gc-reg-atras {
    flex: 0 0 auto; min-height: 52px; padding: 0 18px; border: 1px solid #c9d5d8; border-radius: 6px;
    background: #fff; color: #17343e; font: 600 15px/1.2 system-ui, sans-serif; cursor: pointer;
}
.gc-reg-atras:hover { background: #f3f7f8; }
.gc-reg-atras:disabled, .gc-reg-reenviar:disabled { opacity: .6; cursor: wait; }
.gc-access__form p.gc-reg-nota { margin-top: 16px; font-size: 14px; }
.gc-reg-reenviar { padding: 0; border: 0; background: none; font: inherit; font-weight: 650; color: #075367; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gc-reg-atras:focus-visible, .gc-reg-reenviar:focus-visible { outline: 3px solid #3984a0; outline-offset: 3px; }
/* Pantallas medianas: el panel es estrecho, las ventajas en una columna. */
@media (min-width: 781px) and (max-width: 1100px) {
    .gc-benefits { grid-template-columns: minmax(0, 1fr); max-width: 360px; }
}
@media (max-width: 780px) {
    .gc-reg-fila { grid-template-columns: minmax(0, 1fr); }
    .gc-steps li { font-size: 12px; }

    .gc-access__layout { display: flex; flex-direction: column; gap: 0; padding: 12px; }
    .gc-access__main { order: -1; flex: 1; padding: 84px 14px 42px; }
    .gc-access__tools { top: 2px; right: 2px; }
    .gc-logo { width: min(76%, 220px); margin-bottom: 28px; }
    .gc-form { margin-top: 24px; }
    .gc-poster { min-height: 108px; display: grid; grid-template-columns: 52% 48%; align-items: center; border-radius: 15px; }
    .gc-poster__heading { padding: 18px 0 18px 18px; position: relative; z-index: 1; margin: 0; }
    .gc-kicker { font-size: 8px; letter-spacing: .08em; gap: 6px; }
    .gc-poster h2 { font-size: clamp(20px, 4.5vw, 32px); margin: 9px 0 0; }
    .gc-landscape { object-position: center 70%; }
    .gc-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 29, .92), rgba(8, 20, 29, .70) 48%, transparent 80%); }
    /* En la franja del teléfono, solo lo esencial: el titular y, si hay cifra, la línea de confianza. */
    .gc-poster__lead, .gc-benefits, .gc-avatars { display: none; }
    .gc-poster:has(.gc-trust) { grid-template-rows: auto auto; }
    .gc-poster:has(.gc-trust) .gc-poster__heading { padding-bottom: 6px; }
    .gc-trust { grid-column: 1; padding: 0 0 16px 18px; }
    .gc-trust__text { font-size: 12px; }
}
