:root {
    --brand-50:  #e8f9fd;
    --brand-100: #c4f0f9;
    --brand-200: #8ce4f5;
    --brand-300: #4dd4ee;
    --brand-400: #1fc4e5;
    --brand-500: #0abde3;
    --brand-600: #0899ba;
    --brand-700: #077896;
    --brand-800: #065f77;
    --brand-900: #044a5d;
    --dark-900: #1c1c1e;
    --dark-800: #2c2c2e;
    --dark-700: #3c3c3e;
    --dark-600: #636366;
    --dark-400: #aeaeb2;
    --dark-200: #e5e5ea;
    --dark-100: #f2f2f7;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--dark-900);
}

/* ── Top bar ── */
.topbar {
    background: var(--dark-800);
    font-size: .75rem;
    line-height: 1;
}
.topbar a {
    color: var(--dark-400);
    text-decoration: none;
    transition: color .2s;
}
.topbar a:hover {
    color: #fff;
}
.topbar .icon-social {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ── Main nav ── */
.navbar-main {
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.navbar-main .navbar-brand img {
    height: 36px;
    width: auto;
}
.navbar-main .nav-link {
    font-size: .875rem;
    font-weight: 600;
    color: var(--dark-700);
    padding: .5rem 1rem;
    border-radius: .5rem;
    transition: background .2s, color .2s;
}
.navbar-main .nav-link:hover {
    background: var(--dark-100);
    color: var(--dark-900);
}

/* ── CTA button (brand) ── */
.btn-brand {
    background: var(--brand-500);
    color: #fff;
    font-weight: 600;
    font-size: .875rem;
    border: none;
    border-radius: .5rem;
    padding: .5rem 1rem;
    transition: background .2s;
    text-decoration: none;
    display: inline-block;
}
.btn-brand:hover {
    background: var(--brand-600);
    color: #fff;
}

/* ── Flash messages ── */
.flash-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.flash-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}
.flash-info {
    background: var(--brand-50);
    border-color: var(--brand-200);
    color: var(--brand-800);
}
.flash-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

/* ── Footer ── */
.footer-main {
    background: var(--dark-900);
    color: var(--dark-400);
}
.footer-main h4 {
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: .75rem;
}
.footer-main a {
    color: var(--dark-400);
    text-decoration: none;
    transition: color .2s;
}
.footer-main a:hover {
    color: #fff;
}
.footer-main .footer-brand {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .8;
    margin-bottom: 1rem;
}
.footer-bottom {
    border-top: 1px solid var(--dark-800);
    font-size: .75rem;
    color: var(--dark-600);
}

/* ── Badge colors (reusable) ── */
.badge-brand {
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-200);
}
.badge-dark {
    background: var(--dark-100);
    color: var(--dark-600);
    border: 1px solid var(--dark-200);
}

/* ── Sidebar (dashboard / admin) ── */
.sidebar .nav-link {
    color: var(--dark-600);
    font-size: .875rem;
    font-weight: 500;
    padding: .5rem .75rem;
    border-radius: .5rem;
    transition: background .2s, color .2s;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.sidebar .nav-link:hover {
    background: var(--dark-100);
    color: var(--dark-900);
}
.sidebar .nav-link.active {
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 600;
}
.sidebar .nav-link .sidebar-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.sidebar .badge-notify {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

/* ── Cards ── */
.card-curaduria {
    border: 1px solid var(--dark-200);
    border-radius: 1rem;
}

/* ── Status badges ── */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .75rem;
    border-radius: 9999px;
    font-size: .8125rem;
    font-weight: 700;
    border: 1px solid transparent;
}

/* ── Hamburger toggle dark bar ── */
.navbar-toggler-topbar {
    border: none;
    padding: .25rem;
    color: var(--dark-400);
    background: transparent;
}
.navbar-toggler-topbar:focus {
    box-shadow: none;
}

/* ── Brand text color ── */
.text-brand {
    color: var(--brand-400);
}

/* ── Hero section ── */
.hero-section {
    background: var(--dark-900);
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 60% -10%, rgba(10,189,227,.18) 0%, transparent 70%);
}
.hero-stats {
    border-top: 1px solid var(--dark-800);
    background: rgba(28,28,30,.5);
}

/* ── Code preview (hero) ── */
.code-preview {
    background: var(--dark-800);
    border: 1px solid var(--dark-700);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.4);
}
.code-preview-header {
    background: rgba(44,44,46,.8);
    border-bottom: 1px solid var(--dark-700);
    padding: .75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.code-preview-body {
    padding: 1.25rem;
    font-family: monospace;
    font-size: .75rem;
    line-height: 1.7;
    color: var(--dark-400);
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red { background: rgba(239,68,68,.7); }
.dot-amber { background: rgba(245,158,11,.7); }
.dot-green { background: rgba(16,185,129,.7); }
.dot-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* ── Sector cards ── */
.card-sector {
    border: 1px solid var(--dark-200);
    border-radius: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.card-sector:hover {
    border-color: var(--brand-400);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ── Icon boxes ── */
.icon-box {
    width: 44px;
    height: 44px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-box-brand {
    background: var(--brand-50);
    color: var(--brand-600);
}
.card-sector:hover .icon-box-brand {
    background: var(--brand-500);
    color: #fff;
}
.icon-box-success {
    background: #ecfdf5;
    color: #059669;
}
.icon-box-secondary {
    background: var(--dark-100);
    color: var(--dark-700);
}
.icon-box-warning {
    background: #fffbeb;
    color: #d97706;
}

/* ── Benefit cards ── */
.card-benefit {
    border: 1px solid var(--dark-200);
    border-radius: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.card-benefit:hover {
    border-color: var(--brand-300);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ── Benefits section ── */
.section-benefits {
    background: var(--dark-100);
    border-top: 1px solid var(--dark-200);
    border-bottom: 1px solid var(--dark-200);
}

/* ── Process steps ── */
.step-number {
    width: 56px;
    height: 56px;
    background: var(--brand-500);
    color: #fff;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(10,189,227,.3);
}

/* ── CTA section ── */
.cta-section {
    background: var(--dark-900);
}
.cta-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(10,189,227,.15) 0%, transparent 70%);
}

/* ── Auth pages ── */
.auth-wrapper {
    min-height: calc(100vh - 100px);
    background: var(--dark-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}
.auth-card {
    background: #fff;
    border: 1px solid var(--dark-200);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.auth-logo {
    height: 40px;
    width: auto;
}
.form-control-auth {
    border: 1px solid var(--dark-200);
    border-radius: .75rem;
    padding: .625rem 1rem;
    font-size: .875rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control-auth:focus {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgba(10,189,227,.15);
    outline: none;
}
.btn-auth {
    background: var(--brand-500);
    color: #fff;
    font-weight: 700;
    padding: .75rem;
    border-radius: .75rem;
    border: none;
    width: 100%;
    transition: background .2s;
}
.btn-auth:hover {
    background: var(--brand-600);
    color: #fff;
}
.auth-link {
    color: var(--brand-600);
    font-weight: 600;
    text-decoration: none;
}
.auth-link:hover {
    text-decoration: underline;
    color: var(--brand-700);
}
.auth-2fa-input {
    border: 1px solid var(--dark-200);
    border-radius: .75rem;
    padding: 1rem;
    font-size: 1.75rem;
    text-align: center;
    font-weight: 800;
    letter-spacing: .4em;
    transition: border-color .2s, box-shadow .2s;
}
.auth-2fa-input:focus {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgba(10,189,227,.15);
    outline: none;
}
.icon-box-2fa {
    width: 56px;
    height: 56px;
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.icon-box-2fa svg {
    width: 28px;
    height: 28px;
    color: var(--brand-500);
}

/* ── Utility: hidden (Tailwind compat for JS) ── */
.hidden { display: none !important; }

/* ── Wizard ── */
.wizard-card {
    background: #fff;
    border: 1px solid var(--dark-200);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.wizard-step-badge {
    width: 24px;
    height: 24px;
    background: var(--brand-500);
    color: #fff;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 800;
}
.wizard-progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .8rem;
    flex-shrink: 0;
}
.wizard-progress-dot.done {
    background: var(--brand-500);
    color: #fff;
}
.wizard-progress-dot.active {
    background: var(--dark-900);
    color: #fff;
    outline: 4px solid var(--brand-100);
}
.wizard-progress-dot.pending {
    background: #fff;
    border: 2px solid var(--dark-200);
    color: var(--dark-400);
}
.wizard-progress-line {
    flex: 1;
    height: 1px;
    margin: 0 .5rem;
}
.wizard-progress-line.done { background: var(--brand-400); }
.wizard-progress-line.pending { background: var(--dark-200); }

.btn-wizard {
    background: var(--brand-500);
    color: #fff;
    font-weight: 700;
    padding: .75rem 1.75rem;
    border-radius: .75rem;
    border: none;
    transition: background .2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.btn-wizard:hover {
    background: var(--brand-600);
    color: #fff;
}
.btn-wizard-success {
    background: #059669;
}
.btn-wizard-success:hover {
    background: #047857;
    color: #fff;
}
.btn-wizard-back {
    color: var(--dark-600);
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    transition: color .2s;
}
.btn-wizard-back:hover {
    color: var(--dark-900);
}

/* Radio/checkbox cards for wizard */
.option-card {
    border: 2px solid var(--dark-200);
    border-radius: .75rem;
    padding: .625rem;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    color: var(--dark-600);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.option-card:hover {
    border-color: var(--brand-300);
}
.option-card.selected,
input:checked + .option-card {
    border-color: var(--brand-500);
    background: var(--brand-50);
    color: var(--brand-700);
}
.check-card {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    border: 1px solid var(--dark-200);
    border-radius: .75rem;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.check-card:hover {
    border-color: var(--brand-300);
    background: rgba(232,249,253,.4);
}
.check-card.selected,
.check-card:has(input:checked) {
    border-color: var(--brand-400);
    background: var(--brand-50);
}
.check-card input[type="checkbox"],
.check-card input[type="radio"] {
    accent-color: var(--brand-500);
}

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--dark-200);
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--brand-400);
    background: rgba(232,249,253,.3);
}
.upload-zone-icon {
    width: 56px;
    height: 56px;
    background: var(--dark-100);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Info/note boxes */
.note-brand {
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: .75rem;
    padding: 1rem;
    color: var(--brand-800);
    font-size: .875rem;
}
.note-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: .75rem;
    padding: .625rem 1rem;
    color: #92400e;
    font-size: .75rem;
}
.note-dark {
    background: var(--dark-100);
    border: 1px solid var(--dark-200);
    border-radius: .75rem;
    padding: 1rem;
}

/* Tooltip help */
.help-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--dark-100);
    color: var(--dark-600);
    font-size: 9px;
    font-weight: 700;
    margin-left: .25rem;
    cursor: help;
}

/* Confirmation page */
.confirmation-icon {
    width: 80px;
    height: 80px;
    background: #ecfdf5;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.confirmation-icon svg {
    width: 40px;
    height: 40px;
    color: #059669;
}

/* ── Dashboard layout ── */
.dashboard-wrapper {
    max-width: 1140px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}
.dashboard-sidebar {
    width: 240px;
    flex-shrink: 0;
}
.dashboard-sidebar .sidebar-header {
    background: var(--dark-100);
    border-bottom: 1px solid var(--dark-200);
    padding: 1rem 1.25rem;
}
.dashboard-sidebar .sidebar-nav .nav-link {
    color: var(--dark-600);
    font-size: .875rem;
    font-weight: 500;
    padding: .55rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .625rem;
    transition: background .2s, color .2s;
    border-right: 2px solid transparent;
}
.dashboard-sidebar .sidebar-nav .nav-link:hover {
    background: var(--dark-100);
    color: var(--dark-900);
}
.dashboard-sidebar .sidebar-nav .nav-link.active {
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 600;
    border-right-color: var(--brand-500);
}
.dashboard-sidebar .sidebar-nav .nav-link .sidebar-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.dashboard-sidebar .sidebar-nav .nav-link.active .sidebar-icon {
    color: var(--brand-600);
}
.dashboard-sidebar .sidebar-footer {
    border-top: 1px solid var(--dark-200);
    padding: .75rem 1.25rem;
}
.dashboard-sidebar .sidebar-footer a {
    color: var(--dark-400);
    text-decoration: none;
    font-size: .75rem;
    display: flex;
    align-items: center;
    gap: .375rem;
    transition: color .2s;
}
.dashboard-sidebar .sidebar-footer a:hover {
    color: #dc3545;
}

/* ── Dashboard index cards ── */
.dash-card {
    border: 1px solid var(--dark-200);
    border-radius: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s;
    display: block;
}
.dash-card:hover {
    border-color: var(--brand-300);
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
    color: inherit;
}
.dash-card .dash-icon {
    width: 40px;
    height: 40px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem;
}

/* ── Status badges (colored) ── */
.status-sent       { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.status-rejected   { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.status-budgeting  { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.status-quote_sent { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.status-quote_declined,
.status-quote_expired { background: var(--dark-100); color: var(--dark-600); border-color: var(--dark-200); }
.status-quote_accepted { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.status-converted  { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.status-pending_review { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.status-processing { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.status-dataset_ready { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.status-invoiced   { background: var(--dark-100); color: var(--dark-700); border-color: var(--dark-200); }
.status-open       { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.status-in_progress { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }
.status-closed     { background: var(--dark-100); color: var(--dark-600); border-color: var(--dark-200); }

/* ── List item (dashboard) ── */
.dash-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--dark-200);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.dash-list-item:hover {
    border-color: var(--brand-300);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    color: inherit;
}

/* ── Detail card ── */
.detail-card {
    background: #fff;
    border: 1px solid var(--dark-200);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.25rem;
}
.detail-label {
    color: var(--dark-400);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .15rem;
}
.detail-value {
    font-weight: 600;
    color: var(--dark-900);
    font-size: .875rem;
}

/* ── Info boxes (colored) ── */
.info-box {
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}
.info-box-brand   { background: var(--brand-50); border: 1px solid var(--brand-200); }
.info-box-success { background: #ecfdf5; border: 1px solid #a7f3d0; }
.info-box-warning { background: #fffbeb; border: 1px solid #fde68a; }
.info-box-danger  { background: #fef2f2; border: 1px solid #fecaca; }
.info-box-dark    { background: var(--dark-100); border: 1px solid var(--dark-200); }
.info-box-indigo  { background: #eef2ff; border: 1px solid #c7d2fe; }

/* ── Chat (tickets) ── */
.chat-msg {
    max-width: 85%;
    padding: .75rem 1rem;
    border-radius: 1rem;
    font-size: .875rem;
    line-height: 1.5;
}
.chat-msg-admin {
    background: #fff;
    border: 1px solid var(--dark-200);
    border-top-left-radius: .25rem;
    color: var(--dark-800);
}
.chat-msg-user {
    background: var(--brand-500);
    color: #fff;
    border-top-right-radius: .25rem;
}

/* ── Payment cards ── */
.payment-card {
    border: 1px solid var(--dark-200);
    border-radius: .75rem;
    padding: 1.25rem;
    transition: border-color .2s;
}
.payment-card:hover {
    border-color: var(--brand-300);
}
.btn-blue {
    background: #2563eb;
    color: #fff;
    border: none;
    font-weight: 700;
    padding: .625rem 1rem;
    border-radius: .75rem;
    font-size: .875rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .2s;
}
.btn-blue:hover { background: #1d4ed8; color: #fff; }
.btn-purple {
    background: #7c3aed;
    color: #fff;
    border: none;
    font-weight: 700;
    padding: .625rem 1rem;
    border-radius: .75rem;
    font-size: .875rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    transition: background .2s;
}
.btn-purple:hover { background: #6d28d9; color: #fff; }
.btn-success {
    background: #059669;
    color: #fff;
    border: none;
    font-weight: 700;
    padding: .625rem 1rem;
    border-radius: .75rem;
    font-size: .875rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: background .2s;
}
.btn-success:hover { background: #047857; color: #fff; }
.btn-outline-danger {
    background: #fff;
    color: #dc2626;
    border: 1px solid #fca5a5;
    font-weight: 700;
    padding: .625rem 1rem;
    border-radius: .75rem;
    font-size: .875rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: background .2s, color .2s;
}
.btn-outline-danger:hover { background: #fef2f2; }
.btn-outline-default {
    background: #fff;
    color: var(--dark-700);
    border: 1px solid var(--dark-200);
    font-weight: 700;
    padding: .625rem 1rem;
    border-radius: .75rem;
    font-size: .875rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.btn-outline-default:hover {
    border-color: var(--brand-300);
    color: var(--brand-700);
}
.btn-indigo {
    background: #4f46e5;
    color: #fff;
    border: none;
    font-weight: 700;
    padding: .625rem 1.25rem;
    border-radius: .75rem;
    font-size: .875rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    transition: background .2s;
}
.btn-indigo:hover { background: #4338ca; color: #fff; }

/* ── Field tag ── */
.field-tag {
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid var(--brand-100);
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .625rem;
    border-radius: 9999px;
    display: inline-block;
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #fff;
    border: 1px solid var(--dark-200);
    border-radius: 1rem;
}
.empty-icon {
    width: 48px;
    height: 48px;
    background: var(--dark-100);
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .75rem;
}

/* ── Breadcrumb ── */
.breadcrumb-dash {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: var(--dark-400);
    margin-bottom: 1.5rem;
}
.breadcrumb-dash a {
    color: var(--dark-400);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s;
}
.breadcrumb-dash a:hover {
    color: var(--brand-600);
}

/* ── Admin sidebar (dark) ── */
.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
}
.admin-sidebar .sidebar-inner {
    background: #1e1e2e;
    border-radius: 1rem;
    overflow: hidden;
    position: sticky;
    top: 1.5rem;
}
.admin-sidebar .sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar .sidebar-nav .nav-link {
    color: #94a3b8;
    font-size: .875rem;
    font-weight: 500;
    padding: .55rem 1.25rem;
    display: flex;
    align-items: center;
    gap: .625rem;
    transition: background .2s, color .2s;
    border-right: 2px solid transparent;
    text-decoration: none;
}
.admin-sidebar .sidebar-nav .nav-link:hover {
    background: rgba(255,255,255,.05);
    color: #e2e8f0;
}
.admin-sidebar .sidebar-nav .nav-link.active {
    background: rgba(99,102,241,.15);
    color: #a5b4fc;
    border-right-color: #818cf8;
}
.admin-sidebar .sidebar-nav .nav-link .sidebar-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.admin-sidebar .sidebar-footer {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: .75rem 1.25rem;
}
.admin-sidebar .sidebar-footer a {
    color: #64748b;
    text-decoration: none;
    font-size: .75rem;
    display: flex;
    align-items: center;
    gap: .375rem;
    transition: color .2s;
}
.admin-sidebar .sidebar-footer a:hover {
    color: #a5b4fc;
}

/* ── Admin filter pills ── */
.filter-pill {
    display: inline-block;
    padding: .375rem .75rem;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, color .2s;
}
.filter-pill-default {
    background: var(--dark-100);
    color: var(--dark-600);
}
.filter-pill-default:hover {
    background: var(--dark-200);
    color: var(--dark-700);
}
.filter-pill-active {
    background: #4f46e5;
    color: #fff;
}
.filter-pill-active:hover {
    background: #4338ca;
    color: #fff;
}

/* ── Admin table ── */
.admin-table {
    width: 100%;
    font-size: .875rem;
}
.admin-table thead th {
    background: var(--dark-100);
    color: var(--dark-600);
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .625rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--dark-200);
}
.admin-table tbody td {
    padding: .625rem 1.25rem;
    border-bottom: 1px solid var(--dark-100);
    vertical-align: middle;
}
.admin-table tbody tr {
    cursor: pointer;
    transition: background .15s;
}
.admin-table tbody tr:hover {
    background: var(--dark-100);
}

/* ── Admin form ── */
.form-control-admin {
    border: 1px solid var(--dark-200);
    border-radius: .75rem;
    padding: .625rem 1rem;
    font-size: .875rem;
    width: 100%;
    transition: border-color .2s, box-shadow .2s;
}
.form-control-admin:focus {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
    outline: none;
}

/* ── Admin indigo boxes ── */
.admin-client-box {
    background: #eef2ff;
    border: 1px solid #e0e7ff;
    border-radius: .75rem;
    padding: 1rem;
}

/* ── Admin field tag ── */
.field-tag-admin {
    background: #eef2ff;
    color: #4338ca;
    border: 1px solid #e0e7ff;
    font-size: .75rem;
    font-weight: 600;
    padding: .25rem .625rem;
    border-radius: 9999px;
    display: inline-block;
}

/* Storage badges */
.status-aws_madrid   { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.status-leviia_france { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* ══════════════════════════════════════
   PUBLIC PAGES
   ══════════════════════════════════════ */

/* ── Inner hero (como_funciona, seguridad) ── */
.hero-inner {
    background: var(--dark-900);
    padding: 4rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% -20%, rgba(10,189,227,.18) 0%, transparent 70%);
}
.hero-inner h1 {
    color: #fff;
    font-weight: 800;
}
.hero-inner .lead {
    color: var(--dark-400);
}

/* ── Icon circle (round with bg) ── */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.icon-circle-lg {
    width: 80px;
    height: 80px;
}
.icon-circle-brand {
    background: var(--brand-50);
    color: var(--brand-600);
}

/* ── Section backgrounds ── */
.section-light {
    background: var(--dark-100);
}

/* ── Step card (como_funciona) ── */
.step-card {
    background: #fff;
    border: 1px solid var(--dark-200);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: box-shadow .2s;
    height: 100%;
}
.step-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.step-card .step-num {
    color: var(--brand-500);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
}

/* ── Feature card (white with icon) ── */
.feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* ── FAQ accordion ── */
.faq-item {
    border: 1px solid var(--dark-200);
    border-radius: .75rem;
    overflow: hidden;
    margin-bottom: .75rem;
}
.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--dark-900);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .2s;
}
.faq-item summary:hover {
    background: var(--dark-100);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--dark-400);
    transition: transform .2s;
    flex-shrink: 0;
}
.faq-item[open] summary .faq-chevron {
    transform: rotate(180deg);
}
.faq-item .faq-body {
    padding: 0 1.25rem 1.25rem;
    color: var(--dark-600);
    border-top: 1px solid var(--dark-200);
    font-size: .875rem;
    line-height: 1.6;
}

/* ── CTA banner (inner pages) ── */
.cta-banner {
    background: linear-gradient(135deg, var(--brand-50), var(--dark-100));
    border-radius: 0;
    padding: 4rem 0;
    text-align: center;
}

/* ── Sector cards (como_funciona) ── */
.sector-card-link {
    display: block;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .15s;
}
.sector-card-link:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transform: translateY(-2px);
    color: inherit;
}

/* ── Carousel (seguridad) ── */
.security-carousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--dark-200);
    opacity: 1;
}
.security-carousel .carousel-indicators .active {
    background: var(--brand-600);
}
.security-carousel .carousel-item {
    padding: 0 1rem;
}
.security-slide {
    background: var(--dark-100);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

/* ── Nav tabs (seguridad) ── */
.nav-security .nav-link {
    font-weight: 600;
    color: var(--dark-600);
    border: none;
    border-bottom: 2px solid transparent;
    padding: .5rem 1rem;
    transition: color .2s, border-color .2s;
}
.nav-security .nav-link:hover {
    color: var(--dark-800);
    border-color: transparent;
}
.nav-security .nav-link.active {
    color: var(--brand-600);
    border-bottom-color: var(--brand-600);
    background: none;
}

/* ── Numbered section (privacidad, condiciones) ── */
.legal-section {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.legal-num {
    width: 56px;
    height: 56px;
    background: var(--brand-700);
    color: #fff;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.125rem;
    box-shadow: 0 4px 12px rgba(10,189,227,.2);
}
.legal-body a {
    color: var(--brand-600);
    font-weight: 600;
    text-decoration: none;
}
.legal-body a:hover {
    color: var(--brand-800);
    text-decoration: underline;
}
.legal-body ul {
    margin-top: .5rem;
    padding-left: 1.5rem;
}
.legal-body li {
    margin-bottom: .35rem;
}

/* ── Contact box (privacidad, condiciones) ── */
.contact-box {
    background: var(--brand-50);
    border: 1px solid var(--brand-100);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
}
.contact-box a.link-brand {
    color: var(--brand-700);
    font-weight: 700;
    text-decoration: none;
}
.contact-box a.link-brand:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .admin-sidebar {
        display: none;
    }
    .dashboard-sidebar {
        display: none;
    }
}
@media (max-width: 767.98px) {
    .hero-section .display-5 {
        font-size: 2rem;
    }
    .hero-stats .display-6 {
        font-size: 1.5rem;
    }
}
