body{
  margin:0;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#f3f4f6;
  color:#0f172a;
}

/* ===== TOPBAR ===== */
.topbar{
  background:#0f172a;
  color:#fff;
  padding:14px 26px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  position:sticky;
  top:0;
  z-index:20;
}
.topbar .logo{
  color:#fff;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
}
.topbar .menu a{
  color:#fff;
  text-decoration:none;
  margin-left:18px;
  font-weight:700;
  opacity:.85;
}
.topbar .menu a:hover{ opacity:1; }

/* ===== LAYOUT ===== */
.container{
  max-width:980px;
  margin:26px auto;
  padding:0 18px;
}
.footer{
  margin:30px 0 24px;
  text-align:center;
  color:#6b7280;
  font-size:13px;
}

/* ===== CARDS ===== */
.card{
  background:#fff;
  border-radius:18px;
  padding:24px;
  box-shadow:0 10px 25px rgba(0,0,0,0.04);
  margin-bottom:22px;
}
.card.big{
  border-radius:20px;
  padding:28px;
  background:linear-gradient(180deg,#2563eb,#1e3a8a);
  color:#fff;
}
.card.big h3{ margin:0; font-size:26px; }
.card.big p{ margin:8px 0 0; opacity:.9; }

/* ===== INPUTS ===== */
.input{
  width:100%;
  box-sizing:border-box;
  padding:14px 14px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  outline:none;
  font-size:14px;
  background:#fff;
}
.input:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,.12);
}
textarea.input{ min-height:96px; resize:vertical; }

/* ===== BUTTONS ===== */
.button, a.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:12px;
  border:0;
  cursor:pointer;
  font-weight:800;
  font-size:14px;
  text-decoration:none;
  user-select:none;
  line-height:1;
}
.button.sm, a.button.sm{ padding:8px 10px; border-radius:10px; font-weight:800; }

.button.orange, a.button.orange{ background:#f97316; color:#fff; }
.button.orange:hover, a.button.orange:hover{ filter:brightness(.95); }

.button.green, a.button.green{ background:#16a34a; color:#fff; }
.button.green:hover, a.button.green:hover{ filter:brightness(.95); }

.button.blue, a.button.blue{ background:#2563eb; color:#fff; }
.button.blue:hover, a.button.blue:hover{ filter:brightness(.95); }

.button.red, a.button.red{ background:#ef4444; color:#fff; }
.button.red:hover, a.button.red:hover{ filter:brightness(.95); }

/* ===== SMALL UI ===== */
.panel-title{
  font-weight:900;
  margin-bottom:10px;
}
.wa-card{
  background:#f3f4f6;
  border-radius:14px;
  padding:14px;
  margin-bottom:12px;
}
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
@media (max-width:900px){
  .grid-3{ grid-template-columns:1fr; }
}

/* ===== LISTA DETALLE ===== */
.row{
  display:flex;
  gap:12px;
  align-items:center;
}
.row > *{ flex:1; }
.row .auto{ flex:0 0 auto; }
.badge{
  display:inline-block;
  margin-left:8px;
  font-size:11px;
  background:#111827;
  color:#fff;
  padding:2px 8px;
  border-radius:999px;
}
.manual-form{
    display:grid;
    grid-template-columns:"1fr  1fr 1fr auto";
    gap:10px;
    margin-top:12px;
}

.manual-form input{
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:10px 14px;
    font-size:14px;
    background:#fff;
}

.manual-form input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 2px rgba(37,99,235,.15);
}
