*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f3f6fa;color:#0f172a}
.topbar{position:sticky;top:0;z-index:20;background:#061634;color:white;padding:14px 24px;display:flex;justify-content:space-between;align-items:center;gap:18px;box-shadow:0 8px 24px #0003}
.brand{display:flex;gap:12px;align-items:center;background:transparent;border:0;color:white;cursor:pointer;text-align:left;min-width:300px}
.brand img{width:118px;height:42px;object-fit:contain;object-position:left center}
.brand-copy{display:grid;gap:2px;border-left:1px solid #ffffff24;padding-left:12px}
.brand-copy b{display:block;font-size:18px;line-height:1.05;color:white;text-shadow:none}
.brand-copy small{display:block;color:#facc15;font-size:12px;text-transform:uppercase;font-weight:900}
.brand-mark{width:52px;height:52px;border:3px solid #facc15;border-radius:50%;display:grid;place-items:center;color:#facc15;font-size:30px;font-weight:900}
.brand > b{display:block;font-size:28px;line-height:1;color:#facc15;text-shadow:1px 1px 0 #2563eb}
.brand > small{display:block;color:white;font-weight:800;text-align:left}
nav{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
nav button{background:transparent;color:white;border:0;border-radius:8px;padding:10px 12px;font-weight:800;cursor:pointer}
nav button:hover{background:#ffffff18}
.nav-primary{background:#2563eb}
main{min-height:calc(100vh - 80px)}
.tab{display:none}
.tab.active{display:block}
.tab:not(.landing){padding:26px}
h1,h2,h3,p{margin-top:0}
p{color:#475569;line-height:1.5}
.hero{min-height:620px;background-image:linear-gradient(90deg,#061634f0 0%,#061634c8 34%,#0616343d 68%,#06163440 100%),url("assets/crisali-volvo-real-hero.png");background-size:cover;background-position:center right;display:flex;align-items:center;padding:52px 44px}
.hero-copy{width:100%;max-width:1420px;color:white}
.hero-logo{font-size:112px;font-weight:900;letter-spacing:0;color:#facc15;text-shadow:3px 3px 0 #2563eb,0 3px 20px #0008;line-height:.9;margin-bottom:30px}
.hero-brand-lockup{display:grid;grid-template-columns:minmax(300px,470px) minmax(520px,860px);gap:52px;align-items:center}
.hero-logo-img{width:100%;max-height:270px;object-fit:contain;object-position:left center;filter:drop-shadow(0 18px 24px #0008)}
.hero-message{border-left:4px solid #facc15;padding:20px 0 20px 32px}
.hero h1{font-size:48px;text-transform:uppercase;line-height:1.08;margin-bottom:18px;max-width:820px}
.hero p{font-size:22px;color:#e2e8f0;max-width:780px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:24px}
.primary,.mini,.ghost,.install-button{background:#2563eb;color:white;border:0;border-radius:8px;padding:12px 16px;font-weight:800;cursor:pointer;margin-top:12px}
.ghost{background:transparent;border:1px solid #dbeafe}
.install-button{background:#facc15;color:#0b1b3f;border:1px solid #facc15}
.install-button:hover{background:#fde047}
.mini{padding:8px 10px;margin:4px;font-size:12px}
.landing-band{padding:34px 44px 48px;background:white;text-align:center}
.eyebrow{color:#2563eb;text-transform:uppercase;font-size:13px;font-weight:900;letter-spacing:0;margin-bottom:6px}
.landing-band h2,.about-band h2,.contact-band h2{font-size:30px;text-transform:uppercase;color:#0b1b3f;margin-bottom:20px}
.service-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;text-align:center}
.service-card{border:1px solid #e5e7eb;border-radius:8px;padding:22px 14px;background:#f8fafc;box-shadow:0 10px 24px #0f172a12}
.service-card b{display:block;color:#0b1b3f;text-transform:uppercase;margin-bottom:10px}
.service-card span{display:block;color:#334155;font-size:13px;line-height:1.45}
.about-band{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:center;background:#061634;color:white;padding:44px}
.about-band p{color:#dbeafe}
.about-photo{height:270px;border-radius:8px;background-image:url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1200&q=80");background-size:cover;background-position:center;box-shadow:0 16px 32px #0005}
.contact-band{display:grid;grid-template-columns:1fr 1.3fr;gap:32px;background:#0b1b3f;color:white;padding:44px}
.contact-band p{color:#e2e8f0}
.contact-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.contact-form textarea{grid-column:1 / -1;min-height:110px}
.login-panel{max-width:460px;margin:54px auto;background:white;border-radius:8px;padding:34px;box-shadow:0 18px 40px #0002;text-align:center}
.login-panel img{width:260px;max-width:100%;margin-bottom:16px}
.portal-layout{display:grid;grid-template-columns:360px 1fr;gap:22px;align-items:start}
.portal-login-card{position:sticky;top:112px}
.portal-login-card img{width:220px;max-width:100%;margin-bottom:14px}
.portal-doc-panel{min-height:520px}
.portal-blocks{grid-template-columns:repeat(2,1fr)}
.portal-blocks .docgrid{grid-template-columns:1fr}
.portal-progress{border:1px solid #dbe3ef;background:#eff6ff;border-radius:8px;padding:12px;margin:12px 0;color:#0b1b3f}
.portal-progress b{font-size:22px;color:#2563eb}
.client-portal-tab{background:#eef2f7;min-height:calc(100vh - 80px)}
.client-login-card{border-top:4px solid #facc15}
.portal-lead{font-size:15px;color:#334155;margin-bottom:18px}
.portal-help{margin-top:18px;border-top:1px solid #e5e7eb;padding-top:14px;display:grid;gap:5px;color:#475569;font-size:13px}
.portal-help b{color:#0f172a}
.client-doc-panel{padding:26px}
.client-portal-hero{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;background:#061634;color:white;border-radius:8px;padding:18px;margin:4px 0 18px}
.client-portal-hero h3{font-size:26px;margin:0 0 6px;color:white}
.client-portal-hero small{color:#cbd5e1}
.client-hero-copy .eyebrow{color:#facc15}
.client-tags{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.client-tags span{background:#ffffff14;border:1px solid #ffffff26;border-radius:999px;padding:5px 9px;color:white;font-size:12px;font-weight:800}
.client-progress-ring{width:112px;aspect-ratio:1;border-radius:50%;background:conic-gradient(#16a34a var(--pct),#334155 0);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;box-shadow:inset 0 0 0 10px #061634;border:1px solid #ffffff26}
.client-progress-ring b{font-size:25px;color:white}
.client-progress-ring span{font-size:11px;color:#cbd5e1;text-transform:uppercase;font-weight:800}
.client-metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin:14px 0}
.client-metrics div{background:white;border:1px solid #e5e7eb;border-radius:8px;padding:13px}
.client-metrics span{display:block;color:#64748b;font-size:12px;text-transform:uppercase;font-weight:900}
.client-metrics b{display:block;font-size:28px;margin-top:4px;color:#0f172a}
.client-metrics .ok{border-top:4px solid #16a34a}.client-metrics .todo{border-top:4px solid #64748b}.client-metrics .warn{border-top:4px solid #facc15}.client-metrics .bad{border-top:4px solid #dc2626}.client-metrics .drivers{border-top:4px solid #0f766e}
.client-steps{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}
.client-steps span{background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:10px 12px;color:#334155;font-size:13px;font-weight:700}
.client-steps b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#2563eb;color:white;margin-right:6px}
.client-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:flex-end;border-top:1px solid #e5e7eb;padding-top:18px;margin-top:6px}
.client-toolbar h3{margin:0;font-size:22px}
.client-filters{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.filter-chip{border:1px solid #cbd5e1;background:white;color:#0f172a;border-radius:999px;padding:8px 11px;font-weight:900;cursor:pointer}
.filter-chip.active{background:#0f172a;color:white;border-color:#0f172a}
.filter-chip b{margin-left:5px;color:inherit}
.concept-toolbar{align-items:center}
.concept-summary{background:#f8fafc;border:1px solid #e5e7eb;border-radius:999px;padding:8px 12px;color:#334155;font-weight:900}
.concept-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}
.concept-card{position:relative;text-align:left;border:1px solid #dbe3ef;background:white;border-radius:8px;padding:16px;display:grid;gap:9px;cursor:pointer;min-height:190px;color:#0f172a;box-shadow:0 10px 22px #0f172a0f}
.concept-card:hover{border-color:#2563eb;box-shadow:0 16px 34px #0f172a1a;transform:translateY(-2px)}
.concept-card::before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:#2563eb;border-radius:8px 8px 0 0}
.concept-card.tone-navy::before{background:#0b1b3f}.concept-card.tone-green::before{background:#16a34a}.concept-card.tone-yellow::before{background:#facc15}.concept-card.tone-steel::before{background:#64748b}.concept-card.tone-purple::before{background:#7c3aed}.concept-card.tone-red::before{background:#dc2626}.concept-card.tone-teal::before{background:#0f766e}.concept-card.tone-orange::before{background:#ea580c}
.concept-mark{width:46px;height:34px;border:1px solid #e5e7eb;border-radius:8px;display:grid;place-items:center;font-size:12px;font-weight:900;background:#f8fafc;color:#0b1b3f}
.concept-title{font-size:20px;font-weight:900}
.concept-desc{color:#475569;font-size:13px;line-height:1.35;min-height:36px}
.concept-progress{height:9px;background:#e5e7eb;border-radius:999px;overflow:hidden;display:block}
.concept-progress span{height:100%;background:#2563eb;display:block;border-radius:999px}
.tone-green .concept-progress span{background:#16a34a}.tone-yellow .concept-progress span{background:#facc15}.tone-steel .concept-progress span{background:#64748b}.tone-purple .concept-progress span{background:#7c3aed}.tone-red .concept-progress span{background:#dc2626}.tone-teal .concept-progress span{background:#0f766e}.tone-orange .concept-progress span{background:#ea580c}.tone-navy .concept-progress span{background:#0b1b3f}
.concept-meta{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.concept-meta b{font-size:24px}
.concept-meta small,.concept-alerts small{color:#64748b;font-size:12px;font-weight:800}
.concept-alerts{display:flex;gap:6px;flex-wrap:wrap}
.concept-alerts small{background:#f1f5f9;border-radius:999px;padding:4px 7px}
.concept-alerts .bad{background:#fee2e2;color:#991b1b}.concept-alerts .warn{background:#fef3c7;color:#92400e}
.back-button{margin:0 0 8px}
.concept-detail-progress{display:flex;gap:10px;align-items:center;margin-top:8px;min-width:260px}
.concept-detail-progress b{font-size:20px;color:#2563eb}
.concept-detail-progress .concept-progress{width:170px}
.client-driver-counts{display:flex;gap:8px;flex-wrap:nowrap;justify-content:flex-end;max-width:100%;overflow-x:auto;white-space:nowrap;padding-bottom:2px}
.client-driver-counts span{background:#f8fafc;border:1px solid #e5e7eb;border-radius:999px;padding:7px 10px;color:#334155;font-size:12px;font-weight:900}
.client-driver-counts b{color:#0f172a;margin-right:4px}
.operator-search-row{margin:14px 0 10px}
.operator-page-note{color:#64748b;font-weight:800;margin:14px 0 8px}
.client-operator-list{display:grid;border:1px solid #dbe3ef;border-radius:8px;overflow:hidden;background:white}
.client-operator-row{display:grid;grid-template-columns:minmax(220px,1.3fr) .9fr 1.2fr .9fr auto;gap:12px;align-items:center;padding:13px 16px;border-bottom:1px solid #e5e7eb}
.client-operator-row:last-child{border-bottom:0}
.client-operator-row:hover{background:#fbfdff}
.client-operator-row.is-baja{background:#f8fafc;color:#64748b}
.client-operator-row span{display:block;color:#64748b;font-size:12px;margin-bottom:4px}
.client-operator-row small{color:#64748b}
.operator-progress{display:flex;gap:8px;align-items:center}
.operator-progress b{min-width:42px}
.operator-progress span{height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden;display:block;min-width:92px;flex:1}
.operator-progress i{height:100%;display:block;background:#16a34a;border-radius:999px}
.operator-row-actions{display:flex;gap:6px;justify-content:flex-end;white-space:nowrap}
.operator-detail-head{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}
.operator-detail-head div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:12px}
.operator-detail-head span{display:block;color:#64748b;font-size:12px;margin-bottom:4px}
.operator-doc-actions{grid-template-columns:1fr 1fr auto 1fr auto auto auto}
.pagination{display:flex;gap:10px;align-items:center;justify-content:flex-end;margin-top:14px}
.pagination span{font-weight:900;color:#334155}
.pagination button[disabled]{opacity:.45;cursor:not-allowed}
.client-doc-sections{display:grid;gap:14px;margin-top:16px}
.client-doc-section{border:1px solid #dbe3ef;border-radius:8px;background:#f8fafc;overflow:hidden}
.client-section-title{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #e5e7eb;background:white}
.client-section-title h3{margin:0;font-size:18px}
.client-section-title span{background:#eff6ff;color:#2563eb;border-radius:999px;padding:4px 9px;font-weight:900}
.client-doc-list{display:grid}
.client-doc-row{display:grid;grid-template-columns:minmax(260px,1fr) minmax(170px,220px) minmax(250px,360px);gap:14px;align-items:center;padding:14px 16px;border-bottom:1px solid #e5e7eb;background:white}
.client-doc-row:last-child{border-bottom:0}
.client-doc-row:hover{background:#fbfdff}
.client-doc-main{display:flex;gap:12px;align-items:flex-start}
.status-dot{width:12px;height:12px;border-radius:50%;margin-top:4px;background:#94a3b8;flex:0 0 12px}
.client-doc-row.is-loaded .status-dot{background:#16a34a}.client-doc-row.is-warning .status-dot{background:#facc15}.client-doc-row.is-expired .status-dot{background:#dc2626}.client-doc-row.is-later .status-dot{background:#2563eb}
.client-doc-main b{display:block;font-size:15px;margin-bottom:3px}
.client-doc-main small{display:block;color:#64748b}
.client-doc-notes{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.client-doc-notes span{background:#f1f5f9;border-radius:999px;padding:4px 7px;color:#475569;font-size:12px}
.client-doc-status{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.client-doc-actions{display:grid;grid-template-columns:1fr auto auto;gap:6px;align-items:center}
.client-doc-actions input[type=file]{padding:8px;font-size:12px;background:#f8fafc}
.empty-state{border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc;padding:28px;text-align:center;margin-top:16px;color:#475569}
.empty-state b{display:block;color:#0f172a;margin-bottom:6px}
.ghost-mini{background:#f8fafc;color:#0f172a;border:1px solid #cbd5e1}
.company-first{border:1px solid #dbe3ef;background:#f8fafc;border-radius:8px;padding:14px;margin-bottom:14px}
.company-first select{font-size:16px;font-weight:800}
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}
.card{border:0;text-align:left;background:white;border-radius:8px;padding:26px;box-shadow:0 12px 28px #0001;cursor:pointer;color:#0f172a}
.card:hover{outline:3px solid #2563eb;transform:translateY(-2px)}
.card span{color:#64748b;font-size:18px;display:block}
.card b{font-size:42px;margin-top:6px;display:block}
.safety-home{border-top:5px solid #2563eb}
.safety-home-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}
.safety-home-head h2{font-size:30px;margin-bottom:6px;color:#0b1b3f}
.safety-home-head p{max-width:850px}
.safety-module-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.safety-module,.safety-concept{border:1px solid #dbe3ef;background:#f8fafc;color:#0f172a;border-radius:8px;padding:16px;text-align:left;cursor:pointer;min-height:118px}
.safety-module:hover,.safety-concept:hover{border-color:#2563eb;background:white;box-shadow:0 14px 26px #0f172a14;transform:translateY(-2px)}
.safety-module b,.safety-concept b{display:block;font-size:18px;color:#0b1b3f;margin-bottom:7px}
.safety-module span,.safety-concept span{display:block;color:#475569;font-size:13px;line-height:1.35}
.safety-concept-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.safety-concept{min-height:96px}
.safety-detail p{font-size:16px;margin-bottom:14px}
.safety-doc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:12px 0}
.safety-doc-grid div{border:1px solid #dbe3ef;background:#f8fafc;border-radius:8px;padding:12px}
.safety-doc-grid b{display:block;color:#0b1b3f;margin-bottom:5px}
.safety-doc-grid span{display:block;color:#64748b;font-size:13px}
.yellow{border-left:10px solid #facc15}.red{border-left:10px solid #ef4444}
.panel{background:white;border-radius:8px;padding:24px;margin-bottom:22px;box-shadow:0 12px 28px #0001}
.panel.focus{outline:3px solid #2563eb}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.uploadrow{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;margin-bottom:14px}
.uploadrow.compact{grid-template-columns:1fr auto 2fr;margin:14px 0 20px}
input,select,textarea{width:100%;padding:14px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;font-family:inherit}
.search{margin:8px 0 16px}
.danger{background:#dc2626}
.delete{background:#991b1b}
.disabled{background:#94a3b8;cursor:not-allowed}
.danger-mini{background:#dc2626;color:white}
.row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.inline-file{max-width:170px;padding:8px;font-size:12px}
.ventanilla-cards{grid-template-columns:repeat(5,1fr)}
.cove-table small{color:#64748b}
.table{width:100%;border-collapse:collapse}
.table th,.table td{text-align:left;border-bottom:1px solid #e5e7eb;padding:12px;vertical-align:top}
.list-summary{display:flex;justify-content:space-between;gap:14px;align-items:flex-end;border:1px solid #dbe3ef;border-radius:8px;background:#f8fafc;padding:14px 16px;margin-bottom:14px}
.list-summary h3{margin:0 0 4px;font-size:22px}
.list-summary span{color:#64748b;font-weight:800}
.summary-pills{display:flex;gap:8px;flex-wrap:nowrap;justify-content:flex-end;overflow-x:auto;white-space:nowrap}
.summary-pills span{background:white;border:1px solid #e5e7eb;border-radius:999px;padding:7px 10px;color:#334155;font-size:12px}
.badge{padding:5px 10px;border-radius:999px;font-size:12px;font-weight:800;display:inline-block}
.verde{background:#16a34a;color:white}.amarillo{background:#facc15;color:#111}.rojo{background:#dc2626;color:white}.gris{background:#94a3b8;color:white}
.blocks{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.block{border:1px solid #e5e7eb;background:#fafafa;border-radius:8px;padding:14px}
.docgrid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.doc{background:white;border:1px solid #e5e7eb;border-radius:8px;padding:10px}
.doc b{font-size:13px}
.doc small{color:#64748b}
.file-pill{margin-top:8px;padding:7px 9px;border-radius:8px;background:#ecfdf5;color:#166534;font-size:12px;font-weight:800;overflow-wrap:anywhere}
.file-pill.empty{background:#f1f5f9;color:#64748b}
.hint{color:#64748b}
.edit-panel{border:1px solid #dbe3ef;background:#f8fafc;border-radius:8px;padding:16px;margin:0 0 22px}
.company-actions{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}
.company-data-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0 18px}
.company-data-grid div{border:1px solid #e5e7eb;border-radius:8px;padding:12px;background:white}
.company-data-grid span{display:block;color:#64748b;font-size:12px;margin-bottom:5px}
.company-data-grid b{display:block;min-height:18px}
.expediente-blocks{grid-template-columns:repeat(2,1fr)}
.expediente-blocks .docgrid{grid-template-columns:1fr}
.company-cell,.company-header,.expediente-header{display:flex;align-items:center;gap:14px}
.company-header,.expediente-header{padding:14px;border:1px solid #e5e7eb;border-radius:8px;background:#f8fafc;margin:12px 0}
.company-logo{object-fit:contain;background:white;border:1px solid #dbe3ef;border-radius:8px;display:grid;place-items:center;color:#2563eb;font-weight:900}
.company-logo.tiny{width:42px;height:42px;font-size:14px;flex:0 0 42px}
.company-logo.normal{width:64px;height:64px;font-size:18px;flex:0 0 64px}
.company-logo.large{width:96px;height:96px;font-size:24px;flex:0 0 96px}
img.company-logo{padding:5px}
.placeholder{background:#eff6ff}
.operator-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0 22px}
.operator-summary div{border:1px solid #e5e7eb;border-radius:8px;padding:12px;background:white}
.operator-summary span{display:block;color:#64748b;font-size:12px;margin-bottom:5px}
.operator-summary b{display:block;min-height:18px}
.app-operator-tab{min-height:calc(100vh - 80px);background:linear-gradient(180deg,#eaf0f8 0%,#f8fafc 100%)}
.app-operator-tab.active{display:grid;place-items:center}
.phone-shell{width:min(392px,100%);height:min(820px,calc(100vh - 120px));min-height:690px;background:#f8fafc;border:10px solid #0b1220;border-radius:34px;box-shadow:0 28px 60px #0f172a38;overflow:hidden;display:flex;flex-direction:column}
.phone-status{height:30px;background:#061634;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 18px;font-size:12px;font-weight:900}
#appOperatorRoot{flex:1;overflow:auto;display:flex;flex-direction:column;background:#f8fafc}
.app-login{min-height:100%;display:grid;align-content:center;gap:12px;padding:30px 22px;text-align:center;background:white}
.app-login img{width:210px;max-width:100%;margin:0 auto 8px}
.app-login h2{margin-bottom:0;color:#0b1b3f}
.app-login p{font-size:14px}
.app-install-button{margin-top:0}
.app-install-note{font-size:12px;color:#64748b;line-height:1.35}
.app-header{background:#061634;color:white;min-height:62px;padding:8px 12px;display:grid;grid-template-columns:36px 1fr;align-items:center;column-gap:8px;box-shadow:0 6px 16px #0f172a20}
.app-header b{color:white;text-align:center;font-size:16px}
.app-header small{grid-column:2;color:#cbd5e1;text-align:center;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-back{width:34px;height:34px;border:0;border-radius:50%;background:#ffffff12;color:white;font-weight:900;cursor:pointer}
.app-home-hero{min-height:190px;color:white;padding:22px;display:flex;flex-direction:column;justify-content:flex-end;gap:14px;background-image:linear-gradient(180deg,#06163440,#061634f2),url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=900&q=80");background-size:cover;background-position:center}
.app-home-hero img{width:190px;max-height:95px;object-fit:contain;object-position:left center;filter:drop-shadow(0 10px 18px #0008)}
.app-home-hero b{display:block;font-size:20px}
.app-home-hero span,.app-home-hero small{display:block;color:#e2e8f0;font-size:13px}
.app-progress{margin:14px 16px 8px;background:white;border:1px solid #dbe3ef;border-left:5px solid #facc15;border-radius:8px;padding:13px 14px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.app-progress b{font-size:22px;color:#0b1b3f}
.app-progress span{color:#64748b;font-weight:800;font-size:12px;text-transform:uppercase}
.app-home-install{margin:2px 16px 8px;text-align:center}
.app-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:8px 16px 84px}
.app-grid button{min-height:92px;text-align:left;background:white;border:1px solid #dbe3ef;border-radius:8px;padding:14px;box-shadow:0 8px 18px #0f172a10;cursor:pointer}
.app-grid button b{display:block;color:#0b1b3f;margin-bottom:6px}
.app-grid button span{display:block;color:#64748b;font-size:12px;line-height:1.3}
.app-nav{margin-top:auto;position:sticky;bottom:0;background:white;border-top:1px solid #e5e7eb;display:grid;grid-template-columns:repeat(4,1fr);padding:7px 6px 9px;gap:4px}
.app-nav button{border:0;background:white;color:#64748b;border-radius:8px;padding:8px 4px;font-size:11px;font-weight:900;cursor:pointer}
.app-nav button.active{background:#eff6ff;color:#2563eb}
.app-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:10px 12px 0;background:white;border-bottom:1px solid #e5e7eb}
.app-tabs span{text-align:center;font-size:12px;font-weight:900;color:#334155;padding:8px;border-bottom:3px solid transparent}
.app-tabs span:first-child{color:#2563eb;border-color:#2563eb}
.app-list{display:grid;gap:9px;padding:12px 14px 84px}
.app-doc-item,.app-report-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;background:white;border:1px solid #e5e7eb;border-radius:8px;padding:12px;box-shadow:0 8px 18px #0f172a0c}
.app-doc-item b,.app-report-item b{display:block;font-size:14px;color:#0f172a}
.app-doc-item small,.app-report-item small{display:block;color:#64748b;font-size:12px;margin-top:3px}
.pdf-icon{width:34px;height:42px;border:1px solid #fca5a5;border-radius:6px;color:#dc2626;display:grid;place-items:center;font-size:10px;font-weight:900;background:#fff5f5}
.app-doc-item button{border:1px solid #2563eb;background:white;color:#2563eb;border-radius:8px;padding:8px 9px;font-weight:900;cursor:pointer}
.app-pending{font-size:11px;font-weight:900;color:#92400e;background:#fef3c7;border-radius:999px;padding:6px 8px}
.app-steps{background:white;border-bottom:1px solid #e5e7eb;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding:10px 12px}
.app-steps span{text-align:center;color:#64748b;font-size:11px;font-weight:900;border:1px solid #dbe3ef;border-radius:999px;padding:7px 5px}
.app-steps .active{background:#2563eb;color:white;border-color:#2563eb}
.app-form{display:grid;gap:10px;padding:14px 16px 86px}
.app-form h3{font-size:16px;margin:8px 0 0;color:#0b1b3f}
.check-row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center;background:white;border:1px solid #e5e7eb;border-radius:8px;padding:12px}
.check-row b{display:block;color:#0f172a}
.check-row small{display:block;color:#64748b;font-size:12px;margin-top:3px}
.check-row input{width:22px;height:22px;accent-color:#16a34a}
.photo-uploader{display:grid;gap:8px;background:white;border:1px dashed #94a3b8;border-radius:8px;padding:12px;color:#334155;font-weight:900}
.photo-uploader input{padding:8px;background:#f8fafc}
.app-ok,.app-bad{border-radius:999px;padding:6px 8px;font-size:11px;font-weight:900}
.app-ok{background:#dcfce7;color:#166534}
.app-bad{background:#fee2e2;color:#991b1b}
.interview-panel{background:#f8fafc;border:1px solid #dbe3ef;border-radius:8px;padding:18px;margin:0 0 18px}
.interview-head{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center}
.interview-head span{color:#2563eb;font-size:12px;font-weight:900;text-transform:uppercase}
.interview-head h3{margin:4px 0;color:#0b1b3f}
.interview-head p{margin:0;color:#64748b}
.interview-count{background:white;border:1px solid #dbe3ef;border-radius:8px;padding:12px 18px;text-align:center}
.interview-count b{display:block;font-size:24px;color:#0b1b3f}
.interview-count small{display:block;color:#64748b;font-weight:900;text-transform:uppercase}
.interview-list{display:grid;gap:10px;margin-top:14px}
.interview-card{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;background:white;border:1px solid #dbe3ef;border-radius:8px;padding:13px}
.interview-card.signed{border-color:#86efac;background:#f0fdf4}
.interview-card b{display:block;color:#0b1b3f}
.interview-card span{display:block;color:#64748b;font-size:13px;margin-top:3px}
.saved-signature{display:block;max-width:220px;max-height:64px;background:white;border:1px solid #dbe3ef;border-radius:8px;margin-top:8px}
.interview-reader{display:grid;gap:14px}
.interview-document{min-height:0}
.interview-read-section,.interview-questions{background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:16px;margin-top:16px}
.interview-read-section h3,.interview-questions h3{margin-top:0;color:#0b1b3f}
.question-row{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:flex-start;background:white;border:1px solid #dbe3ef;border-radius:8px;padding:12px;margin-bottom:10px;color:#0f172a;font-weight:800}
.question-row input{width:22px;height:22px;accent-color:#2563eb}
.admin-interview-panel{margin-top:20px}
.questionnaire-admin-list{display:grid;gap:10px;margin-top:12px}
.questionnaire-admin-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid #dbe3ef;background:#f8fafc;border-radius:8px;padding:13px}
.questionnaire-admin-row b{display:block;color:#0b1b3f}
.questionnaire-admin-row span{display:block;color:#64748b;font-size:13px;margin-top:3px}
.questionnaire-admin-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.questionnaire-preview,.questionnaire-preview-empty{margin-top:16px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;padding:16px}
.questionnaire-preview-empty{color:#64748b;text-align:center}
.questionnaire-sections{display:grid;gap:12px}
.questionnaire-section{background:white;border:1px solid #dbe3ef;border-radius:8px;padding:14px}
.questionnaire-section h4{margin:0 0 10px;color:#0b1b3f}
.interview-lang-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.interview-lang-grid > div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:12px}
.interview-lang-grid b{display:block;color:#2563eb;margin-bottom:6px}
.question-row.preview-only{opacity:.85}
.onboarding-flow{max-width:1120px;margin:auto}
.onboarding-card{min-height:0}
.onboarding-progress{display:grid;gap:8px;margin:18px 0}
.onboarding-progress span{font-size:13px;color:#64748b;font-weight:900;text-transform:uppercase}
.onboarding-progress div{height:10px;background:#dbeafe;border-radius:999px;overflow:hidden}
.onboarding-progress i{display:block;height:100%;background:#0b5b9e;border-radius:999px}
.onboarding-title{color:#0b5b9e;font-size:28px;margin:20px 0 18px;text-transform:uppercase}
.onboarding-language-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.onboarding-language-grid > div{border:1px solid #d7e3f2;border-radius:8px;background:#f8fbff;padding:18px}
.onboarding-language-grid h3{margin:0 0 12px;color:#0b5b9e;font-size:22px}
.onboarding-language-grid li{font-size:18px;line-height:1.35;margin-bottom:10px}
.onboarding-comment-label{display:block;font-weight:900;margin:20px 0 8px;color:#0f172a}
.onboarding-comment{min-height:92px}
.onboarding-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.onboarding-actions .primary{min-width:420px}
.onboarding-report{min-height:0}
.onboarding-report-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 18px}
.onboarding-table-wrap{overflow:auto;border:1px solid #cbd5e1;border-radius:8px}
.onboarding-table{width:100%;border-collapse:collapse;background:white;font-size:14px}
.onboarding-table th,.onboarding-table td{border:1px solid #cbd5e1;padding:8px;text-align:left}
.onboarding-table th{background:#eff6ff;color:#0b5b9e}
.operator-app .topbar{display:none}
.operator-app main{min-height:100vh}
.operator-app .app-operator-tab{min-height:100vh}
.native-app .install-button,.native-app .app-install-note{display:none}
.signature-pad{width:100%;height:220px;border:1px dashed #94a3b8;border-radius:8px;background:white;touch-action:none}
.document-preview-wrap{max-width:980px;margin:0 auto 28px}
.document-preview-empty{text-align:center;color:#64748b}
.document-preview{background:white;color:#111827;border-radius:8px;padding:44px;box-shadow:0 18px 42px #0f172a22;min-height:900px}
.doc-template-header{display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;border-bottom:3px solid #0b1b3f;padding-bottom:18px;margin-bottom:18px}
.doc-template-header h2{margin:0 0 6px;color:#0b1b3f;text-transform:uppercase}
.doc-template-header p{margin:0;color:#475569;font-size:13px}
.doc-template-meta{text-align:right;display:grid;gap:4px}
.doc-template-meta b{color:#2563eb;text-transform:uppercase}
.doc-template-meta span{color:#64748b;font-weight:800}
.doc-operator-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;background:#f8fafc;border:1px solid #dbe3ef;border-radius:8px;padding:12px;margin:18px 0 26px}
.doc-operator-strip span{display:block;color:#64748b;font-size:11px;text-transform:uppercase;font-weight:900;margin-bottom:4px}
.doc-operator-strip b{display:block;font-size:13px}
.doc-template-body h1{font-size:28px;color:#0b1b3f;text-transform:uppercase;margin-bottom:18px}
.doc-template-body h3{color:#0b1b3f;margin-top:18px}
.doc-template-body p,.doc-template-body li{color:#1f2937;font-size:15px;line-height:1.6}
.template-source{margin-top:22px}
.template-source a{color:#2563eb;font-weight:900;text-decoration:none}
.signature-block{display:grid;grid-template-columns:1.3fr .7fr;gap:26px;margin-top:54px;align-items:end}
.signature-block > div{border-top:1px solid #0f172a;padding-top:10px;min-height:95px}
.signature-block span{display:block;color:#64748b;font-size:12px;text-transform:uppercase;font-weight:900;margin-bottom:8px}
.signature-block img{max-width:360px;max-height:95px;display:block;margin-bottom:8px}
.signature-placeholder{height:82px;display:grid;place-items:center;color:#94a3b8;border:1px dashed #cbd5e1;border-radius:8px;margin-bottom:8px}
.document-preview footer{margin-top:42px;color:#64748b;font-size:12px;border-top:1px solid #e5e7eb;padding-top:12px}
@media print{
  body.printing-document *{visibility:hidden}
  body.printing-document #documentoImprimible,body.printing-document #documentoImprimible *{visibility:visible}
  body.printing-document #documentoImprimible{position:absolute;left:0;top:0;width:100%;box-shadow:none;border-radius:0;padding:0.45in}
}
@media(max-width:1100px){
  .service-grid{grid-template-columns:repeat(2,1fr)}
  .cards,.grid3,.blocks,.docgrid,.operator-summary,.company-data-grid,.safety-module-grid,.safety-doc-grid{grid-template-columns:1fr 1fr}
  .safety-concept-grid{grid-template-columns:repeat(3,1fr)}
  .topbar{align-items:flex-start;flex-direction:column}
  .brand{min-width:0}
  nav{justify-content:flex-start}
  .hero-brand-lockup{grid-template-columns:1fr}
  .hero-message{max-width:760px}
  .portal-layout{grid-template-columns:1fr}
  .portal-login-card{position:static}
  .expediente-blocks{grid-template-columns:1fr 1fr}
  .client-metrics{grid-template-columns:repeat(3,1fr)}
  .concept-grid{grid-template-columns:1fr 1fr}
  .client-doc-row{grid-template-columns:1fr}
  .client-doc-actions{grid-template-columns:1fr auto auto}
  .client-operator-row{grid-template-columns:1fr 1fr}
  .operator-detail-head{grid-template-columns:1fr 1fr}
  .operator-doc-actions{grid-template-columns:1fr 1fr auto}
  .list-summary{align-items:flex-start;flex-direction:column}
}
@media(max-width:760px){
  .topbar{position:static;align-items:flex-start;gap:12px;flex-direction:column}
  .brand{width:100%}
  .brand img{width:112px;height:40px}
  .brand-copy b{font-size:16px}
  .brand-copy small{font-size:11px}
  .hero{min-height:520px;padding:34px 22px}
  .hero-logo{font-size:64px}
  .hero-logo-img{max-height:170px}
  .hero-brand-lockup{gap:18px;margin-bottom:22px}
  .hero-message{padding:14px 0 14px 18px}
  .hero h1{font-size:30px}
  .tab:not(.landing),.landing-band,.about-band,.contact-band{padding:22px}
  .service-grid,.about-band,.contact-band,.contact-form,.cards,.grid3,.blocks,.docgrid,.operator-summary,.company-data-grid,.uploadrow,.uploadrow.compact,.portal-blocks,.interview-lang-grid,.questionnaire-admin-row,.onboarding-language-grid,.onboarding-report-meta,.safety-module-grid,.safety-concept-grid,.safety-doc-grid{grid-template-columns:1fr}
  .safety-home-head{align-items:flex-start;flex-direction:column}
  .onboarding-actions .primary{min-width:0;width:100%}
  .expediente-blocks{grid-template-columns:1fr}
  .client-portal-hero{grid-template-columns:1fr;text-align:left}
  .client-progress-ring{width:96px}
  .client-metrics{grid-template-columns:1fr 1fr}
  .client-toolbar{align-items:flex-start;flex-direction:column}
  .client-filters{justify-content:flex-start}
  .concept-grid{grid-template-columns:1fr}
  .concept-detail-progress{align-items:flex-start;flex-direction:column;min-width:0;width:100%}
  .concept-detail-progress .concept-progress{width:100%}
  .client-doc-actions{grid-template-columns:1fr}
  .client-operator-row{grid-template-columns:1fr}
  .operator-detail-head{grid-template-columns:1fr}
  .operator-row-actions{justify-content:flex-start}
  .operator-doc-actions{grid-template-columns:1fr}
  .pagination{justify-content:flex-start}
  .phone-shell{width:100%;height:calc(100vh - 44px);min-height:640px;border-width:0;border-radius:0;box-shadow:none}
  .operator-app .app-operator-tab{padding:0}
  .operator-app .phone-shell{height:100vh;min-height:100vh}
  .app-operator-tab.active{place-items:stretch}
}
