:root{
 --verde:#174f37; --verde2:#216a4b; --amarillo:#d8bd43; --fondo:#f2f5f3;
 --borde:#d6dfd9; --texto:#1e2923; --gris:#66736c; --rojo:#a52a22;
}
*{box-sizing:border-box}
body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--fondo);color:var(--texto)}
.header{background:linear-gradient(135deg,var(--verde),var(--verde2));color:white;border-bottom:4px solid var(--amarillo)}
.head-inner{max-width:1050px;margin:auto;padding:20px 15px;display:flex;gap:14px;align-items:center}
.shield{width:62px;height:62px;border:2px solid white;border-radius:14px;display:grid;place-items:center;font-size:22px;font-weight:800}
.unit{font-size:12px;font-weight:700;letter-spacing:.7px;opacity:.92}
h1{margin:3px 0;font-size:clamp(22px,4vw,32px)}
.header p{margin:0;font-size:14px;opacity:.9}
.wrap{max-width:1050px;margin:20px auto;padding:0 14px 35px}
.card{background:white;border:1px solid var(--borde);border-radius:14px;padding:18px;margin-bottom:15px;box-shadow:0 7px 22px rgba(23,79,55,.08)}
.card h2{margin:0 0 14px;color:var(--verde);font-size:16px}
.grid{display:grid;gap:13px}.grid2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid3{grid-template-columns:repeat(3,minmax(0,1fr))}
label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}
input,select,textarea{width:100%;padding:11px 12px;border:1px solid #c8d3cc;border-radius:9px;font-size:15px;font-family:inherit;outline:none}
input:focus,select:focus,textarea:focus{border-color:var(--verde2);box-shadow:0 0 0 3px rgba(33,106,75,.12)}
.metric{background:#f8faf9;border:1px solid var(--borde);border-radius:11px;padding:11px}.metric input{text-align:center;font-size:20px;font-weight:700}
.subcard{position:relative;background:#fbfcfb;border:1px solid var(--borde);border-radius:11px;padding:14px;margin-bottom:11px}
.subtitle{font-weight:800;color:var(--verde);margin-bottom:12px}
.remove{position:absolute;right:9px;top:9px;border:0;background:#fff0ee;color:var(--rojo);border-radius:7px;padding:7px 9px;font-weight:700;cursor:pointer}
.badge{background:#e7f0ea;color:var(--verde);border-radius:999px;padding:3px 8px;font-size:12px}
.btn{border:0;border-radius:9px;padding:11px 15px;font-size:14px;font-weight:800;cursor:pointer}
.primary{background:var(--verde);color:white}.secondary{background:#e7f0ea;color:var(--verde)}.light{background:#edf0ee;color:#26362e}.full{width:100%}
.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.alert{padding:12px 14px;border-radius:9px;margin-bottom:14px;font-weight:700}.hidden{display:none!important}
.alert.ok{background:#e9f6ee;color:#17613a;border:1px solid #b9dfc8}.alert.error{background:#fff0ee;color:#95231a;border:1px solid #efc4be}
footer{text-align:center;color:var(--gris);font-size:12px;padding:10px 10px 28px}
@media(max-width:760px){.grid2,.grid3{grid-template-columns:1fr}.actions .btn{width:100%}.shield{width:52px;height:52px}}
