:root{
  --verde:#145a42;
  --verde-osc:#0b2e23;
  --fondo:#f4f6f5;
  --card:#ffffff;
  --muted:#64748b;
  --borde:#e5e7eb;
  --danger:#8b1e1e;
  --radius:16px;
  --shadow:0 10px 25px rgba(0,0,0,.15);
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Segoe UI,Arial,sans-serif;
  background:var(--verde-osc);
}

h2{margin-top:0;color:var(--verde)}
a{text-decoration:none;color:inherit}

/* LOGIN */
.login{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.login-box{
  background:#fff;
  width:380px;
  max-width:100%;
  border-radius:18px;
  padding:34px;
  text-align:center;
  box-shadow:var(--shadow);
}
.login-box img{width:140px;margin-bottom:10px}
.input{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--borde);
  font-family:inherit;
}

/* BOTONES */
.btn{
  padding:12px 18px;
  border-radius:12px;
  background:var(--verde);
  color:#fff;
  border:0;
  font-weight:700;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}

.btn-sec{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--borde);
  background:#fff;
  cursor:pointer;
  font-weight:700;
}
.btn-pri{
  padding:10px 12px;
  border-radius:12px;
  border:0;
  background:var(--verde);
  color:#fff;
  cursor:pointer;
  font-weight:800;
}

/* APP */
.app{display:flex;min-height:100vh}

.sidebar{
  width:280px;
  background:var(--verde);
  color:#fff;
  padding:22px;
}
.sidebar img{
  width:150px;
  display:block;
  margin:0 auto 16px;
}
.user{text-align:center;margin-bottom:18px}
.user strong{display:block}

.menu a{
  display:block;
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:8px;
  background:rgba(255,255,255,.12);
}
.menu a:hover{background:rgba(255,255,255,.25)}

.logout button{
  margin-top:14px;
  width:100%;
  padding:12px;
  border-radius:12px;
  background:var(--danger);
  color:#fff;
  border:0;
  cursor:pointer;
}

.main{
  flex:1;
  background:var(--fondo);
  padding:26px;
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px;
  max-width:980px;
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:12px;
}
.col-12{grid-column:span 12}
.col-6{grid-column:span 6}

label{font-weight:600;font-size:.9rem}
textarea{resize:vertical;min-height:90px}

.notice{
  background:#eef6f2;
  color:#145a42;
  padding:12px;
  border-radius:12px;
  margin-bottom:16px;
  font-size:.95rem;
}
.helper{
  font-size:.8rem;
  color:var(--muted);
  margin-top:4px;
}

/* RADIO */
.radio-wrap{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  padding:10px 12px;
  border:1px solid var(--borde);
  border-radius:12px;
  background:#fff;
}
.radio-wrap label{
  font-weight:600;
  font-size:.9rem;
  display:flex;
  gap:8px;
  align-items:center;
}

/* CHIPS */
.chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--borde);
  border-radius:12px;
  background:#fff;
  min-height:46px;
}
.chip{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  background:#eef6f2;
  color:#145a42;
  font-weight:700;
  font-size:.85rem;
}
.chip button{
  border:0;
  background:transparent;
  cursor:pointer;
  font-weight:900;
  color:#145a42;
}

/* MODAL */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}
.modal{
  width:420px;
  max-width:100%;
  background:#fff;
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:18px;
}

/* RESPONSIVE */
@media(max-width:860px){
  .app{flex-direction:column}
  .sidebar{width:100%}
  .main{padding:16px}
  .col-6{grid-column:span 12}
}
