
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --dark-bg: #0f172a;
    --dark-card: #1e293b;
    --light-bg: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #15192a 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
}

.main-container {
    background: var(--light-bg);
    min-height: 100vh;
}

/* Header */
.header {
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/* Search Container */
.search-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin: 2rem;
    border: 1px solid var(--border-color);
}

.search-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.search-title i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.search-form {
    display: grid;
    grid-template-columns: 220px 200px 1fr 200px 150px; /* +1 columna a la izquierda */
    gap: 1rem;
    align-items: end;
    max-width: 1100px;
    margin: 0 auto;
}


.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control, .form-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-search {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-search:disabled {
    opacity: 0.6;
    transform: none;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem;
}

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.stat-card.danger::before {
    background: linear-gradient(135deg, var(--danger-color), #dc2626);
}

.stat-card.success::before {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.primary {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.stat-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.stat-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

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

.stat-change {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem;
}

.chart-container {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    height: 450px;
}

.chart-container canvas {
    width: 93% !important;  /* fuerza al canvas a encajar */
    height: 93% !important; /* incluso si maintainAspectRatio = false */
    display: block;          /* quita espacio fantasma abajo */
}

.chart-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-title i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Search Results */
.search-results {
    margin: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.results-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    width: 100%;
}

.results-content {
    max-height: 1303px;
    overflow-y: auto;
    padding: 1rem;
}

.results-content-meta {
    max-height: 439px;
    overflow-y: auto;
    padding: 1rem;
}

.result-item {
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #fafbfc;
    transition: all 0.2s ease;
}

.result-item:hover {
    background: #f1f5f9;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.result-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.result-number {
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 1rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.field-item {
    display: flex;
    flex-direction: column;
}

.field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.field-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    word-break: break-all;
    font-weight: 500;
}

.source-metadata {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 0.75rem;
    margin-top: 1rem;
    padding: 0;          /* ahora lo lleva el body */
    overflow: hidden;
}

/* Quitar triángulo por defecto de <summary> */
.source-metadata summary {
    list-style: none;
}

/* Chrome/WebKit */
.source-metadata summary::-webkit-details-marker {
    display: none;
}

.metadata-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #92400e;
}

.metadata-summary i {
    color: #f97316;
}

.metadata-summary .chevron {
    margin-left: auto;
    transition: transform 0.2s ease;
}

/* Cuerpo interno */
.metadata-body {
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(146, 64, 14, 0.25);
}

/* Rotar chevron cuando está abierto */
.source-metadata[open] .metadata-summary .chevron {
    transform: rotate(180deg);
}


.metadata-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.metadata-title i {
    margin-right: 0.5rem;
}

.ransomware-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.btn-load-more {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Recent Incidents Table */
.incidents-container {
    margin: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.btn-load-more-float {
    position: sticky;  /* Cambia de fixed a sticky */
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin: 1rem auto 0;  /* Añade margen superior */
}

.btn-load-more-float:hover {
    transform: translateX(-50%) translateY(-2px);  /* Ajusta el hover */
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
}

.btn-load-more-float:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 768px) {
    .btn-load-more-float {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
}


.incidents-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}

.incidents-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.incidents-title i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.table-responsive {
    overflow-x: auto;
}

.table {
    margin: 0;
}

.table th {
    background: #f8fafc;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background: #f8fafc;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
}

.badge.bg-danger {
    background: var(--danger-color) !important;
}

.badge.bg-success {
    background: var(--success-color) !important;
}

.badge.bg-warning {
    background: var(--warning-color) !important;
}

/* Loading States */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff40;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .search-form {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 2rem;
    }
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
    padding-top: 0rem;
}


.mode-toggle {
    display: inline-flex;
    background: #0f172a;
    border: 2px solid var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.mode-toggle button {
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    font-size: 0.85rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.mode-toggle button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}
.mode-toggle button:hover:not(.active) {
    background: rgba(99,102,241,.08);
    color: #475569;
}

        /* Modal overlay */
#packetLogModalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(15,15,20,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  padding: 1rem;
}

/* Modal box */
#packetLogModal {
  width: min(1100px, 96%);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-surface, #fff);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.6);
  padding: 1rem;
  color: var(--text-primary, #e6eef8);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Header */
#packetLogModal .modal-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  margin-bottom: 0.5rem;
}
#packetLogModal .modal-header h3 { margin:0; font-size:1.05rem; }

/* Body grid */
#packetLogModal .modal-body { display:grid; grid-template-columns: 1fr 420px; gap:1rem; }
#packetLogModal .log-summary { font-size:0.9rem; line-height:1.4; }
#packetLogModal .log-raw { max-height: 64vh; overflow:auto; background: rgba(0,0,0,0.35); padding:0.75rem; border-radius:8px; font-family: monospace; font-size:0.85rem; white-space:pre-wrap; }

/* Buttons */
.modal-actions { display:flex; gap:0.5rem; }
.btn-small { padding:0.4rem 0.6rem; border-radius:6px; background: #554fe8; border: 1px solid rgba(255,255,255,0.05); color:#fff; cursor:pointer; }
.btn-small:disabled { opacity:0.5; cursor:not-allowed; }

/* Spinner (simple) */
.spinner-inline {
  width:18px; height:18px; border-radius:50%; border:2px solid rgba(255,255,255,0.08); border-top-color: var(--primary-color, #6366f1);
  animation: spin 0.9s linear infinite; display:inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 880px) {
  #packetLogModal .modal-body { grid-template-columns: 1fr; }
}

/* Chips para cookies */
.cookie-chips {
  display: flex; flex-wrap: wrap; gap: .35rem;
  align-items: center;
  padding: .25rem 0;
}
.cookie-chip {
  padding: .25rem .5rem; border-radius: 999px;
  background: rgba(99,102,241,.15); /* indigo soft */
  border: 1px solid rgba(99,102,241,.35);
  font-size: .8rem; line-height: 1.2; white-space: nowrap;
}

/* Credenciales en línea */
.cred-row {
  display: flex; flex-wrap: wrap; gap: .75rem;
  padding: .35rem .5rem; background: rgba(255,255,255,0.02);
  border-radius: 8px; margin: .25rem 0;
}
.cred-kv { display:flex; gap:.25rem; }
.cred-kv b { opacity:.85; }

/* Tabla de credenciales en 3 columnas */
.cred-table {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr; /* ajusta proporciones si quieres */
  gap: .5rem;
  margin: .25rem 0 .5rem 0;
}

/* Cabecera */
.cred-header {
  font-weight: 600;
  opacity: .9;
  font-size: .85rem;
  padding: .35rem .5rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

/* Celda (box) */
.cred-cell {
  padding: .45rem .55rem;
  border-radius: 8px;
  background: rgba(99,102,241,.10);              /* indigo suave */
  border: 1px solid rgba(99,102,241,.28);
  font-size: .9rem;
  /* Mantener TODO en la misma línea de la fila: */
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Opcional: resalta PASS */
.cred-cell.is-pass {
  background: rgba(185, 16, 16, 0.1);              /* verde suave */
  border-color: rgba(16,185,129,.28);
}

.cred-cell.is-user {
  background: rgba(16,185,129,.10);              /* verde suave */
  border-color: rgba(16,185,129,.28);
}

/* Responsive: en pantallas muy estrechas, permite scroll horizontal en la tabla */
@media (max-width: 640px) {
  .cred-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .cred-table-row {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: .5rem;
    min-width: 720px; /* ancho mínimo para evitar roturas */
    margin-bottom: .5rem;
  }
}

        /* Acordeón: botón + / − según estado */
#packetLogModal summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; gap: .5rem; padding: .25rem 0;
  position: relative;
}
#packetLogModal summary::after {
  content: "+";              /* cerrado */
  margin-left: auto;
  font-weight: 700;
  opacity: .8;
}
#packetLogModal details[open] summary::after {
  content: "−";              /* abierto */
}

.index-dot {
  display:inline-flex;
  width:8px; height:8px; border-radius:999px;
  background: var(--primary-color,#6366f1);
}

.section-wrap {
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  padding: .5rem .75rem;
}

.tg-inline-container {
  display: flex;
  flex-wrap: wrap;             /* permite saltos de línea naturales */
  gap: 0.4rem 0.6rem;          /* espacio entre chips */
  margin-top: 0.3rem;
  align-items: flex-start;
}

.tg-inline {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  line-height: 1.25;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.tg-hidden { display: none; }

.tg-viewall-btn {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(85, 79, 232, 0.89);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: transform .12s ease;
}
.tg-viewall-btn:hover { transform: translateY(-1px); }


.btn-export {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.btn-export:active {
    transform: translateY(0);
}

.btn-export:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-export i {
    font-size: 1rem;
}


/* Modal de Error */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.error-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1e1e2e 0%, #252538 100%);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(255, 71, 87, 0.3);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.error-modal-header {
    background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.error-modal-header i {
    font-size: 2rem;
    color: white;
}

.error-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
}

.error-modal-body {
    padding: 2rem;
    color: #e0e0e0;
}

.error-modal-body p {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.error-details {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #ff4757;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #ff6b6b;
}

.error-modal-footer {
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-modal-close {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-modal-close:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-modal-upgrade {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-modal-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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


.dual-tables {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 20px;
    }

.table-responsive {
  border: 2px solid #000;
  border-radius: 18px;
}

/* Responsive: en móvil quitamos el borde */
@media (max-width: 900px) {
  .table-responsive.left-table {
    border-right: none;
    padding-right: 0;
  }
}
