@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400..900&display=swap");
:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#24352c;background:#f7f9f8;font-synthesis:none;-webkit-font-smoothing:antialiased;--forest:#165b35;--forest2:#0f4729;--green:#32935b;--mint:#eaf4ed;--text:#24352c;--muted:#64766b;--border:#dce6df;--paper:#fff;--shadow:0 9px 30px rgba(26,75,48,.06)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;overscroll-behavior-y:none}body{min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.53}input,textarea,select{max-width:100%;color:#24352c}a{color:var(--forest)}.app{min-height:100vh}.sidebar{width:252px;background:#fff;border-right:1px solid var(--border);position:fixed;inset:0 auto 0 0;padding:24px 15px;display:flex;flex-direction:column;gap:23px;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 9px}.brandmark{display:grid;place-items:center;background:var(--forest);color:#fff;width:40px;height:40px;border-radius:12px;font-weight:800;letter-spacing:-.04em}.brand strong{font-size:18px;letter-spacing:.04em}.brand small{display:block;color:var(--muted);font-size:11px}.sidebar-section{font-size:10px;letter-spacing:.14em;color:#87968c;font-weight:800;padding:0 14px;margin-bottom:8px}.side-nav{display:flex;flex-direction:column;gap:3px;overflow:auto;scrollbar-width:thin}.nav-button{border:0;background:transparent;display:flex;align-items:center;gap:12px;text-align:left;padding:12px 13px;border-radius:10px;color:#4b6053;font-size:13px;font-weight:600;width:100%}.nav-button:hover{background:#f2f7f3}.nav-button.active{background:#eaf4ed;color:var(--forest);font-weight:750}.navico{display:grid;place-items:center;width:18px;font-size:18px}.sidebar-foot{margin-top:auto;padding:14px;background:#f7faf7;border:1px solid var(--border);border-radius:12px}.sidebar-foot strong{font-size:12px}.sidebar-foot p{font-size:11px;line-height:1.5;color:var(--muted);margin:5px 0 0}.main{margin-left:252px;min-height:100vh}.topbar{height:74px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:12;display:flex;align-items:center;justify-content:space-between;padding:12px 33px;gap:18px;backdrop-filter:blur(12px)}.topbar-left{display:flex;align-items:center;gap:16px}.ministry{width:145px;height:auto;max-height:52px;object-fit:contain}.breadcrumb{font-size:12px;color:#87968c;border-left:1px solid #d7dfd8;padding-left:17px}.top-actions{display:flex;align-items:center;gap:9px}.status-pill,.pill{font-size:11px;font-weight:750;display:inline-flex;align-items:center;gap:5px;border-radius:100px;padding:6px 10px;white-space:nowrap}.status-pill.online{background:#e3f5e9;color:#166237}.status-pill.offline{background:#fff3df;color:#8c5d08}.pill{background:#eef2ef;color:#536958}.pill.green{background:#e2f4e8;color:#176739}.pill.orange{background:#fff2df;color:#946212}.pill.gray{background:#eef1f2;color:#667276}.pill.blue{background:#e6f0ff;color:#265caa}.chip-warn{color:#795414;background:#fff1d5;border:1px solid #f7df9b;border-radius:7px;font-size:11px;padding:6px 9px}.demo-bar{padding:9px 32px;text-align:center;background:#fff5d7;color:#775617;font-size:12px;border-bottom:1px solid #f4e4af;font-weight:650}.container{max-width:1440px;margin:0 auto;padding:31px 34px 100px}.heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:25px}.eyebrow{text-transform:uppercase;letter-spacing:.15em;font-weight:800;font-size:11px;color:#368754;margin:0 0 8px}.heading h1{font-size:29px;letter-spacing:-.9px;line-height:1.16;margin:0 0 8px}.heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.heading-buttons{display:flex;gap:10px;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--forest);border:1px solid var(--forest);color:white;padding:11px 17px;border-radius:9px;font-weight:700;font-size:12px;line-height:1.35;white-space:nowrap}.btn:hover{background:var(--forest2)}.btn.secondary{color:var(--forest);background:#fff;border-color:#bad0c0}.btn.secondary:hover{background:#f0f8f2}.btn.ghost{background:transparent;color:var(--muted);border-color:var(--border)}.btn.danger{background:#fff1f0;color:#ad2938;border-color:#f4c9c8}.btn.sm{padding:7px 11px;font-size:11px}.iconbtn{background:#fff;border:1px solid var(--border);width:35px;height:35px;border-radius:9px;color:var(--text);font-size:18px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{background:white;border:1px solid var(--border);border-radius:14px;padding:21px 21px 19px;box-shadow:var(--shadow)}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.stat .value{font-size:33px;font-weight:800;letter-spacing:-1px;margin:15px 0 9px}.stat small{color:#678071;font-size:11px}.stat-ico{width:36px;height:36px;display:grid;place-items:center;background:#eaf4ed;color:var(--forest);border-radius:11px;font-size:18px}.grid2{display:grid;grid-template-columns:1.55fr 1fr;gap:18px}.grid-half{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{border:1px solid var(--border);background:#fff;border-radius:15px;padding:22px;box-shadow:var(--shadow);min-width:0}.panel h2{font-size:15px;letter-spacing:-.2px;margin:0}.panel h3{font-size:13px}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}.subtle{color:var(--muted);font-size:12px;line-height:1.55}.hero{background:linear-gradient(115deg,#165b35,#247849 76%);border-radius:17px;color:#fff;padding:28px 30px;min-height:202px;display:flex;align-items:center;justify-content:space-between;gap:30px;margin-bottom:24px;overflow:hidden}.hero h2{font-size:25px;letter-spacing:-.5px;margin:8px 0 10px}.hero p{color:#dcefe2;font-size:13px;max-width:610px;line-height:1.6;margin:0 0 20px}.hero .btn{background:#fff;border-color:#fff;color:#165b35}.hero-art{font-size:103px;filter:grayscale(.22);opacity:.88}.shortcut-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.shortcut{display:flex;align-items:center;gap:12px;padding:13px;text-align:left;background:#f8fbf9;border:1px solid #e3ede6;border-radius:11px;color:var(--text)}.shortcut:hover{border-color:#94c3a4;background:#eef8f1}.shortcut span:first-child{font-size:22px}.shortcut strong{font-size:12px;display:block}.shortcut small{color:var(--muted);font-size:10px}.activity{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #edf2ee}.activity:last-child{border-bottom:0}.activity .circle{width:34px;height:34px;background:#ecf7ee;border-radius:50%;display:grid;place-items:center;color:var(--forest)}.activity strong{font-size:12px}.activity small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.activity .date{margin-left:auto;color:#91a19a;font-size:10px;white-space:nowrap}.toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px;align-items:center}.search{padding:10px 12px;border:1px solid var(--border);background:#fff;border-radius:9px;font-size:12px;min-width:220px;flex:1;outline-color:#389961}.table-wrap{overflow:auto;border-radius:10px;border:1px solid var(--border)}table{width:100%;border-collapse:collapse;font-size:12px}thead{background:#f4f8f5}th,td{text-align:left;padding:14px 12px;vertical-align:middle;border-bottom:1px solid #eaf0eb}th{font-size:10px;text-transform:uppercase;letter-spacing:.055em;color:#778c80;font-weight:800}tbody tr:last-child td{border-bottom:none}tbody tr:hover{background:#fbfdfb}td strong{font-size:12px}td .subtle{font-size:10px}.table-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px}.empty{padding:35px;text-align:center;color:var(--muted);font-size:12px}.empty .emoji{font-size:39px;margin-bottom:10px}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field.full{grid-column:1/-1}.field label{font-size:11px;font-weight:750;color:#465d4d}.field .hint{font-size:10px;color:#86968c}.field input,.field select,.field textarea{width:100%;background:#fff;border:1px solid #cadacf;border-radius:9px;padding:12px 13px;min-height:43px;outline-color:#3d9964;font-size:12px}.field textarea{min-height:80px;resize:vertical}.field input:focus,.field select:focus{border-color:var(--green)}.field :disabled{background:#f2f5f2;color:#799082}.banner{display:flex;gap:13px;align-items:flex-start;padding:15px;border:1px solid #d6e8db;background:#f3faf5;border-radius:11px;margin-bottom:17px}.banner.warning{border-color:#f0dcae;background:#fff9ec}.banner strong{font-size:12px}.banner p{margin:4px 0 0;font-size:11px;color:#6a7e70;line-height:1.55}.banner.warning p{color:#846b3c}.banner .large{font-size:20px}.segment{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:10px;background:#fff;padding:3px;gap:3px}.segment button{border:0;background:transparent;color:#5d7063;padding:9px 13px;border-radius:8px;font-size:12px;font-weight:700}.segment button.selected{background:var(--forest);color:#fff}.modal-backdrop{position:fixed;inset:0;background:rgba(21,43,30,.45);z-index:30;display:flex;align-items:center;justify-content:center;padding:14px}.modal{background:#fff;max-width:650px;width:100%;max-height:calc(100vh - 36px);overflow:auto;border-radius:15px;box-shadow:0 24px 60px rgba(10,35,19,.23)}.modal header{position:sticky;top:0;background:#fff;z-index:1;padding:22px 25px 18px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.modal header h2{font-size:18px;margin:0}.modal-body{padding:22px 25px}.modal footer{display:flex;justify-content:flex-end;gap:10px;padding:17px 25px;border-top:1px solid var(--border)}.wizard{max-width:870px;margin:0 auto}.steps{display:flex;gap:5px;align-items:center;margin-bottom:23px}.step{flex:1;height:6px;border-radius:5px;background:#e2eae4}.step.active{background:var(--forest)}.wizard-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.wizard-top h2{font-size:20px;margin:6px 0}.wizard-card{background:#fff;border:1px solid var(--border);padding:29px;border-radius:15px;min-height:340px}.wizard-card h3{font-size:17px;margin:0 0 8px}.wizard-card>p{font-size:12px;color:var(--muted);margin:0 0 25px}.wizard-footer{display:flex;gap:10px;justify-content:space-between;margin-top:20px}.found{border:1px solid #b7dfc1;background:#f0faf3;border-radius:12px;padding:15px;margin:15px 0}.notfound{border:1px dashed #d9c69d;background:#fff9ef;border-radius:12px;padding:15px;margin:15px 0}.found h4,.notfound h4{margin:0 0 5px;font-size:13px}.found p,.notfound p{font-size:12px;line-height:1.5;margin:0;color:#526e5c}.tagline{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:9px 0}.inspect{background:#0d2a1b;color:#d9f3e1;border-radius:12px;padding:17px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.inspect b{color:#a8dbb6}.mutedbox{background:#f8faf8;border:1px solid #edf0ec;border-radius:10px;padding:14px}.metricbar{height:8px;border-radius:20px;background:#edf2ed;overflow:hidden;margin-top:8px}.metricbar span{display:block;background:#228d55;height:100%}.scenario-table{display:grid;gap:10px}.scenario-card{padding:14px;border:1px solid var(--border);border-radius:11px;display:grid;grid-template-columns:100px 1fr 1fr;gap:12px;align-items:center}.scenario-card code{color:var(--forest);font-weight:800;font-size:12px}.scenario-card small{color:var(--muted)}.badge-count{font-size:12px;color:var(--muted)}.toast{position:fixed;bottom:25px;right:25px;z-index:50;background:#173d28;color:white;border-radius:10px;padding:12px 18px;box-shadow:0 11px 35px #0003;font-size:12px;max-width:350px}.bottom-nav{display:none}.footer-note{font-size:11px;color:#91a099;padding-top:25px}.section-title{font-size:14px;font-weight:800;margin:20px 0 13px}.flow-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.toggle{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:650}.toggle input{accent-color:#165b35;width:18px;height:18px}.tiny{font-size:10px;color:#87988a}pre{white-space:pre-wrap;overflow-wrap:anywhere}select.inline-select{border:1px solid var(--border);border-radius:8px;padding:9px;font-size:12px;background:white}.mini-list{display:flex;flex-wrap:wrap;gap:8px}.mini-list .pill{font-size:11px}.statline{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--border);font-size:12px}.statline:last-child{border:0}.statline strong{font-size:12px}.mobile-top-name{display:none}
@media(max-width:1180px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.grid2{grid-template-columns:1fr 1fr}.sidebar{width:222px}.main{margin-left:222px}.container{padding:25px 24px 90px}.topbar{padding:12px 24px}}
@media(max-width:870px){.sidebar{display:none}.main{margin-left:0}.topbar{height:60px;padding:10px 16px}.ministry{width:115px}.breadcrumb{display:none}.mobile-top-name{display:block;font-size:12px;font-weight:750}.container{padding:21px 14px 95px}.heading{align-items:flex-start;flex-direction:column;gap:12px}.heading h1{font-size:25px}.grid2,.grid-half{grid-template-columns:1fr}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--border);z-index:17;justify-content:space-around;padding:8px 2px calc(9px + env(safe-area-inset-bottom));box-shadow:0 -8px 20px #0a31100d}.bottom-nav button{border:0;background:transparent;color:#819489;display:flex;flex-direction:column;gap:4px;align-items:center;min-width:54px;font-size:10px;font-weight:750}.bottom-nav button.active{color:#165b35}.bottom-nav .ico{font-size:20px}.hero{padding:20px}.hero-art{font-size:60px}.hero h2{font-size:20px}.shortcut-grid{grid-template-columns:repeat(2,1fr)}.demo-bar{padding:8px 13px;font-size:11px}.scenario-card{grid-template-columns:1fr 1fr}.scenario-card code{grid-column:1/-1}.top-actions .chip-warn{display:none}.toast{bottom:85px;left:15px;right:15px}.wizard-card{padding:19px}}
@media(max-width:480px){.cards{gap:9px}.stat{padding:14px}.stat .value{font-size:26px}.stat-top{font-size:11px}.shortcut-grid{grid-template-columns:1fr 1fr}.shortcut{padding:10px}.formgrid{grid-template-columns:1fr}.field.full{grid-column:auto}.panel{padding:15px}.heading-buttons{width:100%}.heading-buttons .btn{flex:1}.modal-body{padding:17px}.modal header,.modal footer{padding:15px}.hero-art{display:none}.ministry{width:100px}.status-pill{padding:6px}.top-actions{gap:5px}.wizard-top h2{font-size:16px}}
/* SINIAP v0.2 — experiencia del productor, siguiendo el diseño institucional */
.svg-icon{display:inline-block;vertical-align:middle;flex-shrink:0}
.producer-app .sidebar{width:260px}
.producer-app .main{margin-left:260px}
.producer-app .nav-button .navico{width:22px;font-size:inherit}
.producer-app .stat-link{width:100%;text-align:left;cursor:pointer}
.producer-app .stat-link:hover{border-color:#a4cdb0;transform:translateY(-1px)}
.producer-app .stat-link small{display:flex;align-items:center;gap:6px}
.producer-app .hero-illustration{width:180px;height:150px;display:grid;place-items:center;border:1px solid #ffffff52;border-radius:32px;background:linear-gradient(145deg,#ffffff1d,#ffffff05);color:#d9ffe4;transform:rotate(-7deg);flex-shrink:0}
.producer-hero{background:linear-gradient(115deg,#0f472b,#165b35 68%,#277e4b)}
.producer-hero .pill{background:#ffffff27;color:#fff}
.profile-top{display:flex;gap:8px;align-items:center;border:1px solid var(--border);background:#fff;color:var(--forest);border-radius:9px;padding:9px 11px;font-weight:700;font-size:12px;cursor:pointer}
.profile-badge,.auth-icon{display:grid;place-items:center;background:#e8f4ec;color:var(--forest);border-radius:14px;width:54px;height:54px;margin-bottom:18px}
.profile-badge{width:50px;height:50px}
.profile-top span{max-width:100px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.public-app{min-height:100vh;background:radial-gradient(circle at 20% 12%,#e7f4eb,transparent 33%),#f7f9f8;display:flex;flex-direction:column}
.public-head{height:84px;background:#fff;display:flex;align-items:center;gap:17px;padding:12px max(22px,calc((100% - 1250px)/2));border-bottom:1px solid var(--border)}
.public-head img{width:155px;max-height:55px;object-fit:contain}
.public-head strong{font-size:19px;color:var(--forest);padding-left:19px;border-left:1px solid var(--border)}
.public-head small{display:block;color:var(--muted);font-size:10px;letter-spacing:.03em;font-weight:600}
.public-head .status-pill{margin-left:auto}
.public-container{width:min(1220px,calc(100% - 36px));margin:45px auto 60px;flex:1}
.public-foot{text-align:center;color:#7d9083;font-size:11px;padding:16px}
.welcome-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:stretch}
.welcome-hero{min-height:535px;background:linear-gradient(135deg,#114b2f 20%,#1b7044 72%,#2f8651);color:#fff;border-radius:22px;padding:55px 44px;overflow:hidden;position:relative}
.welcome-hero:after{content:"";position:absolute;border:1px solid #ffffff26;border-radius:50%;height:390px;width:390px;bottom:-205px;right:-130px;box-shadow:0 0 0 56px #ffffff0a,0 0 0 113px #ffffff05;pointer-events:none}
.eyebrow.light{color:#bbefc8}
.welcome-hero h1{font-size:clamp(30px,4.2vw,51px);line-height:1.09;letter-spacing:-1.8px;margin:32px 0 19px;max-width:550px}
.welcome-hero p{color:#d7eadc;font-size:15px;line-height:1.8;max-width:490px}
.welcome-features{margin-top:48px;display:grid;gap:18px;font-size:13px;font-weight:650}
.welcome-features>div{display:flex;align-items:center;gap:14px}
.welcome-features svg{width:36px;height:36px;border:1px solid #ffffff45;border-radius:10px;padding:7px}
.welcome-access{padding:42px 35px;align-self:stretch}
.welcome-access h2{font-size:28px;letter-spacing:-.7px;margin:22px 0 12px}
.welcome-access>.subtle{font-size:13px}
.welcome-buttons{display:flex;gap:9px;margin-top:28px}
.welcome-buttons .btn{flex:1}
.divider-or{position:relative;text-align:center;color:#8aa095;font-size:12px;margin:26px 0 19px}
.divider-or:before{content:"";position:absolute;border-top:1px solid #dce8e0;top:50%;left:0;right:0;z-index:0}
.divider-or{isolation:isolate}
.divider-or:after{content:"";position:absolute;background:#fff;top:0;bottom:0;width:220px;left:50%;transform:translateX(-50%);z-index:-1}
.account-tile{width:100%;border:1px solid #dde8e0;background:#fff;border-radius:12px;padding:15px;display:flex;gap:12px;align-items:center;text-align:left;margin-bottom:9px;color:var(--forest)}
.account-tile:hover{background:#f3faf5;border-color:#8fbd9f}
.account-tile>span{flex:1}
.account-tile strong{font-size:12px;display:block;color:var(--text)}
.account-tile small{color:var(--muted);font-size:10px;display:block;margin-top:4px;line-height:1.45}
.privacy-note{margin-top:24px!important;font-size:11px!important}
.auth-card{width:min(480px,100%);margin:0 auto;padding:42px}
.auth-card h1{font-size:27px;margin:11px 0 12px}
.auth-card .formgrid{margin:24px 0 8px}
.auth-card .field label{font-size:12px}
.auth-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:11px;margin-top:23px}
.auth-links button{background:none;border:none;color:var(--forest);font-size:12px;font-weight:700;text-decoration:underline;text-underline-offset:3px;padding:0}
.fullbtn{width:100%;margin-top:16px}
.registration-wrap{max-width:880px;margin:0 auto}
.registration-title h1{font-size:29px;letter-spacing:-.7px;margin:4px 0}
.registration-title p{font-size:13px;color:var(--muted);margin:5px 0 22px}
.register-panel{padding:32px}
.register-panel .wizard-top{border-bottom:1px solid var(--border);padding-bottom:14px}
.register-panel .section-title{margin:15px 0 9px}
.register-panel .formgrid{gap:17px;margin-top:18px}
.register-panel .field label{font-size:12px}
.demo-examples{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:17px 0}
.demo-dni{border:1px solid #d5e4d9;border-radius:11px;background:#fafdfa;text-align:left;padding:15px 12px;color:var(--text)}
.demo-dni:hover,.demo-dni.selected{border-color:#1c7d46;background:#ecf6ef}
.demo-dni strong{display:block;font-size:16px;font-variant-numeric:tabular-nums;color:var(--forest)}
.demo-dni small{display:block;margin-top:6px;color:var(--muted);font-size:10px;line-height:1.5}
.confirm{font-size:12px;color:#596d5e;display:flex;align-items:flex-start;gap:11px;margin-top:21px;line-height:1.6}
.confirm input{margin-top:4px;accent-color:var(--forest)}
.complete{text-align:center;padding:35px 10px}
.complete h2{font-size:21px;margin:18px 0 8px}
.complete p{color:var(--muted);font-size:13px}
.success-big{height:72px;width:72px;background:#dcf4e3;border-radius:50%;color:#16703b;display:grid;place-items:center;margin:0 auto}
.item-card{display:flex;align-items:center;gap:15px;padding:17px 3px;border-bottom:1px solid #ebf1ed}
.item-card:last-child{border-bottom:none}
.item-text{min-width:0;flex:1}
.item-text strong{font-size:13px;display:block;color:#26392d}
.item-text small{font-size:11px;color:var(--muted);display:block;margin:5px 0}
.item-text p{font-size:12px;color:#556b5d;line-height:1.6;margin:8px 0 0}
.item-id{font-size:10px;color:#a1b0a4;font-weight:700}
.item-actions{display:flex;gap:6px;flex-shrink:0}
.row-icon{width:40px;height:40px;display:grid;place-items:center;background:#e9f5ed;color:#216b41;border-radius:12px;flex-shrink:0}
.search-wrap{position:relative;display:flex;gap:9px;align-items:center;color:#789485;flex:1}
.search-wrap .search{padding-left:11px;width:100%}
.resource-row{border:0;border-bottom:1px solid #edf2ee;background:#fff;padding:13px 0;display:flex;gap:13px;align-items:center;text-align:left;width:100%;color:var(--text)}
.resource-row:hover{background:#f9fcf9}
.resource-row:last-child{border-bottom:0}
.resource-row>span:nth-child(2){min-width:0;flex:1}
.resource-row strong{display:block;font-size:12px;margin-bottom:5px}
.resource-row small{font-size:10px;color:var(--muted);display:block}
.trace-card{border:1px solid #e5eee7;border-radius:12px;margin-top:15px;padding:12px 17px}
.trace-card .item-card{border:0}
.trace-steps{border-left:2px solid #bbdcc7;margin:0 0 8px 25px;padding-left:20px}
.trace-steps>div{position:relative;font-size:12px;padding:7px 0;color:#54705d}
.trace-steps strong{color:#26392d}
.trace-steps small{display:block;color:#6f8276;margin:4px 0}
.trace-point{width:10px;height:10px;border-radius:50%;background:#237849;position:absolute;left:-26px;top:12px}
.more-list{padding:14px 24px}
.more-list .resource-row{padding:17px 0}
@media(max-width:1180px){.producer-app .sidebar{width:225px}.producer-app .main{margin-left:225px}}
@media(max-width:870px){.producer-app .sidebar{display:none}.producer-app .main{margin-left:0}.public-head{height:72px;padding:8px 17px}.public-head img{width:116px}.public-head strong{font-size:16px;padding-left:10px}.public-head small{font-size:9px}.public-container{margin:20px auto 70px}.welcome-layout{grid-template-columns:1fr}.welcome-hero{min-height:300px;padding:32px}.welcome-hero h1{font-size:34px;margin:20px 0 13px}.welcome-features{margin-top:26px;gap:11px}.welcome-access{padding:28px}.profile-top span{display:none}.producer-app .hero-illustration{width:100px;height:100px}.producer-app .hero-illustration svg{width:75px;height:75px}}
@media(max-width:560px){.public-head .status-pill{display:none}.welcome-hero{min-height:initial;padding:30px 23px}.welcome-hero h1{font-size:31px}.welcome-features{font-size:12px}.welcome-access{padding:26px 20px}.auth-card{padding:28px 20px}.registration-wrap .register-panel{padding:21px 16px}.demo-examples{grid-template-columns:1fr}.demo-dni{padding:11px 14px;display:flex;gap:11px;align-items:center}.demo-dni strong{min-width:80px}.demo-dni small{margin:0}.item-card{flex-wrap:wrap}.item-actions{width:100%;padding-left:55px}.item-actions .btn{flex:1}.producer-app .hero-illustration{display:none}.producer-app .hero{min-height:190px}.producer-app .topbar .chip-warn{display:none}.register-panel .wizard-top strong{font-size:12px}.producer-app .stat .value{font-size:27px}}

/* SINIAP v0.3 — interfaz accesible, limpia, productora / productor */
:root{font-family:"Nunito Sans Variable","Nunito Sans",system-ui,-apple-system,sans-serif;--forest:#165b35;--text:#23352a;--muted:#61776b;--border:#dfe9e2;--paper:#fff;--shadow:0 4px 22px rgba(14,60,34,.055)}
body{font-family:inherit;background:#fafbfa;color:var(--text);line-height:1.52}
button,input,select,textarea{font-family:inherit;letter-spacing:0}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #72ba89;outline-offset:2px}
.si-brand{display:inline-grid;place-items:center;background:#165b35;color:#fff!important;border:1px solid #165b35;border-radius:12px;width:47px;height:47px;font-size:21px;font-weight:900;letter-spacing:-1px;flex-shrink:0}
.si-brand.small{height:35px;width:35px;border-radius:10px;font-size:17px}
.public-head{background:white;height:99px;border-bottom:1px solid #edf1ed;gap:15px}
.public-head img{width:205px;max-height:80px}
.public-head strong{border:none!important;padding-left:0!important;font-size:23px;font-weight:900;letter-spacing:0}
.public-container{max-width:1150px;margin:34px auto 55px}
.public-app{background:#fafbfa}
.simple-welcome{grid-template-columns:1fr 1fr;gap:26px}
.simple-welcome .welcome-hero{min-height:490px;border-radius:20px;background:#165b35;padding:55px 44px}
.simple-welcome .welcome-hero::after{display:none}
.simple-welcome .welcome-hero h1{letter-spacing:-1px;font-size:clamp(31px,3.4vw,45px);line-height:1.15;max-width:430px;margin:29px 0 21px}
.simple-welcome .welcome-hero p{font-size:18px;line-height:1.6;max-width:390px;color:#e3efe8}
.simple-welcome .welcome-cow{position:absolute;right:36px;bottom:20px;width:115px;height:115px;object-fit:contain;padding:16px;background:#ffffffeb;border-radius:21px}
.simple-welcome .welcome-access{padding:40px;align-self:stretch;box-shadow:none;border-radius:20px}
.simple-welcome .welcome-access h2{font-size:30px;letter-spacing:-.5px;line-height:1.25;margin:19px 0 6px}
.simple-welcome .welcome-access>.subtle{font-size:16px}
.welcome-buttons .btn{min-height:53px;font-size:16px;border-radius:12px}
.divider-or{font-size:14px;margin:27px 0 19px;overflow:hidden;background:#fff}
.divider-or:before{z-index:-1}
.divider-or:after{display:none}
.divider-or span{position:relative;padding:0 13px;background:#fff;z-index:1}
.account-tile{min-height:76px;border-radius:14px;padding:14px 16px}
.account-tile strong{font-size:16px}
.account-tile small{font-size:13px}
.privacy-note{font-size:13px!important;line-height:1.5!important}
.public-foot{font-size:12px}
.producer-app .sidebar{width:258px;padding:26px 18px;gap:26px}
.producer-app .main{margin-left:258px}
.producer-app .brand{padding:0 10px;gap:10px}
.producer-app .brand strong{font-size:22px;letter-spacing:0}
.producer-app .sidebar .nav-button{min-height:52px;font-size:15px;padding:11px 13px;gap:15px}
.producer-app .sidebar-foot{padding:14px;border:0;background:#f5faf6}
.producer-app .sidebar-foot strong{font-size:13px}
.producer-app .sidebar-foot p{font-size:12px}
.producer-app .topbar{background:#fff;height:92px}
.producer-app .topbar .ministry{width:195px;max-height:78px}
.producer-app .topbar-left{gap:12px}
.producer-app .topbar .site-name{font-size:17px;letter-spacing:0;color:#165b35}
.producer-app .profile-top{font-size:14px;padding:11px;border-radius:12px}
.producer-app .container{max-width:1050px;margin:0 auto;padding:35px 35px 85px}
.producer-app .heading{margin-bottom:26px}
.producer-app .heading .eyebrow{font-size:12px;letter-spacing:.03em;text-transform:none}
.producer-app .heading h1{font-size:clamp(27px,2.7vw,38px);font-weight:850;letter-spacing:-.7px;line-height:1.22;margin:6px 0 8px}
.producer-app .heading p{font-size:17px;line-height:1.55;color:var(--muted);max-width:650px}
.producer-app .panel{box-shadow:none;border:1px solid #e5eee7;border-radius:17px;padding:27px}
.producer-app .panel h2{font-size:21px}
.producer-app .btn{border-radius:11px;min-height:44px;font-size:15px;padding:10px 18px}
.producer-app .btn.sm{min-height:38px;font-size:14px;padding:8px 13px}
.primary-actions{display:grid;grid-template-columns:1fr;gap:14px;max-width:780px;margin:8px 0 27px}
.action-tile{display:flex;align-items:center;gap:21px;padding:22px 24px;min-height:110px;width:100%;border:1px solid #dfe9e2;background:#fff;text-align:left;color:#253c2c;border-radius:17px;box-shadow:0 2px 9px rgba(15,60,30,.03)}
.action-tile:hover{border-color:#70b18b;background:#f9fdfa}
.action-tile:active{transform:scale(.995)}
.action-tile>span:nth-child(2){flex:1;min-width:0}
.action-tile strong{display:block;font-size:21px;font-weight:850;line-height:1.3}
.action-tile small{font-size:15px;color:#6b7c70;line-height:1.45;display:block;margin-top:4px}
.action-icon{width:67px;height:67px;border-radius:17px;background:#eaf5ed;display:grid;place-items:center;color:#165b35;flex-shrink:0}
.action-tile.main-action{border-color:#aad3b7;background:#f7fcf8}
.simple-stats{max-width:780px;display:flex;gap:13px;margin:0 0 26px}
.simple-stats button{border:1px solid #e4ece6;border-radius:14px;padding:15px;flex:1;background:#fff;color:var(--text);display:flex;align-items:center;justify-content:center;gap:10px}
.simple-stats strong{font-size:25px;color:#165b35}
.simple-stats span{font-size:14px}
.compact-panel{max-width:780px}
.resource-row{padding:17px 7px;gap:16px}
.resource-row strong{font-size:16px}
.resource-row small{font-size:13px}
.item-card{padding:18px 0;gap:18px}
.item-text strong{font-size:16px}
.item-text small{font-size:13px}
.item-id{font-size:12px}
.row-icon{width:47px;height:47px}
.toolbar .search{font-size:15px}
.empty h3{font-size:20px}
.empty p{font-size:15px}
.pill{font-size:12px}
.formgrid{gap:16px}
.field label{font-size:15px;font-weight:750}
.field input,.field select,.field textarea{font-size:16px;padding:11px 13px;min-height:47px;border-radius:10px}
.hint{font-size:13px}
.modal{max-width:680px;border-radius:20px}
.modal header{padding:25px 28px;border-bottom:1px solid #e6eee8}
.modal header h2{font-size:25px}
.modal .modal-body{padding:28px}
.modal footer{padding:19px 28px;gap:13px}
.modal .subtle{font-size:14px;line-height:1.55}
.detail-modal{max-width:680px}
.detail-callout{background:#f0f8f2;border:1px solid #d6e9db;padding:20px;border-radius:13px;margin-bottom:18px}
.detail-callout strong{font-size:19px}
.detail-callout p{font-size:14px}
.detail-grid{display:grid;grid-template-columns:1fr;gap:0}
.detail-row{display:flex;justify-content:space-between;align-items:flex-start;gap:15px;border-bottom:1px solid #e9efe9;padding:15px 3px;font-size:15px}
.detail-row span{color:#5b6f62;max-width:48%}
.detail-row strong{font-size:15px;text-align:right;max-width:52%;overflow-wrap:anywhere}
.detail-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.upload-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;max-width:850px}
.upload-panel,.upload-steps,.docs-history{max-width:850px}
.upload-title{display:flex;gap:16px;align-items:center;margin-bottom:20px}
.upload-title h2{margin:0 0 4px}
.upload-title p{font-size:15px}
.upload-panel input[type=file]{padding:15px;background:#fbfdfb;border:1px dashed #9abca5;min-height:62px}
.upload-actions{margin-top:21px}
.upload-steps{display:none}
.demo-explanation{font-size:13px;color:#62796c;line-height:1.5;margin-top:18px}
.simple-step{font-size:14px}
.review-modal .banner.warning strong{font-size:16px}
.review-modal .banner.warning p{font-size:14px}
.demo-dni{padding:16px}
.demo-dni strong{font-size:18px}
.demo-dni small{font-size:13px}
.reg-panel .field label,.register-panel .field label,.auth-card .field label{font-size:15px}
.registration-title h1{font-size:32px}
.registration-title p{font-size:16px}
.auth-card h1{font-size:30px}
.auth-card .subtle{font-size:15px}
.auth-card{border-radius:20px}
.account-tile svg{color:#165b35}
.cow-svg{object-fit:contain;display:inline-block;vertical-align:middle;flex-shrink:0}
.footer-note{font-size:12px}
@media(max-width:1080px){.producer-app .sidebar{width:225px}.producer-app .main{margin-left:225px}.producer-app .topbar .ministry{width:155px}.producer-app .container{padding:26px 21px 90px}}
@media(max-width:870px){.producer-app .sidebar{display:none}.producer-app .main{margin:0}.producer-app .topbar{height:70px;padding:9px 18px}.producer-app .topbar .ministry{width:145px}.producer-app .topbar .site-name{font-size:15px}.producer-app .container{padding:22px 17px 115px}.public-head{height:77px;padding:8px 17px}.public-head img{width:135px;max-height:64px}.public-head strong{font-size:19px}.simple-welcome{grid-template-columns:1fr}.simple-welcome .welcome-hero{min-height:260px;padding:29px}.simple-welcome .welcome-hero h1{font-size:32px;margin:17px 0 9px;max-width:90%}.simple-welcome .welcome-hero p{font-size:16px;max-width:78%}.simple-welcome .welcome-cow{width:80px;height:80px;bottom:20px;right:20px}.simple-welcome .welcome-access{padding:25px}.action-tile{min-height:93px;padding:17px}.action-tile strong{font-size:19px}.action-tile small{font-size:13px}}
@media(max-width:520px){.public-head{gap:10px}.public-head img{width:110px}.public-head .si-brand{width:35px;height:35px;font-size:16px}.public-head strong{font-size:18px}.simple-welcome .welcome-hero{min-height:240px;padding:24px}.simple-welcome .welcome-hero h1{font-size:29px}.simple-welcome .welcome-hero p{font-size:15px}.simple-welcome .welcome-access h2{font-size:25px}.simple-welcome .welcome-access{padding:23px}.welcome-buttons{flex-direction:column}.account-tile{min-height:70px}.producer-app .topbar .ministry{width:110px}.producer-app .topbar .site-name{font-size:14px}.producer-app .topbar .si-brand{width:29px;height:29px;font-size:14px}.producer-app .topbar .status-pill{display:none}.producer-app .heading h1{font-size:27px}.producer-app .heading p{font-size:15px}.producer-app .panel{padding:18px}.primary-actions{gap:11px}.action-tile{min-height:89px;padding:14px 12px;gap:13px}.action-icon{width:51px;height:51px;border-radius:12px}.action-icon .cow-svg{width:30px;height:30px}.action-tile strong{font-size:17px}.action-tile small{font-size:12px}.simple-stats button{padding:11px;flex-direction:column;gap:0}.simple-stats strong{font-size:23px}.simple-stats span{font-size:12px}.modal .modal-body{padding:18px}.modal header{padding:18px}.modal header h2{font-size:20px}.modal footer{padding:15px}.detail-row{font-size:14px}.detail-row strong{font-size:14px}.registration-title h1{font-size:28px}}

/* V0.4 — accessibility, modal lock, feedback, IAM auth */
body.modal-open {overflow:hidden!important; position:relative; width:100%; touch-action:none}
.modal-backdrop {position:fixed!important;inset:0!important;z-index:2000!important;overscroll-behavior:contain;overflow-y:auto;display:flex;align-items:center;justify-content:center;padding:16px}
.modal {max-height:min(94dvh,890px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 24px 80px rgba(20,38,29,.26)}
.modal .modal-body{overscroll-behavior:contain}
.toast.show,.toast:not([hidden]){position:fixed!important;z-index:3000!important;left:50%!important;transform:translateX(-50%)!important;bottom:30px!important;max-width:min(630px,calc(100vw - 30px))!important;width:max-content!important;background:#165b35!important;color:#fff!important;border-radius:14px!important;padding:18px 25px!important;font-size:19px!important;line-height:1.4!important;font-weight:850!important;box-shadow:0 16px 45px rgba(0,65,26,.3)!important;text-align:center!important}
.toast[hidden]{display:none!important}
.back-link{border:0;background:none;color:#165b35;display:inline-flex;align-items:center;gap:5px;font-size:14px;font-weight:800;margin:0 0 10px;padding:0;cursor:pointer}
.entity-attachment{margin-top:22px;padding:18px;border:1px dashed #a7c9b0;border-radius:12px;background:#f7faf8;display:grid;gap:8px}
.entity-attachment label{font-size:15px;font-weight:800}
.entity-attachment input{width:100%;max-width:100%}.entity-attachment small{color:#596c60}
.logout-top{display:flex;align-items:center;gap:8px;border:1px solid #cfddd2;border-radius:10px;background:white;padding:10px 13px;color:#165b35;font-weight:800;cursor:pointer}
.demo-badge{background:#fff1db!important;color:#694400!important;border:2px solid #c98b21!important;font-size:13px!important;font-weight:900!important;letter-spacing:.13em!important;padding:6px 12px!important;border-radius:8px!important}
.welcome-notice{display:flex;align-items:center;gap:11px;color:#597267;margin-top:30px;padding:17px;border-radius:12px;background:#f6f9f7;font-size:14px;line-height:1.5}
.iam-wrap{max-width:780px;margin:15px auto;display:grid;gap:36px}
.iam-masthead{display:flex;align-items:center;gap:18px;border-bottom:4px solid #17854c;background:#fff;padding:15px 17px;color:#345269;font-size:14px;font-weight:800;letter-spacing:.08em}
.iam-masthead img{width:220px;max-height:84px;object-fit:contain}
.iam-auth-card{margin:0 auto;background:#fff;border:1px solid #e3eae6;box-shadow:0 12px 30px #0b3b1514;border-radius:17px;width:min(455px,100%);padding:35px}
.iam-auth-card h1{font-size:26px;margin:18px 0 9px}.iam-auth-card>p{line-height:1.6;color:#63756a;margin-bottom:23px}
.iam-auth-card form{display:grid;gap:18px}.iam-auth-card .field{display:grid;gap:7px}.iam-auth-card .field label{font-size:15px;font-weight:750}
.iam-auth-card input{height:50px;border:1px solid #c8d9ce;border-radius:10px;padding:10px 14px;font-size:16px;width:100%}
.iam-auth-card .btn{min-height:51px;font-size:16px}
.iam-icon{display:grid;place-items:center;width:56px;height:56px;background:#edf6ef;color:#165b35;border-radius:14px}
.iam-links{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:24px}
.iam-links button{display:inline-flex;align-items:center;gap:5px;background:none;border:0;color:#165b35;text-decoration:underline;font-weight:700;font-size:14px;cursor:pointer}
.field-error{color:#b52229;font-weight:700;font-size:14px}
.loading-soft{pointer-events:none;opacity:.65;filter:saturate(.8);transition:opacity .2s}
.loading-soft:after{content:'';display:block;margin:15px auto;border:4px solid #d3e7d9;border-top-color:#165b35;border-radius:100%;height:34px;width:34px;animation:sinSpin .65s linear infinite}
.spinner{display:inline-block;width:17px;height:17px;vertical-align:middle;border:3px solid #b9d0bf;border-top-color:#fff;border-radius:100%;animation:sinSpin .65s linear infinite;margin-right:7px}
@keyframes sinSpin{to{transform:rotate(360deg)}}
.skeleton{height:18px;border-radius:6px;background:linear-gradient(90deg,#e9efec 20%,#f6faf8 45%,#e9efec 70%);background-size:250% 100%;animation:sk 1.5s infinite}
@keyframes sk{to{background-position-x:-250%}}
@media(max-width:700px){.iam-wrap{gap:20px}.iam-masthead{flex-direction:column;gap:8px}.iam-masthead img{width:170px}.iam-masthead span{font-size:12px}.iam-auth-card{padding:26px 20px}.logout-top{padding:8px}.modal-backdrop{padding:7px;align-items:flex-end}.modal{max-height:93dvh;width:100%;border-radius:18px 18px 0 0}.toast.show,.toast:not([hidden]){bottom:95px!important;font-size:16px!important;padding:16px!important;width:calc(100vw - 32px)!important}}

.lookup-skeleton{display:grid;gap:10px;padding:12px 0;}.lookup-skeleton .skeleton:nth-child(1){width:85%}.lookup-skeleton .skeleton:nth-child(2){width:63%}
@media(max-width:700px){.producer-app .topbar .profile-top{display:none}.producer-app .topbar .site-name{display:none}.logout-top{font-size:12px;padding:7px 9px}.producer-app .topbar .si-brand{display:none}}

/* V0.5: SINIAP -> IAM es otra pantalla institucional, con transición y carga visible. */
.iam-page{min-height:100dvh;background:#f5f8fb;display:flex;flex-direction:column;font-family:"Nunito Sans",sans-serif}
.iam-stripe{height:8px;background:linear-gradient(90deg,#713a9b 0 18%,#00a0bd 18% 36%,#57a438 36% 54%,#ffc12c 54% 72%,#00a0bd 72% 88%,#de941b 88%)}
.iam-institutional{min-height:105px;display:flex;align-items:center;gap:25px;padding:18px max(28px,calc((100% - 1380px)/2));background:#fff;border-bottom:4px solid #018745}
.iam-institutional img{width:240px;max-height:70px;object-fit:contain}
.iam-institutional strong{font-size:15px;letter-spacing:.09em;color:#586f88;padding-left:24px;border-left:1px solid #dce4ea}
.iam-institutional .demo-badge{margin-left:auto}
.iam-page-content{flex:1;display:grid;align-content:center;justify-items:center;padding:35px 20px 70px}
.iam-page-content .iam-wrap{width:min(770px,100%);margin:0 auto}
.iam-page-content .iam-auth-card{width:min(690px,100%);padding:43px 45px;border-radius:12px}
.iam-page-content .iam-auth-card>h1{font-size:29px}
.iam-page-content .auth-card{width:min(570px,100%);box-shadow:0 12px 35px #123b2c0c}
.iam-page-content .field label{font-size:16px}
.iam-page-content .field input{font-size:17px;min-height:55px}
.iam-page-content .iam-links button{font-size:15px}
.redirect-card{width:min(580px,calc(100vw - 32px));text-align:center;background:#fff;padding:54px 25px;border-radius:18px;border:1px solid #e1e9e3;box-shadow:0 12px 28px #12502a12;margin:20px auto}
.redirect-card h1{font-size:27px;color:#24352c;margin:23px 0 5px}.redirect-card p{color:#536b5b;font-size:17px;line-height:1.6}
.spinner-lg{display:inline-block;width:52px;height:52px;border-radius:50%;border:5px solid #daeee2;border-top-color:#165b35;animation:sinSpin .7s linear infinite;flex-shrink:0}
.spinner-sm{display:inline-block;width:20px;height:20px;border-radius:50%;border:3px solid #d5e7da;border-top-color:#165b35;animation:sinSpin .7s linear infinite;flex-shrink:0}
.page-skeleton{padding:8px 0 20px;min-height:380px}.page-skeleton .skeleton-title{width:min(420px,80%);height:39px;border-radius:9px;margin-bottom:15px}.page-skeleton .skeleton-subtitle{width:min(590px,90%);height:19px;margin-bottom:38px}
.skeleton-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-bottom:28px}.skeleton-card{background:#fff;border:1px solid #e0e9e2;border-radius:16px;padding:28px;display:grid;gap:14px;min-height:145px}.skeleton-card .skeleton-line{width:85%;height:23px}.skeleton-card .skeleton-mid{width:54%;height:25px}.skeleton-card .skeleton-line:last-child{width:70%;height:15px}
.skeleton-wide{height:80px;width:100%;border-radius:12px}.load-caption{display:flex;align-items:center;gap:9px;color:#49624f;font-size:16px;font-weight:800;margin-top:23px}
.modal-progress{position:fixed;inset:0;z-index:2200;background:#ffffffc9;backdrop-filter:blur(4px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#165b35;font-weight:900;font-size:19px}
.trace-list>.panel-head h2{font-size:20px}.trace-list .trace-card{padding:17px 20px;margin-top:20px;border:1px solid #dce6de;background:#fff}.trace-list .trace-card .item-text strong{font-size:21px}.trace-list .trace-card .item-text small{font-size:15px;margin-top:4px}.trace-list .trace-steps{border-left:3px solid #a7cfb4;margin:12px 0 12px 28px;padding:2px 0 4px 23px}
.trace-list .trace-steps .trace-event{position:relative;font-size:17px!important;padding:15px 0 15px 3px;color:#263d30;line-height:1.5;border-bottom:1px solid #eef2ef}.trace-list .trace-event:last-child{border-bottom:0}.trace-list .trace-event strong{font-size:18px!important;display:block;color:#1b412a}.trace-list .trace-event time{font-size:15px;display:block;color:#54705e;margin-top:3px}.trace-list .trace-event p{font-size:16px;line-height:1.55;margin:6px 0 0;color:#4c6254}.trace-list .trace-steps .trace-point{width:14px;height:14px;left:-33px;top:22px;background:#21784a;border:3px solid #eaf5ef;border-radius:50%;position:absolute}
.producer-app .nav-button{font-size:15px;min-height:44px}
@media(max-width:870px){.skeleton-grid{grid-template-columns:1fr 1fr}.iam-institutional{min-height:84px;padding:15px 17px;gap:10px}.iam-institutional img{width:140px}.iam-institutional strong{font-size:11px;padding-left:10px}.iam-page-content .iam-auth-card{padding:28px 22px}}
@media(max-width:560px){.skeleton-grid{grid-template-columns:1fr}.iam-institutional img{width:105px}.iam-institutional strong{font-size:10px}.iam-institutional .demo-badge{font-size:10px!important;padding:5px!important}.trace-list .trace-card>.item-card{flex-wrap:wrap}.trace-list .trace-card .item-actions{width:100%}.trace-list .trace-card .btn{margin-top:8px}.trace-list .trace-event strong{font-size:17px!important}.trace-list .trace-event p{font-size:15px}.iam-page-content{padding:22px 14px}.redirect-card{padding:37px 20px}}
@media(prefers-reduced-motion:reduce){.skeleton,.spinner,.spinner-lg,.spinner-sm{animation-duration:1.6s}}

/* Refinamientos de cierre v0.6 */
.registration-wrap .btn, .register-panel .btn{font-size:16px;min-height:50px;font-weight:800}
.registration-wrap .banner{font-size:16px;line-height:1.55}
.registration-wrap .banner strong{font-size:16px}
.registration-wrap .banner p{font-size:14px}
.password-help{font-size:14px;line-height:1.5;color:#4c6958;background:#f2f7f3;border-left:4px solid #488c62;border-radius:7px;padding:12px 15px;margin:18px 0 13px}
button:disabled,button[aria-disabled="true"]{cursor:not-allowed!important;opacity:.45!important;background:#d6e0d9!important;border-color:#cbd5ce!important;color:#718277!important;box-shadow:none!important;pointer-events:none}
.modal .field select:focus{outline:2px solid #2e975e;outline-offset:1px}
.detail-modal footer{flex-wrap:wrap}
@media(max-width:480px){.detail-modal footer .btn{flex:1;min-width:110px}}

/* v0.7 additive styles; preserve v0.6 typography/layout */
.extra-section{border-top:1px solid #e3ece6;margin-top:22px;padding-top:18px}.extra-section h3{font-size:17px;margin:7px 0 10px}.extra-section .field{margin-bottom:12px}.previous-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:1px solid #dae7de;border-radius:12px;margin:12px 0;padding:13px;background:#f9fbf9}.previous-row .field{min-width:0}.previous-row .btn{align-self:end}.image-preview img{width:100%;height:115px;object-fit:contain;border:1px solid #dce7df;border-radius:10px;background:#f6f9f6;margin-top:7px}.item-actions{display:flex;gap:7px;flex-wrap:wrap}.detail-grid h3{margin-top:15px}@media(max-width:520px){.previous-row{grid-template-columns:1fr}.item-actions .btn{font-size:12px}}

/* Ajustes solicitados 28/10: logo institucional más visible, navegación de aretes y enlace de trazabilidad. */
.public-head{min-height:104px;height:auto}
.public-head img{width:310px;max-width:38vw;max-height:82px;height:auto;object-fit:contain}
.producer-app .topbar{min-height:104px;height:auto}
.producer-app .topbar .ministry{width:320px;max-width:40vw;max-height:78px;height:auto;object-fit:contain}
.iam-institutional{min-height:120px}
.iam-institutional img{width:320px;max-width:37vw;max-height:82px;height:auto;object-fit:contain}
.trace-animal-link{border:0;background:transparent;padding:0;margin:0;color:#165b35;cursor:pointer;text-align:left;font-size:inherit}
.trace-animal-link strong{text-decoration:underline;text-underline-offset:4px}
.trace-animal-link:hover{color:#0f4729}
.trace-animal-icon{cursor:pointer;border:0}
.trace-animal-link:focus-visible,.trace-animal-icon:focus-visible{outline:3px solid #72ba89;outline-offset:3px;border-radius:5px}
@media(max-width:870px){
 .public-head{min-height:85px;gap:9px;padding:9px 14px}
 .public-head img{width:220px;max-width:58vw;max-height:57px}
 .producer-app .topbar{min-height:78px;height:auto}
 .producer-app .topbar .ministry{width:225px;max-width:58vw;max-height:58px}
 .iam-institutional{min-height:98px}
 .iam-institutional img{width:220px;max-width:48vw;max-height:58px}
 .bottom-nav button{min-width:0;flex:1;padding:0 1px;font-size:10px}
}
@media(max-width:520px){
 .public-head img{width:185px;max-width:53vw;max-height:50px}
 .public-head strong{font-size:16px}
 .producer-app .topbar .ministry{width:190px;max-width:55vw;max-height:52px}
 .iam-institutional img{width:180px;max-width:48vw;max-height:49px}
 .bottom-nav button{font-size:9px}
}

/* Ajuste solicitado: logo institucional a 50px, manteniendo su proporcion. */
.public-head img,
.producer-app .topbar .ministry,
.iam-institutional img {
  height: 50px;
  max-height: 50px;
  width: auto;
  object-fit: contain;
}


/* SINIAP v0.7 - mobile horizontal header and bottom navigation.
   Keep all header actions and menu options reachable on narrow displays
   without shrinking labels or wrapping into multiple rows. */
@media (max-width: 870px) {
  .public-head,
  .producer-app .topbar,
  .iam-institutional {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b9d6c3 transparent;
  }
  .public-head > *,
  .producer-app .topbar > *,
  .iam-institutional > * {
    flex-shrink: 0;
  }
  .public-head { gap: 12px; }
  .public-head strong { white-space: nowrap; }
  .public-head .public-head-status { flex-shrink: 0; margin-left: auto; }
  .producer-app .topbar { gap: 16px; justify-content: space-between; }
  .producer-app .topbar .topbar-left,
  .producer-app .topbar .top-actions {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
  }
  .producer-app .topbar .top-actions > * { flex-shrink: 0; }
  .producer-app .topbar .logout-top { white-space: nowrap; }
  .iam-institutional { gap: 15px; }
  .iam-institutional strong { white-space: nowrap; flex: 0 0 auto; }
  .iam-institutional .demo-badge { flex: 0 0 auto; margin-left: auto; }

  .producer-app .bottom-nav {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b9d6c3 transparent;
    scroll-snap-type: x proximity;
    white-space: nowrap;
    touch-action: pan-x;
    padding-left: 4px;
    padding-right: 4px;
  }
  .producer-app .bottom-nav button {
    flex: 0 0 88px;
    width: 88px;
    min-width: 88px;
    max-width: none;
    min-height: 56px;
    padding: 4px 8px;
    font-size: 11px;
    white-space: nowrap;
    scroll-snap-align: center;
  }
  .producer-app .bottom-nav button .ico { flex-shrink: 0; }
}
