/* ===========================
   Proyectos C. - UI Executive
   Archivo único: assets/css/app.css
   =========================== */

:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel-solid:#0f172a;
  --border: rgba(255,255,255,0.08);
  --text:#e6e9ef;
  --muted: rgba(230,233,239,0.7);

  --brand:#6ee7ff;
  --brand2:#9b8cff;
  --ok:#22c55e;
  --warn:#f59e0b;
  --bad:#ef4444;

  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  --radius:16px;
  --radius2:22px;
}

*{ 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(900px 420px at 15% 10%, rgba(110,231,255,.18), transparent 55%),
              radial-gradient(700px 400px at 95% 10%, rgba(155,140,255,.18), transparent 50%),
              linear-gradient(180deg, #050814 0%, #070b18 50%, #040712 100%);
  color: var(--text);
}

/* Contenedor general */
.container{
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ===========================
   Navbar
   =========================== */
.navbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(9, 14, 30, 0.65);
  border-bottom: 1px solid var(--border);
}

.navbar__inner{
  display:flex;
  align-items:center;
  gap:12px;
  padding: 12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand__logo{
  width:38px;height:38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: var(--shadow);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#08101e;
  font-weight: 800;
}

.brand__name{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.brand__name small{
  font-weight: 600;
  color: var(--muted);
}

.navlinks{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left: 12px;
  flex-wrap: wrap;
}

.navlink{
  text-decoration:none;
  color: var(--text);
  padding:8px 12px;
  border-radius: 12px;
  transition: 0.18s ease;
  border: 1px solid transparent;
  font-weight: 600;
  color: rgba(230,233,239,.88);
}

.navlink:hover{
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
}

.navright{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.badge{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  font-weight: 700;
  font-size: 12px;
  color: rgba(230,233,239,0.9);
}

.badge--admin{
  box-shadow: inset 0 0 0 1px rgba(110,231,255,0.20);
}

.badge--facilitador{
  box-shadow: inset 0 0 0 1px rgba(155,140,255,0.20);
}

.userchip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}

.userchip__avatar{
  width:30px;height:30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 800;
}

.userchip__meta{
  display:flex;
  flex-direction:column;
  line-height: 1.1;
}

.userchip__meta span{
  font-weight: 800;
  font-size: 13px;
}

.userchip__meta small{
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 800;
  cursor:pointer;
  transition: 0.18s ease;
  text-decoration:none;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
}

.btn--primary{
  background: linear-gradient(135deg, rgba(110,231,255,0.24), rgba(155,140,255,0.24));
  border: 1px solid rgba(255,255,255,0.14);
}

.btn--danger{
  background: rgba(239,68,68,0.18);
  border: 1px solid rgba(239,68,68,0.35);
}

/* ===========================
   Layout / Cards
   =========================== */
.page{
  padding: 22px 0 40px;
}

.h1{
  font-size: 26px;
  margin: 0 0 6px;
}

.sub{
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 600;
}

.grid{
  display:grid;
  gap:14px;
}

.grid--2{
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.grid--3{
  grid-template-columns: repeat(3, minmax(0,1fr));
}

@media (max-width: 980px){
  .grid--2, .grid--3{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card__title{
  font-size: 14px;
  color: rgba(230,233,239,0.85);
  margin: 0 0 10px;
  font-weight: 800;
}

.kpi{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
}

.kpi strong{
  font-size: 28px;
  letter-spacing: 0.4px;
}

.kpi small{
  color: var(--muted);
  font-weight: 700;
}

.sep{
  height:1px;
  background: var(--border);
  margin: 12px 0;
}

/* ===========================
   Forms
   =========================== */
.formbox{
  max-width: 420px;
  margin: 56px auto 0;
}

label{
  display:block;
  margin: 12px 0 6px;
  color: rgba(230,233,239,0.90);
  font-weight: 700;
  font-size: 13px;
}

.input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline:none;
  font-size: 14px;
}

.input:focus{
  border-color: rgba(110,231,255,0.35);
  box-shadow: 0 0 0 4px rgba(110,231,255,0.08);
}

.alert{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: rgba(230,233,239,0.92);
  font-weight: 700;
}

.alert--error{
  border: 1px solid rgba(239,68,68,0.4);
  background: rgba(239,68,68,0.12);
}


/* Fix dropdown select: texto negro y fondo blanco */
select.input{
  color: #000 !important;
  background: #fff !important;
}

select.input option{
  color: #000 !important;
  background: #fff !important;
}
