/* Entrena y Más — Panel Admin
   Misma paleta de marca que el sitio publico, en un layout de trabajo
   (sidebar + contenido) en vez de un layout de marketing. */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --verde: #569E81;
  --verde-oscuro: #3E7A61;
  --amarillo: #F4E486;
  --amarillo-oscuro: #E8D25E;
  --tinta: #14171A;
  --tinta-suave: #4A4E54;
  --linea: #E4E1D6;
  --papel: #F4F2ED;
  --papel-verde: #EEF5F1;
  --rojo: #C1432B;
  --radio: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { font-family: 'Inter', sans-serif; color: var(--tinta); background: var(--papel); }
h1, h2, h3, .display { font-family: 'Baloo 2', sans-serif; font-weight: 700; margin: 0 0 .4rem; }
.mono { font-family: 'IBM Plex Mono', monospace; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; font-size: 13.5px; font-weight: 700;
  border-radius: 8px; border: 1px solid transparent;
}
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover { background: var(--verde-oscuro); }
.btn-outline { background: transparent; border-color: var(--linea); color: var(--tinta); }
.btn-outline:hover { border-color: var(--verde); color: var(--verde); }
.btn-rojo { background: #FBE9E4; color: var(--rojo); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.app-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--tinta); color: #B9BFC0; padding: 24px 0; }
.sidebar .brand { padding: 0 22px 20px; border-bottom: 1px solid #2A2E2F; margin-bottom: 14px; }
.sidebar .brand img { height: 24px; width: auto; display: block; }
.sidebar nav a {
  display: block; padding: 10px 22px; font-size: 13.5px; font-weight: 600;
  border-left: 3px solid transparent; color: #B9BFC0;
}
.sidebar nav a:hover { color: #fff; }
.sidebar nav a.activo { background: #1D2021; color: #fff; border-color: var(--amarillo); }
.sidebar .seccion-titulo { padding: 16px 22px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #6B7274; }
.sidebar .staff-info { padding: 16px 22px 0; margin-top: 16px; border-top: 1px solid #2A2E2F; font-size: 12.5px; color: #8A9092; }

.main { padding: 30px 36px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.topbar h1 { font-size: 24px; margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi { background: var(--tinta); color: #fff; padding: 18px 20px; border-radius: var(--radio); }
.kpi .num { font-family: 'IBM Plex Mono', monospace; font-size: 26px; color: var(--amarillo); }
.kpi .lbl { font-size: 11px; color: #9BA0A8; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

.card { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); }
.card .card-head { padding: 16px 20px; border-bottom: 1px solid var(--linea); display: flex; justify-content: space-between; align-items: center; }
.card .card-head h2 { font-size: 15px; font-family: 'Inter'; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; margin: 0; }

table.admin { width: 100%; border-collapse: collapse; }
table.admin th { text-align: left; font-size: 10.5px; text-transform: uppercase; color: var(--tinta-suave); padding: 10px 20px; border-bottom: 1px solid var(--linea); letter-spacing: .04em; }
table.admin td { padding: 12px 20px; border-bottom: 1px solid var(--linea); font-size: 13.5px; }
table.admin tr:last-child td { border-bottom: none; }

.pill { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 4px 9px; border-radius: 100px; letter-spacing: .03em; }
.pill-pendiente { background: #FFF6DD; color: #8A6A00; }
.pill-activo { background: var(--papel-verde); color: var(--verde-oscuro); }
.pill-rechazado { background: #FBE9E4; color: var(--rojo); }
.pill-destacado { background: #E3E7FF; color: #38439E; }

.acciones { display: flex; gap: 8px; }

.form-shell { max-width: 420px; margin: 80px auto; background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 32px; }
.form-shell h1 { text-align: center; font-size: 22px; }
.form-shell .sub { text-align: center; color: var(--tinta-suave); font-size: 13.5px; margin-bottom: 22px; }
.campo-row { margin-bottom: 14px; }
.campo-row label { display: block; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.campo-row input, .campo-row select, .campo-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--linea); border-radius: 8px; font-family: inherit; font-size: 14px;
}

.alerta { padding: 12px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 18px; }
.alerta-error { background: #FBE9E4; color: var(--rojo); }
.alerta-exito { background: var(--papel-verde); color: var(--verde-oscuro); }

.qr-secreto { background: var(--tinta); color: var(--amarillo); font-family: 'IBM Plex Mono', monospace; font-size: 15px; padding: 14px; border-radius: 8px; text-align: center; word-break: break-all; margin: 16px 0; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

/* Textos de ayuda bajo los campos */
.hint { font-size: 12.5px; line-height: 1.5; color: var(--tinta-suave); font-weight: 400; }
