/* ============================================================
   BLACKLISTFUNDED — Custom CSS  v2.0
   ============================================================ */


/* ── Variables modo claro ── */
:root {
    --brand-primary:   #1e3a5f;
    --brand-secondary: #2563eb;
    --brand-success:   #16a34a;
    --brand-warning:   #d97706;
    --brand-danger:    #dc2626;
    --brand-purple:    #7c3aed;
    --brand-gray:      #6b7280;

    --surface:         #ffffff;
    --surface-alt:     #f8fafc;
    --surface-border:  #e2e8f0;
    --text-primary:    #0f172a;
    --text-secondary:  #475569;
    --text-muted:      #6b7280;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    --shadow-lg:  0 10px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
    --radius:     12px;
    --radius-sm:  8px;
    --radius-lg:  16px;
}

/* ── Variables modo oscuro ── */
[data-bs-theme="dark"] {
    --bs-body-bg:          #0b1120;
    --bs-body-color:       #e2e8f0;
    --bs-link-color:       #60a5fa;
    --bs-link-hover-color: #93c5fd;
    --bs-card-bg:          #151f32;
    --bs-border-color:     #1e2d47;

    --surface:        #151f32;
    --surface-alt:    #1a2540;
    --surface-border: #1e2d47;
    --text-primary:   #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted:     #94a3b8;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
    --shadow-md: 0 4px 16px rgba(0,0,0,.5);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.6);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html {
    background: var(--bs-body-bg, #f1f5f9);
}
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bs-body-bg, #f1f5f9);
    transition: background 0.2s, color 0.2s;
}
a { color: var(--brand-secondary); text-decoration: none; }
a:hover { color: #1d4ed8; text-decoration: none; }
[data-bs-theme="dark"] a { color: #60a5fa; }
[data-bs-theme="dark"] a:hover { color: #93c5fd; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
[data-bs-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
    background: var(--brand-primary) !important;
    padding: 0.65rem 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
[data-bs-theme="dark"] .navbar { background: #080f1e !important; border-bottom: 1px solid #1e2d47; }
.navbar-brand {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #fff !important;
}
.navbar .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8) !important;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: #fff !important; background: rgba(255,255,255,0.12) !important; }
.navbar .btn-outline-light { font-size: 0.8rem; border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.9); }
.navbar .btn-outline-light:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.6); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero-section {
    background: linear-gradient(135deg, #0f2444 0%, #1e3a5f 35%, #2563eb 75%, #1d4ed8 100%);
    color: #fff;
    padding: 90px 0 70px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 550px; height: 550px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 350px; height: 350px;
    background: rgba(37,99,235,0.15);
    border-radius: 50%;
    pointer-events: none;
}
/* Botón CTA principal del hero — ámbar vibrante, texto oscuro siempre */
.btn-hero-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: #111827 !important;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 20px rgba(245,158,11,0.45);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-hero-cta:hover,
.btn-hero-cta:focus {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #111827 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(245,158,11,0.55);
}
/* Números de estadísticas del hero */
.hero-stat-num {
    font-weight: 900;
    font-size: 1.75rem;
    line-height: 1;
    color: #fff;
}

.hero-section h1 {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.5px;
}
.hero-section .lead { font-size: 1.1rem; opacity: 0.88; font-weight: 400; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
}
.hero-search {
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
[data-bs-theme="dark"] .hero-search { background: #0b1120; border: 1px solid #1e2d47; }
.hero-search input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
}
[data-bs-theme="dark"] .hero-search input { color: #e2e8f0; }
[data-bs-theme="dark"] .hero-search input::placeholder { color: #64748b; }
.hero-search .btn { border-radius: 10px !important; font-weight: 600; display: inline-flex !important; align-items: center; justify-content: center; }
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2rem;
}
.hero-stat-num { font-size: 1.75rem; font-weight: 800; line-height: 1; }
.hero-stat-lbl { font-size: 0.78rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.5px; }

/* ══════════════════════════════════════════
   SECCIÓN TÍTULOS
══════════════════════════════════════════ */
.section-title {
    font-weight: 800;
    font-size: 1.65rem;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}
.section-title .highlight { color: var(--brand-secondary); }
.section-divider {
    width: 40px; height: 4px;
    background: linear-gradient(90deg, var(--brand-secondary), var(--brand-purple));
    border-radius: 2px;
    margin: 6px 0 18px;
}

/* ══════════════════════════════════════════
   CARDS GENERALES
══════════════════════════════════════════ */
.card {
    border-color: var(--surface-border) !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius) !important;
    transition: box-shadow 0.2s;
}
[data-bs-theme="dark"] .card { background: var(--surface) !important; border-color: var(--surface-border) !important; }
.card-header {
    background: var(--surface-alt) !important;
    border-bottom-color: var(--surface-border) !important;
    color: var(--text-primary);
    font-weight: 600;
}
[data-bs-theme="dark"] .card-header { background: #1a2540 !important; border-bottom-color: #1e2d47 !important; }
.card-footer { background: var(--surface-alt) !important; border-top-color: var(--surface-border) !important; }
[data-bs-theme="dark"] .card-footer { background: #1a2540 !important; border-top-color: #1e2d47 !important; }

/* ══════════════════════════════════════════
   COMPANY CARDS
══════════════════════════════════════════ */
.company-card {
    border: 1px solid var(--surface-border) !important;
    border-radius: var(--radius-lg) !important;
    background: var(--surface) !important;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}
.company-card:hover { box-shadow: var(--shadow-lg) !important; transform: translateY(-3px); }
.company-card .card-header {
    background: var(--surface-alt) !important;
    border-bottom: 1px solid var(--surface-border) !important;
}
[data-bs-theme="dark"] .company-card { background: #151f32 !important; border-color: #1e2d47 !important; }
[data-bs-theme="dark"] .company-card .card-header { background: #1a2540 !important; }
.company-logo    { width: 60px; height: 40px; object-fit: contain; }
.company-logo-lg { width: 120px; height: 80px; object-fit: contain; }

/* ══════════════════════════════════════════
   TABLA COMPARADOR
══════════════════════════════════════════ */
.compare-table { font-size: 0.875rem; }
.compare-table thead th {
    background: var(--brand-primary) !important;
    color: #fff !important;
    white-space: nowrap;
    padding: 12px 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
[data-bs-theme="dark"] .compare-table thead th { background: #0d1b30 !important; }
.compare-table td { vertical-align: middle; color: var(--text-primary); padding: 10px 14px; }
[data-bs-theme="dark"] .compare-table td { color: var(--bs-body-color); }
.compare-table tbody tr { border-bottom: 1px solid var(--surface-border); }
[data-bs-theme="dark"] .compare-table tbody tr { border-bottom-color: #1e2d47; }
.compare-table tbody tr:hover { background: rgba(37,99,235,0.05) !important; }
[data-bs-theme="dark"] .compare-table tbody tr:hover { background: rgba(37,99,235,0.08) !important; }
.compare-table .logo-cell img { width: 50px; height: 34px; object-fit: contain; }
.compare-table .company-name { font-weight: 600; white-space: nowrap; color: var(--text-primary); }
[data-bs-theme="dark"] .compare-table .company-name { color: #f1f5f9; }
.sticky-col {
    position: sticky; left: 0;
    background: var(--surface);
    z-index: 2;
    box-shadow: 2px 0 8px rgba(0,0,0,0.06);
}
[data-bs-theme="dark"] .sticky-col { background: #151f32; box-shadow: 2px 0 8px rgba(0,0,0,0.4); }

/* ══════════════════════════════════════════
   DISCOUNT CODES
══════════════════════════════════════════ */
.discount-badge {
    border-left: 4px solid var(--brand-purple) !important;
    background: var(--surface) !important;
}
[data-bs-theme="dark"] .discount-badge { background: #151f32 !important; }
.discount-code {
    display: inline-block;
    background: #f5f0ff;
    border: 1.5px dashed var(--brand-purple);
    color: var(--brand-purple);
    font-family: 'Courier New', monospace;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    user-select: all;
    font-size: 0.92rem;
    letter-spacing: 0.5px;
    transition: background 0.15s, color 0.15s;
}
[data-bs-theme="dark"] .discount-code {
    background: rgba(124,58,237,0.15);
    color: #a78bfa;
    border-color: #7c3aed;
}
.discount-code:hover { background: var(--brand-purple); color: #fff; border-style: solid; }
.discount-box {
    background: #f3e8ff;
    border: 1px dashed #7c3aed;
    color: var(--text-primary);
}
[data-bs-theme="dark"] .discount-box {
    background: rgba(124,58,237,0.12);
    border-color: rgba(124,58,237,0.5);
    color: #e2e8f0;
}

/* ══════════════════════════════════════════
   BADGES / STATUS
══════════════════════════════════════════ */
.badge { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2px; padding: 0.3em 0.65em; align-self: center; }
.badge-fiable         { background: var(--brand-success) !important; }
.badge-warning-custom { background: var(--brand-warning) !important; }
.badge-danger-custom  { background: var(--brand-danger) !important; }

/* ══════════════════════════════════════════
   SCAM ALERTS
══════════════════════════════════════════ */
.scam-alert-card { border-left: 5px solid !important; border-radius: var(--radius) !important; }
.scam-alert-card.risk-low      { border-color: #3b82f6 !important; background: rgba(59,130,246,0.05) !important; }
.scam-alert-card.risk-medium   { border-color: var(--brand-warning) !important; background: rgba(217,119,6,0.06) !important; }
.scam-alert-card.risk-high     { border-color: var(--brand-danger) !important; background: rgba(220,38,38,0.06) !important; }
.scam-alert-card.risk-critical { border-color: #7f1d1d !important; background: rgba(127,29,29,0.08) !important; }
[data-bs-theme="dark"] .scam-alert-card.risk-low      { background: rgba(59,130,246,0.08) !important; }
[data-bs-theme="dark"] .scam-alert-card.risk-medium   { background: rgba(217,119,6,0.10) !important; }
[data-bs-theme="dark"] .scam-alert-card.risk-high     { background: rgba(220,38,38,0.10) !important; }
[data-bs-theme="dark"] .scam-alert-card.risk-critical { background: rgba(127,29,29,0.18) !important; }
.scam-alert-card .card-title   { color: var(--text-primary); font-weight: 700; }
.scam-alert-card .card-text    { color: var(--text-secondary); }

/* ══════════════════════════════════════════
   STAR RATINGS
══════════════════════════════════════════ */
.star-rating .bi { font-size: 1rem; }
.star-rating.small .bi { font-size: 0.75rem; }
.rating-bar      { height: 8px; border-radius: 4px; background: var(--surface-border); }
.rating-bar-fill { height: 8px; border-radius: 4px; background: linear-gradient(90deg, #f59e0b, #fbbf24); }
[data-bs-theme="dark"] .rating-bar { background: #1e2d47; }
.star-select label { cursor: pointer; font-size: 1.5rem; color: #d1d5db; transition: color 0.1s; }
.star-select input:checked ~ label,
.star-select label:hover,
.star-select label:hover ~ label { color: #f59e0b; }
[data-bs-theme="dark"] .star-select label { color: #374151; }

/* ══════════════════════════════════════════
   COMPARE BAR (flotante inferior)
══════════════════════════════════════════ */
.compare-bar {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 1050;
    background: #0f172a !important;
    border-top: 2px solid var(--brand-secondary);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    transition: transform 0.3s;
}
[data-bs-theme="dark"] .compare-bar { background: #080f1e !important; border-top-color: #2563eb; }

/* ══════════════════════════════════════════
   FILTER SIDEBAR
══════════════════════════════════════════ */
.filter-card {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--surface-border) !important;
    background: var(--surface) !important;
    overflow: hidden;
}
[data-bs-theme="dark"] .filter-card { background: #151f32 !important; border-color: #1e2d47 !important; }
.filter-card .card-header {
    background: var(--brand-primary) !important;
    color: #fff !important;
    border-radius: 0 !important;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.filter-card .form-label     { color: var(--text-secondary); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.filter-card .form-control,
.filter-card .form-select    { background: var(--surface-alt); border-color: var(--surface-border); color: var(--text-primary); font-size: 0.875rem; }
[data-bs-theme="dark"] .filter-card .form-label   { color: #94a3b8; }
[data-bs-theme="dark"] .filter-card .form-control,
[data-bs-theme="dark"] .filter-card .form-select  { background: #0b1120; border-color: #1e2d47; color: #e2e8f0; }
[data-bs-theme="dark"] .filter-card .form-control:focus,
[data-bs-theme="dark"] .filter-card .form-select:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.2); }
.filter-card .form-check-label { color: var(--text-primary); font-size: 0.875rem; }
[data-bs-theme="dark"] .filter-card .form-check-label { color: #cbd5e1; }

/* ══════════════════════════════════════════
   COMPANY DETAIL HERO
══════════════════════════════════════════ */
.company-hero {
    background: linear-gradient(135deg, var(--surface-alt) 0%, #eff6ff 100%);
    padding: 48px 0;
    border-bottom: 1px solid var(--surface-border);
}
[data-bs-theme="dark"] .company-hero {
    background: linear-gradient(135deg, #0b1120 0%, #111827 100%) !important;
    border-bottom-color: #1e2d47;
}
.company-hero h1 { color: var(--text-primary); font-weight: 800; }
[data-bs-theme="dark"] .company-hero h1 { color: #f1f5f9; }
.company-hero .lead { color: var(--text-secondary); }
[data-bs-theme="dark"] .company-hero .lead { color: #94a3b8; }
.company-hero .company-logo-lg { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1)); }
[data-bs-theme="dark"] .company-hero .company-logo-lg { filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); }

/* Info grid en detalle de empresa */
.info-grid dt {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
[data-bs-theme="dark"] .info-grid dt { color: #94a3b8; }
.info-grid dd { font-weight: 600; color: var(--text-primary); margin-bottom: 0.75rem; }
[data-bs-theme="dark"] .info-grid dd { color: #e2e8f0; }

/* ══════════════════════════════════════════
   PLANS TABLE
══════════════════════════════════════════ */
.plans-table thead th { background: var(--brand-primary) !important; color: #fff !important; }
[data-bs-theme="dark"] .plans-table thead th { background: #0d1b30 !important; }
.plans-table td { color: var(--text-primary); }
[data-bs-theme="dark"] .plans-table td { color: #e2e8f0; }
.plans-table .yes-cell { color: var(--brand-success) !important; font-weight: 700; }
.plans-table .no-cell  { color: var(--brand-danger) !important; }

/* ══════════════════════════════════════════
   FORMS — GLOBAL DARK MODE
══════════════════════════════════════════ */
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: #0b1120;
    border-color: #1e2d47;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .form-control::placeholder { color: #64748b; }
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background: #111827;
    border-color: #2563eb;
    color: #e2e8f0;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}
[data-bs-theme="dark"] .form-check-input { background-color: #1e2d47; border-color: #334155; }
[data-bs-theme="dark"] .form-check-input:checked { background-color: #2563eb; border-color: #2563eb; }
[data-bs-theme="dark"] .form-check-label { color: #cbd5e1; }
[data-bs-theme="dark"] label.form-label  { color: #94a3b8; }

/* Input group */
[data-bs-theme="dark"] .input-group-text {
    background: #1a2540;
    border-color: #1e2d47;
    color: #94a3b8;
}

/* ══════════════════════════════════════════
   TABLES — GLOBAL DARK MODE
══════════════════════════════════════════ */
[data-bs-theme="dark"] .table {
    --bs-table-color: #e2e8f0;
    --bs-table-bg: transparent;
    --bs-table-border-color: #1e2d47;
    --bs-table-striped-bg: rgba(30,45,71,0.5);
    --bs-table-hover-bg: rgba(37,99,235,0.07);
}
[data-bs-theme="dark"] .table thead th {
    background: #0d1b30 !important;
    color: #e2e8f0 !important;
    border-color: #1e2d47 !important;
}
[data-bs-theme="dark"] .table-dark {
    --bs-table-bg: #0d1b30;
    --bs-table-border-color: #1e2d47;
}
[data-bs-theme="dark"] .table td,
[data-bs-theme="dark"] .table th { border-color: #1e2d47; }
[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light th { background: #1a2540 !important; color: #94a3b8 !important; }

/* ══════════════════════════════════════════
   ALERTS / DROPDOWNS / MODALS — DARK MODE
══════════════════════════════════════════ */
[data-bs-theme="dark"] .dropdown-menu {
    background: #151f32;
    border-color: #1e2d47;
    box-shadow: var(--shadow-md);
}
[data-bs-theme="dark"] .dropdown-item { color: #cbd5e1; }
[data-bs-theme="dark"] .dropdown-item:hover { background: #1e2d47; color: #f1f5f9; }
[data-bs-theme="dark"] .dropdown-item.active { background: #2563eb; color: #fff; }
[data-bs-theme="dark"] .dropdown-divider { border-color: #1e2d47; }

[data-bs-theme="dark"] .alert { border-color: transparent; }
[data-bs-theme="dark"] .alert-info    { background: rgba(37,99,235,0.12); color: #93c5fd; }
[data-bs-theme="dark"] .alert-warning { background: rgba(217,119,6,0.12); color: #fcd34d; }
[data-bs-theme="dark"] .alert-danger  { background: rgba(220,38,38,0.12); color: #fca5a5; }
[data-bs-theme="dark"] .alert-success { background: rgba(22,163,74,0.12);  color: #86efac; }
[data-bs-theme="dark"] .alert-secondary { background: rgba(30,45,71,0.8); color: #94a3b8; border-color: #1e2d47; }

/* ══════════════════════════════════════════
   LIST GROUPS — DARK MODE
══════════════════════════════════════════ */
[data-bs-theme="dark"] .list-group-item {
    background: var(--surface);
    border-color: #1e2d47;
    color: #e2e8f0;
}
[data-bs-theme="dark"] .list-group-item:hover  { background: #1a2540; }
[data-bs-theme="dark"] .list-group-item.active { background: #2563eb; border-color: #2563eb; color: #fff; }

/* ══════════════════════════════════════════
   NAV TABS — DARK MODE
══════════════════════════════════════════ */
[data-bs-theme="dark"] .nav-tabs { border-bottom-color: #1e2d47; }
[data-bs-theme="dark"] .nav-tabs .nav-link { color: #94a3b8; border-color: transparent; }
[data-bs-theme="dark"] .nav-tabs .nav-link:hover { color: #e2e8f0; border-color: #1e2d47; }
[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    background: var(--surface);
    border-color: #1e2d47 #1e2d47 var(--surface);
    color: #60a5fa;
}

/* Accordion dark mode */
[data-bs-theme="dark"] .accordion-item { background: var(--surface); border-color: #1e2d47; }
[data-bs-theme="dark"] .accordion-button {
    background: #1a2540;
    color: #e2e8f0;
    box-shadow: none;
}
[data-bs-theme="dark"] .accordion-button:not(.collapsed) { background: #1e2d47; color: #60a5fa; }
[data-bs-theme="dark"] .accordion-body { background: var(--surface); color: #cbd5e1; }

/* ══════════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════════ */
.breadcrumb { font-size: 0.82rem; }
.breadcrumb-item a { color: var(--brand-secondary); }
[data-bs-theme="dark"] .breadcrumb-item a     { color: #60a5fa; }
[data-bs-theme="dark"] .breadcrumb-item       { color: #94a3b8; }
[data-bs-theme="dark"] .breadcrumb-item.active { color: #e2e8f0; }
[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before { color: #64748b; }

/* ══════════════════════════════════════════
   BLOG
══════════════════════════════════════════ */
.blog-card {
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--surface-border) !important;
    background: var(--surface) !important;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover { box-shadow: var(--shadow-lg) !important; transform: translateY(-2px); }
.blog-card .blog-img { height: 200px; object-fit: cover; width: 100%; }
.blog-card .card-title { color: var(--text-primary); font-weight: 700; }
[data-bs-theme="dark"] .blog-card { background: #151f32 !important; border-color: #1e2d47 !important; }
[data-bs-theme="dark"] .blog-card .card-title { color: #f1f5f9; }
[data-bs-theme="dark"] .blog-card .card-text,
[data-bs-theme="dark"] .blog-card .text-muted  { color: #94a3b8 !important; }
.category-badge { background: var(--brand-secondary) !important; }

/* ══════════════════════════════════════════
   REVIEW CARDS
══════════════════════════════════════════ */
.review-card {
    border-radius: var(--radius) !important;
    border: 1px solid var(--surface-border) !important;
    background: var(--surface) !important;
}
[data-bs-theme="dark"] .review-card { background: #151f32 !important; border-color: #1e2d47 !important; }
[data-bs-theme="dark"] .review-card .card-title { color: #f1f5f9; }
[data-bs-theme="dark"] .review-card p,
[data-bs-theme="dark"] .review-card .text-muted { color: #94a3b8 !important; }

/* ══════════════════════════════════════════
   DARK MODE — textos MUTED / SECONDARY
══════════════════════════════════════════ */
[data-bs-theme="dark"] .text-muted { color: #94a3b8 !important; }
[data-bs-theme="dark"] .text-secondary { color: #cbd5e1 !important; }
[data-bs-theme="dark"] .text-dark { color: #f1f5f9 !important; }
[data-bs-theme="dark"] h1, [data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3, [data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5, [data-bs-theme="dark"] h6 { color: #f1f5f9; }
[data-bs-theme="dark"] p  { color: #cbd5e1; }
[data-bs-theme="dark"] small { color: #cbd5e1; }
[data-bs-theme="dark"] strong { color: #f1f5f9; }
[data-bs-theme="dark"] .fw-bold:not(.btn):not([class*="badge"]),
[data-bs-theme="dark"] .fw-semibold:not(.btn):not([class*="badge"]) { color: #e2e8f0; }

/* ══════════════════════════════════════════
   DARK MODE — hr / borders
══════════════════════════════════════════ */
[data-bs-theme="dark"] hr { border-color: #1e2d47; opacity: 1; }
[data-bs-theme="dark"] .border         { border-color: #1e2d47 !important; }
[data-bs-theme="dark"] .border-top     { border-top-color: #1e2d47 !important; }
[data-bs-theme="dark"] .border-bottom  { border-bottom-color: #1e2d47 !important; }
[data-bs-theme="dark"] .border-secondary { border-color: #1e2d47 !important; }
[data-bs-theme="dark"] .bg-light       { background: #1a2540 !important; }
[data-bs-theme="dark"] .bg-white       { background: #151f32 !important; }

/* ══════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════ */
[data-bs-theme="dark"] .page-link { background: #151f32; border-color: #1e2d47; color: #94a3b8; }
[data-bs-theme="dark"] .page-link:hover { background: #1e2d47; color: #e2e8f0; }
[data-bs-theme="dark"] .page-item.active .page-link { background: #2563eb; border-color: #2563eb; }
[data-bs-theme="dark"] .page-item.disabled .page-link { background: #0b1120; color: #334155; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer.footer {
    background: #07101f !important;
    border-top: 1px solid #1e2d47;
}
footer .text-muted { color: #94a3b8 !important; }
footer h5, footer h6 { color: #f1f5f9 !important; }
footer a.text-muted:hover { color: #94a3b8 !important; }

/* ══════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════ */
.text-purple  { color: var(--brand-purple) !important; }
.bg-purple    { background: var(--brand-purple) !important; }
.hover-shadow { transition: box-shadow 0.2s, transform 0.2s; }
.hover-shadow:hover { box-shadow: var(--shadow-md) !important; transform: translateY(-1px); }

/* Botones mejorados */
.btn { font-weight: 600; letter-spacing: 0.1px; }
.btn-primary   { background: var(--brand-secondary); border-color: var(--brand-secondary); }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn-outline-primary { color: var(--brand-secondary); border-color: var(--brand-secondary); }
.btn-outline-primary:hover { background: var(--brand-secondary); border-color: var(--brand-secondary); }
.btn-outline-purple { color: var(--brand-purple); border-color: var(--brand-purple); background: transparent; }
.btn-outline-purple:hover { color: #fff; background: var(--brand-purple); border-color: var(--brand-purple); }
[data-bs-theme="dark"] .btn-outline-secondary { color: #94a3b8; border-color: #334155; }
[data-bs-theme="dark"] .btn-outline-secondary:hover { background: #1e2d47; color: #e2e8f0; border-color: #1e2d47; }
[data-bs-theme="dark"] .btn-secondary { background: #1e2d47; border-color: #1e2d47; color: #e2e8f0; }
/* Texto blanco en botones sólidos — evita que [data-bs-theme=dark] a { color:#60a5fa } sobreescriba el color del btn */
[data-bs-theme="dark"] .btn-primary,
[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-primary:focus,
[data-bs-theme="dark"] .btn-primary:active { color: #fff !important; }
[data-bs-theme="dark"] .btn-success,
[data-bs-theme="dark"] .btn-success:hover { color: #fff !important; }
[data-bs-theme="dark"] .btn-danger,
[data-bs-theme="dark"] .btn-danger:hover { color: #fff !important; }

/* ══════════════════════════════════════════
   COPY TOAST
══════════════════════════════════════════ */
.copy-toast {
    position: fixed; bottom: 80px; right: 20px;
    background: #1e293b;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}
.copy-toast.show { opacity: 1; }

/* ══════════════════════════════════════════
   NO LOGO PLACEHOLDER
══════════════════════════════════════════ */
.no-logo {
    width: 60px; height: 40px;
    background: var(--surface-alt);
    border-radius: 6px;
    border: 1px solid var(--surface-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 700;
    text-align: center;
}

/* ══════════════════════════════════════════
   STAT CARDS (dashboard & home)
══════════════════════════════════════════ */
.stat-card { transition: box-shadow 0.2s, transform 0.2s; }
.stat-card:hover { box-shadow: var(--shadow-md) !important; transform: translateY(-2px); }
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════
   STICKY FILTERS
══════════════════════════════════════════ */

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
    .hero-section    { padding: 55px 0 45px; }
    .hero-stats      { gap: 1.5rem; }
    .hero-stat-num   { font-size: 1.4rem; }
    .compare-table   { min-width: 900px; }
    .compare-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .filter-card     { margin-bottom: 1rem; }
    .company-logo-lg { width: 80px; height: 55px; }
    .compare-bar     { font-size: 0.85rem; }
}
@media (max-width: 576px) {
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section .lead { font-size: 0.95rem; }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .section-title { font-size: 1.4rem; }
}

/* ══════════════════════════════════════════
   ANIMACIONES
══════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.4s ease forwards; }
.fade-in-1 { animation: fadeInUp 0.4s ease 0.05s both; }
.fade-in-2 { animation: fadeInUp 0.4s ease 0.10s both; }
.fade-in-3 { animation: fadeInUp 0.4s ease 0.15s both; }
.fade-in-4 { animation: fadeInUp 0.4s ease 0.20s both; }

/* Pulse en badges de alerta */
@keyframes pulse-danger {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0.4); }
    50%       { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}
.badge-pulse { animation: pulse-danger 2s infinite; }
