:root{
  --bg:#0b1220;
  --card:#0f172a;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --line:rgba(255,255,255,.10);

  --brand:#0ea5e9;
  --brand2:#22c55e;
  --danger:#ef4444;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, #132041 0%, var(--bg) 55%, #050814 100%);
  color:var(--text);
}

.container{ width:min(1050px, 92%); margin:0 auto; }

.top{
  border-bottom:1px solid var(--line);
  background: linear-gradient(180deg, rgba(15,23,42,.9), rgba(15,23,42,.35));
  position: sticky;
  top:0;
  backdrop-filter: blur(10px);
  z-index: 10;
}
.head{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 0; }

.brand{ display:flex; align-items:center; gap:12px; }
.brandLogo{
  width:56px; height:56px;
  border-radius:14px;
  background:#fff;
  padding:8px;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}
.brand h1{ margin:0; font-size:20px; letter-spacing:.2px; }
.brand p{ margin:2px 0 0; color:var(--muted); font-size:13px; }

.badge{
  font-size:12px;
  color:#dbeafe;
  background: rgba(14,165,233,.12);
  border:1px solid rgba(14,165,233,.22);
  padding:8px 10px;
  border-radius:999px;
  white-space:nowrap;
}

main{ padding:20px 0 40px; }

.card{
  background: linear-gradient(180deg, rgba(15,23,42,.92), rgba(15,23,42,.75));
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:18px;
  box-shadow: var(--shadow);
  margin: 14px 0;
}

h2{ margin:0 0 8px; font-size:18px; }
h3{ margin:0 0 8px; font-size:16px; }

.muted{ color:var(--muted); font-size:13px; line-height:1.4; }

.sectionTitle{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-weight:700;
  color:#eaf2ff;
  letter-spacing:.2px;
}

label{ display:block; font-size:12px; color: #cbd5e1; margin:10px 0 6px; }

input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(2,6,23,.55);
  color: var(--text);
  outline:none;
  transition: .15s ease;
}

input:focus, textarea:focus, select:focus{
  border-color: rgba(14,165,233,.55);
  box-shadow: 0 0 0 4px rgba(14,165,233,.15);
}

textarea{ resize: vertical; min-height: 90px; }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.grid3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap:12px; }
@media (max-width: 820px){
  .grid2, .grid3{ grid-template-columns: 1fr; }
}

.actions{ display:flex; gap:10px; align-items:end; justify-content:flex-end; padding-top: 8px; }

.btn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight:700;
  letter-spacing:.2px;
  transition: .15s ease;
}
.btn:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.22); }

.btn.primary{
  background: linear-gradient(90deg, rgba(14,165,233,.95), rgba(34,197,94,.9));
  border: 0;
  color:#041019;
}
.btn.ghost{ background: transparent; }
.btn.danger{
  background: rgba(239,68,68,.14);
  border-color: rgba(239,68,68,.35);
}
.btn.warn{
  background: rgba(245,158,11,.14);
  border-color: rgba(245,158,11,.35);
}
.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
}

.alert{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-size: 13px;
  line-height:1.35;
}
.alert.ok{ border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.10); }
.alert.warn{ border-color: rgba(245,158,11,.35); background: rgba(245,158,11,.10); }
.alert.err{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.10); }

.hidden{ display:none !important; }
.headRow{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.rowRight{ display:flex; gap:10px; align-items:center; }

.divider{ height:1px; background: rgba(255,255,255,.10); margin: 14px 0; }

/* extras */
.callout{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(14,165,233,.22);
  background: rgba(14,165,233,.08);
}
.ul{ margin: 8px 0 0; padding-left: 18px; }
.ul li{ margin: 6px 0; }

/* ✅ Contraste de selects */
select{
  background: #ffffff !important;
  color: #111827 !important;
  border: 1px solid rgba(0,0,0,.18) !important;
}
select option{
  background:#ffffff;
  color:#111827;
}

/* ✅ Asterisco obligatorio */
.req{
  color: var(--danger);
  font-weight: 900;
}
