:root {
    --primary-blue: #0f2d52;
    --deep-blue: #08192f;
    --light-blue: #eaf4fb;
    --mint: #9be8cf;
    --gold: #f6cf7c;
    --coral: #f78b77;
    --white: #ffffff;
    --text-dark: #10233a;
    --text-soft: #5e7188;
    --body-font: 'Montserrat', 'Raleway', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--text-dark);
    background:
        radial-gradient(circle at top left, rgba(155, 232, 207, 0.38), transparent 20rem),
        linear-gradient(180deg, #f7fbff 0%, #edf5fb 100%);
    line-height: 1.6;
}

body.is-reduced-motion *,
body.is-reduced-motion *::before,
body.is-reduced-motion *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
}

main {
    scroll-margin-top: 80px;
}

section {
    padding: 1rem 1rem 2rem 1rem;
    scroll-margin-top: 90px;
}

.hero {
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--deep-blue) 100%);
    color: var(--white);
    padding: 0;
    overflow: hidden;
}

.hero-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3.25rem 1rem 2.25rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 1.5rem;
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-heading {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.9rem);
    line-height: 0.88;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.hero-heading span {
    display: block;
}

.hero-heading span:last-child {
    color: var(--white);
    white-space: nowrap;
    word-break: keep-all;
}

.hero-summary {
    margin: 1.1rem 0 0;
    max-width: 37rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.hero-cta {
    margin-top: 1.4rem;
}

.hero-visual {
    position: relative;
    min-height: 360px;
    border-radius: 2rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

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

.hero-visual::before {
    top: -3rem;
    right: -2rem;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(155, 232, 207, 0.18), transparent 62%);
}

.hero-visual::after {
    bottom: -4rem;
    left: -3rem;
    width: 15rem;
    height: 15rem;
    background: radial-gradient(circle, rgba(246, 207, 124, 0.16), transparent 65%);
}

.hero-planet {
    position: absolute;
    top: 50%;
    left: 54%;
    width: 210px;
    height: 210px;
    transform: translate(-50%, -50%);
}

.hero-planet__core {
    position: absolute;
    inset: 31%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--gold), var(--mint));
    box-shadow: 0 0 40px rgba(155, 232, 207, 0.35);
}

.hero-planet__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 0 1px rgba(155, 232, 207, 0.08);
    transform-origin: center;
}

.hero-planet__ring::after {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.hero-planet__ring--two::after {
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    background: rgba(155, 232, 207, 0.95);
    box-shadow: 0 0 10px rgba(155, 232, 207, 0.45);
}

.hero-planet__ring--three {
    opacity: 0.55;
}

.hero-planet__ring--three::after {
    width: 6px;
    height: 6px;
    margin-left: -3px;
    background: rgba(246, 207, 124, 0.95);
    box-shadow: 0 0 8px rgba(246, 207, 124, 0.4);
}

.hero-orbit {
    position: absolute;
    top: 50%;
    left: 54%;
    width: 0;
    height: 0;
    pointer-events: none;
}

.hero-orbit-card {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    gap: 0.12rem;
    min-width: 112px;
    padding: 0.72rem 0.82rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transform: translate(-50%, -50%);
    text-align: center;
}

.hero-orbit-card strong {
    font-size: 1.35rem;
    line-height: 1;
    color: var(--white);
}

.hero-orbit-card span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.hero-orbit-card--mint {
    background: linear-gradient(135deg, rgba(155, 232, 207, 0.22), rgba(255, 255, 255, 0.08));
}

.hero-orbit-card--gold {
    background: linear-gradient(135deg, rgba(246, 207, 124, 0.24), rgba(255, 255, 255, 0.08));
}

.hero-orbit-card--coral {
    background: linear-gradient(135deg, rgba(247, 139, 119, 0.24), rgba(255, 255, 255, 0.08));
}

.section-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-align: center;
}

.section-subtitle {
    margin-top: -0.2rem;
    margin-bottom: 1.5rem;
    max-width: 46rem;
    color: var(--text-soft);
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#quienes,
#logros,
#propuestas,
#vota,
#contacto {
    max-width: 1100px;
    margin: 0 auto;
}

#quienes p,
#contacto p {
    max-width: 55rem;
    color: var(--text-soft);
    font-size: 1rem;
}

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

.counter-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 45, 82, 0.1);
    border-radius: 1.25rem;
    padding: 1.4rem;
    box-shadow: 0 18px 36px rgba(15, 45, 82, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.counter-card:hover,
.counter-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(15, 45, 82, 0.13);
}

.counter-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(155, 232, 207, 0.9), rgba(246, 207, 124, 0.95));
    color: var(--deep-blue);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.counter-value {
    margin-top: 1.15rem;
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--primary-blue);
}

.counter-value--static {
    font-size: 2rem;
}

.counter-label {
    margin: 0.8rem 0 0.45rem;
    font-weight: 700;
    color: var(--text-dark);
}

.counter-detail {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.94rem;
}

.section-note {
    margin-top: 1.4rem;
    color: var(--text-soft);
    text-align: center;
}

.section-note-cta {
    margin-top: 1rem;
    text-align: center;
}

.note-button,
.election-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), #18477f);
    color: var(--white);
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: 0 12px 24px rgba(15, 45, 82, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.note-button:hover,
.note-button:focus-visible,
.election-button:hover,
.election-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 45, 82, 0.22);
}

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

.propuesta-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 45, 82, 0.1);
    border-radius: 1.35rem;
    padding: 1.45rem;
    box-shadow: 0 18px 36px rgba(15, 45, 82, 0.08);
}

.propuesta-card h3 {
    margin-top: 0;
    margin-bottom: 0.95rem;
    font-size: 1.08rem;
    color: var(--primary-blue);
}

.propuesta-card ol {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-soft);
}

.propuesta-card li + li {
    margin-top: 0.55rem;
}

.propuesta-card.protagonista {
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
    color: var(--white);
}

.propuesta-card.protagonista h3 {
    color: var(--white);
}

.protagonista-label {
    display: inline-block;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 700;
}

.protagonista-texto {
    margin-top: 0.85rem;
    color: rgba(255, 255, 255, 0.86);
}

.vota-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--deep-blue));
    color: var(--white);
    border-radius: 1.8rem;
    margin-top: 1rem;
    padding-bottom: 2rem;
}

.vota-section .section-title,
.vota-section .section-subtitle {
    color: var(--white);
}

.election-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.election-card {
    display: grid;
    gap: 1.25rem;
    padding: 1.35rem;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at top right, rgba(155, 232, 207, 0.22), transparent 28%),
        rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.election-lead {
    display: grid;
    gap: 0.9rem;
    justify-items: center;
}

.election-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.election-title {
    margin: 0;
    font-weight: 800;
    font-size: 1.2rem;
    text-align: center;
}

.election-date {
    margin: 0.25rem 0 0;
    max-width: 42rem;
    font-size: 0.98rem;
    opacity: 0.88;
    text-align: center;
}

.election-summary {
    margin: 0;
    max-width: 38rem;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
}

.election-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.election-button-secondary {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-closing {
    margin-top: 1.6rem;
    padding: 1.65rem;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at top right, rgba(155, 232, 207, 0.2), transparent 28%),
        linear-gradient(135deg, rgba(15, 45, 82, 0.96), rgba(8, 25, 47, 0.94));
    color: var(--white);
    box-shadow: 0 20px 42px rgba(15, 45, 82, 0.16);
    text-align: center;
}

.contact-closing__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-closing h3 {
    margin: 1rem 0 0.7rem;
    font-size: 1.35rem;
    line-height: 1.2;
}

.contact-closing p {
    margin: 0 auto;
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.82) !important;
}

.contact-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-links--single {
    justify-content: center;
}

.contact-card {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 45, 82, 0.1);
    box-shadow: 0 18px 36px rgba(15, 45, 82, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
}

.contact-card:hover,
.contact-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 24px 42px rgba(15, 45, 82, 0.12);
}

.contact-card p {
    margin: 0;
    color: var(--text-dark) !important;
    font-weight: 700;
}

.contact-card span {
    color: var(--text-soft);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .hero-shell {
        padding-top: 2.4rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 300px;
    }

    .hero-planet {
        left: 52%;
        width: 180px;
        height: 180px;
    }

    .hero-orbit,
    .hero-orbit--two,
    .hero-orbit--three {
        left: 52%;
    }
}

@media (max-width: 640px) {
    section {
        padding: 1rem 1rem 1.75rem;
    }

    .hero-shell {
        padding-top: 2rem;
        padding-bottom: 1.7rem;
    }

    .hero-summary,
    #quienes p,
    #contacto p,
    .section-subtitle {
        font-size: 0.96rem;
    }

    .hero-heading {
        font-size: clamp(2.35rem, 11.5vw, 4.25rem);
    }

    .hero-visual {
        min-height: 250px;
    }

    .hero-planet {
        width: 146px;
        height: 146px;
    }

    .hero-orbit,
    .hero-orbit--two,
    .hero-orbit--three {
        left: 50%;
    }

    .hero-orbit-card {
        min-width: 86px;
        padding: 0.55rem 0.58rem;
    }

    .hero-orbit-card strong {
        font-size: 1rem;
    }

    .hero-orbit-card span {
        font-size: 0.62rem;
    }

    .impact-counters,
    .propuestas-grid {
        grid-template-columns: 1fr;
    }

    .election-card {
        padding: 1.1rem;
    }

    .election-actions {
        flex-direction: column;
    }

    .election-button {
        width: 100%;
        text-align: center;
    }

    .contact-links {
        flex-direction: column;
    }
}
