/* ═══════════════════════════════════════════════════════
   Revo Analytics Dashboard — Professional Styles
   ═══════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────── */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #7c3aed;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #06b6d4;
  --info-light: #cffafe;

  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: #0f172a;
  --bg-sidebar-hover: #1e293b;
  --bg-sidebar-active: #1e40af;

  --text: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-sidebar: #cbd5e1;
  --text-sidebar-active: #ffffff;

  --border: #e2e8f0;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --radius: 12px;
  --radius-sm: 8px;

  --sidebar-width: 240px;
  --topbar-height: 60px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: var(--font); }
input { font-family: var(--font); }

/* ── Login Overlay ───────────────────────────────────── */
.login-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #2563eb 100%);
}
.login-card {
  background: var(--bg-card); border-radius: 16px; padding: 48px;
  width: 400px; max-width: 90vw; box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-logo svg { margin-bottom: 16px; }
.login-logo h1 { font-size: 1.75rem; font-weight: 700; color: var(--text); }
.login-subtitle { color: var(--text-secondary); margin-bottom: 32px; font-size: .9rem; }
.login-form { text-align: left; }
.login-form label { font-weight: 600; font-size: .85rem; color: var(--text-secondary); display: block; margin-bottom: 6px; }
.login-form input {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; transition: border-color .2s;
}
.login-form input:focus { outline: none; border-color: var(--primary); }
.login-form button {
  width: 100%; padding: 12px; margin-top: 16px; background: var(--primary); color: #fff;
  border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600; transition: background .2s;
}
.login-form button:hover { background: var(--primary-dark); }
.login-error { color: var(--danger); font-size: .85rem; margin-top: 12px; text-align: center; }

/* ── App Layout ──────────────────────────────────────── */
.app { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width); background: var(--bg-sidebar);
  display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 100;
  transition: transform .3s ease;
}
.sidebar-header {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-header svg { width: 32px; height: 32px; flex-shrink: 0; }
.sidebar-title { color: #fff; font-weight: 700; font-size: 1.1rem; }
.sidebar-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }
.nav-section-label {
  padding: 6px 16px 4px; margin-top: 14px; font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.45);
}
.nav-section-label:first-child { margin-top: 0; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-radius: var(--radius-sm); color: var(--text-sidebar);
  margin-bottom: 2px; transition: all .15s; font-weight: 500;
}
.nav-item:hover { background: var(--bg-sidebar-hover); color: #fff; }
.nav-item.active { background: var(--bg-sidebar-active); color: var(--text-sidebar-active); }
.nav-icon { font-size: 1.2rem; width: 24px; text-align: center; }
.nav-label { font-size: .9rem; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.btn-logout {
  width: 100%; padding: 8px; background: rgba(255,255,255,.06); color: var(--text-sidebar);
  border-radius: var(--radius-sm); font-size: .85rem; transition: all .15s;
}
.btn-logout:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── Content ─────────────────────────────────────────── */
.content {
  flex: 1; margin-left: var(--sidebar-width);
  display: flex; flex-direction: column; min-height: 100vh;
}
.topbar {
  height: var(--topbar-height); background: var(--bg-card);
  border-bottom: 1px solid var(--border); display: flex;
  align-items: center; padding: 0 24px; gap: 16px;
  position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow);
}
.topbar-title { flex: 1; font-size: 1.2rem; font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-date { color: var(--text-secondary); font-size: .85rem; }
.btn-menu { display: none; background: none; font-size: 1.5rem; color: var(--text); padding: 4px 8px; }
.btn-print { background: none; font-size: 1.2rem; padding: 4px 8px; border-radius: 6px; transition: background .15s; }
.btn-print:hover { background: var(--bg); }

/* ── Date Filter ─────────────────────────────────────── */
.date-filter {
  display: flex; align-items: center; gap: 8px; font-size: .85rem;
}
.date-filter label {
  color: var(--text-secondary); font-weight: 500; font-size: .8rem;
}
.date-filter input[type="date"] {
  padding: 5px 10px; border: 1.5px solid var(--border); border-radius: 6px;
  font-size: .85rem; font-family: var(--font); color: var(--text);
  background: var(--bg-card); transition: border-color .2s;
}
.date-filter input[type="date"]:focus {
  outline: none; border-color: var(--primary);
}
.btn-apply-dates {
  padding: 5px 14px; background: var(--primary); color: #fff;
  border-radius: 6px; font-size: .8rem; font-weight: 600;
  transition: background .15s;
}
.btn-apply-dates:hover { background: var(--primary-dark); }
.btn-clear-dates {
  padding: 4px 8px; background: none; color: var(--text-muted);
  border-radius: 6px; font-size: .9rem; transition: all .15s;
}
.btn-clear-dates:hover { background: var(--danger-light); color: var(--danger); }
.date-active-badge {
  display: inline-block; background: var(--primary-light); color: var(--primary);
  font-size: .75rem; font-weight: 600; padding: 2px 10px; border-radius: 99px;
  margin-left: 8px;
}

.page-content { padding: 24px; flex: 1; }

/* ── Loading ─────────────────────────────────────────── */
.loading {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; color: var(--text-muted); font-size: 1rem;
}
.loading::before {
  content: ''; width: 24px; height: 24px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .8s linear infinite; margin-right: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Grid ────────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--border);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.card-title { font-weight: 600; font-size: 1rem; color: var(--text); }
.card-badge {
  font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 99px;
}

/* ── KPI Cards ───────────────────────────────────────── */
.kpi-card {
  background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; border: 1px solid var(--border); position: relative; overflow: hidden;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.kpi-card.blue::before { background: var(--primary); }
.kpi-card.green::before { background: var(--success); }
.kpi-card.purple::before { background: var(--secondary); }
.kpi-card.amber::before { background: var(--warning); }
.kpi-card.red::before { background: var(--danger); }
.kpi-card.cyan::before { background: var(--info); }
.kpi-icon { font-size: 1.5rem; margin-bottom: 8px; }
.kpi-label { font-size: .8rem; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .5px; }
.kpi-value { font-size: 1.8rem; font-weight: 700; color: var(--text); margin: 4px 0; }
.kpi-sub { font-size: .8rem; color: var(--text-muted); }

/* ── Section Headers ─────────────────────────────────── */
.section-header {
  font-size: 1.1rem; font-weight: 600; color: var(--text);
  margin: 28px 0 16px; padding-bottom: 8px; border-bottom: 2px solid var(--border);
}
.section-header:first-child { margin-top: 0; }

/* ── Tables ──────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse; font-size: .85rem;
}
thead th {
  text-align: left; padding: 10px 12px; background: var(--bg);
  font-weight: 600; color: var(--text-secondary); white-space: nowrap;
  border-bottom: 2px solid var(--border); position: sticky; top: 0;
  cursor: pointer; user-select: none;
}
thead th:hover { color: var(--primary); }
tbody td {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr:hover { background: #f8faff; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.currency { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

/* ── Badges / Tags ───────────────────────────────────── */
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600;
  padding: 2px 10px; border-radius: 99px;
}
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warning { background: var(--warning-light); color: #b45309; }
.badge-success { background: var(--success-light); color: #065f46; }
.badge-info { background: var(--info-light); color: #0e7490; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-neutral { background: var(--bg); color: var(--text-secondary); }

/* ── Chart Container ─────────────────────────────────── */
.chart-container {
  position: relative; height: 300px; width: 100%;
}
.chart-container.tall { height: 400px; }
.chart-container.short { height: 220px; }

/* ── Heatmap ─────────────────────────────────────────── */
.heatmap-grid {
  display: grid; gap: 2px; font-size: .7rem; text-align: center;
}
.heatmap-cell {
  padding: 6px 2px; border-radius: 4px; font-weight: 500;
  transition: transform .1s;
}
.heatmap-cell:hover { transform: scale(1.1); z-index: 1; }
.heatmap-header { font-weight: 600; color: var(--text-secondary); padding: 6px 2px; }

/* ── BCG Matrix (Menu Engineering) ───────────────────── */
.bcg-matrix {
  position: relative; border: 2px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  height: 400px;
}
.bcg-quadrant {
  position: absolute; width: 50%; height: 50%; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  font-weight: 600; color: rgba(0,0,0,.15); font-size: 3rem;
}
.bcg-quadrant.tl { top: 0; left: 0; background: rgba(245,158,11,.08); }
.bcg-quadrant.tr { top: 0; right: 0; background: rgba(16,185,129,.08); }
.bcg-quadrant.bl { bottom: 0; left: 0; background: rgba(239,68,68,.08); }
.bcg-quadrant.br { bottom: 0; right: 0; background: rgba(37,99,235,.08); }
.bcg-label { font-size: .75rem; color: var(--text-secondary); font-weight: 500; }
.bcg-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  transform: translate(-50%, -50%); border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer;
  transition: all .15s; z-index: 2;
}
.bcg-dot:hover { transform: translate(-50%, -50%) scale(1.5); z-index: 3; }
.bcg-tooltip {
  display: none; position: absolute; background: var(--bg-sidebar);
  color: #fff; padding: 8px 12px; border-radius: 8px; font-size: .8rem;
  white-space: nowrap; z-index: 10; pointer-events: none;
  box-shadow: var(--shadow-lg);
}

/* ── Retention Grid (Cohortes) ───────────────────────── */
.retention-grid { overflow-x: auto; }
.retention-grid table { font-size: .8rem; }
.retention-grid th, .retention-grid td { text-align: center; min-width: 70px; }
.retention-cell {
  font-weight: 600; border-radius: 4px; padding: 6px !important;
}

/* ── Alert Cards ─────────────────────────────────────── */
.alert-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  margin-bottom: 6px; font-size: .85rem;
}
.alert-row.critical { background: #fef2f2; border-left: 4px solid var(--danger); }
.alert-row.warning { background: #fffbeb; border-left: 4px solid var(--warning); }
.alert-row.info { background: #f0f9ff; border-left: 4px solid var(--info); }
.alert-icon { font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.alert-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.alert-title { font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alert-subtitle { font-size: .78rem; color: var(--text-muted); }

.alert-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 10px 14px; margin-bottom: 10px;
  background: var(--bg); border-radius: var(--radius-sm);
  font-size: .78rem; color: var(--text-muted);
}
.legend-title { font-weight: 600; color: var(--text-secondary); }
.legend-item { white-space: nowrap; }
.legend-click { cursor: pointer; padding: 2px 8px; border-radius: 4px; transition: background .2s; }
.legend-click:hover { background: rgba(37,99,235,.1); }
.legend-sep { color: var(--border); font-weight: 300; }

/* ── Clickable table rows ────────────────────────────── */
tr[onclick] { transition: background .15s; }
tr[onclick]:hover { background: rgba(37,99,235,.06) !important; }

/* ── Sortable column headers ─────────────────────────── */
.sortable-th {
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: color .15s;
}
.sortable-th:hover { color: var(--primary); }

/* ── Alert Filters ───────────────────────────────────── */
.alert-filters {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
}
.filter-group {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.filter-label {
  font-size: .8rem; font-weight: 600; color: var(--text-secondary); margin-right: 4px;
}
.filter-btn {
  font-size: .78rem; padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text-secondary); cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.filter-btn.sev-critical.active { background: var(--danger); border-color: var(--danger); }
.filter-btn.sev-warning.active { background: #d97706; border-color: #d97706; }
.filter-btn.sev-info.active { background: var(--info); border-color: var(--info); }

/* ── Pagination ──────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 16px 0 4px;
}
.page-btn {
  font-size: .82rem; padding: 6px 16px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--card);
  color: var(--primary); cursor: pointer; transition: all .2s;
}
.page-btn:hover:not(:disabled) { background: var(--primary); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: default; }
.page-info { font-size: .8rem; color: var(--text-muted); }

/* ── Progress Bar ────────────────────────────────────── */
.progress-bar {
  height: 8px; background: var(--bg); border-radius: 99px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 99px; transition: width .6s ease;
}

/* ── Empty State ─────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 40px 20px; color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: .9rem; }

/* ── Responsive ──────────────────────────────────────── */

/* Tablet (<=1024px) */
@media (max-width: 1024px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .kpi-value { font-size: 1.5rem; }
  .chart-container { height: 260px; }
  .chart-container.tall { height: 340px; }
  .bcg-matrix { height: 320px; }
  .heatmap-grid { font-size: .65rem; }
  .heatmap-cell { padding: 4px 1px; }
}

/* Mobile (<=768px) */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 260px;
  }

  /* Sidebar: overlay (off-canvas) en vez de fixed */
  .sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 20px rgba(0,0,0,.3);
  }

  /* Overlay backdrop cuando el sidebar está abierto */
  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 99;
    background: rgba(0,0,0,.4);
  }
  .sidebar.open ~ .sidebar-backdrop,
  .sidebar-backdrop.active { display: block; }

  /* Content ocupa toda la pantalla */
  .content { margin-left: 0; }
  .btn-menu { display: block; }

  /* Grids a 1 columna */
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }

  /* Padding reducido */
  .page-content { padding: 12px; }
  .card { padding: 16px; }

  /* KPIs más compactos */
  .kpi-card { padding: 14px; }
  .kpi-value { font-size: 1.4rem; }
  .kpi-label { font-size: .7rem; }
  .kpi-icon { font-size: 1.2rem; margin-bottom: 4px; }

  /* Topbar adaptada */
  .topbar {
    flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px;
  }
  .topbar-title { font-size: 1rem; }

  /* Date filter apilado */
  .date-filter {
    flex-wrap: wrap; width: 100%; gap: 6px;
  }
  .date-filter input[type="date"] {
    flex: 1; min-width: 120px;
  }

  /* Charts más pequeños */
  .chart-container { height: 220px; }
  .chart-container.tall { height: 280px; }
  .chart-container.short { height: 180px; }

  /* Tablas con scroll horizontal */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 500px; }
  tbody td, thead th { padding: 8px 10px; font-size: .8rem; }

  /* Heatmap scroll horizontal */
  .heatmap-grid {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    min-width: 600px;
  }

  /* BCG Matrix reducido */
  .bcg-matrix { height: 280px; }
  .bcg-quadrant { font-size: 2rem; }

  /* Alertas */
  .alert-row { padding: 10px 12px; gap: 10px; }
  .alert-title { white-space: normal; }
  .alert-filters { gap: 8px 12px; }

  /* Formulario de informes */
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row label { min-width: unset; }

  /* Section headers */
  .section-header { font-size: 1rem; margin: 20px 0 12px; }
}

/* Teléfono pequeño (<=480px) */
@media (max-width: 480px) {
  html { font-size: 13px; }
  .page-content { padding: 8px; }
  .card { padding: 12px; border-radius: 8px; }

  /* KPIs en grid de 2 */
  .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid { gap: 10px; }
  .kpi-card { padding: 10px; }
  .kpi-value { font-size: 1.2rem; }
  .kpi-sub { font-size: .7rem; }

  /* Charts más compactos */
  .chart-container { height: 180px; }
  .chart-container.tall { height: 240px; }

  /* Login card */
  .login-card { padding: 28px 20px; }
  .login-logo h1 { font-size: 1.3rem; }

  /* Topbar */
  .topbar { padding: 6px 10px; }
  .topbar-title { font-size: .9rem; }
  .topbar-date { font-size: .75rem; }

  /* Pagination */
  .pagination { gap: 8px; }
  .page-btn { padding: 4px 10px; font-size: .75rem; }
}

/* ── Print Styles ────────────────────────────────────── */
@media print {
  .sidebar, .topbar, .btn-print, .btn-logout { display: none !important; }
  .content { margin-left: 0 !important; }
  .page-content { padding: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; break-inside: avoid; }
  .kpi-card { break-inside: avoid; }
  body { background: #fff; font-size: 11px; }
  @page { margin: 1.5cm; }
  .chart-container { height: 250px !important; }
  .print-header {
    display: block !important; text-align: center; margin-bottom: 20px;
    font-size: 1.5rem; font-weight: 700;
  }
}
.print-header { display: none; }

/* ── Animations ──────────────────────────────────────── */
.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Informes Page ───────────────────────────────────── */
.informe-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-row label { font-size: .85rem; font-weight: 500; color: var(--text-light); min-width: 55px; }
.form-input {
  padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px;
  font-family: inherit; font-size: .9rem; background: #f8fafc;
  transition: border-color .2s;
}
.form-input:focus { outline: none; border-color: var(--primary); background: #fff; }
.btn-generar {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; padding: 10px 24px; border-radius: 8px;
  font-weight: 600; cursor: pointer; font-size: .9rem;
  transition: transform .15s, box-shadow .15s;
}
.btn-generar:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.3); }
.inf-result-loading { padding: 12px 16px; background: #f0f9ff; border-radius: 8px; color: #2563eb; font-size: .9rem; }
.inf-result-success { padding: 12px 16px; background: var(--success-light); border-radius: 8px; color: #065f46; font-size: .9rem; }
.inf-result-error { padding: 12px 16px; background: #fee2e2; border-radius: 8px; color: var(--danger); font-size: .9rem; }
.inf-link, .inf-link-big {
  color: var(--primary); text-decoration: none; font-weight: 500;
  transition: color .15s;
}
.inf-link:hover, .inf-link-big:hover { color: var(--primary-dark); text-decoration: underline; }
.inf-link-big { font-size: .95rem; padding: 6px 12px; background: var(--primary-light); border-radius: 6px; }
.btn-copiar {
  background: #f1f5f9; border: 1px solid #e2e8f0; padding: 4px 10px;
  border-radius: 6px; cursor: pointer; font-size: .8rem;
  transition: background .15s;
}
.btn-copiar:hover { background: #e2e8f0; }
.btn-eliminar {
  background: none; border: 1px solid #fee2e2; padding: 4px 8px;
  border-radius: 6px; cursor: pointer; font-size: .8rem;
  transition: background .15s;
}
.btn-eliminar:hover { background: #fee2e2; }
