@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --blue-dark: #0d2e6e;
  --blue-mid: #1a5299;
  --blue-light: #e8f0fb;
  --red: #c0392b;
  --red-light: #fdf0ef;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-border: #dde3ed;
  --text: #1a1a2e;
  --text-muted: #5a6275;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  background: var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(13,46,110,.3);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img { height: 44px; }

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .03em;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background .2s, color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.nav-links a.active {
  border-bottom: 2px solid var(--red);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  color: white;
  padding: 72px 24px 64px;
  text-align: center;
}

.hero-logo { margin-bottom: 32px; }
.hero-logo img { height: 90px; }

.hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero .sub {
  font-size: 1.1rem;
  opacity: .85;
  margin-bottom: 32px;
}

.hero .dates-banner {
  display: inline-flex;
  gap: 24px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 14px 28px;
  font-family: 'Raleway', sans-serif;
  font-size: .9rem;
  font-weight: 600;
}

.dates-banner span { display: flex; align-items: center; gap: 8px; }
.dates-banner .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* ── CONTAINERS ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SECTION ── */
section { padding: 64px 0; }
section.alt { background: var(--gray-light); }

.section-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.section-title .accent { color: var(--red); }

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.divider {
  width: 48px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 16px 0 32px;
}

/* ── PROFESSION DE FOI ── */
.foi-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}

.foi-photo {
  text-align: center;
}

.foi-photo img {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(13,46,110,.18);
  border: 3px solid var(--white);
  outline: 1px solid var(--gray-border);
}

.foi-photo .name {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  margin-top: 12px;
  font-size: 1rem;
}

.foi-photo .role {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.foi-text p {
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.foi-text blockquote {
  border-left: 4px solid var(--red);
  padding: 16px 20px;
  background: var(--blue-light);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--blue-dark);
  margin: 24px 0;
  font-size: 1.05rem;
}

.foi-signature {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-border);
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
}

/* ── PILLARS ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.pillar {
  background: var(--white);
  border-radius: 10px;
  padding: 24px 20px;
  border-top: 4px solid var(--blue-mid);
  box-shadow: 0 2px 12px rgba(13,46,110,.07);
}

.pillar.red { border-top-color: var(--red); }

.pillar .icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.pillar h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1rem;
  margin-bottom: 8px;
}

.pillar p { font-size: .9rem; color: var(--text-muted); }

/* ── CANDIDATES ── */
.candidate-hero {
  display: flex;
  gap: 32px;
  align-items: center;
  background: var(--blue-dark);
  border-radius: 12px;
  padding: 32px;
  color: white;
  margin-bottom: 48px;
}

.candidate-hero img {
  width: 130px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,.2);
}

.candidate-hero .tag {
  display: inline-block;
  background: var(--red);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.candidate-hero h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.candidate-hero .sub { opacity: .8; font-size: .95rem; }

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.candidate-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-border);
  padding: 24px 20px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}

.candidate-card:hover {
  box-shadow: 0 8px 24px rgba(13,46,110,.1);
  transform: translateY(-2px);
}

.candidate-card .photo-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
}

.candidate-card .photo-wrap img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-border);
}

.candidate-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: white;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  position: absolute;
  bottom: 0;
  right: 0;
  border: 2px solid white;
}

.candidate-card .num-plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: white;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: 12px;
}

.candidate-card h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1rem;
  margin-bottom: 4px;
}

.candidate-card .city {
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── ELECTIONS PAGE ── */
.info-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-border);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(13,46,110,.05);
}

.info-card h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card h3 .badge {
  background: var(--blue-dark);
  color: white;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: .78rem;
  letter-spacing: .04em;
}

.info-card h3 .badge.red { background: var(--red); }

.vote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.vote-box {
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
}

.vote-box.online {
  background: var(--blue-light);
  border: 2px solid var(--blue-mid);
}

.vote-box.urne {
  background: var(--red-light);
  border: 2px solid var(--red);
}

.vote-box .vote-icon { font-size: 2.5rem; margin-bottom: 16px; }

.vote-box h3 {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.vote-box.online h3 { color: var(--blue-dark); }
.vote-box.urne h3 { color: var(--red); }

.vote-box .date {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.vote-box p { font-size: .92rem; color: var(--text-muted); }

.steps { list-style: none; counter-reset: steps; margin-top: 16px; }
.steps li {
  counter-increment: steps;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: .92rem;
}

.steps li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-mid);
  color: white;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── CONTACT ── */
.contact-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-border);
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(13,46,110,.08);
}

.contact-box .icon { font-size: 2.5rem; margin-bottom: 20px; }

.contact-box h2 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.contact-box p { color: var(--text-muted); margin-bottom: 28px; }

.btn-mail {
  display: inline-block;
  background: var(--blue-dark);
  color: white;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  transition: background .2s;
}

.btn-mail:hover { background: var(--blue-mid); }

/* ── FOOTER ── */
footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 32px 24px;
  font-size: .85rem;
}

footer a { color: rgba(255,255,255,.8); text-decoration: none; }
footer a:hover { color: white; }
footer .footer-logo img { height: 36px; opacity: .8; margin-bottom: 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .foi-layout { grid-template-columns: 1fr; }
  .foi-photo { display: flex; align-items: center; gap: 20px; text-align: left; }
  .foi-photo img { width: 100px; height: 120px; }
  .pillars { grid-template-columns: 1fr; }
  .candidates-grid { grid-template-columns: repeat(2, 1fr); }
  .vote-grid { grid-template-columns: 1fr; }
  .candidate-hero { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 1.7rem; }
  .nav-links a { padding: 8px 10px; font-size: .85rem; }
}
