:root {
    --blue: #282b78;
    --red: #cf1731;
    --gold: #f2c500;
    --green: #008f47;
    --teal: #008da7;
    --purple: #7a138d;
    --ink: #15172e;
    --muted: #62667a;
    --cream: #fffaf1;
    --light: #f4f6fb;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(21, 23, 46, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.site-header {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 45%, rgba(242, 197, 0, .16), transparent 24%),
        radial-gradient(circle at 92% 78%, rgba(122, 19, 141, .14), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f5f7ff 100%);
}
.site-header::before,
.site-header::after {
    content: "";
    position: absolute;
    width: 55vw;
    height: 16px;
    bottom: 0;
    z-index: 0;
}
.site-header::before {
    left: 0;
    background: linear-gradient(90deg, var(--red), #f26522, var(--gold), var(--green), var(--teal), var(--blue), var(--purple));
}
.site-header::after {
    right: 0;
    background: linear-gradient(90deg, var(--green), var(--teal), var(--blue), var(--purple), var(--red));
}

.nav {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
}
.brand {
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--blue);
    font-weight: 700;
    line-height: 1;
}
.brand span { display: block; font-size: .85rem; }
.brand strong { display: block; font-size: 1.35rem; }
.nav-links {
    display: flex;
    gap: 26px;
    align-items: center;
    font-weight: 700;
    color: var(--blue);
    font-size: .9rem;
}
.nav-cta {
    background: var(--red);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(207, 23, 49, .22);
}
#nav-toggle { display: none; }
.menu-button { display: none; }

.hero {
    width: min(1180px, calc(100% - 36px));
    margin: 28px auto 0;
    min-height: calc(100vh - 110px);
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero-copy { padding-bottom: 60px; }
.eyebrow {
    color: var(--red);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .14em;
    font-size: .78rem;
    margin: 0 0 14px;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
    color: var(--blue);
    font-size: clamp(3rem, 8vw, 7.5rem);
    line-height: .88;
    text-transform: uppercase;
    letter-spacing: -.06em;
    margin-bottom: 26px;
}
.hero-subtitle {
    max-width: 640px;
    font: 700 clamp(1.25rem, 2vw, 1.8rem)/1.3 'Source Serif 4', serif;
    color: #22254e;
    margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--blue); color: var(--white); box-shadow: 0 16px 36px rgba(40, 43, 120, .22); }
.secondary { background: var(--white); color: var(--blue); border: 2px solid rgba(40, 43, 120, .15); }

.hero-card {
    position: relative;
    justify-self: end;
    width: min(470px, 100%);
    aspect-ratio: 1 / 1.12;
    border-radius: 42px;
    padding: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.hero-card::before {
    content: "";
    position: absolute;
    inset: -18px -18px auto auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(var(--red), #f26522, var(--gold), var(--green), var(--teal), var(--blue), var(--purple), var(--red));
    z-index: -1;
}
.hero-card img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    border-radius: 32px;
}
.hero-badge {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    background: rgba(255,255,255,.92);
    border-radius: 24px;
    padding: 18px 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px rgba(21, 23, 46, .14);
    color: var(--blue);
}
.hero-badge span { font-weight: 900; color: var(--red); font-size: .85rem; text-transform: uppercase; }
.hero-badge strong { display: block; font-size: 1.35rem; text-transform: uppercase; font-weight: 900; color: var(--red); }

.cover-strip {
    background: var(--light);
    padding: 26px 0;
    overflow: hidden;
}
.cover-strip img {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 96px 0;
}
.section-title { max-width: 760px; }
.section-title.centered { text-align: center; margin: 0 auto 44px; }
h2 {
    color: var(--blue);
    font-size: clamp(2rem, 4.4vw, 4.8rem);
    line-height: .96;
    letter-spacing: -.045em;
    margin-bottom: 18px;
}
.section-lead {
    color: rgba(255,255,255,.78);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 760px;
    margin: 0 auto;
}
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 36px;
}
p { line-height: 1.8; color: var(--muted); font-size: 1.03rem; }
.two-columns p {
    font: 500 1.2rem/1.8 'Source Serif 4', serif;
    color: #303347;
}
.dark {
    width: 100%;
    max-width: none;
    background: var(--blue);
    padding-left: max(18px, calc((100vw - 1180px)/2));
    padding-right: max(18px, calc((100vw - 1180px)/2));
    border-radius: 0;
}
.dark h2 { color: var(--white); }
.dark .eyebrow { color: var(--gold); }
.cards {
    display: grid;
    gap: 22px;
}
.four { grid-template-columns: repeat(4, 1fr); }
.three { grid-template-columns: repeat(3, 1fr); }
.card, .idea {
    border-radius: 26px;
    padding: 28px;
    min-height: 230px;
}
.card {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}
.card span {
    color: var(--gold);
    font-weight: 900;
}
.card h3 { color: var(--white); font-size: 1.5rem; margin: 30px 0 12px; }
.card p { color: rgba(255,255,255,.74); }

.split {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 56px;
    align-items: center;
}
.image-panel {
    border-radius: 36px;
    padding: 14px;
    background: linear-gradient(135deg, var(--red), var(--gold), var(--green), var(--blue), var(--purple));
    box-shadow: var(--shadow);
}
.image-panel img {
    height: 560px;
    width: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    border-radius: 25px;
}
.text-panel blockquote {
    margin: 34px 0 0;
    padding-left: 24px;
    border-left: 6px solid var(--red);
    font: 700 clamp(1.6rem, 3vw, 2.6rem)/1.15 'Source Serif 4', serif;
    color: var(--blue);
}
.light {
    width: 100%;
    max-width: none;
    background: var(--light);
    padding-left: max(18px, calc((100vw - 1180px)/2));
    padding-right: max(18px, calc((100vw - 1180px)/2));
}
.idea {
    background: var(--white);
    box-shadow: 0 12px 35px rgba(21, 23, 46, .07);
    border-bottom: 6px solid var(--gold);
}
.idea:nth-child(2) { border-bottom-color: var(--teal); }
.idea:nth-child(3) { border-bottom-color: var(--red); }
.idea:nth-child(4) { border-bottom-color: var(--green); }
.idea:nth-child(5) { border-bottom-color: var(--purple); }
.idea:nth-child(6) { border-bottom-color: var(--blue); }
.idea h3 { color: var(--blue); font-size: 1.4rem; margin-bottom: 12px; }

.banner {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 40px;
    align-items: center;
    background: var(--cream);
    padding: 56px;
    border-radius: 36px;
    margin-top: 78px;
    margin-bottom: 78px;
    box-shadow: 0 12px 38px rgba(21, 23, 46, .08);
}
.banner h2 { margin-bottom: 0; }
.banner p:last-child {
    font: 500 1.35rem/1.65 'Source Serif 4', serif;
    color: #2c2e42;
    margin-bottom: 0;
}
.contact { padding-top: 22px; }
.contact-box {
    text-align: center;
    background: linear-gradient(135deg, var(--blue), #17194f);
    color: var(--white);
    border-radius: 42px;
    padding: 70px 30px;
    position: relative;
    overflow: hidden;
}
.contact-box::before {
    content: "";
    position: absolute;
    inset: auto -6% -18% -6%;
    height: 20px;
    background: linear-gradient(90deg, var(--red), #f26522, var(--gold), var(--green), var(--teal), var(--blue), var(--purple));
}
.contact-box h2 { color: var(--white); }
.contact-box p { color: rgba(255,255,255,.78); }
.socials {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 26px;
}
.socials a {
    border: 1px solid rgba(255,255,255,.24);
    background: rgba(255,255,255,.08);
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    transition: transform .22s ease, background .22s ease, border-color .22s ease;
}
.socials a:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.42);
}
.socials svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex: 0 0 auto;
}
.footer {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 24px 0 42px;
    color: var(--muted);
    font-weight: 700;
}
.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}
.footer p { margin: 0; font-size: .95rem; }
.footer a { color: var(--blue); }
.transparency-note {
    margin-top: 18px;
    padding: 18px 22px;
    border-top: 1px solid rgba(40, 43, 120, .14);
    border-bottom: 1px solid rgba(40, 43, 120, .08);
    background: linear-gradient(135deg, rgba(244, 246, 251, .78), rgba(255, 250, 241, .62));
    border-radius: 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
}
.transparency-note strong {
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .72rem;
    white-space: nowrap;
}
.transparency-note span {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.55;
    font-weight: 600;
}

@media (max-width: 920px) {
    .nav-links {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        padding: 18px;
        background: var(--white);
        border-radius: 24px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        display: none;
    }
    .nav-links a { padding: 10px 12px; }
    #nav-toggle:checked ~ .nav-links { display: flex; }
    .menu-button { display: grid; gap: 5px; cursor: pointer; }
    .menu-button span { display: block; width: 28px; height: 3px; background: var(--blue); border-radius: 99px; }
    .hero, .split, .banner, .two-columns { grid-template-columns: 1fr; }
    .hero { padding-bottom: 60px; }
    .hero-copy { padding-bottom: 0; }
    .hero-card { justify-self: center; width: min(440px, 100%); }
    .four, .three { grid-template-columns: repeat(2, 1fr); }
    .image-panel img { height: 420px; }
}

@media (max-width: 620px) {
    .site-header { min-height: auto; }
    .hero { margin-top: 18px; min-height: auto; }
    h1 { font-size: clamp(3.2rem, 18vw, 5.4rem); }
    .hero-subtitle { font-size: 1.25rem; }
    .button { width: 100%; }
    .four, .three { grid-template-columns: 1fr; }
    .section { padding: 68px 0; }
    .dark, .light { padding-top: 68px; padding-bottom: 68px; }
    .banner { padding: 34px 22px; border-radius: 28px; }
    .cover-strip img { border-radius: 18px; }
    .footer { flex-direction: column; }
}

/* Animated ballot mark */
.ballot-message {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 30px;
    padding: 12px 18px 12px 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(40, 43, 120, .10);
    box-shadow: 0 18px 45px rgba(21, 23, 46, .10);
    backdrop-filter: blur(12px);
}
.ballot-icon {
    width: 86px;
    min-width: 86px;
    height: 68px;
    display: grid;
    place-items: center;
}
.ballot-icon svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}
.ballot-paper {
    fill: #ffffff;
    stroke: var(--blue);
    stroke-width: 4;
    filter: drop-shadow(0 10px 18px rgba(40, 43, 120, .14));
}
.ballot-fold {
    fill: rgba(242, 197, 0, .22);
    stroke: var(--blue);
    stroke-width: 3;
    stroke-linejoin: round;
}
.ballot-line {
    fill: none;
    stroke: rgba(40, 43, 120, .34);
    stroke-width: 5;
    stroke-linecap: round;
}
.ballot-cross {
    fill: none;
    stroke: url(#ballotAccent);
    stroke-width: 9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ballot-cross-one {
    stroke-dasharray: 21;
    stroke-dashoffset: 21;
    animation: voteMarkOne 3.8s ease-in-out infinite;
}
.ballot-cross-two {
    stroke-dasharray: 72;
    stroke-dashoffset: 72;
    animation: voteMarkTwo 3.8s ease-in-out infinite;
}
.ballot-message p {
    margin: 0;
    line-height: 1.25;
}
.ballot-message strong {
    display: block;
    color: var(--blue);
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.ballot-message span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
}
@keyframes voteMarkOne {
    0%, 14% { stroke-dashoffset: 21; opacity: 0; }
    18% { opacity: 1; }
    28%, 78% { stroke-dashoffset: 0; opacity: 1; }
    92%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes voteMarkTwo {
    0%, 27% { stroke-dashoffset: 72; opacity: 0; }
    31% { opacity: 1; }
    50%, 78% { stroke-dashoffset: 0; opacity: 1; }
    92%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ballot-cross-one,
    .ballot-cross-two {
        animation: none;
        stroke-dashoffset: 0;
    }
}
@media (max-width: 620px) {
    .ballot-message {
        width: 100%;
        align-items: flex-start;
    }
    .ballot-icon {
        width: 76px;
        min-width: 76px;
        height: 60px;
    }
}

/* Mobile refinement for the transparency notice */
@media (max-width: 620px) {
    .transparency-note {
        display: block;
        padding: 18px 18px 20px;
        border-radius: 20px;
        text-align: left;
    }

    .transparency-note strong {
        display: block;
        margin-bottom: 10px;
        white-space: normal;
        line-height: 1.25;
        font-size: .72rem;
    }

    .transparency-note span {
        display: block;
        max-width: 100%;
        font-size: .86rem;
        line-height: 1.6;
        font-weight: 600;
        word-break: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 380px) {
    .transparency-note {
        padding: 16px;
    }

    .transparency-note span {
        font-size: .82rem;
        line-height: 1.55;
    }
}


/* Social icon size hard-fix for mobile/hosting cache quirks */
.socials {
    align-items: center;
}
.socials a {
    min-height: 46px;
    line-height: 1;
}
.socials svg,
.socials .social-icon {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    display: inline-block !important;
    fill: currentColor;
    flex: 0 0 18px !important;
}
.socials span {
    display: inline-block;
    line-height: 1;
}

@media (max-width: 620px) {
    .socials {
        gap: 10px;
        margin-top: 22px;
    }
    .socials a {
        padding: 11px 14px;
        font-size: .88rem;
        border-radius: 999px;
        min-height: 42px;
    }
    .socials svg,
    .socials .social-icon {
        width: 16px !important;
        height: 16px !important;
        max-width: 16px !important;
        max-height: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
        flex-basis: 16px !important;
    }
}

@media (max-width: 430px) {
    .socials {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    .socials a {
        justify-content: center;
        width: 100%;
    }
}

/* Voting information section */
.vote-button {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 16px 36px rgba(207, 23, 49, .18);
}
.vote-section {
    padding-top: 88px;
}
.vote-lead {
    color: var(--muted);
    font-weight: 700;
    margin: 0 auto;
    max-width: 760px;
}
.vote-grid {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    gap: 28px;
    align-items: stretch;
    margin-top: 42px;
}
.vote-info-card,
.vote-map-card,
.vote-detail-card {
    border-radius: 32px;
    background: var(--white);
    box-shadow: 0 18px 52px rgba(21, 23, 46, .10);
    border: 1px solid rgba(40, 43, 120, .10);
}
.vote-info-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.vote-info-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--red), #f26522, var(--gold), var(--green), var(--teal), var(--blue), var(--purple));
}
.vote-date-badge {
    width: 132px;
    height: 132px;
    border-radius: 28px;
    display: grid;
    place-content: center;
    text-align: center;
    background: var(--blue);
    color: var(--white);
    margin-bottom: 26px;
    box-shadow: 0 18px 42px rgba(40, 43, 120, .23);
}
.vote-date-badge span {
    font-size: 3.4rem;
    line-height: .8;
    font-weight: 900;
}
.vote-date-badge strong {
    display: block;
    margin-top: 10px;
    color: var(--gold);
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .08em;
}
.vote-info-card h3 {
    color: var(--blue);
    font-size: 1.7rem;
    margin-bottom: 18px;
}
.vote-details {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    display: grid;
    gap: 12px;
}
.vote-details li {
    color: var(--muted);
    line-height: 1.45;
    padding-left: 18px;
    border-left: 4px solid rgba(207, 23, 49, .22);
}
.vote-details li:last-child {
    border-left-color: var(--red);
    font-weight: 700;
}
.vote-details li:last-child strong {
    color: var(--red);
    font-size: 1.1rem;
    font-weight: 900;
}
.vote-details strong {
    color: var(--blue);
}
.vote-reminder {
    background: var(--light);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 24px;
}
.vote-reminder strong {
    display: block;
    color: var(--red);
    text-transform: uppercase;
    font-size: .78rem;
    letter-spacing: .08em;
    margin-bottom: 4px;
}
.vote-reminder span {
    color: var(--ink);
    font-weight: 800;
}
.vote-actions-row,
.map-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.vote-map-card {
    padding: 14px;
    overflow: hidden;
}
.map-box {
    width: 100%;
    min-height: 420px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--light);
    z-index: 1;
}
.large-map {
    width: 100%;
    height: 560px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 10px solid var(--white);
    margin-top: 34px;
}
.map-caption {
    margin: 12px 8px 4px;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 700;
}
.leaflet-container {
    font-family: 'Montserrat', Arial, sans-serif;
}

/* Map lazy-loading + error states (index preview) */
.map-box.map-loading {
    position: relative;
}
.map-box.map-loading::after {
    content: "Cargando mapa interactivo…";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: .82rem;
    font-weight: 700;
    color: var(--muted);
    background: linear-gradient(to bottom, rgba(244, 246, 251, 0.6), rgba(244, 246, 251, 0.92));
    border-radius: 24px;
    z-index: 2;
    pointer-events: none;
}
.map-box.map-error {
    position: relative;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
    background: var(--light);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    border-radius: 24px;
}
.map-box.map-error::before {
    content: "⚠️";
    display: block;
    font-size: 1.6rem;
    margin-bottom: 8px;
    opacity: .6;
}
.map-box.map-error::after {
    content: "No se pudo cargar el mapa. Usa los botones “Abrir mapa”.";
    font-size: .78rem;
    font-weight: 600;
    opacity: .85;
}

/* Hint that map area is interactive before lazy load */
.map-box:not(.leaflet-container) {
    cursor: pointer;
}
.map-box:not(.leaflet-container):hover {
    box-shadow: 0 0 0 1px rgba(40, 43, 120, 0.12) inset;
}

/* Detail voting page */
.vote-page {
    background: #fff;
}
.vote-page-hero {
    min-height: 64vh;
    background:
        radial-gradient(circle at 15% 35%, rgba(242, 197, 0, .16), transparent 26%),
        radial-gradient(circle at 82% 70%, rgba(207, 23, 49, .12), transparent 27%),
        linear-gradient(135deg, #ffffff 0%, #f3f6ff 100%);
    position: relative;
    overflow: hidden;
}
.vote-page-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14px;
    background: linear-gradient(90deg, var(--red), #f26522, var(--gold), var(--green), var(--teal), var(--blue), var(--purple));
}
.vote-nav {
    position: relative;
}
.simple-links {
    display: flex;
}
.vote-hero-content {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 60px 0 80px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 48px;
    align-items: center;
}

.hero-text {
    /* text stays on the left */
}

.hero-ballot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.hero-ballot svg {
    filter: drop-shadow(0 12px 30px rgba(40, 43, 120, 0.15));
    transition: transform 0.2s ease;
    width: 180px;
    height: 180px;
}

.hero-ballot svg:hover {
    transform: scale(1.04);
}

.ballot-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.02em;
    text-align: center;
}
.ballot-label span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1px;
}
.ballot-label strong {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--red);
    letter-spacing: -0.01em;
}

.vote-hero-content h1 {
    max-width: 980px;
}

@media (max-width: 920px) {
    .vote-hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 60px;
    }
    .hero-ballot {
        justify-self: center;
        order: -1; /* animation on top on tablet/mobile for better visual impact */
    }
    .hero-ballot svg {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 620px) {
    .vote-hero-content {
        padding: 40px 0 50px;
    }
    .hero-ballot svg {
        width: 132px;
        height: 132px;
    }
    .ballot-label strong {
        font-size: 1.4rem;
    }
}
.vote-detail-section {
    padding-bottom: 48px;
}
.vote-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 26px;
}
.vote-detail-card {
    padding: 34px;
}
.main-detail h2 {
    font-size: clamp(2rem, 4vw, 4rem);
}
.detail-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 28px 0;
}
.detail-list div {
    background: var(--light);
    border-radius: 18px;
    padding: 16px;
    padding-left: 24px;
    position: relative;
}

/* Vertical rainbow line separator (matching the campaign rainbow bars) */
.detail-list div::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 6px;
    background: linear-gradient(180deg, var(--red), #f26522, var(--gold), var(--green), var(--teal), var(--blue), var(--purple));
    border-radius: 3px;
}
.detail-list span {
    display: block;
    color: var(--muted);
    font-size: .78rem;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: .08em;
    margin-bottom: 8px;
}
.detail-list strong {
    color: var(--blue);
    font-size: 1.08rem;
}
.detail-note {
    font: 700 1.28rem/1.55 'Source Serif 4', serif;
    color: #2c2e42;
    margin: 0;
}
.checklist-card h3 {
    color: var(--blue);
    font-size: 1.8rem;
}
.clean-steps {
    margin: 22px 0 0;
    padding-left: 24px;
    color: var(--ink);
    font-weight: 800;
    display: grid;
    gap: 18px;
}
.clean-steps li::marker {
    color: var(--red);
    font-weight: 900;
    font-size: 1.4em;
}
.clean-steps li:last-child {
    color: var(--red);
    font-weight: 900;
}
.map-detail-section {
    padding-top: 36px;
}
.map-links {
    justify-content: center;
    margin-top: 24px;
}
.vote-images-section {
    padding-top: 48px;
}
.vote-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-top: 36px;
}
.vote-images-grid > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.vote-images-grid img {
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(21, 23, 46, .12);
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    background: #f4f6fb;
}
.image-caption {
    margin: 0 2px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink);
    text-align: center;
    line-height: 1.35;
}
.image-caption strong {
    color: var(--red);
    font-weight: 900;
}

.image-label {
    font-size: .85rem;
    font-weight: 800;
    color: var(--blue);
    text-align: center;
    letter-spacing: .02em;
}
.image-label strong {
    color: var(--red);
    font-weight: 900;
}

.vote-final-banner {
    margin-top: 52px;
}

/* Strong emphasis on LISTA 2 (critical for donde-votar.html) */
.lista2-hero {
    margin-top: 18px;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--red);
    background: rgba(207, 23, 49, 0.08);
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    border: 2px solid rgba(207, 23, 49, 0.25);
}
.lista2-hero strong {
    font-weight: 900;
    color: var(--red);
}

.lista2-callout {
    background: var(--red);
    color: #fff;
    border-radius: 22px;
    padding: 22px 20px 20px;
    text-align: center;
    margin: 18px 0 12px;
    box-shadow: 0 12px 32px rgba(207, 23, 49, 0.35);
    border: 4px solid #fff;
}
.lista2-callout .lista2-label {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .95;
    margin-bottom: 4px;
}
.lista2-callout .lista2-number {
    font-size: 3.1rem;
    font-weight: 900;
    line-height: .9;
    letter-spacing: -.02em;
    color: #fff;
}
.lista2-callout .lista2-name {
    font-size: 1.45rem;
    font-weight: 800;
    margin-top: 6px;
    line-height: 1.1;
}
.lista2-callout .lista2-sub {
    font-size: .9rem;
    font-weight: 600;
    margin-top: 2px;
    opacity: .92;
}

/* Adapt the big Lista 2 callout for the teaser on the main landing page */
.vote-info-card .lista2-callout {
    padding: 16px 14px 14px;
    margin: 12px 0 6px;
    border-width: 3px;
}
.vote-info-card .lista2-callout .lista2-number {
    font-size: 2.35rem;
}
.vote-info-card .lista2-callout .lista2-name {
    font-size: 1.15rem;
    margin-top: 4px;
}
.vote-info-card .lista2-callout .lista2-label {
    font-size: .7rem;
    margin-bottom: 2px;
}

.papeleta-row {
    background: rgba(207, 23, 49, 0.12) !important;
}
.papeleta-row::before {
    width: 8px;
}
.papeleta-row strong {
    color: var(--red) !important;
    font-size: 1.2rem !important;
}

.lista2-instructions {
    max-width: 620px;
    margin: 12px auto 0;
}

@media (max-width: 920px) {
    .vote-grid,
    .vote-detail-grid,
    .vote-images-grid {
        grid-template-columns: 1fr;
    }
    .map-box,
    .large-map {
        height: 420px;
        min-height: 0;
    }
    .detail-list {
        grid-template-columns: 1fr;
    }
    .simple-links {
        position: static;
        display: flex;
        flex-direction: row;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }
}

@media (max-width: 620px) {
    .vote-grid {
        gap: 20px;
        margin-top: 30px;
    }
    .vote-info-card,
    .vote-detail-card {
        padding: 24px 20px;
        border-radius: 26px;
    }
    .vote-date-badge {
        width: 112px;
        height: 112px;
        border-radius: 24px;
    }
    .vote-date-badge span {
        font-size: 2.8rem;
    }
    .vote-actions-row .button,
    .map-links .button {
        width: 100%;
    }
    .map-box,
    .large-map {
        height: 340px;
        min-height: 0;
        border-radius: 20px;
    }
    .large-map {
        border-width: 8px;
    }
    .vote-hero-content {
        padding: 40px 0 74px;
    }

    /* Scale down the big Lista 2 callout on mobile */
    .lista2-callout .lista2-number {
        font-size: 2.55rem;
    }
    .lista2-callout .lista2-name {
        font-size: 1.25rem;
    }
    .simple-links {
        gap: 10px;
        font-size: .78rem;
    }
    .simple-links .nav-cta {
        padding: 10px 12px;
    }
}
