/* Identidad del acceso a Validación documental UM. */
:root {
    --l1-blue: #005fab;
    --l1-blue-strong: #003f75;
    --l1-cyan: #22bae0;
    --l1-yellow: #ffd500;
    --l1-ink: #17344c;
    --l1-muted: #576e80;
    --l1-line: #dce6ed;
    font-family: Helvetica, Arial, sans-serif;
    color: var(--l1-ink);
    background: #f3f7fa;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-size: 100%; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; }
.l1 { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.l1 :is(a, button):focus-visible { outline: 3px solid var(--l1-blue); outline-offset: 4px; }
.l1-icon { flex: 0 0 auto; width: 22px; height: 22px; }
.l1-skip { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 18px; border-radius: 6px; background: var(--l1-yellow); color: var(--l1-ink); transform: translateY(-200%); }
.l1-skip:focus { transform: none; }
.l1-test { display: flex; justify-content: center; align-items: flex-start; gap: 10px; padding: 12px 24px; background: var(--l1-yellow); font-size: .8125rem; }
.l1-test p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.l1-test .l1-icon { width: 19px; height: 19px; }

/* Marca y consulta pública permanecen disponibles antes de iniciar sesión. */
.l1-header { background: #fff; border-bottom: 1px solid var(--l1-line); }
.l1-header-inner { display: flex; align-items: center; gap: 28px; width: min(1440px, 100% - 80px); min-height: clamp(72px, 10svh, 96px); margin: auto; }
.l1-brand { flex: 0 0 auto; display: block; }
.l1-brand img { width: 218px; height: auto; }
.l1-product { display: flex; align-items: center; gap: 12px; padding-left: 28px; border-left: 1px solid var(--l1-line); color: var(--l1-blue); font-size: .8125rem; font-weight: 700; }
.l1-product .l1-icon { width: 25px; height: 25px; }
.l1-header-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin-left: auto; padding: 10px 0 10px 12px; color: var(--l1-blue); font-size: .8125rem; font-weight: 700; text-decoration: none; }
.l1-header-link .l1-icon { width: 18px; height: 18px; }
.l1-header-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.l1-shell { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); grid-template-areas: 'story access'; width: min(1440px, 100% - 80px); flex: 1 0 auto; margin: clamp(12px, 2.4svh, 28px) auto clamp(8px, 1.5svh, 16px); border: 1px solid #d5e3ee; border-radius: 20px; background: #fff; box-shadow: 0 16px 48px #16496f0a; }

/* El acceso se presenta primero en móvil y en el orden de lectura. */
.l1-access { grid-area: access; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(20px, 4svh, 44px) clamp(32px, 4vw, 58px); }
.l1-card { width: 100%; max-width: 410px; margin: auto; padding: 0; outline: none; }
.l1-access-heading { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(12px, 2svh, 22px); }
.l1-symbol { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #cbe1f0; border-radius: 12px; background: #eef6fc; color: var(--l1-blue); }
.l1-symbol .l1-icon { width: 21px; height: 21px; }
.l1-eyebrow { margin: 0; color: var(--l1-blue); font-size: .6875rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.l1-card h1 { margin: 0; font-size: clamp(2rem, min(3vw, 4.5svh), 2.875rem); line-height: 1.12; letter-spacing: -1.6px; overflow-wrap: anywhere; }
.l1-card h1 span { color: var(--l1-blue); }
.l1-description { margin: clamp(12px, 1.8svh, 18px) 0 clamp(16px, 2.5svh, 28px); color: var(--l1-muted); font-size: .9375rem; line-height: 1.75; }
.l1-google, .l1-continue { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 56px; width: 100%; padding: 15px 18px; border: 1px solid #9bb6cb; border-radius: 8px; background: #fff; color: var(--l1-ink); text-decoration: none; font-size: .9375rem; font-weight: 600; line-height: 1.45; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.l1-google:hover { border-color: var(--l1-blue); background: #f5faff; box-shadow: 0 4px 14px #005fab0d; }
.l1-google-mark { flex: 0 0 auto; width: 22px; height: 22px; }
.l1-google > span { min-width: 0; }
.l1-google-arrow { width: 18px; height: 18px; margin-left: auto; color: var(--l1-blue); }
.l1-google.is-busy { background: #eef6fc; cursor: progress; }
.l1-google.is-busy .l1-google-arrow { animation: l1-progress 1s ease-in-out infinite alternate; }
@keyframes l1-progress { to { transform: translateX(4px); } }
.l1-domain { margin: 16px 0 0; color: var(--l1-muted); font-size: .75rem; line-height: 1.8; text-align: center; }
.l1-domain strong { display: block; color: var(--l1-blue-strong); font-size: .8125rem; font-weight: 600; overflow-wrap: anywhere; }
.l1-permission-note { max-width: 290px; margin: 12px auto 0; color: var(--l1-muted); font-size: .75rem; text-align: center; line-height: 1.6; }
.l1-error { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; padding: 14px; border: 1px solid #dfb8b4; border-radius: 8px; background: #fff5f3; color: #963d35; }
.l1-error .l1-icon { width: 20px; height: 20px; }
.l1-error p { min-width: 0; margin: 0; font-size: .875rem; overflow-wrap: anywhere; }
.l1-user { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding: 16px; border: 1px solid var(--l1-line); border-radius: 10px; background: #f7faff; }
.l1-user-avatar { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #e3f0fa; color: var(--l1-blue); }
.l1-user-details { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; font-size: .875rem; }
.l1-user-details span { color: var(--l1-muted); font-size: .8125rem; }
.l1-continue { border-color: var(--l1-blue); background: var(--l1-blue); color: #fff; }
.l1-continue:hover { background: var(--l1-blue-strong); }
.l1-continue .l1-icon { width: 19px; height: 19px; }
.l1-logout { margin: 10px 0 0; text-align: center; }
.l1-logout button { min-height: 44px; padding: 10px 24px; border: 0; border-radius: 6px; background: transparent; color: var(--l1-blue); font-size: .875rem; cursor: pointer; }
.l1-logout button:hover { background: #eef6fc; }
.l1-public { display: flex; align-items: flex-start; gap: 14px; width: 100%; max-width: 410px; margin: clamp(18px, 2.8svh, 30px) auto 0; padding-top: clamp(16px, 2.5svh, 24px); border-top: 1px solid var(--l1-line); }
.l1-public-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; color: var(--l1-blue); background: #eef6fc; }
.l1-public-icon .l1-icon { width: 20px; height: 20px; }
.l1-public-copy { min-width: 0; }
.l1-public h2 { margin: 0 0 5px; font-size: .875rem; font-weight: 700; }
.l1-public p { margin: 0; color: var(--l1-muted); font-size: .8125rem; line-height: 1.65; }
.l1-public-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 5px; color: var(--l1-blue); font-size: .8125rem; font-weight: 700; text-decoration: none; }
.l1-public-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.l1-public-link .l1-icon { width: 18px; height: 18px; }

/* Documentos e identidad institucional; la ilustración no es una validación real. */
.l1-story { grid-area: story; position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; padding: clamp(24px, 4svh, 40px) 42px clamp(18px, 2.6svh, 26px); border-radius: 19px 0 0 19px; background: linear-gradient(145deg, #004780, #0065ab); color: #fff; }
.l1-story::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: repeating-linear-gradient(0deg, transparent 0 47px, #ffffff04 47px 48px), repeating-linear-gradient(90deg, transparent 0 47px, #ffffff04 47px 48px); pointer-events: none; }
.l1-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #c4edfa; font-size: .625rem; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; }
.l1-kicker-line { width: 24px; height: 3px; background: var(--l1-yellow); flex: 0 0 auto; }
.l1-story-title { margin: 0; font-size: clamp(2.375rem, min(4vw, 6svh), 3.75rem); font-weight: 700; line-height: 1.06; letter-spacing: -2px; overflow-wrap: anywhere; }
.l1-story-title span { color: var(--l1-yellow); }
.l1-story-text { max-width: 455px; margin: 18px 0 22px; color: #e0eff9; font-size: .9375rem; line-height: 1.7; }
.l1-document-types { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 0; list-style: none; }
.l1-document-types li { display: flex; align-items: center; gap: 7px; color: #d6edfa; font-size: .6875rem; line-height: 1.5; }
.l1-document-types li::before { content: ''; flex: 0 0 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--l1-cyan); }
.l1-scene { position: relative; isolation: isolate; flex: 1 0 auto; display: flex; justify-content: flex-end; align-items: flex-end; min-height: 220px; margin-top: 18px; padding: 0 10px 26px; }
.l1-umi { position: relative; z-index: 2; width: auto; height: clamp(220px, 34svh, 330px); max-width: 64%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 14px 16px #00264b30); }
.l1-scene-ring { position: absolute; z-index: -1; bottom: 26px; right: 0; width: min(83%, 350px); aspect-ratio: 1; border: 1px solid #91d4f12b; border-radius: 50%; background: radial-gradient(circle, #22bae025, transparent 68%); }
.l1-scene-ring::before { content: ''; position: absolute; inset: 22px; border: 1px solid #91d4f115; border-radius: 50%; }
.l1-document-art { position: absolute; z-index: 1; left: 5%; bottom: 72px; width: 43%; max-width: 205px; padding: 20px; border: 1px solid #ffffffc4; border-radius: 10px; background: #f6fbff; color: var(--l1-blue); box-shadow: 0 20px 40px #002b5633; transform: rotate(-8deg); }
.l1-document-art-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 2px solid #d8e8f2; }
.l1-document-art-top > span { font-size: 16px; font-weight: 800; letter-spacing: -1px; }
.l1-document-art-top .l1-icon { width: 24px; height: 24px; }
.l1-document-rule { display: block; height: 5px; width: 100%; margin-top: 10px; border-radius: 3px; background: #dce8f1; }
.l1-document-rule.is-short { width: 65%; background: #9fc4df; }
.l1-document-art-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 24px; }
.l1-document-signature { height: 16px; width: 48%; border-bottom: 2px solid #a4c7de; transform: skewY(-8deg); }
.l1-document-seal { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #87c5ae; color: #287255; background: #e7f5ed; }
.l1-document-seal .l1-icon { width: 21px; height: 21px; }
.l1-scene-caption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; color: #d7edfa; font-size: .6875rem; }
.l1-scene-caption .l1-icon { width: 17px; height: 17px; color: #89dded; }
.l1-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; width: min(1440px, 100% - 80px); margin: 0 auto; padding: 0 0 clamp(4px, 1svh, 12px); color: var(--l1-muted); font-size: .6875rem; }
.l1-footer a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }

/* Reducir espacio decorativo en laptops; el contenido conserva su altura natural. */
@media (min-width: 901px) and (max-height: 800px) {
    .l1-header-inner { min-height: 64px; }
    .l1-brand img { width: 190px; }
    .l1-shell { margin-block: 12px 8px; }
    .l1-story { padding: 24px 34px 18px; }
    .l1-story-title { font-size: 2.625rem; }
    .l1-story-text { margin: 14px 0 18px; }
    .l1-kicker { margin-bottom: 12px; }
    .l1-scene { min-height: 206px; margin-top: 12px; }
    .l1-umi { height: clamp(180px, calc(100svh - 520px), 250px); }
    .l1-scene-ring { width: min(83%, 300px); }
    .l1-document-art { max-width: 150px; bottom: 48px; padding: 12px; }
    .l1-document-art-top { margin-bottom: 14px; padding-bottom: 12px; }
    .l1-access { padding: 20px 42px; }
    .l1-access-heading { margin-bottom: 12px; }
    .l1-card h1 { font-size: 2rem; }
    .l1-description { margin: 12px 0 16px; line-height: 1.6; }
    .l1-google, .l1-continue { min-height: 52px; padding-block: 13px; }
    .l1-domain { margin-top: 12px; }
    .l1-permission-note { margin-top: 8px; }
    .l1-public { margin-top: 16px; padding-top: 16px; }
    .l1-footer { padding-bottom: 4px; }
}
@media (max-width: 1100px) {
    .l1-header-inner, .l1-shell, .l1-footer { width: calc(100% - 48px); }
    .l1-header-inner { gap: 20px; }
    .l1-product { padding-left: 20px; }
    .l1-story { padding-inline: 28px; }
    .l1-access { padding-inline: 30px; }
}
@media (max-width: 900px) {
    .l1-header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; min-height: 84px; padding-block: 12px; }
    .l1-brand { grid-column: 1; grid-row: 1; }
    .l1-brand img { width: 190px; }
    .l1-product { grid-column: 1; grid-row: 2; padding: 0; border: 0; font-size: .6875rem; }
    .l1-product .l1-icon { display: none; }
    .l1-header-link { grid-column: 2; grid-row: 1 / 3; margin: 0; }
    .l1-shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'access' 'story'; max-width: 620px; margin-top: 24px; }
    .l1-access { padding: 32px; }
    .l1-card { max-width: 460px; }
    .l1-card h1 br { display: none; }
    .l1-card h1 span::before { content: ' '; }
    .l1-card h1 { font-size: 2rem; line-height: 1.16; letter-spacing: -1px; }
    .l1-access-heading { margin-bottom: 16px; }
    .l1-description { margin: 14px 0 22px; }
    .l1-public { max-width: 460px; margin-top: 24px; padding-top: 22px; }
    .l1-story { border-radius: 0 0 19px 19px; padding: 30px; }
    .l1-story-title { font-size: 2.625rem; }
    .l1-story-text { margin-block: 14px 18px; font-size: .875rem; }
    .l1-scene { min-height: 250px; max-width: 400px; width: 100%; margin: 18px auto 0; }
    .l1-umi { height: 245px; }
    .l1-document-art { max-width: 170px; padding: 16px; bottom: 60px; }
    .l1-document-art-top { margin-bottom: 14px; padding-bottom: 12px; }
    .l1-footer { justify-content: center; text-align: center; gap: 0 16px; max-width: 620px; padding-bottom: 16px; }
    .l1-footer-note { width: 100%; }
}
@media (max-width: 480px) {
    .l1-header-inner { width: calc(100% - 32px); min-height: 76px; column-gap: 12px; }
    .l1-brand img { width: 160px; }
    .l1-header-link { font-size: .75rem; gap: 6px; padding-left: 0; }
    .l1-header-link .l1-icon { width: 16px; height: 16px; }
    .l1-shell { width: calc(100% - 24px); margin-top: 16px; border-radius: 14px; }
    .l1-access { padding: 24px 20px; }
    .l1-card h1 { font-size: 1.875rem; }
    .l1-description { font-size: .875rem; line-height: 1.65; }
    .l1-public { gap: 10px; }
    .l1-public-icon { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; }
    .l1-public h2 { line-height: 1.5; }
    .l1-public-link { gap: 5px; }
    .l1-story { padding: 26px 22px 22px; border-radius: 0 0 13px 13px; }
    .l1-story-title { font-size: 2.375rem; letter-spacing: -1.4px; }
    .l1-kicker { font-size: .5625rem; letter-spacing: 1.3px; }
    .l1-scene { min-height: 230px; }
    .l1-umi { height: 220px; }
    .l1-document-art { width: 46%; padding: 12px; left: 1%; }
    .l1-document-art-top { margin-bottom: 10px; padding-bottom: 10px; }
    .l1-document-art-bottom { margin-top: 18px; }
    .l1-document-seal { width: 28px; height: 28px; }
    .l1-footer { width: calc(100% - 32px); }
}
@media (max-width: 360px) {
    .l1-brand img { width: 145px; }
    .l1-header-link .l1-icon { display: none; }
    .l1-access { padding: 22px 16px; }
    .l1-card h1 { font-size: 1.75rem; }
    .l1-google { gap: 10px; padding-inline: 12px; font-size: .875rem; }
    .l1-google-arrow { display: none; }
    .l1-public-icon { display: none; }
    .l1-story-title { font-size: 2.125rem; }
    .l1-story { padding-inline: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .l1 *, .l1 *::before, .l1 *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
    .l1-shell, .l1-google, .l1-continue, .l1-user, .l1-error, .l1-symbol, .l1-public-icon { border: 1px solid ButtonText; }
    .l1 :is(a, button):focus-visible { outline-color: Highlight; }
}
