:root {
    --navy: #16357a;
    --navy-dark: #0d2458;
    --mint: #b8f3d2;
    --cyan: #7fe7e2;
    --pink: #e23b7a;
    --ink: #12203a;
    --muted: #5a6a82;
    --paper: #f3fbf8;
    --white: #ffffff;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.topbar {
    background: var(--navy-dark);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    gap: 16px;
}

.logo {
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.topbar nav { display: flex; gap: 18px; }
.topbar nav a {
    color: #d7e4ff;
    text-decoration: none;
    font-size: 0.95rem;
}
.topbar nav a:hover { color: var(--white); }

.banner img {
    width: 100%;
    height: auto;
    background: linear-gradient(180deg, #b8f3d2, #7fe7e2);
}

.intro { padding: 56px 0 28px; background: var(--paper); }
.intro-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--pink);
}
.eyebrow.light { color: #ffd0e0; }

.intro h1, .topics h2, .cta h2 {
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}
.intro h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.topics h2, .cta h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

.lead { margin: 0; font-size: 1.12rem; max-width: 38rem; }

.ticket {
    background: var(--white);
    border: 3px solid var(--pink);
    border-radius: 50%;
    aspect-ratio: 1;
    width: min(260px, 100%);
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px 22px;
}
.ticket-kicker { margin: 0; font-size: 0.78rem; color: var(--muted); }
.ticket-date {
    margin: 4px 0 8px;
    font-weight: 800;
    color: var(--pink);
    font-size: 1.05rem;
    line-height: 1.25;
}
.ticket p { margin: 0 0 12px; font-size: 0.88rem; }

.btn {
    display: inline-block;
    text-decoration: none;
    background: var(--navy);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
}
.btn-light { background: var(--white); color: var(--navy-dark); }
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.45);
}

.topics { padding: 20px 0 10px; }
.section-lead { color: var(--muted); margin: 0 0 10px; }

.story { padding: 28px 0; }
.story:nth-child(even) { background: var(--paper); }

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}
.story-flip .story-grid { direction: rtl; }
.story-flip .story-body { direction: ltr; }

.story figure {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(13, 36, 88, 0.12);
}
.story figure img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}
.story-body h3 {
    margin: 0 0 12px;
    font-size: 1.55rem;
    line-height: 1.2;
}
.story-body p { margin: 0 0 12px; }
.vote-line {
    margin-top: 8px;
    font-weight: 700;
    color: var(--pink);
}

.cta {
    background: linear-gradient(120deg, var(--navy-dark), var(--navy));
    color: var(--white);
    padding: 56px 0;
}
.cta-box {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}
.cta p { margin: 0; color: #d7e4ff; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.countdown { margin: 18px 0 0; font-size: 1.05rem; }
.countdown strong { color: var(--pink); }

.program { padding: 56px 0; }
.prio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 24px;
}
.prio {
    background: var(--paper);
    border-radius: 16px;
    padding: 18px 16px 16px;
}
.prio span {
    display: block;
    color: var(--pink);
    font-weight: 800;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.prio h3 { margin: 0 0 8px; font-size: 1.05rem; }
.prio p { margin: 0; color: #334; font-size: 0.95rem; }

.vote-guide { padding: 56px 0; background: var(--paper); }
.ways {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px 0 22px;
}
.way {
    background: var(--white);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 10px 28px rgba(13, 36, 88, 0.06);
}
.way-num {
    margin: 0 0 6px;
    color: var(--pink);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.way h3 { margin: 0 0 8px; font-size: 1.12rem; }
.way p { margin: 0; }
.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.facts div {
    background: var(--white);
    border-radius: 14px;
    padding: 14px;
}
.facts strong { display: block; margin-bottom: 6px; }
.facts p { margin: 0; font-size: 0.92rem; color: #334; }
.faq {
    margin-top: 18px;
    background: var(--white);
    border-radius: 14px;
    padding: 12px 16px;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq dl { margin: 12px 0 4px; }
.faq dt { font-weight: 700; margin-top: 10px; }
.faq dd { margin: 4px 0 0; color: #334; }

.mapa-sec { display: none; padding: 56px 0; background: var(--paper); }
.map-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    min-height: 520px;
}
.map-side {
    background: var(--white);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    min-height: 520px;
    box-shadow: 0 10px 28px rgba(13, 36, 88, 0.08);
}
#mapSearch {
    width: 100%;
    border: 1px solid #d5ece6;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    margin-bottom: 10px;
}
.map-list {
    overflow: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.map-item {
    display: flex;
    gap: 10px;
    text-align: left;
    border: 0;
    background: #f3fbf8;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.map-item:hover, .map-item.is-active { background: #d9f3ea; }
.map-item-num {
    min-width: 42px;
    font-weight: 800;
    color: var(--navy);
    font-size: 0.82rem;
    line-height: 1.25;
}
.map-item-body { display: flex; flex-direction: column; }
.map-item-body strong { font-size: 0.92rem; }
.map-item-body em { font-style: normal; color: var(--muted); font-size: 0.8rem; }
.map-empty { color: var(--muted); padding: 8px; }
.map-canvas {
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(13, 36, 88, 0.08);
}
.vote-pin span {
    display: block;
    width: 16px;
    height: 16px;
    margin: 3px;
    background: #e23b7a;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #16357a;
}
.map-note { margin: 14px 0 0; color: var(--muted); font-size: 0.88rem; }
.leaflet-popup-content a { font-weight: 700; }

footer {
    background: #08162f;
    color: #b9c6db;
    padding: 28px 0;
    font-size: 0.92rem;
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    align-items: end;
}
footer a { color: #e8eef8; text-decoration: none; }
.copy { margin: 0; color: #8ea0bb; }

@media (max-width: 860px) {
    .intro-grid,
    .story-grid,
    .story-flip .story-grid {
        grid-template-columns: 1fr;
        direction: ltr;
    }
    .ticket { margin: 0 auto; }
    .story figure img { height: 240px; }
    .ways, .facts { grid-template-columns: 1fr; }
    .map-layout { grid-template-columns: 1fr; }
    .map-side, .map-canvas { min-height: 340px; }
    .map-list { max-height: 240px; }
}
