/* =============================================================================
   Acceso — institucional
   Foto fija, overlay de lectura, panel blanco. Sin animaciones ni capas decorativas.
   ============================================================================= */

:root {
    --acceso-azul-profundo: #06152c;
    --acceso-azul: #0d2f5c;
    --acceso-oro: #b8892a;
    --acceso-oro-claro: #d4a94a;
    --acceso-texto: #f4f6f8;
    --acceso-texto-suave: rgba(244, 246, 248, 0.82);
    --acceso-texto-tenue: rgba(244, 246, 248, 0.58);
    --acceso-display: "Space Grotesk", "Inter", sans-serif;
    --acceso-ui: "Inter", "Segoe UI", sans-serif;
}

.pagina-acceso {
    min-height: 100vh;
    min-height: 100dvh;
}

.acceso {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 400px);
    align-items: stretch;
    min-height: 100vh;
    min-height: 100dvh;
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
    padding: clamp(1.5rem, 4vh, 3rem) clamp(1.5rem, 5vw, 4rem);
    font-family: var(--acceso-ui);
    background: var(--acceso-azul-profundo);
    color: var(--acceso-texto);
}

/* ---------------------------------------------------------- Escena -------- */

.acceso-escena {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.acceso-escena__foto {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% center;
}

.acceso-escena__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(6, 21, 44, 0.82) 0%,
        rgba(6, 21, 44, 0.62) 46%,
        rgba(6, 21, 44, 0.45) 100%
    );
}

/* ---------------------------------------------------------- Hero ---------- */

.acceso-hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    color: var(--acceso-texto);
}

.acceso-hero__contenido {
    max-width: 40rem;
    padding: clamp(0.5rem, 2vh, 1.25rem) 0;
}

.acceso-hero__cabecera {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: clamp(1.1rem, 3vh, 1.8rem);
}

.acceso-hero__logo-img {
    display: block;
    width: clamp(68px, 7.5vw, 88px);
    height: auto;
    margin-bottom: 0.5rem;
}

.acceso-hero__marca-nombre {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--acceso-display);
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.acceso-hero__bandera {
    display: block;
    width: 38px;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    flex: none;
}

.acceso-hero__marca-ius {
    color: #f4f6f8;
}

.acceso-hero__marca-lead {
    color: var(--acceso-oro-claro);
}

.acceso-hero__marca-tagline {
    margin: 0.15rem 0 0;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--acceso-texto-tenue);
}

.acceso-hero__titulo {
    margin: 0 0 0.75rem;
    font-family: var(--acceso-display);
    font-size: clamp(24px, 2.2vh + 1.1vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.acceso-hero__lema {
    margin: 0;
    max-width: 46ch;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--acceso-texto-suave);
}

.acceso-hero__modulos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 2rem;
    margin: 1.5rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    list-style: none;
}

.acceso-hero__modulos li {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.acceso-hero__modulos strong {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.acceso-hero__modulos span {
    font-size: 12px;
    line-height: 1.4;
    color: var(--acceso-texto-tenue);
}

/* ---------------------------------------------------------- Panel --------- */

.acceso__panel {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    align-self: center;
    width: 100%;
    max-width: 380px;
    justify-self: end;
}

.acceso__escala,
.acceso__contenido {
    width: 100%;
}

.acceso__contenido {
    padding: 2rem 1.6rem;
    background: #ffffff;
    border: 1px solid #d5dce4;
    color: #152033;
}

.acceso__marca {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7380;
}

.acceso__marca-punto {
    width: 6px;
    height: 6px;
    background: var(--acceso-oro);
    flex: none;
}

.acceso__marca-sep {
    opacity: 0.45;
}

.acceso__titulo {
    margin: 0 0 0.35rem;
    font-family: var(--acceso-display);
    font-size: clamp(24px, 2.4vh, 28px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0f1c2e;
}

.acceso__bajada {
    margin: 0 0 1.35rem;
    font-size: 15px;
    line-height: 1.5;
    color: #5c6675;
}

.acceso__pie {
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid #e3e8ee;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #8a919c;
    text-align: center;
}

.acceso .aviso {
    text-align: left;
}

.acceso .campo {
    margin-bottom: 0.9rem;
}

.acceso .campo__etiqueta {
    color: #3d4654;
    font-weight: 500;
}

.acceso .campo__control {
    background: #ffffff;
    border: 1px solid #c5ced9;
    border-radius: 4px;
    min-height: 2.6rem;
    color: #0f1c2e;
}

.acceso .campo__control:focus {
    border-color: #0d2f5c;
    box-shadow: none;
    outline: 2px solid var(--acceso-azul);
    outline-offset: 1px;
}

.acceso .boton--principal {
    margin-top: 0.4rem;
    min-height: 2.7rem;
    border-radius: 4px;
    background: #0d2f5c;
    border-color: #0d2f5c;
}

.acceso .boton--principal:hover {
    background: #164578;
    border-color: #164578;
    transform: none;
}

/* ---------------------------------------------------------- Responsive ---- */

@media (max-width: 1100px) {
    .acceso {
        grid-template-columns: 1fr;
        justify-items: center;
        align-items: center;
        padding: clamp(1.25rem, 3vh, 2rem) 1.25rem;
    }

    .acceso-hero {
        display: none;
    }

    .acceso__panel {
        justify-self: center;
        max-width: 400px;
    }
}

@media (max-height: 820px) {
    .acceso-hero__modulos {
        gap: 0.5rem 1.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

@media (prefers-contrast: more) {
    .acceso-escena__overlay {
        background: rgba(6, 21, 44, 0.92);
    }
}
