:root {
  --primary: #cad2db;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===== Layout ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  width: 240px;
  background: #ffffff;
  border-right: 1px solid var(--border);
  padding: 30px 20px;
}

.sidebar h2 {
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 20px;
  color: var(--primary);
}

.sidebar a {
  display: block;
  padding: 10px 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.sidebar a:hover {
  color: var(--primary);
}

/* ===== Main ===== */
.main {
  flex: 1;
  padding: 40px;
}

/* ===== Cards ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  margin-bottom: 30px;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
}

tr:hover {
  background: #f9fafb;
}

/* ===== Forms ===== */
select, input {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* ===== Links ===== */
a {
  color: var(--primary);
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}
/* ===== Login ===== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.login-card {
  background: #ffffff;
  padding: 40px;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius);
  box-shadow: 0 15px 40px rgba(0,0,0,.1);
}

.login-card h1 {
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
  color: var(--primary);
}

.login-card p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 30px;
}

.login-card label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.login-card input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.login-card button {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  border: none;
  color: #fff;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}

.login-card button:hover {
  opacity: 0.95;
}

.login-error {
  background: #fdecea;
  color: #b91c1c;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
}
.card h3 {
  margin-bottom: 5px;
  color: var(--muted);
}
/* ===== Gráficos ===== */
.chart {
  margin-top: 20px;
}

.bar {
  margin-bottom: 12px;
}

.bar-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 4px;
}

.bar-track {
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 26px;
  background: var(--primary);
  color: #fff;
  padding-left: 10px;
  display: flex;
  align-items: center;
  font-size: 13px;
  white-space: nowrap;
}
/* ===== Charts Fix ===== */
.chart {
  margin-top: 20px;
}

.bar {
  margin-bottom: 14px;
}

.bar-label {
  font-size: 14px;
  margin-bottom: 6px;
  color: #374151;
}

.bar-track {
  width: 100%;
  height: 28px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: #2b6cb0;
  border-radius: 6px;
}


/* === DEBUG DASHBOARD === */

.main {
  padding: 20px;
  background: #f3f4f6;
  min-height: 100vh;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.metric strong {
  font-size: 28px;
  display: block;
  margin-top: 10px;
}

.experience-item {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
}

.experience-item:last-child {
  border-bottom: none;
}

.experience-item strong {
  color: #0f172a;
}

.experience-item small {
  color: #64748b;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.profile-grid p {
  background: #f9fafb;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start; /* o center si lo querés centrado */
  gap: 8px;
}

.checkbox-label input {
  margin-top: 3px; /* ajusta si querés que quede mejor alineado */
}
.alert {
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #34d399;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #f87171;
}

/*------------*/
/* ================================
   CONTENEDOR GENERAL FORMULARIOS
================================ */
.page-form {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 16px;
}

.form-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

/* ================================
   TÍTULOS
================================ */
.form-card h1 {
  margin-bottom: 6px;
  font-size: 28px;
}

.form-card .subtitle {
  color: #666;
  margin-bottom: 28px;
}

/* ================================
   CAMPOS
================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

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

/* ================================
   FILAS DOBLES
================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ================================
   ACCIONES
================================ */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}

/* ================================
   BOTONES
================================ */
.btn-primary {
  background: #2563eb;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1e40af;
}

.btn-secondary {
  background: #f1f5f9;
  color: #333;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* ================================
   EXPERIENCIA LABORAL
================================ */
.experiencia-item {
  border: 1px dashed #ddd;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fafafa;
}

/*lista de vacancias*/
.badge-success {
  background: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.badge-muted {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/*columna de fultro*/
.postulaciones-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: flex-start;
}

/* Card de filtros */
.filtros {
  position: sticky;
  top: 20px;
}

.filtros form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .postulaciones-layout {
    grid-template-columns: 1fr;
  }

  .filtros {
    position: relative;
  }
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

@media (max-width: 600px) {
  .list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
.autocomplete {
  border: 1px solid #ddd;
  background: #fff;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.autocomplete div {
  padding: 8px;
  cursor: pointer;
}

.autocomplete div:hover {
  background: #f1f1f1;
}