:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#14233c;background:#f5f7fb;font-synthesis:none;--navy:#14233c;--orange:#ef842b;--muted:#68788d;--border:#e5eaf1;--white:#fff;--shadow:0 8px 36px rgba(20,35,60,.045)}
*{box-sizing:border-box}html,body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #ee8b3d;outline-offset:2px}button:not(.btn){color:inherit}a{color:inherit}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.035em;font-size:clamp(26px,3.2vw,36px);line-height:1.13;margin:0 0 8px}h2{font-size:18px;letter-spacing:-.02em}small{font-size:12px}.muted{color:var(--muted)}.tiny{font-size:12px;line-height:1.6}.shell{min-height:100dvh}.header{height:78px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1320px)/2));position:sticky;top:0;z-index:6}.brand{display:flex;align-items:center;gap:11px}.brand strong{font-size:21px;letter-spacing:-.06em;display:block;line-height:1.15}.brand strong span{color:var(--orange)}.brand small{font-size:9px;font-weight:800;letter-spacing:.22em;color:#8b97a8}.header-status{display:flex;align-items:center;gap:7px;color:#5e6f86;font-size:12px;font-weight:600}.online-dot{display:inline-block;width:8px;height:8px;border-radius:100%;background:var(--orange)}.layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:24px;max-width:1320px;margin:0 auto;padding:26px 24px}.side-menu{padding:20px 10px 0 0}.side-title{font-size:10px;font-weight:800;letter-spacing:.18em;color:#8590a1;margin:0 0 18px 16px}.menu-item{border:0;background:none;text-align:left;display:flex;align-items:center;gap:13px;width:100%;border-radius:12px;padding:12px 14px;margin:2px 0;font-weight:650;font-size:14px;color:#57677d!important}.menu-item span{font-size:19px;width:22px;text-align:center}.menu-item:hover{background:#e9eef6}.menu-item.active{background:#182c48;color:#fff!important}.side-note{background:#e9eff6;border-radius:14px;padding:18px;font-size:12px;color:#667991;margin:22px 8px;line-height:1.7}.side-note b{color:var(--navy)}.workspace{min-width:0;padding-bottom:60px;max-width:1100px}.pilot-banner{font-size:12.5px;line-height:1.65;background:#fff0e1;color:#77512f;border:1px solid #f9d9b3;padding:13px 16px;border-radius:11px;margin-bottom:22px}.pilot-banner strong{display:inline;font-weight:850}.page-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:24px}.page-title>div>p{color:var(--muted);font-size:14px;margin:0;line-height:1.5}.page-title>.btn{flex-shrink:0}.page-title>.btn+.btn{margin-left:-4px}.hero{background:linear-gradient(107deg,#13243f 0%,#1e365a 100%);color:#fff;border-radius:20px;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:190px;padding:32px 34px;position:relative;overflow:hidden;box-shadow:0 12px 24px #192f5040}.hero h2{font-size:clamp(23px,3vw,30px);letter-spacing:-.04em;margin:10px 0 8px;max-width:500px}.hero p{font-size:13px;line-height:1.65;color:#c2cbda;margin:0;max-width:570px}.hero-mark{font-size:115px;opacity:.14;transform:rotate(-15deg);line-height:1}.eyebrow{color:#ffb87d;letter-spacing:.16em;font-size:10px;font-weight:900}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:19px 0 22px}.stat{padding:19px 18px;text-align:left;min-height:125px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);display:flex;flex-direction:column;gap:5px}.stat:hover,.record:hover,.event-line:hover,.more-link:hover{background:#f9fbff}.stat>span{font-size:12px;color:var(--muted);font-weight:700}.stat strong{font-size:29px;letter-spacing:-.03em}.stat small{color:#e5822f;font-weight:750}.panel{border:1px solid var(--border);border-radius:17px;background:#fff;padding:22px;margin-bottom:18px;box-shadow:var(--shadow)}.panel h2{margin:0 0 16px}.panel p{line-height:1.65;font-size:14px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}.panel-heading h2{margin:0}.link{border:0;background:transparent;color:var(--orange)!important;font-weight:800;font-size:13px;padding:8px}.safety{border-left:4px solid var(--orange)}.safety h2{color:var(--navy)}.safety p{color:#55667b}.button-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.btn{border:1px solid #cbd5e1;background:#fff;color:#223852;padding:11px 16px;min-height:44px;border-radius:10px;font-weight:750;font-size:13px;text-decoration:none}.btn:hover{background:#f5f7fb}.btn.primary{border-color:var(--orange);background:var(--orange);color:white;box-shadow:0 4px 12px #e68a3f25}.btn.primary:hover{background:#df7623}.notice{padding:15px 18px;margin-bottom:16px;border-radius:11px}.notice.warning{background:#fff0e1;border:1px solid #edc596;color:#6f4b29}.notice button{border:0;background:none;text-decoration:underline;font-weight:800}.listing{padding:0;overflow:hidden}.record,.event-line{min-height:69px;width:100%;border:0;border-bottom:1px solid var(--border);background:#fff;text-align:left;display:flex;align-items:center;gap:14px;padding:13px 18px}.record:last-child,.event-line:last-child{border-bottom:0}.record-symbol{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;background:#f1f4f9;color:#ef842b;border-radius:11px;font-size:21px}.record-text{flex:1;min-width:0}.record-text b{font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-text small{display:block;color:var(--muted);padding-top:5px;font-size:12px}.chev{font-size:22px;color:#929db0}.date-square{height:43px;width:43px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f1f4f9;border-radius:9px;font-weight:900;font-size:17px}.date-square small{font-size:10px;color:var(--orange);line-height:1.2}.event-line>span:nth-child(2){flex:1}.event-line>span:nth-child(2) b{display:block;font-size:13px}.event-line>span:nth-child(2) small{display:block;margin-top:6px;color:var(--muted)}.event-line>span:last-child{font-size:22px;color:#929db0}.empty,.empty-state{text-align:center;padding:35px 22px;color:var(--muted);font-size:14px}.empty-state>div{font-size:36px;color:var(--orange)}.empty-state h2{color:var(--navy);margin:12px 0 8px}.empty-state p{max-width:440px;margin:auto}.more-menu{padding:0}.more-link{display:flex;align-items:center;gap:16px;border:0;border-bottom:1px solid var(--border);background:#fff;width:100%;text-align:left;padding:14px 20px}.more-link b{flex:1;font-size:14px}.more-link:last-child{border:0}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 30px;margin:0}.detail-grid>div{padding:0 0 15px;border-bottom:1px solid var(--border);min-width:0}dt{font-size:12px;font-weight:700;color:#7c8898;margin-bottom:7px}dd{font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}.history-group{border-top:1px solid var(--border);padding-top:15px;margin-top:10px}.history-group h3{font-size:14px;color:#59687c}.history-group .record{padding-left:0}.chart{max-width:100%;overflow:hidden}.chart svg{width:100%;height:auto;display:block}.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}.photo-card{border:1px solid var(--border);border-radius:12px;overflow:hidden}.photo-card img{width:100%;height:170px;object-fit:cover;display:block}.photo-meta{padding:12px}.photo-meta b{font-size:12px;display:block;word-wrap:break-word}.photo-meta small{display:block;color:#7a8697;margin-top:4px}.photo-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:11px}.photo-actions button{border:1px solid var(--border);border-radius:7px;background:#f8fafc;min-height:34px;font-size:11px;padding:5px 9px;font-weight:750}.bottom-nav{display:none}footer{font-size:11px;color:#9aa6b5;text-align:center;padding:30px 0 0}.modal-backdrop{position:fixed;inset:0;z-index:20;background:#14233cc0;display:flex;justify-content:center;align-items:center;padding:15px}.editor{background:#fff;border-radius:17px;max-width:810px;width:100%;max-height:calc(100dvh - 30px);display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 80px #07132555}.editor-header{display:flex;align-items:center;justify-content:space-between;padding:23px 26px;border-bottom:1px solid var(--border)}.editor-header small{font-size:11px;letter-spacing:.14em;font-weight:800;color:var(--orange)}.editor-header h2{font-size:24px;margin:4px 0 0}.icon-close{width:44px;height:44px;border-radius:10px;background:#f3f6fa;border:0;font-size:20px}.form{min-height:0;overflow-y:auto;padding:24px 26px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form-field{display:flex;flex-direction:column;gap:7px;min-width:0}.form-field label,.input-label{font-size:13px;font-weight:750;color:#405069}.form-field input,.form-field select,.form-field textarea,#search-query{width:100%;min-height:44px;background:#fff;border:1px solid #cbd6e3;border-radius:9px;padding:10px 12px;font-size:15px;color:var(--navy)}.form-field textarea{resize:vertical}.form-field.wide{grid-column:1/-1}.check-row{display:flex;align-items:center;gap:10px;min-height:44px}.check-row input{width:22px;height:22px;accent-color:var(--orange)}.form-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--border);padding-top:20px;margin-top:18px}.boot{padding:50px;max-width:650px;margin:auto}.boot.error{color:#a53222}#toast{position:fixed;bottom:24px;right:24px;max-width:430px;z-index:50;background:#172c48;color:#fff;padding:15px 20px;border-radius:12px;box-shadow:0 10px 25px #0004;font-size:13px;line-height:1.5;opacity:0;transform:translateY(15px);pointer-events:none;transition:opacity .2s,transform .2s}#toast.show{opacity:1;transform:translateY(0)}#toast[data-kind=error]{background:#8d3429}
@media(max-width:1000px){.layout{grid-template-columns:190px minmax(0,1fr);gap:8px;padding:20px}.cards{grid-template-columns:repeat(2,1fr)}.header{padding:0 20px}.gallery{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.header{height:64px;padding:0 16px}.brand strong{font-size:19px}.brand small{font-size:8px}.header-status{font-size:11px}.layout{display:block;padding:16px 13px}.side-menu{display:none}.workspace{padding-bottom:95px}.pilot-banner{padding:11px 13px;margin-bottom:18px;font-size:11.5px}.page-title{margin-bottom:17px}.page-title h1{font-size:26px}.page-title p{font-size:12px}.page-title .btn{padding:9px 11px;min-height:44px;font-size:12px}.hero{padding:25px 22px;min-height:180px;border-radius:15px}.hero p{font-size:12.5px}.hero-mark{display:none}.cards{gap:9px;margin:12px 0 16px}.stat{min-height:108px;padding:14px}.stat strong{font-size:26px}.panel{padding:16px;border-radius:13px;margin-bottom:13px}.listing,.more-menu{padding:0}.panel-heading h2{font-size:16px}.record,.event-line{padding:11px 13px}.bottom-nav{display:grid;position:fixed;bottom:0;left:0;right:0;z-index:8;grid-template-columns:repeat(5,minmax(0,1fr));background:#fff;border-top:1px solid var(--border);padding:6px 5px max(7px,env(safe-area-inset-bottom));box-shadow:0 -3px 14px #19243b12}.nav-btn{border:0;background:transparent;min-height:54px;display:flex;flex-direction:column;gap:3px;align-items:center;justify-content:center;border-radius:9px;color:#6d7a8e!important;font-size:10px;font-weight:750}.nav-btn .nav-icon{font-size:22px;line-height:1.1}.nav-btn.active{color:#e5822f!important;background:#fff2e6}.detail-grid{gap:15px;grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid dd{font-size:12.5px}.gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.photo-card img{height:145px}.modal-backdrop{padding:0;align-items:flex-end}.editor{border-radius:19px 19px 0 0;max-height:94dvh}.editor-header{padding:16px 18px}.editor-header h2{font-size:21px}.form{padding:16px 18px}.form-grid{grid-template-columns:1fr;gap:14px}.form-field.wide{grid-column:auto}.form-actions{position:sticky;bottom:0;background:#fff;padding:12px 0 max(12px,env(safe-area-inset-bottom))}#toast{bottom:85px;left:13px;right:13px;max-width:none}footer{padding:20px 0 0}.chart svg{min-height:145px}}
@media(max-width:380px){.page-title{flex-wrap:wrap}.page-title>.btn{margin-left:0}.brand img{width:33px;height:33px}.header-status{max-width:112px;text-align:right}.stat{padding:12px}.gallery{grid-template-columns:1fr}.photo-card img{height:220px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* F2A: inspect-only; ningún botón destructivo. */
.inspect-form{display:grid;gap:9px;margin:14px 0 16px;max-width:660px}.inspect-form label{font-size:13px;font-weight:750;color:#405069}.inspect-form input{width:100%;min-height:44px;border:1px solid #cbd6e3;border-radius:9px;padding:10px 12px;background:#fff;font-size:15px}.inspect-form button{justify-self:start}.inspect-result{padding:14px;border-radius:11px;border:1px solid var(--border);background:#f8fafc;font-size:13px;line-height:1.5}.inspect-result.inspect-error{border-color:#dba99c;background:#fff2ef;color:#883628}.inspect-success>p{margin:9px 0}.inspect-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.inspect-counts>div{padding:9px 10px;background:white;border:1px solid var(--border);border-radius:8px}.inspect-counts dt{font-size:11px}.inspect-counts dd{font-weight:800}.inspect-form code{font-size:inherit}@media(max-width:700px){.inspect-counts{grid-template-columns:repeat(2,minmax(0,1fr))}}
