:root{
  --green-dark:#0B3D2B;--green-darker:#073B2A;--green:#0DBA5B;--green-hover:#079D4C;--green-2:#078942;
  --mint:#EAF7EF;--mint-2:#EEF8F2;--bg:#F4F6F5;--text:#13263A;--muted:#647180;--faint:#89949F;
  --border:#DCE5E0;--danger:#D9363E;--danger-hover:#BC252E;--white:#fff;--shadow:0 3px 12px rgba(0,0,0,.05);
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,"Segoe UI",Arial,Helvetica,sans-serif;color:var(--text);background:var(--bg);font-size:14px;line-height:1.45}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}img{max-width:100%;display:block}svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Login y selección pública */
.login-page,.fair-page{min-height:100vh;background-size:cover;background-position:center;background-repeat:no-repeat;position:relative;display:flex;align-items:center;padding:42px 6vw;overflow:hidden}.login-page:before,.fair-page:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(2,28,19,.18),rgba(3,35,24,.36))}.login-page>* ,.fair-page>*{position:relative;z-index:1}.login-card{margin-left:auto;width:min(390px,100%);background:rgba(11,61,43,.94);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:30px;box-shadow:0 15px 45px rgba(0,0,0,.22);color:#fff}.login-logo-wrap{background:#fff;border-radius:13px;padding:10px 14px;display:flex;align-items:center;justify-content:center;min-height:92px;margin-bottom:24px}.login-logo-wrap img{max-height:70px;width:auto;object-fit:contain}.login-title{text-align:center;margin:0 0 6px;font-size:23px;font-weight:800;letter-spacing:-.3px}.login-subtitle{text-align:center;margin:0 0 24px;color:rgba(255,255,255,.72);font-size:13px}.dark-field{margin-bottom:14px}.dark-field label{display:block;font-size:12px;font-weight:700;color:#fff;margin-bottom:6px}.dark-field input{width:100%;height:44px;border-radius:10px;border:1px solid rgba(132,180,83,.65);background:rgba(255,255,255,.07);color:#fff;padding:0 14px;outline:none;transition:.2s ease}.dark-field input::placeholder{color:rgba(255,255,255,.5)}.dark-field input:focus{border-color:rgba(13,186,91,.9);box-shadow:0 0 0 3px rgba(13,186,91,.12)}.btn-login{width:100%;height:44px;border:0;border-radius:10px;background:var(--green);color:#fff;font-weight:800;margin-top:5px;transition:.2s ease;box-shadow:0 8px 20px rgba(13,186,91,.18)}.btn-login:hover{background:var(--green-hover);transform:translateY(-1px)}.login-footer{border-top:1px solid rgba(255,255,255,.16);margin-top:24px;padding-top:17px;text-align:center}.login-footer strong{display:block;color:#A8E9C1;font-size:11px;letter-spacing:.08em}.login-footer span{display:block;color:rgba(255,255,255,.65);font-size:10px;margin-top:4px}.photo-note{position:absolute;left:6vw;bottom:48px;color:#fff;display:flex;gap:12px;align-items:flex-start;max-width:380px}.photo-note-icon{width:38px;height:38px;border:1px solid rgba(255,255,255,.28);background:rgba(11,61,43,.45);backdrop-filter:blur(4px);border-radius:11px;display:grid;place-items:center;color:#9CF0BD;flex:0 0 auto}.photo-note-icon svg{width:20px}.photo-note strong{display:block;font-size:14px}.photo-note span{display:block;color:rgba(255,255,255,.75);font-size:12px;margin-top:3px}.login-error{background:#FDECEE;color:#A92831;border:1px solid #F5C4C8;border-radius:12px;padding:11px 13px;margin-bottom:15px;font-size:12px}.login-success{background:#EAF8EF;color:#176A3A;border:1px solid #BDE5C9;border-radius:12px;padding:11px 13px;margin-bottom:15px;font-size:12px}
.fair-panel{width:min(1040px,100%);margin:auto;background:rgba(7,59,42,.92);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.13);border-radius:24px;padding:30px;box-shadow:0 20px 60px rgba(0,0,0,.22);color:#fff}.fair-panel-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.fair-panel-head h1{margin:0;font-size:25px}.fair-panel-head p{margin:4px 0 0;color:rgba(255,255,255,.7)}.mini-logo{background:#fff;border-radius:12px;padding:8px 12px;width:160px;height:72px;display:flex;align-items:center;justify-content:center}.mini-logo img{max-height:54px;width:auto}.fair-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.fair-card{background:#fff;color:var(--text);border:1px solid rgba(255,255,255,.18);border-radius:17px;padding:18px;transition:.2s ease;min-height:210px;display:flex;flex-direction:column;box-shadow:0 7px 24px rgba(0,0,0,.08)}.fair-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,0,0,.13)}.fair-card-logo{height:100px;border-radius:12px;background:#F7FAF8;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;padding:10px}.fair-card-logo img{max-height:78px;width:auto}.fair-card h3{font-size:16px;margin:15px 0 3px}.fair-card span{color:var(--muted);font-size:12px}.fair-card .choose{margin-top:auto;color:var(--green-2);font-weight:800;font-size:12px;padding-top:12px}.fair-logout{color:rgba(255,255,255,.82);font-weight:700;font-size:12px}

/* Barra superior portal */
.app-body{min-height:100vh;padding-bottom:54px}.topbar{height:78px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:40}.topbar-left,.topbar-actions{display:flex;align-items:center;gap:14px}.brand-chip{height:52px;min-width:120px;max-width:180px;border:1px solid var(--border);border-radius:11px;padding:6px 10px;background:#fff;display:flex;align-items:center;justify-content:center}.brand-chip img{max-height:39px;width:auto;object-fit:contain}.topbar-title{display:flex;flex-direction:column}.topbar-title strong{font-size:15px}.topbar-title span{font-size:11px;color:var(--muted)}.top-link{font-size:12px;font-weight:700;color:var(--green-2);padding:9px 10px;border-radius:9px}.top-link:hover{background:var(--mint)}.user-chip{display:flex;align-items:center;gap:9px;padding-left:8px}.user-avatar{width:36px;height:36px;background:var(--mint);color:var(--green-2);border-radius:10px;display:grid;place-items:center;font-weight:800}.user-chip strong,.user-chip span{display:block}.user-chip strong{font-size:12px}.user-chip span{font-size:10px;color:var(--muted)}.icon-btn{width:38px;height:38px;border-radius:10px;border:1px solid var(--border);display:grid;place-items:center;background:#fff;color:var(--text)}.icon-btn:hover{background:var(--mint)}.icon-btn svg{width:18px}.page-shell{width:min(1180px,calc(100% - 40px));margin:30px auto}.site-footer{position:fixed;left:0;right:0;bottom:0;height:38px;display:grid;place-items:center;background:#fff;border-top:1px solid var(--border);color:var(--faint);font-size:10px;z-index:20}

/* Componentes */
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.eyebrow{display:block;font-size:10px;letter-spacing:.13em;font-weight:800;color:var(--green-2);text-transform:uppercase}.page-heading h1,.admin-topbar h1{margin:2px 0 0;font-size:26px;letter-spacing:-.45px}.page-heading p{margin:5px 0 0;color:var(--muted)}.card{background:#fff;border:1px solid var(--border);border-radius:17px;padding:22px;box-shadow:var(--shadow)}.card-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:17px}.card-title h2{margin:0;font-size:18px}.card-title p{margin:3px 0 0;color:var(--muted);font-size:12px}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.section-gap{margin-top:22px}.muted{color:var(--muted)}.small{font-size:12px}.tiny{font-size:10px}.strong{font-weight:800}.divider{height:1px;background:var(--border);margin:20px 0}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800;background:var(--mint);color:var(--green-2);border:1px solid #CEE8D8}.pill.warning{background:#FFF7DF;color:#8B6500;border-color:#F0DFA8}.pill.danger{background:#FDECEE;color:#A92831;border-color:#F5C4C8}.pill.gray{background:#F1F4F3;color:#5D6B78;border-color:#E1E7E4}.pill.blue{background:#EDF4FA;color:#315B7B;border-color:#D7E5F0}.alert{border-radius:12px;padding:12px 15px;margin:0 0 18px;font-weight:600}.alert-success{background:#EAF8EF;color:#176A3A;border:1px solid #BDE5C9}.alert-error{background:#FDECEE;color:#A92831;border:1px solid #F5C4C8}.alert-warning{background:#FFF7DF;color:#7A5A00;border:1px solid #F0DFA8}.empty-state{text-align:center;padding:38px 20px;border:1px dashed #C9D8D1;border-radius:16px;background:#FBFDFC}.empty-state svg{width:35px;height:35px;color:var(--green-2);margin:auto}.empty-state h3{margin:12px 0 5px}.empty-state p{margin:0;color:var(--muted);font-size:12px}

/* Formularios */
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field.full{grid-column:1/-1}.field label{display:block;font-size:11px;font-weight:800;color:#31455A;margin-bottom:6px}.field .help{font-size:10px;color:var(--faint);margin-top:4px}.input,.select,.textarea{width:100%;border:1px solid #D3DFD9;border-radius:10px;background:#fff;color:var(--text);outline:none;transition:.18s ease}.input,.select{height:43px;padding:0 13px}.textarea{min-height:110px;padding:12px 13px;resize:vertical}.input:focus,.select:focus,.textarea:focus{border-color:#8CCFA9;box-shadow:0 0 0 3px rgba(13,186,91,.08)}.input[readonly],.textarea[readonly]{background:#F7F9F8;color:#6B7785}.quantity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.quantity-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 13px;border:1px solid var(--border);border-radius:12px;background:#FBFDFC}.quantity-row strong{font-size:13px}.quantity-row input{width:92px;height:38px;border:1px solid #CAD8D1;border-radius:9px;padding:0 10px;text-align:center}.form-section-title{background:var(--mint-2);border:1px solid #D7EBDD;border-radius:12px;padding:11px 13px;font-size:14px;font-weight:800;color:var(--green-dark);margin-bottom:14px}.actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:20px}.btn{height:42px;padding:0 16px;border-radius:10px;border:1px solid transparent;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s ease}.btn svg{width:17px}.btn-primary{background:var(--green);color:#fff;box-shadow:0 8px 20px rgba(13,186,91,.14)}.btn-primary:hover{background:var(--green-hover);transform:translateY(-1px)}.btn-secondary{background:var(--mint);color:#087C3D;border-color:#CEE8D8}.btn-secondary:hover{background:#DDF2E5}.btn-outline{background:#fff;color:var(--text);border-color:var(--border)}.btn-outline:hover{background:#F7F9F8}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover{background:var(--danger-hover)}.btn-sm{height:34px;padding:0 11px;border-radius:8px;font-size:11px}.btn-block{width:100%}

/* Inicio */
.hero-card{background:linear-gradient(120deg,#0B3D2B,#103F2C);color:#fff;border-radius:22px;padding:30px;box-shadow:0 12px 30px rgba(7,59,42,.13);position:relative;overflow:hidden}.hero-card:after{content:"";position:absolute;width:280px;height:280px;border:55px solid rgba(255,255,255,.035);border-radius:50%;right:-70px;top:-90px}.hero-content{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:25px}.hero-logo{width:200px;height:100px;background:#fff;border-radius:14px;padding:10px;display:flex;align-items:center;justify-content:center}.hero-logo img{max-height:75px;width:auto}.hero-card h1{font-size:27px;margin:0}.hero-card p{color:rgba(255,255,255,.72);margin:6px 0 0}.action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:22px}.action-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:26px;min-height:210px;display:flex;flex-direction:column;box-shadow:var(--shadow);transition:.2s ease}.action-card:hover{transform:translateY(-2px);box-shadow:0 9px 25px rgba(0,0,0,.08);border-color:#C7DDD1}.action-icon{width:54px;height:54px;border-radius:15px;background:var(--mint);color:var(--green-2);display:grid;place-items:center}.action-icon svg{width:27px}.action-card h2{font-size:20px;margin:17px 0 6px}.action-card p{color:var(--muted);margin:0 0 20px;max-width:420px}.action-card .action-link{margin-top:auto;color:var(--green-2);font-weight:800;display:flex;align-items:center;gap:6px}.action-card.disabled{opacity:.56;filter:grayscale(.25);pointer-events:none}

/* Entregas */
.tabs{display:flex;gap:8px;margin-bottom:18px}.tab{height:39px;padding:0 15px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--muted);font-weight:800}.tab.active{background:var(--green-dark);color:#fff;border-color:var(--green-dark)}.delivery-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.delivery-column{background:#fff;border:1px solid var(--border);border-radius:17px;padding:18px}.delivery-column-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px}.delivery-column-head h2{font-size:17px;margin:0}.count-badge{min-width:28px;height:28px;border-radius:9px;background:var(--mint);color:var(--green-2);font-weight:800;display:grid;place-items:center}.delivery-list{display:flex;flex-direction:column;gap:10px}.delivery-row{border:1px solid #E2E9E5;border-radius:13px;padding:13px;background:#fff;display:grid;grid-template-columns:1fr auto;gap:13px;align-items:center}.delivery-row:hover{background:#FBFDFC}.delivery-row h3{font-size:13px;margin:0 0 3px}.delivery-row p{font-size:11px;margin:0;color:var(--muted)}.delivery-summary{font-size:11px;color:#3E5366;margin-top:7px}.delivery-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}.signature-box{border:1px solid #CBD8D1;border-radius:12px;background:#fff;overflow:hidden}.signature-canvas{width:100%;height:260px;display:block;touch-action:none;background:#fff}.signature-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--border);padding:9px 11px;background:#F8FAF9}.signature-toolbar span{font-size:10px;color:var(--muted)}.signature-preview{max-height:220px;margin:auto;border:1px solid var(--border);border-radius:10px;background:#fff}.readout{border:1px solid var(--border);border-radius:12px;background:#FAFCFB;padding:12px}.readout label{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--faint);font-weight:800}.readout strong{display:block;margin-top:2px;font-size:12px}

/* Tablas */
.table-card{background:#fff;border:1px solid #D8E4DE;border-radius:15px;overflow:hidden}.table-scroll{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:780px}.table th{background:#EFF8F3;color:#617485;font-size:10px;text-transform:uppercase;letter-spacing:.05em;font-weight:800;text-align:left;padding:12px 13px;white-space:nowrap}.table td{border-top:1px solid #E4EAE7;padding:12px 13px;color:#17283B;vertical-align:middle}.table tbody tr:hover{background:#FAFCFB}.table td .sub{display:block;color:var(--muted);font-size:10px;margin-top:2px}.table-actions{display:flex;gap:6px;justify-content:flex-end}.filters{display:grid;grid-template-columns:1.5fr repeat(2,minmax(150px,.65fr)) auto;gap:10px;margin-bottom:14px}.filters .input,.filters .select{height:39px}.filters .btn{height:39px}

/* Modal */
.modal-backdrop{position:fixed;inset:0;background:rgba(3,35,24,.70);backdrop-filter:blur(4px);z-index:90;display:flex;align-items:center;justify-content:center;padding:24px}.modal{width:min(1020px,100%);max-height:86vh;background:#fff;border-radius:23px;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden;display:flex;flex-direction:column}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 24px 17px;border-bottom:1px solid var(--border)}.modal-head h2{margin:0;font-size:21px}.modal-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.modal-close{width:38px;height:38px;border:1px solid var(--border);background:#fff;border-radius:10px;color:var(--muted);font-size:22px}.modal-body{padding:22px 24px;overflow:auto}.modal-body::-webkit-scrollbar{width:8px}.modal-body::-webkit-scrollbar-thumb{background:#C4CDC8;border-radius:999px}.modal-foot{display:flex;align-items:center;justify-content:flex-end;gap:9px;padding:16px 24px;border-top:1px solid var(--border);background:#FAFCFB}

/* Administración */
.admin-body{background:#F4F6F5}.admin-layout{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:var(--green-darker);color:#fff;padding:20px 14px;display:flex;flex-direction:column;min-height:100vh;position:sticky;top:0;height:100vh;z-index:70}.sidebar-logo{padding:0 7px 19px;border-bottom:1px solid rgba(255,255,255,.1)}.sidebar-logo span{height:73px;background:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;padding:9px}.sidebar-logo img{max-height:54px;width:auto}.sidebar-logo strong{display:block;margin-top:10px;font-size:12px;color:rgba(255,255,255,.8)}.sidebar-nav{display:flex;flex-direction:column;gap:5px;padding-top:17px}.sidebar-nav a{display:flex;align-items:center;gap:10px;padding:10px 11px;border-radius:10px;color:rgba(255,255,255,.75);font-weight:700;font-size:12px;border-left:3px solid transparent}.sidebar-nav a svg{width:18px}.sidebar-nav a:hover{background:rgba(255,255,255,.07);color:#fff}.sidebar-nav a.active{background:rgba(255,255,255,.1);color:#fff;border-left-color:var(--green)}.sidebar-bottom{margin-top:auto;border-top:1px solid rgba(255,255,255,.1);padding:16px 8px 4px}.sidebar-bottom a{display:block;color:#BDE8CD;font-size:11px;font-weight:700;margin-bottom:10px}.sidebar-bottom small{font-size:9px;color:rgba(255,255,255,.5)}.admin-main{min-width:0}.admin-topbar{height:84px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 26px;position:sticky;top:0;z-index:50}.admin-topbar h1{font-size:22px}.admin-content{padding:26px;max-width:1450px;margin:auto}.sidebar-toggle{display:none;width:40px;height:40px;border:1px solid var(--border);background:#fff;border-radius:10px;color:var(--text)}.sidebar-toggle svg{width:20px}.icon-btn.light{color:var(--muted)}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.stat-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:18px;box-shadow:var(--shadow)}.stat-card-head{display:flex;align-items:center;justify-content:space-between}.stat-icon{width:42px;height:42px;border-radius:12px;background:var(--mint);color:var(--green-2);display:grid;place-items:center}.stat-icon svg{width:21px}.stat-card .number{font-size:27px;font-weight:800;margin-top:11px;letter-spacing:-.5px}.stat-card .label{font-size:11px;color:var(--muted)}.admin-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:18px}.admin-section{background:#fff;border:1px solid var(--border);border-radius:17px;padding:20px}.admin-section h2{margin:0 0 14px;font-size:17px}.crud-form{background:#fff;border:1px solid var(--border);border-radius:17px;padding:20px;margin-bottom:18px}.checkbox-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.check{display:flex;align-items:center;gap:9px;border:1px solid var(--border);border-radius:10px;padding:10px 11px;background:#FBFDFC}.check input{accent-color:var(--green)}.check span{font-size:12px;font-weight:700}.role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.logo-preview{height:100px;border:1px dashed #C8D6CF;border-radius:12px;background:#F9FBFA;display:flex;align-items:center;justify-content:center;padding:10px}.logo-preview img{max-height:75px;width:auto}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:5px}.status-dot.off{background:#A9B1AD}

@media(max-width:1000px){.fair-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.user-chip{display:none}.admin-layout{grid-template-columns:220px 1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-grid{grid-template-columns:1fr}.filters{grid-template-columns:1fr 1fr}.filters>*:first-child{grid-column:1/-1}.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.login-page,.fair-page{padding:20px 14px;align-items:center}.login-page:before,.fair-page:before{background:rgba(3,35,24,.42)}.login-card{margin:auto;width:calc(100% - 4px);padding:24px}.photo-note{display:none}.fair-panel{padding:20px;border-radius:20px}.fair-panel-head{align-items:flex-start;flex-direction:column}.mini-logo{width:135px}.fair-grid{grid-template-columns:1fr}.topbar{height:auto;min-height:72px;padding:10px 14px}.topbar-title{display:none}.topbar-actions{gap:5px}.top-link{font-size:10px;padding:8px 6px}.brand-chip{min-width:88px;max-width:110px}.page-shell{width:calc(100% - 24px);margin:20px auto}.page-heading{align-items:flex-start;flex-direction:column}.page-heading h1{font-size:23px}.hero-content{flex-direction:column;align-items:flex-start}.hero-logo{width:160px;height:80px}.action-grid,.grid-2,.grid-3,.form-grid,.quantity-grid,.delivery-columns{grid-template-columns:1fr}.actions{flex-wrap:wrap}.actions .btn{flex:1}.modal-backdrop{padding:10px}.modal{max-height:94vh;border-radius:18px}.modal-head,.modal-body,.modal-foot{padding-left:16px;padding-right:16px}.signature-canvas{height:220px}.admin-layout{display:block}.sidebar{position:fixed;left:-270px;top:0;width:250px;transition:.2s ease;box-shadow:0 20px 60px rgba(0,0,0,.3)}.sidebar.open{left:0}.sidebar-toggle{display:grid;place-items:center}.admin-topbar{height:76px;padding:0 15px;gap:12px}.admin-topbar>div{flex:1}.admin-topbar h1{font-size:19px}.admin-content{padding:16px 12px 28px}.stats-grid,.grid-4{grid-template-columns:1fr 1fr}.filters{grid-template-columns:1fr}.filters>*:first-child{grid-column:auto}.checkbox-grid,.role-grid{grid-template-columns:1fr}.delivery-row{grid-template-columns:1fr}.delivery-row .btn{width:100%}}
@media(max-width:430px){.stats-grid,.grid-4{grid-template-columns:1fr}.top-link:nth-of-type(2){display:none}.hero-card{padding:22px}.hero-card h1{font-size:23px}.fair-card{min-height:185px}}

/* Movimiento institucional suave del fondo de inicio de sesión */
.login-page{
  animation:loginBackgroundPan 30s ease-in-out infinite alternate;
  will-change:background-position;
}
@keyframes loginBackgroundPan{
  0%{background-position:43% center}
  100%{background-position:57% center}
}
@media(prefers-reduced-motion:reduce){.login-page{animation:none;background-position:center}}

/* Reportes */
.report-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border:1px solid var(--border);border-radius:18px;padding:22px 24px;box-shadow:var(--shadow);margin-bottom:18px}.report-hero h2{font-size:22px;margin:3px 0 5px;letter-spacing:-.35px}.report-hero p{margin:0;color:var(--muted);max-width:760px}.report-icon{width:58px;height:58px;border-radius:15px;background:var(--mint);color:var(--green-2);display:grid;place-items:center;flex:0 0 auto}.report-icon svg{width:28px}.report-filters{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:14px;align-items:end}.report-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px;padding-top:2px}.report-stats{margin-top:18px}.report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.report-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:22px;box-shadow:var(--shadow);display:grid;grid-template-columns:54px 1fr;gap:16px;align-items:start}.report-card-icon{width:54px;height:54px;border-radius:14px;background:var(--mint);color:var(--green-2);display:grid;place-items:center}.report-card-icon svg{width:25px}.report-card-content h3{font-size:18px;margin:3px 0 6px}.report-card-content p{margin:0;color:var(--muted);font-size:12px}.report-count{display:inline-block;margin-top:10px;font-size:11px;font-weight:800;color:var(--green-2)}.report-download{grid-column:1/-1;justify-content:center}.report-download svg{width:17px}
@media(max-width:1000px){.report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid{grid-template-columns:1fr}}
@media(max-width:760px){.login-page{animation-duration:24s}.report-hero{align-items:flex-start}.report-icon{width:48px;height:48px}.report-filters{grid-template-columns:1fr}.report-filter-actions{grid-column:auto;justify-content:stretch}.report-filter-actions .btn{flex:1}}
