.intelcom-mapa-page {
    background: #f4f7fb;
}

.imo-page {
    background:
        radial-gradient(circle at 8% 0%, rgba(15, 76, 129, .10), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(22, 163, 74, .08), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef3f8 100%);
    padding: 28px 0 42px;
    color: #0f172a;
}

.imo-container {
    max-width: 1280px;
}

.imo-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 18px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 76, 129, .98), rgba(35, 116, 177, .94)),
        radial-gradient(circle at right top, rgba(255, 255, 255, .22), transparent 36%);
    box-shadow: 0 20px 48px rgba(15, 23, 42, .16);
}

.imo-hero:after {
    content: "";
    position: absolute;
    right: -70px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    border: 42px solid rgba(255, 255, 255, .08);
}

.imo-hero > * {
    position: relative;
    z-index: 2;
}

.imo-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.imo-badges span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .20);
    color: #eef6ff;
    font-size: 12px;
    font-weight: 700;
}

.imo-hero h1 {
    font-size: 46px;
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: 0;
    margin: 0 0 12px;
}

.imo-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    line-height: 1.72;
    font-size: 1rem;
}

.imo-hero-score {
    align-self: center;
    min-width: 168px;
    border-radius: 22px;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
}

.imo-hero-score span,
.imo-hero-score small {
    display: block;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 700;
}

.imo-hero-score strong {
    display: block;
    margin: 6px 0;
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.imo-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.imo-kpis article,
.imo-card,
.imo-map-card,
.imo-ranking,
.imo-score-card,
.imo-country-panel {
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(15, 23, 42, .07);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.imo-kpis article {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 88px;
    padding: 16px;
    border-radius: 20px;
}

.imo-kpis article > i {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 15px;
    background: #eaf4ff;
    color: #0f4c81;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.imo-kpis strong {
    display: block;
    color: #111827;
    font-size: 1.45rem;
    font-weight: 850;
    line-height: 1.1;
}

.imo-kpis span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.imo-card {
    border-radius: 22px;
}

.imo-filters {
    padding: 18px;
    margin-bottom: 16px;
}

.imo-filters label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 12px;
    font-weight: 850;
}

.imo-filters .form-control {
    height: 42px;
    border-radius: 12px;
    border: 1px solid #dbe4ef;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    box-shadow: none !important;
}

.imo-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.imo-check {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    border-radius: 999px;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.imo-check input {
    margin: 0;
}

.imo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    border-radius: 999px;
    padding: 9px 15px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none !important;
    transition: .18s ease;
}

.imo-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #0f4c81, #1f6aa5);
    border-color: #0f4c81;
    box-shadow: 0 10px 22px rgba(15, 76, 129, .20);
}

.imo-btn-primary:hover {
    color: #fff;
    transform: translateY(-2px);
}

.imo-btn-light {
    color: #0f4c81;
    background: #eff6ff;
    border-color: #d8eafb;
}

.imo-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: start;
}

.imo-map-card {
    overflow: hidden;
    border-radius: 24px;
}

.imo-map-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #e9eef5;
}

.imo-map-head span,
.imo-ranking-head span,
.imo-section-title span {
    display: inline-flex;
    margin-bottom: 6px;
    color: #0f4c81;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.imo-map-head h2,
.imo-ranking-head h2,
.imo-section-title h2 {
    margin: 0;
    color: #111827;
    font-size: 1.3rem;
    font-weight: 850;
    line-height: 1.2;
}

.imo-map-head p,
.imo-ranking-head p,
.imo-section-title p {
    margin: 6px 0 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 13px;
}

.imo-map-mode {
    min-width: 120px;
    border-radius: 16px;
    padding: 11px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.imo-map-mode i {
    display: block;
    color: #0f4c81;
    font-size: 18px;
    margin-bottom: 5px;
}

.imo-map-mode strong {
    display: block;
    color: #111827;
    font-size: 12px;
    font-weight: 850;
}

.imo-map-mode small {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.imo-map-shell {
    position: relative;
    height: 560px;
    min-height: 560px;
    padding: 12px;
    background: linear-gradient(180deg, #eef6ff 0%, #e7f0f8 100%);
}

.imo-opportunity-map {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(37, 99, 235, .12), transparent 24%),
        radial-gradient(circle at 78% 36%, rgba(22, 163, 74, .10), transparent 22%),
        linear-gradient(135deg, #eaf5ff 0%, #f8fbff 48%, #eaf1f7 100%);
    border: 1px solid rgba(15, 76, 129, .10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72);
    isolation: isolate;
}

.imo-world-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(15, 76, 129, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 76, 129, .07) 1px, transparent 1px);
    background-size: 10% 20%;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.imo-world-svg {
    position: absolute;
    inset: 7% 3% 9%;
    z-index: 2;
    width: 94%;
    height: 84%;
    opacity: .76;
    filter: drop-shadow(0 18px 32px rgba(15, 76, 129, .10));
}

.imo-world-svg path {
    fill: #d2e2ef;
    stroke: rgba(15, 76, 129, .16);
    stroke-width: 2;
}

.imo-map-markers {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.imo-map-marker {
    position: absolute;
    width: var(--marker-size, 16px);
    height: var(--marker-size, 16px);
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    background: var(--marker-color, #cbd5e1);
    box-shadow:
        0 0 0 3px rgba(255, 255, 255, .92),
        0 10px 22px rgba(15, 23, 42, .22);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.imo-map-marker:before {
    content: "";
    position: absolute;
    inset: -7px;
    border-radius: inherit;
    border: 1px solid var(--marker-color, #cbd5e1);
    opacity: .22;
}

.imo-map-marker:after {
    content: "";
    position: absolute;
    inset: 34%;
    border-radius: inherit;
    background: rgba(255, 255, 255, .92);
}

.imo-map-marker:hover,
.imo-map-marker.is-active {
    transform: translate(-50%, -50%) scale(1.28);
    filter: saturate(1.12);
    z-index: 8;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, .96),
        0 0 0 9px rgba(37, 99, 235, .16),
        0 16px 32px rgba(15, 23, 42, .28);
}

.imo-map-tooltip {
    position: absolute;
    z-index: 12;
    display: none;
    max-width: 220px;
    transform: translate(-50%, calc(-100% - 16px));
    border-radius: 14px;
    padding: 10px 12px;
    background: rgba(15, 23, 42, .94);
    color: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, .22);
    pointer-events: none;
}

.imo-map-tooltip.is-visible {
    display: block;
}

.imo-map-tooltip strong {
    display: block;
    font-size: 13px;
    font-weight: 850;
}

.imo-map-tooltip span {
    display: block;
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 700;
}

.imo-map-tooltip em {
    display: inline-flex;
    margin-top: 7px;
    border-radius: 999px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, .12);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

.imo-map-empty {
    display: none;
    position: absolute;
    inset: 24px;
    z-index: 5;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    color: #64748b;
    font-weight: 800;
}

.imo-map-empty.is-visible {
    display: flex;
}

.imo-country-panel {
    margin: 0 12px 14px;
    border-radius: 18px;
    padding: 16px;
}

.imo-country-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-align: center;
    padding: 12px;
}

.imo-country-empty i {
    color: #94a3b8;
    font-size: 28px;
    margin-bottom: 8px;
}

.imo-country-empty strong {
    color: #111827;
    font-size: 14px;
    font-weight: 850;
}

.imo-country-empty span {
    font-size: 12px;
    margin-top: 3px;
}

.imo-country-detail {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 110px;
    gap: 14px;
    align-items: center;
}

.imo-country-detail-flag {
    width: 64px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.imo-country-detail-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imo-country-detail-flag i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #64748b;
}

.imo-country-detail h3 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 1.15rem;
    font-weight: 900;
}

.imo-country-detail p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.imo-country-score {
    text-align: center;
    border-radius: 16px;
    padding: 11px;
    color: #fff;
}

.imo-country-score strong {
    display: block;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
}

.imo-country-score span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    opacity: .92;
}

.imo-country-products {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid #e5e7eb;
}

.imo-country-products h4 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 13px;
    font-weight: 850;
}

.imo-country-products ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.imo-country-products li {
    padding: 6px 0;
    border-bottom: 1px solid #eef2f7;
    color: #334155;
    font-size: 12px;
}

.imo-country-products li:last-child {
    border-bottom: 0;
}

.imo-country-products strong {
    color: #0f4c81;
}

.imo-ranking {
    position: sticky;
    top: 18px;
    border-radius: 24px;
    padding: 18px;
}

.imo-ranking-head {
    margin-bottom: 12px;
}

.imo-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.imo-rank-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    text-align: left;
    cursor: pointer;
    transition: .18s ease;
}

.imo-rank-item:hover,
.imo-rank-item.is-active {
    transform: translateX(3px);
    border-color: #bfd9f3;
    background: #f8fbff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .07);
}

.imo-rank-flag {
    width: 40px;
    height: 29px;
    min-width: 40px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.imo-rank-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.imo-rank-body {
    flex: 1;
    min-width: 0;
}

.imo-rank-body strong {
    display: block;
    color: #111827;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imo-rank-body small {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.imo-rank-score {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 999px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 12px;
}

.score-prioritaria,
.score-alta,
.score-media,
.score-baja,
.score-sin-datos {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 999px;
}

.score-prioritaria,
.imo-rank-score.score-prioritaria {
    background: #16a34a;
}

.score-alta,
.imo-rank-score.score-alta {
    background: #2563eb;
}

.score-media,
.imo-rank-score.score-media {
    background: #f59e0b;
}

.score-baja,
.imo-rank-score.score-baja {
    background: #64748b;
}

.score-sin-datos,
.imo-rank-score.score-sin-datos {
    background: #cbd5e1;
    color: #334155;
}

.imo-ranking-empty {
    border-radius: 14px;
    padding: 13px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.imo-legend {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.imo-legend h3 {
    margin: 0 0 9px;
    color: #111827;
    font-size: 13px;
    font-weight: 850;
}

.imo-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 750;
    margin-bottom: 6px;
}

.imo-score-card {
    margin-top: 18px;
    border-radius: 24px;
    padding: 22px;
}

.imo-section-title {
    max-width: 760px;
    margin-bottom: 16px;
}

.imo-score-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.imo-score-grid article {
    min-height: 138px;
    border-radius: 18px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.imo-score-grid i {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f4c81;
    background: #eaf4ff;
    margin-bottom: 12px;
    font-size: 16px;
}

.imo-score-grid strong {
    display: block;
    color: #111827;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
}

.imo-score-grid span {
    display: inline-flex;
    margin-top: 9px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #166534;
    background: #dcfce7;
    font-size: 11px;
    font-weight: 850;
}

@media (max-width: 1199.98px) {
    .imo-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .imo-main-grid {
        grid-template-columns: 1fr;
    }

    .imo-ranking {
        position: relative;
        top: auto;
    }

    .imo-score-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .imo-hero {
        flex-direction: column;
    }

    .imo-hero-score {
        align-self: flex-start;
    }

    .imo-map-shell {
        height: 460px;
        min-height: 460px;
    }
}

@media (max-width: 767.98px) {
    .imo-page {
        padding-top: 18px;
    }

    .imo-hero {
        padding: 22px;
        border-radius: 20px;
    }

    .imo-hero h1 {
        font-size: 32px;
    }

    .imo-kpis,
    .imo-score-grid {
        grid-template-columns: 1fr;
    }

    .imo-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .imo-check,
    .imo-btn {
        width: 100%;
    }

    .imo-map-head {
        flex-direction: column;
    }

    .imo-map-shell {
        height: 390px;
        min-height: 390px;
    }

    .imo-country-detail {
        grid-template-columns: 1fr;
    }
}
