/* ============================================================
   NoticiasDe — Panel de Administración
   ============================================================ */

:root {
  --sidebar-w:    240px;
  --sidebar-bg:   #1a1a2e;
  --sidebar-text: rgba(255,255,255,0.85);
  --sidebar-muted:rgba(255,255,255,0.45);
  --sidebar-active:#c0392b;
  --sidebar-hover: rgba(255,255,255,0.07);
  --main-bg:      #f0f2f5;
  --card-bg:      #ffffff;
  --accent:       #c0392b;
  --accent-hover: #e74c3c;
  --text:         #2c3e50;
  --text-light:   #6c7a89;
  --border:       #e4e8ec;
  --success:      #27ae60;
  --warning:      #f39c12;
  --danger:       #e74c3c;
  --info:         #2980b9;
  --radius:       6px;
  --shadow:       0 1px 4px rgba(0,0,0,0.08);
  --shadow-lg:    0 4px 20px rgba(0,0,0,0.12);
  --font:         -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--main-bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Sidebar ─────────────────────────────────────────────────── */
.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform 0.25s ease;
  box-shadow: 2px 0 12px rgba(0,0,0,0.2);
}

.sidebar-brand {
  padding: 1.5rem 1.25rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  letter-spacing: -0.3px;
  color: #fff;
}

.sidebar-brand span {
  color: var(--sidebar-active);
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.25rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar-nav a.active {
  background: rgba(192, 57, 43, 0.15);
  color: #fff;
  border-left-color: var(--sidebar-active);
  font-weight: 600;
}

.sidebar-nav a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
}

.sidebar-nav a.active svg, .sidebar-nav a:hover svg { opacity: 1; }

.sidebar-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--sidebar-muted);
  padding: 1rem 1.25rem 0.4rem;
}

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.65rem;
}

.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  background: var(--sidebar-active);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-info {
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: 0.68rem;
  color: var(--sidebar-muted);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--sidebar-text);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font);
  width: 100%;
  justify-content: center;
  transition: background 0.18s;
}

.btn-logout:hover {
  background: rgba(192,57,43,0.3);
  color: #fff;
}

/* ── Contenido principal ─────────────────────────────────────── */
.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.admin-topbar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-content {
  padding: 1.5rem;
  flex: 1;
}

/* ── Tarjetas de estadísticas ─────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border-left: 4px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-card.pending  { border-left-color: var(--warning); }
.stat-card.approved { border-left-color: var(--success); }
.stat-card.rejected { border-left-color: var(--danger);  }
.stat-card.sources  { border-left-color: var(--info);    }

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.stat-desc {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ── Contenedores / paneles ───────────────────────────────────── */
.panel {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.panel-body {
  padding: 1.25rem;
}

/* ── Tabla ───────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

thead th {
  background: #f8f9fa;
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover      { background: #f8f9fa; }

tbody td {
  padding: 0.75rem 1rem;
  vertical-align: middle;
  color: var(--text);
}

.td-title {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.td-url {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ── Badges de estado ────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-pending  { background: #fef3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }
.badge-web      { background: #dbeafe; color: #1e40af; }
.badge-rss      { background: #dcfce7; color: #166534; }
.badge-facebook { background: #dbeafe; color: #1e40af; }
.badge-instagram{ background: #fde68a; color: #92400e; }
.badge-active   { background: #d4edda; color: #155724; }
.badge-inactive { background: #e9ecef; color: #6c757d; }

/* ── Botones ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font);
  transition: background 0.18s, opacity 0.18s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover   { opacity: 0.88; }
.btn:active  { transform: scale(0.98); }
.btn svg     { width: 14px; height: 14px; }

.btn-primary  { background: var(--accent);  color: #fff; }
.btn-success  { background: var(--success); color: #fff; }
.btn-danger   { background: var(--danger);  color: #fff; }
.btn-warning  { background: var(--warning); color: #fff; }
.btn-info     { background: var(--info);    color: #fff; }
.btn-ghost    { background: transparent; color: var(--text-light); border: 1px solid var(--border); }
.btn-ghost:hover { background: #f0f2f5; }
.btn-sm       { padding: 0.3rem 0.65rem; font-size: 0.75rem; }
.btn-icon     { padding: 0.4rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Filtros y búsqueda ──────────────────────────────────────── */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
}

/* ── Inputs y formularios ─────────────────────────────────────── */
input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="datetime-local"],
select,
textarea {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--card-bg);
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
}

input.input-sm { padding: 0.35rem 0.6rem; font-size: 0.8rem; }

textarea { resize: vertical; min-height: 80px; }

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.form-label .required {
  color: var(--danger);
  margin-left: 2px;
}

.form-hint {
  font-size: 0.73rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

/* ── Toggle switch ───────────────────────────────────────────── */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 0.5rem;
}

.toggle-switch input { display: none; }

.toggle-slider {
  width: 38px;
  height: 22px;
  background: #ccc;
  border-radius: 11px;
  transition: background 0.2s;
  position: relative;
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--success);
}

.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(16px);
}

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay-admin {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.65);
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem 1rem;
  backdrop-filter: blur(2px);
}

.modal-overlay-admin.active {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  width: 100%;
  max-width: 680px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s ease;
  overflow: hidden;
}

.modal-box.modal-lg { max-width: 860px; }
.modal-box.modal-sm { max-width: 440px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: #f8f9fa;
}

.modal-box-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.modal-box-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 1.4rem;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.modal-box-close:hover { background: var(--border); }

.modal-box-body   { padding: 1.25rem; }
.modal-box-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #f8f9fa;
}

/* ── Alertas / Toasts ────────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #2c3e50;
  color: #fff;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.83rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.25s ease;
  max-width: 320px;
  border-left: 3px solid #fff;
}

.toast.success { background: #1e7e34; border-left-color: #a8e6b8; }
.toast.error   { background: #b71c1c; border-left-color: #ffb3b3; }
.toast.warning { background: #e65100; border-left-color: #ffd07a; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Paginación ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-light);
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination-buttons {
  display: flex;
  gap: 0.3rem;
}

.page-btn {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text);
  transition: background 0.15s;
}

.page-btn:hover    { background: #f0f2f5; }
.page-btn.active   { background: var(--accent); color: #fff; border-color: var(--accent); }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Acciones de fila ────────────────────────────────────────── */
.row-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── Imagen miniatura ────────────────────────────────────────── */
.thumb {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 3px;
  background: var(--border);
}

/* ── Login page ──────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 1.5rem;
}

.login-card {
  background: var(--card-bg);
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  overflow: hidden;
}

.login-header {
  background: var(--sidebar-bg);
  padding: 2rem;
  text-align: center;
  border-bottom: 3px solid var(--accent);
}

.login-logo {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.login-header h1 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
}

.login-header p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.login-body {
  padding: 2rem;
}

.login-error {
  background: #ffeef0;
  border: 1px solid #ffd0d4;
  color: #c0392b;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  margin-bottom: 1rem;
  display: none;
}

.login-error.show { display: block; }

.btn-login {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
  margin-top: 0.5rem;
}

.btn-login:hover    { background: var(--accent-hover); }
.btn-login:disabled { opacity: 0.7; cursor: wait; }

.login-footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ── Log de scraping ─────────────────────────────────────────── */
.log-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}

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

.log-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.log-status-dot.success { background: var(--success); }
.log-status-dot.error   { background: var(--danger); }

.log-info { flex: 1; min-width: 0; }

.log-source {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-detail { color: var(--text-light); font-size: 0.75rem; }

.log-time {
  font-size: 0.72rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* ── Botón hamburguesa ───────────────────────────────────────── */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--text);
  border-radius: var(--radius);
  transition: background 0.15s;
  flex-shrink: 0;
  margin-right: 0.25rem;
}
.sidebar-toggle:hover { background: var(--main-bg); }
.sidebar-toggle svg { width: 22px; height: 22px; display: block; }

/* ── Overlay oscuro al abrir sidebar ────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
}
.sidebar-overlay.active { display: block; }

/* ── Responsive ──────────────────────────────────────────────── */

/* ── Tablet grande (≤ 1024px) ─────────────────────────────── */
@media (max-width: 1024px) {
  .admin-topbar { padding: 0 1rem; }
  .admin-content { padding: 1.25rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet + móvil (≤ 768px) ─────────────────────────────── */
@media (max-width: 768px) {
  /* Sidebar fuera de pantalla */
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); z-index: 200; }
  .admin-main { margin-left: 0; }

  /* Mostrar botón hamburguesa */
  .sidebar-toggle { display: flex; align-items: center; justify-content: center; }

  /* Topbar */
  .admin-topbar { padding: 0 0.75rem; gap: 0.5rem; }
  .admin-topbar-actions { gap: 0.4rem; }

  /* Contenido */
  .admin-content { padding: 0.875rem; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.6rem; }

  /* Panel */
  .panel-header { flex-wrap: wrap; gap: 0.5rem; padding: 0.875rem 1rem; }

  /* Tabla */
  .table-wrapper { -webkit-overflow-scrolling: touch; }
  table { font-size: 0.8rem; }
  thead th { padding: 0.5rem 0.75rem; }
  tbody td { padding: 0.6rem 0.75rem; }
  .td-title { max-width: 180px; }
  .td-url { max-width: 130px; }

  /* Botones táctil */
  .btn-sm { padding: 0.4rem 0.7rem; min-height: 34px; }
  .btn-icon { padding: 0.5rem; min-width: 34px; min-height: 34px; }

  /* Modal: sheet desde abajo */
  .modal-overlay-admin { padding: 0; align-items: flex-end; }
  .modal-box { border-radius: 12px 12px 0 0; max-height: 92vh; overflow-y: auto; }
  .modal-box.modal-lg, .modal-box.modal-sm { max-width: 100%; }

  /* Toast centrado en móvil */
  #toast-container { right: 0.75rem; bottom: 0.75rem; left: 0.75rem; align-items: center; }
  .toast { max-width: 100%; width: 100%; text-align: center; }

  /* Paginación */
  .pagination { font-size: 0.75rem; padding: 0.6rem 0.875rem; }
  .page-btn { padding: 0.4rem 0.7rem; min-height: 34px; }

  /* Filtros */
  .filters-bar { gap: 0.5rem; }
}

/* ── Móvil pequeño (≤ 480px) ─────────────────────────────── */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-value { font-size: 1.4rem; }
  .stat-card { padding: 0.875rem; }
  .form-row { grid-template-columns: 1fr; }

  /* font-size 16px evita zoom automático en iOS */
  input[type="text"], input[type="url"], input[type="email"],
  input[type="password"], input[type="search"], input[type="datetime-local"],
  select, textarea { font-size: 16px; padding: 0.65rem 0.75rem; }

  .admin-topbar-title { font-size: 0.88rem; }
  .thumb { width: 44px; height: 32px; }
  .row-actions { flex-wrap: wrap; gap: 0.25rem; }

  .modal-box-body { padding: 1rem; }
  .modal-box-footer { padding: 0.75rem 1rem; gap: 0.5rem; flex-direction: column; }
  .modal-box-footer .btn { justify-content: center; }
}

/* ── Utilidades ──────────────────────────────────────────────── */
.text-muted   { color: var(--text-light); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
