@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--green:#143d32;--green2:#1f5947;--cream:#f5f1e8;--gold:#c7a66a;--ink:#1c2925;--muted:#68766f;--line:#e4e0d6;--white:#fffdf8}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:"DM Sans",Arial,sans-serif;min-height:100vh;display:flex;flex-direction:column}.top{background:var(--green);color:white;padding:18px max(22px,calc((100% - 1080px)/2));display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--gold);border-radius:13px;color:var(--gold);font-weight:800;font-family:Manrope,sans-serif}.brand strong{display:block;letter-spacing:.12em;font-size:14px}.brand small{display:block;color:#d6e0d9;font-size:11px;margin-top:3px}.logout{color:#f6e5c3;text-decoration:none;font-size:13px}.wrap{width:min(100% - 32px,1000px);margin:38px auto 56px;flex:1}.hero{background:linear-gradient(120deg,#12382e,#1d5544);border-radius:24px;padding:42px;color:#fffdf8;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:250px;height:250px;border:1px solid #c7a66a55;border-radius:50%;right:-80px;top:-85px;box-shadow:0 0 0 28px #c7a66a10,0 0 0 58px #c7a66a08}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.16em;color:var(--gold);text-transform:uppercase}.hero h1,.page-heading h1{font-family:Manrope,Arial,sans-serif;font-size:clamp(30px,5vw,46px);line-height:1.12;letter-spacing:-.04em;margin:14px 0}.hero h1 span{color:#e2c68e}.hero p{max-width:560px;line-height:1.65;color:#e2e8e2;margin-bottom:0}.panel{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:28px;box-shadow:0 12px 36px #20352a0a}.login-panel{max-width:480px;margin:-20px auto 0;position:relative}.panel h2{font-family:Manrope,sans-serif;margin:8px 0 12px;font-size:24px}.panel h1{font-family:Manrope,sans-serif}.panel p{line-height:1.6}.login-panel form,.upload-panel form{display:flex;flex-direction:column;gap:10px}label{font-size:13px;font-weight:700;margin-top:8px}input:not([type=file]){width:100%;border:1px solid #d8d8ce;background:white;border-radius:11px;padding:13px 14px;font:inherit;outline-color:var(--green2)}input[type=file]{width:100%;padding:15px;border:1px dashed #bcbcae;border-radius:12px;background:#fbfaf5;font:inherit}.button{display:inline-flex;justify-content:center;align-items:center;background:var(--green);color:white;text-decoration:none;border:0;border-radius:12px;padding:14px 18px;font:700 14px "DM Sans",sans-serif;cursor:pointer;margin-top:12px;transition:background .2s}.button:hover{background:var(--green2)}.hint,.muted{color:var(--muted);font-size:12px;line-height:1.6}.page-heading{margin:8px 0 28px}.page-heading h1{margin-bottom:8px}.page-heading p{color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.section-icon{font-size:30px;margin-bottom:18px}.status-dot{display:inline-block;width:9px;height:9px;background:#259b67;border-radius:50%;margin-right:7px}.status-dot.pending{background:#c9a15e}.text-link{display:inline-block;color:var(--green2);font-weight:700;text-decoration:none;margin-top:12px;font-size:13px}.notice{margin-top:20px;border:1px solid #e5d7b6;background:#f8f0dc;border-radius:14px;padding:16px 18px;font-size:13px;line-height:1.6}.alert{padding:14px 16px;border-radius:12px;margin:0 0 18px;font-size:13px;line-height:1.55;overflow-wrap:anywhere}.alert.error{background:#fff0ed;border:1px solid #edc2b9;color:#8c2f20}.alert.success{background:#e8f5ec;border:1px solid #b5ddc1;color:#1d6840}.upload-panel{max-width:720px}.upload-panel .button{width:100%}footer{text-align:center;padding:22px;color:#7d857e;font-size:10px;letter-spacing:.16em}@media(max-width:650px){.top{padding:15px 18px}.wrap{width:min(100% - 22px,1000px);margin:22px auto 36px}.hero{padding:28px 23px;border-radius:19px}.login-panel{margin:-12px 8px 0;padding:22px}.panel{padding:22px}.grid{grid-template-columns:1fr}.page-heading h1{font-size:32px}}

.logout-form{margin:0}.logout{background:transparent;border:0;cursor:pointer;font:inherit;text-decoration:underline;padding:6px}


.upload-progress { margin-top: 22px; padding: 16px; border-radius: 14px; background: rgba(0,0,0,.035); border: 1px solid rgba(0,0,0,.08); }
.upload-progress-head { display:flex; justify-content:space-between; gap:12px; margin-bottom:10px; }
.progress-track { width:100%; height:12px; border-radius:999px; overflow:hidden; background:rgba(0,0,0,.10); }
.progress-bar { width:0; height:100%; border-radius:999px; background:linear-gradient(90deg,#174c3b,#c8a45d); transition:width .15s ease; }

.admin-grid { align-items:start; }
.admin-grid > .panel { min-width:0; }
.admin-grid form { display:flex; flex-direction:column; gap:0; }
.admin-grid label:not(.check) { margin-top:15px; margin-bottom:6px; }
.admin-grid label:first-of-type { margin-top:4px; }
.admin-grid input:not([type=file]) { background:#fffefa; }
.check { display:flex; align-items:center; gap:10px; margin:13px 0 0 !important; padding:10px 12px; border:1px solid var(--line); border-radius:11px; background:#fbfaf5; font-weight:600 !important; cursor:pointer; }
.check input { width:17px !important; height:17px; accent-color:var(--green); margin:0; flex:0 0 auto; }
.admin-grid .button { margin-top:18px; width:100%; }
.users-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.users-head h2 { margin-bottom:0; }
.count-pill { min-width:34px; height:34px; display:grid; place-items:center; border-radius:999px; background:#edf2ee; color:var(--green); font-weight:800; }
.user-list { display:grid; gap:12px; }
.user-row { border:1px solid var(--line); border-radius:16px; padding:16px; display:flex; gap:18px; justify-content:space-between; align-items:center; background:#fffefa; transition:box-shadow .18s ease,border-color .18s ease; }
.user-row:hover { border-color:#d6d0c3; box-shadow:0 8px 22px rgba(20,61,50,.06); }
.user-main { min-width:0; display:flex; align-items:center; gap:13px; }
.user-avatar { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border-radius:13px; background:var(--green); color:#f1d69d; font-family:Manrope,sans-serif; font-weight:800; }
.user-info { min-width:0; }
.user-title { display:flex; flex-wrap:wrap; align-items:center; gap:7px; font-size:15px; }
.user-meta { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:3px; color:var(--muted); font-size:12px; }
.user-meta span + span { position:relative; }
.user-meta span + span:before { content:'•'; position:absolute; left:-8px; color:#b5b8b0; }
.folder-line { display:flex; align-items:center; gap:6px; margin-top:8px; color:#52625b; font-size:12px; overflow-wrap:anywhere; }
.folder-icon { color:var(--gold); font-weight:800; }
.user-side { display:flex; flex-direction:column; align-items:flex-end; gap:10px; flex:0 0 auto; }
.user-actions { display:flex; flex-wrap:wrap; gap:7px; justify-content:flex-end; align-items:center; }
.user-actions form { margin:0; }
.badge { display:inline-flex; align-items:center; gap:6px; border-radius:999px; padding:5px 9px; font-size:11px; font-weight:700; background:#eef0ed; color:#59645e; }
.badge.on { background:#e4f4e8; color:#21633e; }
.badge.off { background:#f4e7e5; color:#91463a; }
.badge.admin { background:#f7eedb; color:#7c6030; }
.badge-dot { width:6px; height:6px; border-radius:50%; background:currentColor; }
.action-button { display:inline-flex; align-items:center; justify-content:center; min-height:32px; padding:7px 10px; border:1px solid #ddd9cf; border-radius:9px; background:#fff; color:var(--green); font:600 12px "DM Sans",sans-serif; text-decoration:none; cursor:pointer; }
.action-button:hover { background:#f5f1e8; border-color:#cfc9bb; }
.action-button.danger { color:#98483c; }
.text-link { margin-top:14px; }
@media (max-width: 760px) { .user-row { flex-direction:column; align-items:stretch; } .user-side { align-items:stretch; } .user-actions { justify-content:flex-start; } }
@media (max-width: 430px) { .user-actions { display:grid; grid-template-columns:1fr 1fr; } .user-actions form,.user-actions .action-button { width:100%; } .user-actions .danger { grid-column:1/-1; } }

.check-locked{background:#f6f2e7;border-color:#e3d6b9}.check-note{margin-left:auto;color:#8a744b;font-size:11px;font-weight:500}.user-side .badge.off{display:none}

/* Selector de carpetas Dropbox */
.folder-picker{border:1px solid var(--line);border-radius:16px;background:#fbfaf5;padding:14px;margin-top:6px}.folder-picker-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px}.folder-picker-head span{font-size:13px;color:#52625b;overflow-wrap:anywhere;min-width:0}.folder-picker-head .action-button{flex:0 0 auto}.folder-search{width:100%;margin:10px 0 8px;padding:10px 12px;border:1px solid #ddd9cf;border-radius:10px;background:#fffefa;color:var(--ink);font:500 13px "DM Sans",sans-serif;outline:none}.folder-search:focus{border-color:#9fb8ad;box-shadow:0 0 0 3px rgba(20,61,50,.07)}.folder-browser{margin-top:10px;border-top:1px solid var(--line);padding-top:8px;max-height:360px;overflow:auto}.folder-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:9px 2px;border-bottom:1px solid #eee9dd;font-size:12px}.folder-item:last-child{border-bottom:0}.folder-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.folder-name{display:block;width:100%;padding:7px 8px;border:0!important;border-radius:9px;background:transparent!important;text-align:left;color:var(--green);font:700 13px "DM Sans",sans-serif;cursor:pointer;overflow-wrap:anywhere}.folder-name:hover{background:#f0eee5!important;text-decoration:none}.folder-path{display:block;padding-left:8px;color:#8a908b;font-size:10px;overflow-wrap:anywhere}.folder-back{display:block;width:100%;padding:8px;border:0!important;border-radius:9px;background:#f0eee5!important;cursor:pointer;color:var(--green);font-weight:700;text-align:left}.folder-item .action-button{white-space:nowrap}.folder-picker .field-note{margin-top:8px}.folder-empty{padding:20px 8px;text-align:center;color:#7a766e;font-size:12px}.folder-loading{padding:16px 8px;color:#7a766e;font-size:12px}.folder-picker .action-button{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border:1px solid #d8d3c8;border-radius:10px;background:#fffefa;color:var(--green);font:600 12px "DM Sans",sans-serif;text-decoration:none;cursor:pointer}.folder-picker .action-button:hover{background:#f3f0e7;border-color:#c9c2b4}.folder-picker .choose-folder{background:var(--green);border-color:var(--green);color:#fffdf8}.folder-picker .choose-folder:hover{background:var(--green2);border-color:var(--green2)}
@media(max-width:700px){.folder-picker-head{align-items:stretch;flex-direction:column}.folder-picker-head .action-button{width:100%}.folder-item{grid-template-columns:minmax(0,1fr) auto;gap:6px}.folder-item .choose-folder{grid-column:2;grid-row:1}.folder-item .enter-folder{grid-column:2;grid-row:2}.folder-copy{grid-column:1;grid-row:1 / span 2}.folder-path{grid-column:auto}}

/* Gestión de archivos del colaborador */
.files-panel{margin-top:18px}.files-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.files-head h2{margin:8px 0 5px}.file-list{display:grid;gap:10px}.file-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid var(--line);border-radius:14px;background:#fffefa}.file-main{min-width:0;display:flex;align-items:center;gap:12px}.file-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#edf2ee;flex:0 0 40px}.file-info{min-width:0;display:flex;flex-direction:column;gap:4px}.file-info strong{font-size:13px;overflow-wrap:anywhere}.file-info span{font-size:11px;color:var(--muted)}.files-empty{min-height:130px;border:1px dashed #d7d3c8;border-radius:14px;background:#fbfaf5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--muted);font-size:12px}.files-empty strong{color:var(--ink);font-size:14px}.files-empty-icon{font-size:28px;margin-bottom:2px}.file-row form{margin:0;flex:0 0 auto}.file-row .action-button{margin:0}.action-button.danger{color:#98483c}.action-button.danger:hover{background:#fff0ed;border-color:#e4c1b9}@media(max-width:650px){.files-head{align-items:stretch}.file-row{align-items:flex-start;flex-direction:column}.file-row form,.file-row .action-button{width:100%}.file-row .action-button{min-height:40px}}

.program-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;margin-bottom:18px}.program-card{min-width:0}.program-card .button{width:100%}.files-panel{margin-bottom:18px}.program-select{width:100%;border:1px solid #d8d8ce;background:white;border-radius:11px;padding:13px 14px;font:inherit}.selected-program{padding:12px 14px;border:1px solid var(--line);border-radius:11px;background:#fbfaf5;color:var(--green);font-weight:700}.program-rows{display:grid;gap:12px}.program-row{display:grid;grid-template-columns:1fr 1fr auto auto;gap:8px;align-items:end;padding:14px;border:1px solid var(--line);border-radius:14px;background:#fbfaf5}.program-row label{margin-top:0!important}.program-row input[readonly]{background:#f3f1e9}.add-program{margin-top:10px}.folder-picker[hidden]{display:none}.folder-picker{margin-top:12px}.folder-browser{max-height:340px;overflow:auto}@media(max-width:760px){.program-row{grid-template-columns:1fr}.program-row .action-button{width:100%}}

.files-program-block{margin-top:18px;border:1px solid var(--line);border-radius:14px;padding:14px;background:#fffefa}.files-program-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.files-program-head>div{display:flex;flex-direction:column;gap:3px;min-width:0}.files-program-head span:not(.count-pill){font-size:11px;color:var(--muted);overflow-wrap:anywhere}.file-list{display:grid;gap:7px}.file-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid #eee9dd}.file-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.file-copy strong{font-size:12px;overflow-wrap:anywhere}.file-copy span{font-size:10px;color:var(--muted)}.file-row form{margin:0;flex:0 0 auto}@media(max-width:650px){.file-row{align-items:stretch;flex-direction:column}.file-row form,.file-row .action-button{width:100%}}

/* V1.8.1 · Pulido de Mis archivos */
.files-section-head{margin-bottom:4px}.files-section-head h2{margin:8px 0 5px}.files-section-head .section-icon{margin-bottom:16px}
.files-program-block{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:16px;background:#fffefa;box-shadow:0 5px 18px rgba(20,61,50,.035)}
.files-program-head{padding-bottom:13px;border-bottom:1px solid #eee9dd;margin-bottom:2px}.files-program-head>div{gap:5px}.files-program-head strong{font-family:Manrope,Arial,sans-serif;font-size:15px;color:var(--ink)}.files-program-head span:not(.count-pill){font-size:11px;color:var(--muted)}
.count-pill{min-width:auto;height:auto;padding:6px 10px;background:#edf2ee;color:var(--green);font-size:11px;white-space:nowrap}
.file-list{gap:0}.file-row{padding:12px 4px;border-top:1px solid #eee9dd;background:transparent;border-left:0;border-right:0;border-bottom:0;border-radius:0}.file-row:first-child{border-top:0}.file-main{min-width:0}.file-icon{width:38px;height:38px;flex-basis:38px;border:1px solid #e0e5df;background:#f0f3ee;font-size:19px}.file-info{gap:5px}.file-info strong{font-size:13px;line-height:1.4;color:var(--ink)}.file-info span{font-size:11px;color:var(--muted)}.file-row .action-button{min-height:34px;padding:8px 11px}.file-row .action-button.danger{background:#fff8f6;border-color:#ead6d1}.file-row .action-button.danger:hover{background:#fff0ed;border-color:#dfbbb2}
.files-empty{min-height:112px;margin-top:10px}.files-empty strong{font-family:Manrope,Arial,sans-serif}.files-empty span{font-size:11px}
@media(max-width:650px){.files-program-block{padding:15px}.files-program-head{align-items:flex-start}.file-row{padding:13px 2px}.file-main{align-items:flex-start}.file-row form,.file-row .action-button{width:auto}.file-row .action-button{min-height:38px}.file-row form{align-self:stretch}.file-row form .action-button{width:100%}}

/* V1.8.2 · Mostrar todos los programas en Mis archivos */
.files-program-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.files-program-grid .files-program-block{margin-top:16px;height:100%}.files-program-grid .file-list{max-height:360px;overflow:auto;padding-right:2px}@media(max-width:760px){.files-program-grid{grid-template-columns:1fr}.files-program-grid .files-program-block{margin-top:14px}.files-program-grid .file-list{max-height:none}}
