:root {
    --lp-premium-glow: radial-gradient(circle at top right, rgba(37,99,235,.12), transparent 36%);
    --lp-premium-surface: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(247,250,255,.98) 100%);
    --lp-premium-border: rgba(37,99,235,.1);
}

body.lptech-app {
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.08), transparent 24%),
        radial-gradient(circle at left center, rgba(8,145,178,.05), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, var(--lp-bg) 100%);
}

.top-navbar,
.footer,
.lp-page-hero,
.card,
.lp-card,
.panel,
.widget,
.box,
.info-card,
.table-responsive,
.dropdown-menu,
.modal-content,
.offcanvas,
.lp-action-bar,
.actions-bar,
.toolbar,
.filters-bar,
.filtros-bar,
.filtros-topo,
.header-filtros,
.top-actions,
.content-section {
    backdrop-filter: blur(14px);
}

.top-navbar {
    background:
        linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(248,251,255,.9) 100%) !important;
    box-shadow: 0 10px 30px -28px rgba(15,23,42,.32);
}

.footer {
    background:
        linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(246,249,255,.95) 100%) !important;
}

.lp-page-hero {
    position: relative;
    overflow: hidden;
    border-color: var(--lp-premium-border) !important;
    box-shadow: 0 18px 46px -34px rgba(15,23,42,.28) !important;
}

.lp-page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--lp-premium-glow);
    pointer-events: none;
}

.card,
.lp-card,
.panel,
.widget,
.box,
.info-card {
    background: var(--lp-premium-surface) !important;
    border-color: rgba(15,23,42,.06) !important;
    box-shadow: 0 14px 34px -30px rgba(15,23,42,.25) !important;
}

.card-header,
.lp-card .card-header,
.modal-header,
.offcanvas-header {
    background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(245,248,255,.92) 100%) !important;
}

.table-responsive,
.table-wrapper,
.table-container {
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 16px 34px -34px rgba(15,23,42,.36);
}

.table thead th,
table thead th {
    background: linear-gradient(180deg, #fbfdff 0%, #f1f6ff 100%) !important;
}

.page-header,
.content-header,
.section-header,
.header-page,
.page-header-custom,
.filters-section,
.search-section {
    padding: 14px 16px;
    border: 1px solid rgba(15,23,42,.06);
    border-radius: var(--lp-radius-xl);
    background: linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(248,251,255,.92) 100%);
    box-shadow: 0 12px 28px -30px rgba(15,23,42,.26);
}

.empty-state,
.empty-state-pro,
.mapa-empty-state,
.lp-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 28px 22px;
    border: 1px dashed rgba(37,99,235,.18);
    border-radius: var(--lp-radius-xl);
    background:
        radial-gradient(circle at top right, rgba(37,99,235,.08), transparent 40%),
        linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,249,255,.98) 100%);
    color: var(--lp-text-soft);
    text-align: center;
}

.empty-state i,
.empty-state-pro i,
.mapa-empty-state i,
.lp-empty-state i {
    display: block;
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--lp-primary);
}

.lp-form-saving {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    box-shadow: 0 28px 64px -34px rgba(2,6,23,.78);
    border: 1px solid rgba(148,163,184,.18);
}

.lp-form-saving .spinner-border {
    width: 1rem;
    height: 1rem;
}

.lp-toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1090;
    display: grid;
    gap: .75rem;
    width: min(92vw, 380px);
}

.lp-toast-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    color: #fff;
    border: 1px solid rgba(148,163,184,.2);
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: 0 26px 70px -34px rgba(2,6,23,.7);
}

.lp-toast-card.is-success {
    background: linear-gradient(135deg, #0f766e 0%, #0f172a 100%);
}

.lp-toast-card.is-error {
    background: linear-gradient(135deg, #b91c1c 0%, #0f172a 100%);
}

.lp-top-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 2000;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .28s ease, opacity .28s ease;
    background: linear-gradient(90deg, var(--lp-primary), #22c55e);
}

.lp-top-progress.is-active {
    opacity: 1;
    transform: scaleX(1);
}

.lp-screen-loading {
    position: fixed;
    inset: 0;
    z-index: 1075;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(248,250,252,.78);
    backdrop-filter: blur(6px);
}

.lp-screen-loading.is-active {
    display: flex;
}

.lp-screen-loading-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: min(92vw, 320px);
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(15,23,42,.08);
    background: rgba(255,255,255,.96);
    box-shadow: 0 28px 60px -38px rgba(15,23,42,.5);
}

.lp-screen-loading-copy {
    display: grid;
    gap: 2px;
}

.lp-screen-loading-copy strong {
    font-size: .95rem;
    color: var(--lp-text);
}

.lp-screen-loading-copy span {
    font-size: .82rem;
    color: var(--lp-text-soft);
}

.skeleton,
.lp-skeleton {
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(226,232,240,.55) 25%, rgba(241,245,249,.9) 50%, rgba(226,232,240,.55) 75%);
    background-size: 200% 100%;
    animation: lpShimmer 1.35s infinite linear;
}

@keyframes lpShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.btn,
.nav-link,
.dropdown-item,
.page-link {
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}

.dropdown-menu {
    border: 1px solid rgba(15,23,42,.08) !important;
    box-shadow: 0 24px 70px -40px rgba(15,23,42,.45) !important;
}

.kpi-card,
.metric-card,
.stat-card,
.indicador-card {
    box-shadow: 0 18px 42px -34px rgba(15,23,42,.38);
}

.lp-page-actions .btn,
.toolbar .btn,
.filters-bar .btn,
.filtros-bar .btn,
.btn-group > .btn {
    box-shadow: 0 10px 24px -18px rgba(37,99,235,.26);
}

.lp-module-shell {
    display: grid;
    gap: 1rem;
}

.lp-module-hero {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 1.5rem 1.55rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 28px 70px -42px rgba(15,23,42,.72);
}

.lp-module-hero::before,
.lp-module-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    opacity: .24;
}

.lp-module-hero::before {
    width: 280px;
    height: 280px;
    right: -90px;
    top: -120px;
    background: radial-gradient(circle, rgba(255,255,255,.48) 0%, rgba(255,255,255,0) 72%);
}

.lp-module-hero::after {
    width: 240px;
    height: 240px;
    left: -80px;
    bottom: -130px;
    background: radial-gradient(circle, rgba(59,130,246,.48) 0%, rgba(59,130,246,0) 72%);
}

.lp-module-hero > * {
    position: relative;
    z-index: 1;
}

.lp-module-hero.is-dashboard {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #0f766e 100%);
}

.lp-module-hero.is-settings {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 42%, #2563eb 100%);
}

.lp-module-kicker {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,255,255,.74);
}

.lp-module-title {
    margin: .42rem 0 .48rem;
    font-size: clamp(1.65rem, 2.4vw, 2.35rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -.03em;
}

.lp-module-copy {
    max-width: 840px;
    color: rgba(255,255,255,.84);
    font-size: 1rem;
}

.lp-module-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1rem;
}

.lp-module-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .88rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.14);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    backdrop-filter: blur(8px);
}

.lp-module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1rem;
    align-items: center;
}

.lp-module-actions .btn {
    border-radius: 999px;
    font-weight: 700;
    padding-inline: 1rem;
}

.lp-module-actions .dropdown-menu {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 56px -32px rgba(15,23,42,.42);
}

.lp-module-filter-strip {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(10px);
}

.lp-module-filter-strip .form-label {
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.72);
}

.lp-module-filter-strip .form-select,
.lp-module-filter-strip .form-control {
    border-radius: 14px;
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.94);
}

.lp-module-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lp-module-stat {
    padding: 1.05rem 1.1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.96));
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 20px 48px -38px rgba(15,23,42,.32);
}

.lp-module-stat-label {
    color: #64748b;
    font-size: .76rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .08em;
}

.lp-module-stat-value {
    margin-top: .42rem;
    font-size: 1.72rem;
    line-height: 1.02;
    font-weight: 800;
    color: #0f172a;
}

.lp-module-stat-meta {
    margin-top: .42rem;
    color: #64748b;
    font-size: .86rem;
}

.lp-module-panel {
    padding: 1.25rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.96));
    border: 1px solid rgba(15,23,42,.06);
    box-shadow: 0 20px 48px -38px rgba(15,23,42,.32);
}

.lp-module-panel-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.lp-module-empty {
    border: 1px dashed rgba(148,163,184,.42);
    border-radius: 18px;
    padding: 1.15rem;
    color: #64748b;
    background: linear-gradient(180deg, rgba(250,251,252,.98), rgba(246,248,251,.98));
}

@media (max-width: 991.98px) {
    .page-header,
    .content-header,
    .section-header,
    .header-page,
    .page-header-custom,
    .filters-section,
    .search-section {
        padding: 12px;
    }

    .lp-form-saving,
    .lp-toast-stack {
        right: 12px;
        left: 12px;
        width: auto;
    }

    .lp-module-hero {
        padding: 1.25rem 1.1rem;
        border-radius: 24px;
    }

    .lp-module-title {
        font-size: 1.5rem;
    }
}
