.neighborhood-section {
    background: transparent;
    padding: 0;
    margin: 0;
    border: none;
    width: 100%;
    max-width: 1200px;
    margin: 0px auto;
    margin-top: 2rem;


}

.neighborhood-container {
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: url('../../images/sky.webp') no-repeat center center;
    background-size: cover;
}

/* TOP LAYOUT */
.neighborhood-top-layout {
    display: grid;
    grid-template-columns: 1fr 382px;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.neighborhood-intro {
    max-width: 700px;
}

.section-title-large {

    color: var(--color-text);
    margin-bottom: 0px;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: var(--text-lg) !important;
    font-size: 1.5rem;
    line-height: 28px;
    letter-spacing: -0.02em;
    padding-top: 0px;
    margin-top: 0px;
}

.section-description {
    font-family: var(--font-base);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    color: var(--color-text);
}

.neighborhood-badges {
    display: flex;
    gap: 12px;
}

.badge-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: #ffffff;
}

/* RATING CARD */
.neighborhood-rating-card {
    background: #1e2517;
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background-image: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

span.score-current {
    color: #ace1af;
}

span.score-total {
    color: #dde7dd;
}

.rating-card-content {
    padding: 35px;
    color: #1e2517;
    background: url('../../images/convermap.png') no-repeat right top;
    background-size: cover;
}

.rating-subtitle {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 12px;
}

.rating-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
}

.score-current {
    font-size: 84px;
    font-weight: 800;
    line-height: 1;
}

.score-total {
    font-size: 24px;
    opacity: 0.6;
}

.rating-label {
    font-size: var(--text-lg);
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #dde7dd;
}

.rating-desc {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* GRID CATEGORIES */
.neighborhood-categories-header {
    margin-bottom: 30px;
}

.neighborhood-categories-header h3 {
    font-size: var(--text-lg) !important;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 15px;
}

.neighborhood-categories-header h3 span {
    background: #dde7dd;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #1e2517;
}

.neighborhood-grid-new {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.neighbor-card-v2 {
    background: #dde7dd;
    border: 1px solid #dde7dd;
    padding: var(--space-3);
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: default;
}

.neighbor-card-v2:hover {
    border-color: #dde7dd;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

/* Estado Natural para items > 0 */
.neighbor-card-v2.has-items .icon-wrapper {
    background: #ace1af;
}

.neighbor-card-v2.has-items .neighbor-icon-v2 {
    filter: brightness(12) invert(1);
    opacity: 1;
}

.neighbor-card-v2.has-items .neighbor-count-v2 {
    color: #1a1a1a;
}

.card-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: #f8fafc;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.neighbor-icon-v2 {
    width: 30px;
    height: 30px;
    filter: grayscale(1) opacity(0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.neighbor-count-v2 {
    font-size: 46px;
    font-weight: 800;
    color: #f1f5f9;
    /* Estado Natural (Izquierda) */
    line-height: 0.8;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.neighbor-name-v2 {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: block;
}

.neighbor-desc-v2 {
    font-size: var(--text-xs);
    color: #1e2517;
    line-height: 1.4;
    margin: 0;
}

.neighborhood-disclaimer-v2 {
    font-size: 12px;
    color: #1e2517a8;
    font-style: italic;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .neighborhood-top-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .neighborhood-rating-card {
        max-width: 400px;
    }

    .neighborhood-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .comparativa-container {
        max-width: 94dvw !important;
        margin-left: 0px;
        margin-right: 0px;
    }

    .neighborhood-disclaimer-v2 {
        padding-top: 0px;
        margin: 0px;
    }

    .section-title-large {
        margin-top: 1rem;
    }

    .neighborhood-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .neighborhood-intro {
        text-align: center;
    }

    .neighborhood-badges {
        justify-content: center;
    }

    .neighborhood-rating-card {
        margin: 0 auto;
    }

    .neighborhood-section {
        padding: 0 var(--space-3);
        margin-top: 0px;
    }

    .badge-outline,
    .section-description {
        font-size: 12px;
    }

    .neighborhood-grid-new {
        margin-bottom: 12px;
    }
}

/* COMPARATIVA CHART SECTION */
.comparativa-container {
    max-width: 1200px;
    margin: 0px auto;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 40px;
    width: 100%;
    margin-top: 2rem;

}

.comparativa-header {
    display: grid;
    grid-template-columns: 1fr 382px;
    margin-bottom: 40px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 30px;
}

.comparativa-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.comparativa-main-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

.comparativa-insight-card {
    background: #1e3a24;
    padding: 24px 30px;
    border-radius: 20px;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.insight-value {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ace1af;
}

.insight-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.95;
}

.insight-label b {
    color: #ace1af;
    font-weight: 700;
    display: block;
    font-size: 15px;
    margin-bottom: 2px;
}

.comparativa-grid {
    display: grid;
    grid-template-columns: 1fr 382px;
    gap: 60px;
    align-items: center;
}

.comparativa-chart-area {
    height: 400px;
    position: relative;
}

.comparativa-info-area {
    background: #f8fafc;
    padding: 30px;
    border-radius: 20px;
}

.info-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.info-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    font-size: 13px;
    color: #1a1a1a;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-list li strong {
    min-width: 80px;
}

@media (max-width: 992px) {
    .comparativa-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .comparativa-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .comparativa-insight-card {
        text-align: left;
        align-items: flex-start;
        width: 100%;
    }
}

@media (max-width: 768px) {


    .comparativa-main-title {
        font-size: 20px;
    }

    .comparativa-chart-area {
        height: 300px;
    }
}