/* ============================================================
   La Voz del Pueblo — Fuerza del Pueblo
   Identidad: verde FP, tipografía Libre Franklin + Archivo + Lora
   ============================================================ */

:root {
  --green:        #167a3e;
  --green-dark:   #0c5128;
  --green-darker: #073d1e;
  --green-soft:   #e8f2ec;

  --ink:          #0c1518;   /* fondo oscuro del hero */
  --ink-2:        #14242a;

  --chart-green:  #1fae53;
  --chart-blue:   #2aa7e0;
  --chart-purple: #9b2d8a;
  --chart-gray:   #9aa1a4;

  --paper:        #ffffff;
  --bg:           #f3f5f4;
  --bg-soft:      #e9edec;
  --footer:       #2b2e30;
  --footer-2:     #232629;

  --text:         #16201d;
  --text-soft:    #5b6663;
  --line:         #e2e6e4;

  --maxw: 1120px;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Libre Franklin", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --cond:  "Archivo", "Libre Franklin", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Barra superior / nav ---------- */
.topbar {
  background: var(--green);
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand .logo-mark {
  width: 40px; height: 40px; flex-shrink: 0;
}
.brand .logo-text { line-height: .95; }
.brand .logo-text b {
  font-family: var(--cond);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .5px;
  display: block;
}
.brand .logo-text span {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 3px;
  opacity: .85;
}

.mainnav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  flex: 1;
}
.mainnav a {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 4px;
  color: #eaf4ee;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.mainnav a:hover,
.mainnav a.is-active { background: rgba(255,255,255,.16); color:#fff; }

.nav-tools { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-tools form { display: flex; }
.nav-search {
  display: flex; align-items: center;
  background: rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 4px 6px 4px 12px;
  width: 0; overflow: hidden;
  transition: width .25s ease;
}
.nav-search.open { width: 200px; }
.nav-search input {
  background: transparent; border: 0; outline: 0; color: #fff;
  font-size: 13px; width: 100%;
}
.nav-search input::placeholder { color: rgba(255,255,255,.7); }
.icon-btn {
  background: transparent; border: 0; cursor: pointer; color: #fff;
  display: grid; place-items: center; padding: 6px; border-radius: 6px;
}
.icon-btn:hover { background: rgba(255,255,255,.16); }
.btn-suscribe {
  background: #fff; color: var(--green-dark);
  font-weight: 800; font-size: 12px; letter-spacing: .6px;
  text-transform: uppercase; padding: 9px 16px; border-radius: 4px;
  white-space: nowrap;
}
.btn-suscribe:hover { background: var(--green-soft); }
.nav-toggle { display: none; }
.mobile-nav { display: none; }   /* oculto por defecto; solo visible al abrir en móvil */

/* ---------- HERO encuesta ---------- */
.hero {
  background: radial-gradient(120% 120% at 20% 0%, #18313a 0%, var(--ink) 55%);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: end;
  min-height: 420px;
}
.hero-figure { position: relative; align-self: end; }
.hero-figure img { max-height: 440px; margin-top: 18px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }

.hero-poll { padding: 40px 0 30px 10px; }
.hero-poll h2 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.25;
  margin: 0 0 4px;
  max-width: 460px;
}
.hero-poll .base {
  font-size: 13px; color: #b9c6c2; margin-bottom: 22px;
}
.poll-chart {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 230px;
  border-bottom: 2px solid rgba(255,255,255,.25);
  padding-bottom: 0;
}
.poll-bar { flex: 1; text-align: center; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.poll-bar .pct {
  font-family: var(--cond);
  font-weight: 800;
  font-size: 27px;
  margin-bottom: 8px;
}
.poll-bar .bar {
  border-radius: 4px 4px 0 0;
  width: 100%;
  min-height: 6px;
  transition: height .9s cubic-bezier(.22,1,.36,1);
}
.poll-bar .cand {
  font-size: 11px; line-height: 1.3; color: #d7e0dd; margin-top: 9px;
  min-height: 30px;
}
.hero-source {
  text-align: right; font-size: 12px; color: #aebab6; padding: 10px 0 16px;
}
.hero-source b { color: #fff; }

/* ---------- Secciones ---------- */
.section { padding: 48px 0; }
.section-head {
  text-align: center;
  margin-bottom: 30px;
}
.section-head h2 {
  font-family: var(--cond);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--green-darker);
}
.section-head .rule {
  width: 64px; height: 4px; background: var(--green); margin: 0 auto; border-radius: 2px;
}

/* tarjetas de noticias destacadas */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.ncard { background: transparent; }
.ncard .thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 3px;
  margin-bottom: 14px;
  background: var(--bg-soft);
}
.ncard .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ncard:hover .thumb img { transform: scale(1.04); }
.ncard .kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--green); margin-bottom: 6px;
}
.ncard h3 {
  font-size: 18px; line-height: 1.3; margin: 0 0 10px; font-weight: 800;
}
.ncard h3 a:hover { color: var(--green); }
.ncard p { font-size: 14px; color: var(--text-soft); margin: 0; }

/* ---------- Franja de video / obras de gobierno ---------- */
.obras {
  background: #cfe0d7;
  padding: 40px 0;
}
.obras .wrap {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 30px;
  align-items: center;
}
.video-frame {
  background: #fff;
  border: 3px solid #fff;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  aspect-ratio: 16 / 8.5;
  overflow: hidden;
  position: relative;
  display: grid; place-items: center;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-frame .placeholder {
  font-family: var(--cond); font-weight: 800; font-size: 44px;
  color: #1d2b24; letter-spacing: 2px;
}
.video-frame .play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.obras-right { text-align: right; position: relative; }
.obras-right h3 {
  font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1.05;
  color: var(--green-dark); text-transform: uppercase; margin: 0 0 14px;
}
.obras-right img { margin-left: auto; max-height: 220px; }

/* ---------- Bloque inferior: Bosch + Actividades ---------- */
.lower { padding: 50px 0; }
.lower .wrap { display: grid; grid-template-columns: 320px 1fr; gap: 44px; }

.bosch {
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.bosch .head { padding: 18px 20px 10px; }
.bosch .head b {
  font-family: var(--cond); font-weight: 800; font-size: 30px; letter-spacing: 1px;
  display: block; line-height: .95;
}
.bosch .head span { font-style: italic; font-size: 15px; color: #cdd6d3; }
.bosch .portrait { position: relative; }
.bosch .portrait img { width: 100%; filter: grayscale(.2); }
.bosch .dates {
  position: absolute; right: 0; bottom: 0;
  background: var(--green); color: #fff;
  font-weight: 700; font-size: 13px; text-align: center;
  padding: 8px 14px; line-height: 1.3;
}
.promesas {
  margin-top: 22px; background: #c9cdcb; border-radius: 4px; padding: 16px;
}
.promesas h4 {
  font-family: var(--cond); font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; margin: 0 0 12px; color: #2a2f2d; font-size: 18px;
}
.promesas .video-frame { background: #b4b9b7; border-color:#b4b9b7; aspect-ratio: 16/10; }
.promesas .video-frame .placeholder { color:#3a403d; font-size: 34px; }

.actividades-col h2 {
  font-family: var(--cond); font-weight: 800; font-size: 25px; letter-spacing: 1px;
  text-transform: uppercase; color: var(--green-darker);
  border-bottom: 3px solid var(--green); padding-bottom: 10px; margin: 0 0 24px;
}
.act-item { display: grid; grid-template-columns: 200px 1fr; gap: 20px; margin-bottom: 30px; }
.act-item .thumb { aspect-ratio: 4/3; overflow: hidden; border-radius: 4px; background: var(--bg-soft); }
.act-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.act-item h3 { font-size: 17px; margin: 0 0 8px; font-weight: 800; }
.act-item p { font-size: 13.5px; color: var(--text-soft); margin: 0 0 6px; }
.act-item .meta { font-size: 12px; color: var(--green); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #cfd3d1; }
.site-footer .logos {
  display: flex; align-items: center; justify-content: center; gap: 40px;
  padding: 32px 0 26px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer .logos svg, .site-footer .logos img { height: 46px; width: auto; }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr; gap: 36px;
  padding: 40px 0;
}
.foot-grid h5 {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: 1px;
  font-size: 14px; color: #fff; margin: 0 0 16px;
}
.foot-grid p { font-size: 13px; line-height: 1.65; color: #aeb4b2; margin: 0; }
.foot-links a { display: block; font-size: 13px; padding: 5px 0; color: #c4c9c7; }
.foot-links a:hover { color: #fff; }
.foot-read .item { margin-bottom: 14px; }
.foot-read .item a { font-size: 13px; color: #d8dcda; font-weight: 600; }
.foot-read .item span { display:block; font-size: 11px; color: var(--chart-green); text-transform: uppercase; letter-spacing:.5px; margin-top:2px;}
.foot-sub form { display: flex; flex-direction: column; gap: 10px; }
.foot-sub input {
  padding: 11px 12px; border-radius: 4px; border: 0; font-size: 13px; width: 100%;
}
.foot-sub button {
  background: var(--green); color: #fff; border: 0; padding: 11px;
  border-radius: 4px; font-weight: 700; cursor: pointer; letter-spacing: .5px;
}
.foot-sub button:hover { background: var(--chart-green); }
.copyright {
  text-align: center; font-size: 12px; color: #8b9290;
  padding: 18px 0; border-top: 1px solid rgba(255,255,255,.08);
  background: var(--footer-2);
}

/* ---------- Mensajes ---------- */
.flash { max-width: var(--maxw); margin: 14px auto 0; padding: 0 20px; }
.flash .msg {
  padding: 12px 16px; border-radius: 4px; font-size: 14px; margin-bottom: 8px;
  border-left: 4px solid var(--green); background: var(--green-soft); color: var(--green-darker);
}
.flash .msg.error { border-color:#c0392b; background:#fdecea; color:#922b21; }

/* ---------- Páginas internas ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--green-dark), var(--green-darker));
  color: #fff; padding: 46px 0;
}
.page-hero h1 { font-family: var(--cond); font-weight: 800; font-size: 38px; margin: 0 0 8px; letter-spacing: .5px; }
.page-hero p { margin: 0; color: #d4e3da; max-width: 620px; }
.breadcrumb { font-size: 12px; color: #bcd2c5; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.breadcrumb a:hover { color: #fff; }

/* Artículo */
.article { background: #fff; }
.article .wrap { max-width: 760px; padding-top: 40px; padding-bottom: 50px; }
.article .kicker { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; }
.article h1 { font-family: var(--cond); font-weight: 800; font-size: 38px; line-height: 1.15; margin: 8px 0 14px; }
.article .byline { font-size: 13px; color: var(--text-soft); border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 24px; }
.article .lead { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: #25302c; font-weight: 500; margin-bottom: 22px; }
.article figure.hero-img { margin: 0 0 26px; }
.article figure.hero-img img { width: 100%; border-radius: 4px; }
.article figure.hero-img figcaption { font-size: 12px; color: var(--text-soft); margin-top: 6px; }
.article .body { font-family: var(--serif); font-size: 18px; line-height: 1.78; color: #232b28; }
.article .body p { margin: 0 0 20px; }
.article .body h2.sub {
  font-family: var(--sans); font-weight: 800; font-size: 22px; color: var(--green-darker);
  margin: 34px 0 14px; line-height: 1.25;
}

/* Listados */
.list-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; }

/* Secretarías */
.bloque-sec { margin-bottom: 46px; }
.bloque-sec > h2 {
  font-family: var(--cond); font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
  color: var(--green-darker); font-size: 23px; border-left: 5px solid var(--green);
  padding-left: 12px; margin: 0 0 22px;
}
.sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.sec-card {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  display: grid; grid-template-columns: 132px 1fr;
}
.sec-card.featured { grid-column: 1 / -1; grid-template-columns: 210px 1fr; }
.sec-card .ph {
  background: var(--green-soft); position: relative; overflow: hidden;
}
.sec-card .ph img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sec-card .ph .initials {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--cond); font-weight: 800; font-size: 32px; color: var(--green);
}
.sec-card .body { padding: 16px 18px; }
.sec-card .body .tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--green); background: var(--green-soft); padding: 3px 8px; border-radius: 3px;
  display: inline-block; margin-bottom: 8px;
}
.sec-card .body h3 { font-size: 16px; margin: 0 0 4px; line-height: 1.25; }
.sec-card .body .titular { font-size: 14px; font-weight: 700; color: var(--green-dark); margin: 0 0 8px; }
.sec-card .body .titular.vacante { color: #b7791f; font-style: italic; font-weight: 600; }
.sec-card .body p { font-size: 13px; color: var(--text-soft); margin: 0; }

/* Provincias / partido genéricos */
.prose { background:#fff; }
.prose .wrap { max-width: 760px; padding: 44px 20px 56px; }
.prose h2 { font-family: var(--cond); color: var(--green-darker); font-size: 26px; margin: 30px 0 12px; }
.prose p { font-family: var(--serif); font-size: 18px; line-height: 1.75; color: #232b28; }

.empty { text-align:center; color: var(--text-soft); padding: 40px 0; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-figure { display: none; }
  .hero-poll { padding: 34px 0 24px; }
  .obras .wrap { grid-template-columns: 1fr; }
  .obras-right { text-align: center; }
  .obras-right img { margin: 0 auto; }
  .lower .wrap { grid-template-columns: 1fr; }
  .cards-3, .list-grid, .sec-grid { grid-template-columns: 1fr; }
  .sec-card.featured { grid-template-columns: 132px 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .mainnav, .nav-tools .btn-suscribe { display: none; }
  .nav-toggle { display: grid; place-items:center; }
  .mobile-nav { display:none; background: var(--green-dark); }
  .mobile-nav.open { display:block; }
  .mobile-nav a { display:block; color:#eaf4ee; padding: 12px 20px; border-bottom:1px solid rgba(255,255,255,.08); font-weight:600; font-size:14px; }
}
@media (max-width: 560px) {
  .act-item { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .poll-bar .pct { font-size: 21px; }
  .article h1 { font-size: 28px; }
}
