* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #243c33; --muted: #737f78; --green: #285c45; --accent: #d9edb5; --line: #e5e9e2; --surface: #f5f6f3; }
body { margin: 0; color: var(--ink); background: var(--surface); font: 16px/1.55 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: var(--green); text-underline-offset: 4px; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.icon { flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 3px solid #6d9c79; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: white; padding: 12px; }
.skip-link:focus { top: 10px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 650; margin-bottom: 12px; }
h2 { font-size: 1.25rem; letter-spacing: -.03em; line-height: 1.3; }
.eyebrow { font-size: .65rem; letter-spacing: .16em; font-weight: 700; color: var(--green); margin-bottom: 14px; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .8rem; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 2rem; font-weight: 750; letter-spacing: -.07em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: white; background: var(--green); }
.brand-dot { color: #82a55d; }
.button, button[type=submit] { min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 10px; background: var(--green); color: white; font-weight: 600; font-size: .88rem; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .18s, transform .18s; }
.button:hover, button[type=submit]:hover { background: #1c4734; }
button:active, .button:active { transform: translateY(1px); }
form { display: grid; gap: 12px; }
label { font-weight: 550; font-size: .84rem; }
input, select { width: 100%; min-height: 52px; padding: 12px 15px; color: var(--ink); background: #fff; border: 1px solid #dce2da; border-radius: 10px; outline-offset: 2px; }
input::placeholder { color: #929c95; }
input:focus, select:focus { border-color: #718e70; }
.alert { padding: 13px 16px; background: #fff1ed; color: #9b3626; border: 1px solid #f0d6ce; border-radius: 10px; font-size: .88rem; }
/* Acceso */
.auth-page { background: #fff; }
.auth-main { min-height: 100svh; display: grid; align-items: center; }
.login-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; padding: 20px; gap: 20px; }
.login-story { background: #eaf0e5; border-radius: 22px; padding: 36px 44px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.story-content { max-width: 440px; margin: 60px auto 20px; }
.story-pill { display: inline-block; font-size: .6rem; font-weight: 700; letter-spacing: .15em; border: 1px solid #c8d5c0; padding: 7px 11px; border-radius: 30px; margin-bottom: 24px; }
.story-content h1 { font-size: clamp(2.5rem, 4.1vw, 4.5rem); font-weight: 550; letter-spacing: -.055em; line-height: 1.08; margin-bottom: 26px; }
.story-content > p { max-width: 320px; color: #6d7d69; font-size: .95rem; line-height: 1.8; }
.route-art { height: 180px; position: relative; margin: 34px 20px 12px 0; }
.route-line { position: absolute; left: 8%; right: 8%; top: 55px; height: 80px; border: 1.5px dashed #a4b696; border-top: 0; border-radius: 0 0 60px 60px; }
.route-point { position: absolute; top: 48px; width: 14px; height: 14px; border: 4px solid #eaf0e5; background: #57784e; border-radius: 50%; box-shadow: 0 0 0 1px #9db18e; }
.route-point.start { left: calc(8% - 6px); }
.route-point.end { right: calc(8% - 6px); }
.route-bus { position: absolute; left: calc(50% - 34px); top: 93px; display: grid; place-items: center; width: 68px; height: 68px; background: #d4e5c3; border: 6px solid #eaf0e5; border-radius: 22px; color: var(--green); transform: rotate(-9deg); }
.route-origin, .route-destination { position: absolute; top: 13px; color: #6d7d69; font-size: .66rem; }
.route-origin { left: 1%; } .route-destination { right: 0; }
.story-footer { display: flex; align-items: center; gap: 8px; color: #65785c; font-size: .7rem; }
.story-footer-dot { width: 6px; height: 6px; background: #789562; border-radius: 50%; }
.login-form-section { position: relative; display: grid; align-content: center; padding: 64px 36px 100px; }
.login-form-wrap { width: 100%; max-width: 360px; margin: auto; }
.login-form-wrap .eyebrow { margin-bottom: 15px; }
.login-form-wrap h2 { font-size: clamp(1.8rem, 2.5vw, 2.35rem); font-weight: 600; letter-spacing: -.05em; margin-bottom: 12px; }
.login-description { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.login-form { gap: 22px; }
.field { display: grid; gap: 9px; }
.password-field { position: relative; }
.password-field input { padding-right: 55px; }
.password-toggle { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; border: 0; border-radius: 7px; color: #7b8b7b; background: transparent; }
.password-toggle:hover, .password-toggle[aria-pressed=true] { background: #edf2e8; color: var(--green); }
button.login-submit { width: 100%; min-height: 52px; justify-content: space-between; margin-top: 6px; }
.login-security { display: flex; justify-content: center; align-items: center; gap: 7px; color: #879183; font-size: .72rem; margin-top: 25px; }
.login-footer { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #9aA296; font-size: .65rem; }
.mobile-login-brand { display: none; }
.auth-card { width: min(480px, calc(100% - 32px)); margin: 40px auto; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.auth-card form { margin-top: 25px; }
.auth-card .hint { margin: 0 0 6px; }
/* Espace de travail */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 234px; padding: 32px 22px 20px; border-right: 1px solid var(--line); background: #fcfdfb; display: flex; flex-direction: column; }
.sidebar .brand { padding: 0 12px; }
.nav-label { color: #98a193; font-size: .56rem; font-weight: 650; letter-spacing: .13em; margin: 52px 12px 16px; }
.desktop-nav { display: grid; gap: 8px; }
.desktop-nav a { min-height: 49px; display: flex; align-items: center; gap: 13px; padding: 12px 15px; border-radius: 10px; text-decoration: none; color: #7a8578; font-size: .86rem; font-weight: 500; }
.desktop-nav a:hover { background: #f0f3ec; }
.desktop-nav a.selected { color: var(--green); background: #e9efe2; font-weight: 650; }
.sidebar-note { margin: auto 0 28px; padding: 19px 16px; background: #f0f3eb; border-radius: 12px; }
.note-icon { color: #6f875e; display: block; margin-bottom: 14px; }
.sidebar-note strong { font-size: .79rem; font-weight: 600; }
.sidebar-note p { color: #8b9584; font-size: .7rem; line-height: 1.7; margin: 8px 0 0; }
.sidebar-footer { padding: 15px 3px 0; border-top: 1px solid var(--line); }
.version { font-size: .51rem; letter-spacing: .11em; color: #99a18f; }
.workspace { margin-left: 234px; }
.topbar { min-height: 87px; padding: 18px 42px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fcfdfb; }
.workspace-label { color: #8d9788; font-size: .78rem; }
.account { display: flex; align-items: center; gap: 11px; }
.avatar { display: grid; place-items: center; background: #e5ebdb; color: #586a48; font-size: .68rem; font-weight: 650; width: 37px; height: 37px; border-radius: 50%; }
.account-info { display: grid; gap: 1px; min-width: 85px; }
.account-info strong { font-size: .76rem; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-info > span { color: #95a08d; font-size: .6rem; }
.account form { margin-left: 12px; }
button.icon-button { width: 44px; height: 44px; min-height: 44px; border: 1px solid var(--line); padding: 0; background: transparent; color: #77846c; }
button.icon-button:hover { background: #edf1e8; }
.mobile-brand, .mobile-nav { display: none; }
.app-main { max-width: 1360px; padding: 40px 42px 25px; margin: auto; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.dashboard-heading .eyebrow { font-size: .56rem; margin-bottom: 10px; }
.dashboard-heading h1 { margin-bottom: 9px; overflow-wrap: anywhere; }
.dashboard-heading .muted { font-size: .82rem; margin: 0; }
.date-chip { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; border: 1px solid var(--line); border-radius: 8px; padding: 10px 13px; color: #78846f; font-size: .68rem; background: #fcfdfb; }
.welcome-banner { position: relative; min-height: 236px; border-radius: 16px; background: #e8eedf; overflow: hidden; padding: 30px 34px; display: flex; align-items: center; }
.welcome-copy { position: relative; z-index: 1; width: 65%; }
.banner-kicker { color: #7c8e68; font-size: .55rem; letter-spacing: .14em; font-weight: 650; }
.welcome-copy h2 { font-size: clamp(1.4rem, 2.3vw, 2rem); margin: 12px 0; font-weight: 550; }
.welcome-copy > p { max-width: 400px; color: #829075; font-size: .78rem; line-height: 1.8; margin-bottom: 22px; }
.button.banner-button { min-height: 44px; font-size: .73rem; padding: 10px 16px; }
.banner-operator { display: inline-flex; gap: 10px; align-items: center; color: var(--green); font-size: .8rem; }
.banner-art { position: absolute; right: 0; top: 0; bottom: 0; width: 33%; display: grid; place-items: center; }
.art-orbit { position: absolute; border: 1px solid #d7e1ca; width: 230px; height: 230px; border-radius: 50%; }
.orbit-two { width: 320px; height: 320px; } .orbit-three { width: 410px; height: 410px; }
.art-bus { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 28px; background: #d6e3c7; color: #6b8758; transform: rotate(-10deg); box-shadow: 10px 13px 0 #dfe8d4; }
.art-dot { position: absolute; width: 10px; height: 10px; background: #aec594; border: 3px solid #e8eedf; border-radius: 50%; }
.dot-one { top: 24%; left: 12%; } .dot-two { bottom: 16%; right: 16%; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 36px 0 20px; }
.section-heading h2 { font-size: 1.04rem; font-weight: 600; margin-bottom: 6px; }
.section-heading p { font-size: .75rem; margin: 0; }
.workspace-count { font-size: .65rem; color: #8d9886; white-space: nowrap; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module { display: flex; flex-direction: column; background: #fcfdfb; border: 1px solid var(--line); border-radius: 13px; padding: 22px; color: var(--ink); text-decoration: none; min-height: 212px; }
.module-ready { border-color: #b5c9a4; transition: border .2s, box-shadow .2s; }
.module-ready:hover { border-color: #73945d; box-shadow: 0 5px 20px #254b3010; }
.module-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.module-icon { display: grid; place-items: center; background: #f0f3eb; color: #95a087; border-radius: 10px; width: 43px; height: 43px; }
.module-ready .module-icon { background: #e7efdc; color: #5e7e47; }
.badge { display: inline-flex; align-items: center; border: 1px solid #e7ebe1; color: #8b9681; padding: 4px 8px; border-radius: 20px; font-size: .53rem; white-space: nowrap; }
.badge.active { background: #f0f6e7; color: #698a4c; border-color: #e0ebd1; }
.module h3 { font-size: .9rem; font-weight: 600; margin-bottom: 7px; letter-spacing: -.02em; }
.module > p { color: #919b88; font-size: .72rem; line-height: 1.7; margin-bottom: 22px; max-width: 245px; }
.module-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; color: #9ba490; font-size: .63rem; }
.module-ready .module-bottom { color: #5c7d44; font-weight: 600; }
.pending-dot { width: 5px; height: 5px; border-radius: 50%; background: #c6cebd; }
.dashboard-footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; color: #98a08f; font-size: .6rem; }
.connection-status { display: flex; align-items: center; gap: 7px; }
.connection-dot { width: 6px; height: 6px; background: #c2c9b9; border-radius: 50%; }
.connection-status[data-state=online] .connection-dot { background: #78a264; }
.connection-status[data-state=offline] .connection-dot { background: #c1a059; }
/* Usuarios y formularios */
.panel { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 26px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.page-heading .muted { font-size: .88rem; }
.user-form { max-width: 600px; margin-top: 24px; }
.user-form label { margin-top: 6px; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.check input { width: 20px; min-height: 20px; accent-color: var(--green); }
.table-wrap { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font-size: .85rem; }
th, td { padding: 18px 22px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); background: #fafbf8; font-size: .7rem; }
td a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 10px; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-size: .85rem; margin-bottom: 15px; }
@media (min-width: 1600px) { .login-shell { max-width: 1800px; margin: auto; } }
@media (max-width: 1199px) { .sidebar { width: 204px; padding: 28px 16px 18px; } .workspace { margin-left: 204px; } .app-main { padding: 32px 28px 24px; } .topbar { padding: 16px 28px; } .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .login-story { padding: 30px; } .story-content h1 { font-size: 3.2rem; } .login-form-section { padding: 60px 28px 90px; } }
@media (max-width: 900px) { .login-shell { padding: 14px; gap: 0; grid-template-columns: .85fr 1fr; } .login-story { padding: 28px; } .story-content h1 { font-size: 2.6rem; } .login-form-section { padding: 50px 30px 80px; } .story-content { margin-top: 40px; } .route-art { margin-right: 0; } .dashboard-heading { align-items: flex-start; } .date-chip { padding: 8px; font-size: .6rem; } .welcome-banner { padding: 28px; } .welcome-copy { width: 75%; } .banner-art { right: -25px; opacity: .6; } }
@media (max-width: 767px) { .sidebar { display: none; } .workspace { margin-left: 0; } .topbar { min-height: 74px; padding: 12px 22px; position: sticky; top: 0; z-index: 10; background: #fcfdfbf2; backdrop-filter: blur(16px); } .workspace-label { display: none; } .mobile-brand { display: inline-flex; font-size: 1.7rem; } .mobile-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; } .account { gap: 9px; } .account form { margin-left: 0; } .account-info { min-width: auto; } .account-info strong { max-width: 100px; } .app-main { padding: 28px 22px calc(102px + env(safe-area-inset-bottom)); } .mobile-nav { display: flex; justify-content: center; gap: 8px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; border-top: 1px solid var(--line); background: #fcfdfbf5; backdrop-filter: blur(18px); padding: 8px 20px calc(8px + env(safe-area-inset-bottom)); } .mobile-nav a { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 54px; width: min(45%, 180px); color: #8b9583; text-decoration: none; font-size: .62rem; border-radius: 12px; } .mobile-nav a.selected { background: #edf2e6; color: var(--green); } .dashboard-heading { margin-bottom: 24px; } .dashboard-heading h1 { font-size: 2rem; } .dashboard-heading .eyebrow { font-size: .52rem; } .date-chip { border: 0; background: none; padding: 0; margin-top: 5px; } .date-chip .icon { display: none; } .welcome-copy { width: 75%; } .welcome-copy h2 { font-size: 1.6rem; } .welcome-copy > p { max-width: 300px; } .welcome-banner { min-height: 225px; } .module-grid { gap: 14px; } .module { padding: 20px; } .workspace-count { display: none; } }
@media (max-width: 600px) { .login-shell { display: block; padding: 0; min-height: 100svh; } .login-story { display: none; } .login-form-section { min-height: 100svh; padding: 36px 28px 85px; } .mobile-login-brand { display: inline-flex; margin-bottom: 62px; } .login-form-wrap { max-width: 390px; } .login-form-wrap h2 { font-size: 2.1rem; } .login-description { margin-bottom: 32px; } .login-form { gap: 23px; } .login-footer { bottom: calc(20px + env(safe-area-inset-bottom)); } .app-main { padding-left: 18px; padding-right: 18px; } .topbar { padding-left: 18px; padding-right: 18px; } .avatar { display: none; } .dashboard-heading { display: block; position: relative; } .date-chip { margin-top: 16px; font-size: .65rem; } .welcome-banner { padding: 24px; min-height: 245px; } .welcome-copy { width: 100%; } .welcome-copy h2 { max-width: 230px; font-size: 1.65rem; } .welcome-copy > p { max-width: 250px; padding-right: 10px; } .banner-art { right: -63px; top: 20px; width: 150px; opacity: .3; } .art-bus { width: 80px; height: 80px; border-radius: 22px; } .art-bus .icon { width: 44px; height: 44px; } .art-orbit { width: 165px; height: 165px; } .orbit-two { width: 250px; height: 250px; } .orbit-three { width: 330px; height: 330px; } .section-heading { margin-top: 29px; } .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .module { padding: 16px; min-height: 220px; } .module-top { flex-wrap: wrap; margin-bottom: 15px; gap: 12px; } .module-icon { width: 38px; height: 38px; } .module-icon .icon { width: 22px; height: 22px; } .module > p { font-size: .69rem; } .module-bottom { font-size: .6rem; } .badge { font-size: .5rem; padding: 3px 6px; } .dashboard-footer > span { display: none; } .panel { padding: 20px; } .table-wrap { padding: 0; } .page-heading { gap: 6px; } .page-heading .button { width: 100%; } }
@media (max-width: 359px) { .login-form-section { padding-left: 22px; padding-right: 22px; } .module-grid { grid-template-columns: 1fr; } .module { min-height: 190px; } .module-top { flex-wrap: nowrap; } .account-info { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
/* Lectura cómoda en pantallas táctiles. */
.login-shell { width: 100%; }
.module > p { color: #6f7d66; font-size: .84rem; }
.module h3 { font-size: 1rem; }
.module-bottom { font-size: .75rem; }
.badge { font-size: .65rem; }
.section-heading p { font-size: .85rem; }
.welcome-copy > p { color: #657854; font-size: .88rem; }
.dashboard-heading .muted { font-size: .9rem; }
.login-security { color: #74816d; }
@media (max-width: 767px) { .mobile-nav a { font-size: .73rem; } .account-info > span { font-size: .68rem; } }
@media (max-width: 600px) { .module > p { font-size: .82rem; } .module-bottom { font-size: .71rem; } .module-top .badge { font-size: .6rem; } .module { min-height: 242px; } }
/* Respuesta visual durante solicitudes y navegación. */
.page-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 100; overflow: hidden; background: #dce8d3; opacity: 0; pointer-events: none; transition: opacity .15s; }
.page-progress > span { display: block; width: 35%; height: 100%; background: var(--green); transform: translateX(-100%); }
.is-loading .page-progress { opacity: 1; }
.is-loading .page-progress > span { animation: progress-travel 1.15s ease-in-out infinite; }
.loading-notice { position: fixed; right: 25px; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 12px; max-width: min(390px, calc(100vw - 36px)); padding: 14px 18px; border: 1px solid #d8e2cf; background: #fcfdfb; color: var(--green); border-radius: 12px; box-shadow: 0 8px 30px #1f3c2415; font-size: .82rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; pointer-events: none; }
.loading-notice.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.loading-spinner { display: inline-block; flex-shrink: 0; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: loading-spin .7s linear infinite; }
button.is-submitting { cursor: wait; opacity: .8; }
button.login-submit.is-submitting { justify-content: center; }
.app-main, .login-form-wrap, .auth-card { animation: content-enter .25s ease-out both; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes progress-travel { to { transform: translateX(390%); } }
@keyframes content-enter { from { opacity: .5; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 767px) { .app-page .loading-notice { bottom: calc(90px + env(safe-area-inset-bottom)); } .loading-notice { right: 18px; } }
@media (prefers-reduced-motion: reduce) { .app-main, .login-form-wrap, .auth-card, .loading-spinner, .is-loading .page-progress > span { animation: none; } .is-loading .page-progress > span { width: 100%; transform: none; } .loading-notice { transition: none; } }
