/* VISTAS Financial Transparency v2 - Frontend Styles */

/* .vistas-financial-section {
    padding: 5rem 2rem;
    background: #FFF5F0;
    box-sizing: border-box;
} */

*,
.vistas-financial-section *,
.vistas-financial-section *::before,
.vistas-financial-section *::after {
    box-sizing: border-box;
}

/* .vistas-financial-container {
    max-width: 1100px;
    margin: 0 auto;
} */

/* ── Headings ── */
.vistas-section-title {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin: 0 0 0.75rem;
    color: #1D3557;
}

.vistas-section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #5D7589;
    margin: 0 0 3rem;
}

/* ── Carousel shell ── */
/* .vistas-carousel-wrapper {
    max-width: 960px;
    margin: 0 auto;
} */

.vistas-carousel {
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 48px rgba(0,0,0,0.10);
}

.vistas-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.vistas-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* ── Slide content ── */
.vistas-slide-content {
    padding: 2.5rem 3rem;
}

/* Year badge */
/* Year badge wrapper */
.vistas-year-badge-wrap {
    text-align: center;
    margin-bottom: 1.75rem;
}

.vistas-year-badge {
    display: inline-block;
    background: rgba(203, 26, 36, 0.71);;
    color: #fff;
    padding: 0.45rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
}

/* ── Side-by-side body ── */
.vistas-slide-body {
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* LEFT column – chart */
.vistas-chart-col {
    flex: 0 0 350px;
    max-width: 350px;
}

/* RIGHT column – legend */
.vistas-legend-col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ── Chart wrapper ── */
.vistas-chart-wrapper {
    position: relative;
    width: 100%;
}

.vistas-donut-chart {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.vistas-chart-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    width: 120px;
}

.vistas-chart-label {
    font-size: 0.65rem;
    color: #5D7589;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-bottom: 4px;
}

.vistas-chart-total {
    font-family: 'Lora', serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: #1D3557;
    line-height: 1.1;
    word-break: break-all;
}

/* ── Hover tooltip ── */
.vistas-tooltip {
    position: absolute;
    background: #fff;
    border-radius: 10px;
    padding: 9px 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    border-left: 4px solid #E86C3C;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.88) translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 200;
    min-width: 130px;
    white-space: nowrap;
}

.vistas-tooltip.visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.vistas-tooltip-label {
    display: block;
    font-size: 0.75rem;
    color: #5D7589;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.vistas-tooltip-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1D3557;
    font-family: 'Lora', serif;
}

/* ── Legend / breakdown ── */
.vistas-breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.vistas-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.25rem;
    background: #FFFBF5;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.vistas-breakdown-item:hover {
    background: #FFF0E8;
    transform: translateX(4px);
}

.vistas-breakdown-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #1D3557;
    font-weight: 500;
}

.vistas-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vistas-breakdown-percentage {
    font-weight: 800;
    font-size: 1.15rem;
    color: #1D3557;
}

.vistas-chart-note {
    color: #5D7589;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Carousel controls ── */
.vistas-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.vistas-carousel-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(203, 26, 36, 0.71);;
    background: #fff;
    color: rgba(203, 26, 36, 0.71);;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.vistas-carousel-btn:hover {
    background: rgba(203, 26, 36, 0.71);;
    color: #fff;
    transform: scale(1.1);
}

.vistas-carousel-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.vistas-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(232, 108, 60, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.28s ease;
    padding: 0;
}

.vistas-dot.active {
    background: rgba(203, 26, 36, 0.71);;
    width: 26px;
    border-radius: 5px;
}

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════ */

/* Tablet landscape: tighten gaps */
@media (max-width: 900px) {
    .vistas-slide-content {
        padding: 2rem 2rem;
    }

    .vistas-slide-body {
        gap: 2rem;
    }

    .vistas-chart-col {
        flex: 0 0 220px;
        max-width: 220px;
    }

    .vistas-chart-total {
        font-size: 1.2rem;
    }
}

/* Tablet portrait & mobile: stack vertically */
@media (max-width: 680px) {
    /* .vistas-financial-section {
        padding: 3.5rem 1.25rem;
    } */

    .vistas-slide-content {
        padding: 1.75rem 1.5rem;
    }

    .vistas-slide-body {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .vistas-chart-col {
        flex: none;
        max-width: 240px;
        width: 240px;
        margin: 0 auto;
    }

    .vistas-legend-col {
        width: 100%;
    }

    .vistas-section-subtitle {
        margin-bottom: 2rem;
    }

    .vistas-breakdown-item {
        padding: 0.7rem 1rem;
    }

    .vistas-breakdown-percentage {
        font-size: 1rem;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .vistas-slide-content {
        padding: 1.5rem 1rem;
    }

    .vistas-chart-col {
        max-width: 200px;
        width: 200px;
    }

    .vistas-chart-total {
        font-size: 1rem;
    }

    .vistas-chart-label {
        font-size: 0.58rem;
    }

    .vistas-breakdown-label {
        font-size: 0.88rem;
    }

    .vistas-carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }
}
