@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* =========================
   VARIABLES DE MARCA
========================= */
:root {
  --primary: #0B1F3B;      /* Azul corporativo */
  --accent: #E30613;       /* Rojo acento */
  --bg: #F4F6F9;           /* Fondo SaaS */
  --card: #FFFFFF;        /* Cards */
  --text: #1F2933;         /* Texto principal */
  --muted: #6B7280;        /* Texto secundario */
}

/* =========================
   RESET BÁSICO
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
  width: 260px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: linear-gradient(180deg, #0B1F3B, #132A4D);
  padding: 30px 20px;
  color: #fff;
}

.sidebar h2 {
  margin: 0 0 40px 0;
  font-size: 22px;
  font-weight: 700;
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 500;
  transition: all .2s ease;
}

.sidebar a:hover {
  background: rgba(255,255,255,.15);
}

/* =========================
   CONTENIDO PRINCIPAL
========================= */
.main {
  margin-left: 260px;
  padding: 30px;
}

/* =========================
   HEADER
========================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

/* =========================
   CARDS & KPIs
========================= */
.card {
  background: var(--card);
  border-radius: 18px;
  padding: 25px;
  box-shadow:
    0 10px 25px rgba(0,0,0,.08),
    0 4px 10px rgba(0,0,0,.04);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.kpi h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.kpi p {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 700;
}

/* =========================
   FORMULARIOS
========================= */
.form-card {
  max-width: 600px;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  border-radius: 14px;
  border: 1px solid #D1D5DB;
  font-size: 14px;
  transition: border .2s, box-shadow .2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11,31,59,.15);
}

/* =========================
   BOTONES
========================= */
button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(227,6,19,.35);
  opacity: .95;
}

/* =========================
   LOGIN
========================= */
.login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-card {
  width: 380px;
  background: #fff;
  padding: 40px;
  border-radius: 22px;
  box-shadow:
    0 30px 60px rgba(0,0,0,.18),
    0 10px 25px rgba(0,0,0,.1);
  text-align: center;
}

.login-card h1 {
  margin-bottom: 25px;
  font-size: 26px;
  font-weight: 700;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }

  .main {
    margin-left: 0;
  }
}

/* =========================
   REPORTES
========================= */

label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 4px;
    display: block;
}

select, input, button {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    font-size: 14px;
}

button {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    cursor: pointer;
}

button:hover {
    opacity: .9;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.campo {
    display: none;
}
