body.results-page {
    background-color: var(--primary-blue);
    color: var(--white);
}

body.results-page main {
    padding-bottom: 0;
}

body.results-page main section {
    background-color: var(--primary-blue);
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.results-page #inicio {
    padding: 0;
    border-bottom: none;
}

body.results-page #inicio .carousel {
    border-radius: 0;
    margin-bottom: 0;
}

body.results-page footer {
    color: var(--white);
    background: var(--primary-blue);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.results-message {
    text-align: center;
}

.results-message__inner {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 1rem;
    padding: 0;
}

.results-message__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.results-message__subtitle {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 600;
    margin-bottom: 0;
}

.results-message__text {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

h1 {
    margin: 0;
}

p {
    margin: 0;
}

.results-panel {
    padding-top: 1.5rem;
}

.results-panel__header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.results-panel__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 0rem;
}

.results-panel__header h2 {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.results-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.3rem;
    backdrop-filter: blur(8px);
}

.results-toggle__button {
    border: none;
    background: transparent;
    color: var(--white);
    font-weight: 600;
    padding: 0.65rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.results-toggle__button.is-active {
    background: var(--white);
    color: var(--primary-blue);
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

.results-chart {
    position: relative;
    width: min(320px, 80vw);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.results-chart__circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 6px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.results-chart__circle canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 1;
}

.results-chart__labels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    font-size: 0.85rem;
    z-index: 2;
}

.results-chart__label {
    position: absolute;
    transform: translate(-50%, -50%);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.1rem 0.2rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.results-legend__list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.results-legend__item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 0.85rem 1rem;
}

.results-legend__color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.results-legend__color::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--legend-color, #fff);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.results-legend__name {
    font-weight: 700;
    margin: 0;
}

.results-legend__value {
    margin: 0.1rem 0 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

.results-feedback {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

.results-error {
    margin: 0.75rem 0 0;
    color: #ffe4e4;
    font-weight: 600;
}

.results-footnote {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.results-footnote a {
    color: var(--white);
    text-decoration: underline;
}

.results-summary {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.results-summary__label {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.85;
}

.results-summary__value {
    margin: 0.2rem 0 0;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
}

.results-summary__percent {
    margin: 0.15rem 0 0;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.75;
}

@media (max-width: 768px) {
    .results-legend {
        width: 100%;
    }
}

@media (min-width: 900px) {
    .results-panel__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .results-grid {
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .results-chart {
        margin: 0;
    }

    .results-legend {
        max-width: 460px;
    }
}
