@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Instrument+Sans:wght@400;500;600;700&display=swap');

:root {
  --fondo: #f6f7f5;
  --cielo: #e6ecee;
  --tinta: #18221d;
  --gris: #5b6368;
  --linea: #dde1e0;
  --enlace: #1f5f7a;
  --teja: #a9531a;
  --display: 'Bricolage Grotesque', 'Arial Narrow', Arial, sans-serif;
  --texto: 'Instrument Sans', system-ui, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--enlace);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* ---------- Cabecera + portada ---------- */
.sky { background: linear-gradient(180deg, #fbfbf9 0%, #d9e8f0 42%, #e6eee6 78%, #e2ead9 100%); }
.sky.oscuro, .sky.oscuro .brand { color: #fff; }
.sky.oscuro .brand-name span, .sky.oscuro .fecha { color: #efd6ae; }
.sky.oscuro .lead { color: #f3e6da; }
.sky.oscuro .header-acciones .btn-cta { background: #fff; color: var(--tinta); }
.sky.oscuro .header-acciones .btn-cta-sec { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.sky.oscuro .brand svg path:last-child { fill: #e8b97a; }
.astro { opacity: 0; }

.site-header .header-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 16px 0; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 38px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--display); font-weight: 800; font-size: 25px;
  letter-spacing: -.02em; line-height: 1;
}
.brand-name span { font-weight: 500; color: var(--gris); }
nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
nav a { padding: 6px 0; border-bottom: 2px solid transparent; }
nav a:hover { border-color: var(--enlace); }

.fecha { margin: 0 0 14px; color: var(--gris); font-weight: 500; font-size: 16px; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(44px, 7vw, 84px); line-height: .94; letter-spacing: -.035em;
  margin: 0 0 14px;
}
.hero .lead { max-width: 52ch; margin: 0; font-size: 18px; color: #2a3135; }

.hero { position: relative; min-height: clamp(520px, 76vh, 680px); padding: 36px 0 0; overflow: hidden; }
.hero-texto { position: relative; z-index: 2; }
.hero h1 { max-width: 11ch; }
.paisaje { position: absolute; left: 0; bottom: -1px; width: 100%; height: min(56%, 470px); display: block; }
@media (max-width: 640px) { .hero { min-height: 560px; } .paisaje { height: 44%; } .hero h1 { max-width: 9ch; } }

/* ---------- Banda de hoy ---------- */
.hoy { background: var(--tinta); color: #eef1f0; padding: 22px 0 26px; }
.hoy-inner { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.hoy p.frase {
  margin: 0; max-width: 28ch;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(26px, 4vw, 40px); line-height: 1.1; letter-spacing: -.02em;
}
.hoy .frase b { color: #f0b26a; font-weight: 800; }
.hoy a.ir {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  background: #eef1f0; color: var(--tinta); font-weight: 600; font-size: 15px;
}
.hoy a.ir:hover { background: #fff; }

/* ---------- Contenido ---------- */
.main-grid {
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  gap: 56px; padding: 40px 0 80px; align-items: start; scroll-margin-top: 56px;
}

.section-title {
  font-family: var(--display); font-weight: 800; font-size: 32px;
  letter-spacing: -.02em; line-height: 1.1; margin: 0 0 6px;
}
.section-sub { margin: 0 0 26px; color: var(--gris); font-size: 15px; }

.estado-msg { color: var(--gris); padding: 18px 0; margin: 0; }

.story { padding: 22px 0; border-top: 1px solid var(--linea); }
.story h3 {
  margin: 6px 0 0; font-family: var(--display); font-weight: 700;
  font-size: 22px; line-height: 1.22; letter-spacing: -.01em;
}
.story h3 a { background: linear-gradient(var(--enlace), var(--enlace)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.story h3 a:hover { background-size: 100% 2px; }
.story .meta { margin: 0; font-size: 14px; color: var(--gris); }
.story .medio { font-weight: 600; color: var(--enlace); }
.story.lead-story { padding-top: 26px; border-top: 3px solid var(--tinta); }
.story.lead-story h3 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.025em; margin: 10px 0 12px; }

/* ---------- Cortes de agua ---------- */
.panel { background: #fff; border: 1px solid var(--linea); border-radius: 16px; padding: 24px; }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin: 0 0 4px; line-height: 1.1; }
.panel .section-sub { margin-bottom: 16px; }

.filtro { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  padding: 7px 13px; min-height: 36px; border-radius: 999px;
  border: 1px solid var(--linea); background: var(--fondo); color: var(--tinta);
}
.chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }

.aviso-agua {
  display: grid; grid-template-columns: 54px 1fr; gap: 14px;
  padding: 14px 0; border-top: 1px solid var(--linea);
}
.aviso-agua[hidden] { display: none; }
.dia { text-align: center; line-height: 1; }
.dia b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; }
.dia span { font-size: 13px; color: var(--gris); font-weight: 500; }
.dia.es-hoy b { color: var(--enlace); }
.aviso-agua h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.aviso-agua p { margin: 3px 0 0; font-size: 14px; color: var(--gris); }
.badge {
  display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge.sin-servicio { background: #fbe4dc; color: #9d2f10; }
.badge.programada { background: #dcecf1; color: #08475b; }

.btn {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  margin-top: 8px; padding: 11px 18px; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--tinta); background: transparent; color: var(--tinta);
}
.btn:hover { background: var(--tinta); color: #fff; }
.fuente { margin: 16px 0 0; font-size: 13px; color: var(--gris); }
.fuente a { text-decoration: underline; text-underline-offset: 3px; }
.panel p.nota { margin: 0; color: var(--gris); font-size: 15px; }
.panel .enlace { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--enlace); text-decoration: underline; text-underline-offset: 3px; }
.panel.quieto { background: transparent; border-style: dashed; }

.aviso-tiempo { padding: 12px 0 12px 14px; border-left: 5px solid var(--linea); margin-bottom: 10px; }
.aviso-tiempo.nivel-amarillo { border-color: #e3a72f; }
.aviso-tiempo.nivel-naranja { border-color: #e8741c; }
.aviso-tiempo.nivel-rojo { border-color: var(--teja); }
.aviso-tiempo h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.aviso-tiempo p { margin: 4px 0 0; font-size: 14px; color: var(--gris); }

/* ---------- Voz Vecinal ---------- */
.col-principal > .voz { margin-top: 0; }
.voz-barra { display: flex; flex-wrap: wrap; gap: 14px; align-items: end; justify-content: space-between; margin: 0 0 8px; padding-bottom: 18px; border-bottom: 3px solid var(--tinta); }
.btn-primario {
  font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; min-height: 48px;
  padding: 12px 22px; border-radius: 10px; border: 0; background: var(--enlace); color: #fff;
}
.btn-primario:hover { background: #084b61; }
.btn-primario:disabled { opacity: .6; cursor: wait; }
.voz-filtro { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--gris); }
.voz-filtro select, .voz-filtro input, .form-dialogo select, .form-dialogo input, .form-dialogo textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--tinta); background: #fff;
  border: 1px solid #aab2b5; border-radius: 8px; padding: 10px 12px; min-height: 44px; width: 100%;
}
.voz-filtro select { width: auto; min-width: 170px; }
.voz-filtro input[type="search"] { width: 100%; min-width: 0; max-width: 230px; }
.btn-renovar { color: var(--enlace); font-weight: 600; }
.voz-item { padding: 20px 0; border-bottom: 1px solid var(--linea); }
.voz-item .meta { margin: 0 0 4px; font-size: 14px; color: var(--gris); }
.voz-item .medio { font-weight: 600; color: var(--enlace); }
.voz-item h3 { margin: 0 0 6px; font-family: var(--display); font-size: 20px; line-height: 1.25; font-weight: 700; }
.voz-texto { margin: 0 0 12px; max-width: 62ch; }
.voz-item.es-resuelta { opacity: .65; }
.badge.resuelta { background: #dcf1e3; color: #166534; margin: 0; }
.btn-apoyo {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 40px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--tinta); background: transparent; color: var(--tinta);
}
.btn-apoyo:hover { background: var(--tinta); color: #fff; }
.btn-apoyo[aria-pressed="true"] { background: #dcecf1; border-color: var(--enlace); color: #08475b; cursor: default; }

dialog.dlg { width: min(560px, calc(100% - 32px)); border: 0; border-radius: 16px; padding: 28px; color: var(--tinta); background: #fff; }
dialog.dlg::backdrop { background: rgba(20, 24, 27, .6); }
.form-dialogo { display: grid; gap: 16px; }
.form-dialogo[hidden] { display: none; }
.form-dialogo h2, .ok-dialogo h2 { font-family: var(--display); font-size: 28px; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.form-dialogo .nota { margin: 0; color: var(--gris); font-size: 15px; }
.form-dialogo label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form-dialogo textarea { resize: vertical; min-height: 120px; }
.contador { justify-self: end; font-weight: 400; font-size: 13px; color: var(--gris); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 8px; background: #fbe4dc; color: #9d2f10; font-weight: 500; }
.form-error[hidden] { display: none; }
.form-acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.ok-dialogo { display: grid; gap: 14px; justify-items: start; }
.ok-dialogo p { margin: 0; }

/* ---------- Agenda ---------- */
.agenda-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 14px; }
.agenda-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; justify-content: space-between; margin: 0 0 6px; padding-bottom: 18px; border-bottom: 3px solid var(--tinta); }
.agenda-filtros .filtro { margin: 0; }
.agenda-selects { display: flex; flex-wrap: wrap; gap: 10px; }
.agenda-selects label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--gris); }
.agenda-selects select { font: inherit; font-size: 15px; font-weight: 400; color: var(--tinta); background: #fff; border: 1px solid #aab2b5; border-radius: 8px; padding: 8px 10px; min-height: 44px; }
.agenda-acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 18px 0 0; }
.agenda-acciones a.enlace-suave { font-size: 14px; font-weight: 600; color: var(--enlace); text-decoration: underline; text-underline-offset: 3px; }
.agenda-dia { margin: 26px 0 4px; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.agenda-dia.es-hoy { color: var(--enlace); }
.agenda-lista { list-style: none; margin: 0; padding: 0; }
.agenda-item { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--linea); }
.agenda-hora { font-weight: 600; font-size: 15px; padding-top: 2px; }
.agenda-hora.sin { color: var(--gris); font-weight: 500; font-size: 13px; }
.agenda-item h4 { margin: 0 0 3px; font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.agenda-item h4 a { background: linear-gradient(var(--enlace), var(--enlace)) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.agenda-item h4 a:hover { background-size: 100% 2px; }
.agenda-meta { margin: 0; font-size: 14px; color: var(--gris); }
.etiqueta { display: inline-block; margin-top: 6px; margin-right: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #e6ecee; color: #2a3135; }
.etiqueta.precio { background: #dcecf1; color: #08475b; }

.evento-pagina { padding: 36px 0 80px; max-width: 760px; }
.evento-pagina .volver a { font-size: 15px; color: var(--enlace); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.evento-pagina h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 6vw, 56px); line-height: 1.02; letter-spacing: -.03em; margin: 18px 0 14px; }
.evento-cuando { margin: 0; font-size: 22px; font-weight: 600; }
.evento-donde { margin: 4px 0 0; font-size: 18px; color: var(--gris); }
.evento-dato { margin: 8px 0 0; font-size: 16px; }
.evento-desc { margin: 22px 0 0; font-size: 18px; max-width: 62ch; }
.evento-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.evento-acciones a { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; }
.evento-acciones a.btn { border: 1px solid var(--tinta); color: var(--tinta); background: transparent; }
.evento-acciones a.btn:hover { background: var(--tinta); color: #fff; }
.evento-pagina .fuente { margin-top: 28px; }

.col-principal > .agenda-seccion { margin-bottom: 0; }

/* ---------- Barra de secciones ---------- */
nav.secciones { display: block; position: sticky; top: 0; z-index: 30; gap: 0; font-weight: 400;
  background: rgba(246, 247, 245, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linea); }
.secciones-lista { display: flex; gap: 8px; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.secciones-lista::-webkit-scrollbar { display: none; }
nav.secciones a { flex: none; padding: 8px 15px; min-height: 40px; display: inline-flex; align-items: center;
  border: 1px solid var(--linea); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; }
nav.secciones a:hover { border-color: var(--tinta); }
nav.secciones a[hidden] { display: none; }
nav.secciones a[aria-current="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
@media (max-width: 640px) { .site-header nav { display: none; } }

/* ---------- Pie ---------- */
footer { background: var(--tinta); color: #c9d0d2; padding: 44px 0; }
footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; }
footer strong { font-family: var(--display); font-size: 22px; color: #fff; letter-spacing: -.01em; }
footer p { margin: 6px 0 0; max-width: 40ch; }
footer small { font-size: 14px; }

/* ---------- Móvil ---------- */
@media (max-width: 860px) {
  .main-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 44px 0 64px; }
  .hero { padding-top: 36px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  nav { gap: 16px; font-size: 14px; }
  .site-header .header-inner { padding: 16px 0; }
  .hero .lead { font-size: 17px; }
  .panel { padding: 20px; }
}

/* ---------- Noticias: destacada, tarjetas, lista compacta ---------- */
.story.lead-story { display: grid; gap: 18px; }
.story.lead-story .story-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--linea); }
.story-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-resumen { margin: 10px 0 0; color: var(--tinta); opacity: .82; font-size: 16px; line-height: 1.5; max-width: 62ch; }
.lead-story .story-resumen { font-size: 18px; }
.story time { white-space: nowrap; }

.story-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.story-card { display: flex; flex-direction: column; gap: 12px; }
.story-card .story-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: var(--linea); }
.story-card h3 { font-size: 20px; }
.story-card .story-resumen { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.story-compacta { padding: 14px 0; }
.story-compacta h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin-top: 3px; }
.story-compacta .meta { font-size: 13px; }
.story-compacta .story-img { display: none; }

.story-mas { border-top: 1px solid var(--linea); padding-top: 20px; text-align: center; }

@media (max-width: 640px) {
  .story-grid { grid-template-columns: 1fr; }
}

/* ---------- Voz Vecinal: resumen, normas, filtros, respuesta ---------- */
.voz-resumen { margin: -10px 0 16px; font-size: 15px; color: var(--gris); }
.voz-resumen b { color: var(--tinta); }
.voz-normas { margin: 0 0 20px; font-size: 15px; }
.voz-normas summary { cursor: pointer; font-weight: 600; color: var(--enlace); min-height: 32px; display: flex; align-items: center; }
.voz-normas ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--tinta); max-width: 62ch; }
.voz-filtros { display: flex; flex-wrap: wrap; gap: 12px; }
.voz-barra .voz-filtro select { min-width: 150px; }
.voz-respuesta { margin: 0 0 12px; padding: 10px 14px; border-left: 4px solid var(--enlace); background: #eef5f7; font-size: 15px; max-width: 62ch; }
.voz-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.voz-acciones .btn-apoyo { margin: 0; }
.voz-enlace { font-size: 14px; font-weight: 600; color: var(--enlace); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; display: inline-flex; align-items: center; }
.voz-apoyos-res { font-size: 14px; color: var(--gris); }
#lista-voz .story-mas { border-top: 0; padding-top: 24px; }
@media (max-width: 640px) {
  .voz-filtros { width: 100%; }
  .voz-filtros .voz-filtro { flex: 1 1 140px; }
  .voz-filtros .voz-filtro select { width: 100%; min-width: 0; }
}

/* ---------- Voz Vecinal: mapa por zonas, puntos calientes y semanas ---------- */
.voz-mapa { margin: 0 0 28px; padding: 22px 0 6px; border-top: 1px solid var(--linea); }
.voz-mapa[hidden] { display: none; }
.voz-mapa-titulo { margin: 0 0 4px; font-family: var(--display); font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.voz-mapa-sub { margin: 0 0 16px; font-size: 14px; color: var(--gris); max-width: 62ch; }
.mapa-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(5, 64px); gap: 6px; max-width: 480px; }
.mapa-grid.mapa-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(58px, auto); max-width: none; }
.mapa-comarca { grid-column: 1 / -1; margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--tinta); }
.mapa-comarca:first-child { margin-top: 0; }
.mapa-sin { grid-column: 1 / -1; margin: 0 0 4px; font-size: 13px; color: var(--gris); }
.mapa-zona {
  font: inherit; cursor: pointer; text-align: left; border: 2px solid transparent; border-radius: 10px; padding: 6px 10px;
  display: grid; grid-template-columns: 1fr auto; align-content: center; column-gap: 8px; color: var(--tinta); min-width: 0;
}
.mapa-zona .mz-nombre { font-size: 13px; font-weight: 600; line-height: 1.2; align-self: center; }
.mapa-zona .mz-num { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; justify-self: end; align-self: center; }
.mapa-zona .mz-tipo { grid-column: 1 / -1; font-size: 11px; line-height: 1.2; margin-top: 2px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapa-zona:hover { border-color: var(--tinta); }
.mapa-zona[aria-pressed="true"] { border-color: var(--tinta); box-shadow: 0 0 0 2px #fff inset; }
.n0 { background: #eef1f2; } .n1 { background: #d3e6ec; } .n2 { background: #a4cddb; } .n3 { background: #6aaabf; } .n4 { background: #1f5f7a; }
.mapa-zona.n4 { color: #fff; }
.mapa-leyenda { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: var(--gris); }
.mapa-leyenda i { width: 22px; height: 12px; border-radius: 3px; border: 1px solid rgba(20, 24, 27, .12); }
.voz-insight { margin: 16px 0 0; font-weight: 600; max-width: 62ch; }
.voz-insight[hidden], .voz-calientes[hidden], .voz-semanas[hidden] { display: none; }
.voz-calientes, .voz-semanas { margin-top: 20px; }
.voz-calientes h4, .voz-semanas h4 { margin: 0 0 8px; font-size: 15px; }
.voz-calientes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 62ch; }
.caliente {
  font: inherit; font-size: 15px; width: 100%; text-align: left; cursor: pointer; min-height: 44px; padding: 8px 14px;
  border: 1px solid #aab2b5; border-radius: 10px; background: #fff; color: var(--tinta);
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.caliente:hover { border-color: var(--tinta); }
.caliente small { color: var(--gris); white-space: nowrap; }
.barras { display: flex; align-items: flex-end; gap: 6px; max-width: 480px; height: 118px; }
.barra { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; min-width: 0; }
.barra i { display: block; width: 100%; background: var(--enlace); border-radius: 4px 4px 0 0; }
.barra-valor { font-size: 12px; font-weight: 600; min-height: 14px; }
.barra-et { font-size: 11px; color: var(--gris); white-space: nowrap; }
.voz-datos { margin: 18px 0 0; font-size: 14px; color: var(--gris); }
.voz-datos a { color: var(--enlace); font-weight: 600; }
@media (max-width: 640px) {
  .mapa-grid:not(.mapa-lista) { grid-template-rows: repeat(5, 60px); gap: 5px; }
  .mapa-zona { padding: 4px 6px; grid-template-columns: 1fr; grid-auto-rows: min-content; row-gap: 1px; align-content: center; }
  .mapa-zona .mz-nombre { font-size: 11px; line-height: 1.15; order: 2; }
  .mapa-zona .mz-num { font-size: 22px; order: 1; justify-self: start; }
  .mapa-zona .mz-tipo { display: none; }
}

/* ---------- Pestañas, resumen de la portada y botón de la cabecera ---------- */
.col-principal > section.tab-off { display: none; }
.panel { scroll-margin-top: 64px; }

.btn-cta {
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; min-height: 44px;
  padding: 10px 18px; border-radius: 999px; border: 0; background: var(--tinta); color: #fff;
}
.btn-cta:hover { background: #000; }
.btn-cta[hidden] { display: none; }

.hoy p.frase { max-width: 34ch; font-size: clamp(24px, 3.4vw, 34px); }
.hoy-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 20px; }
.tile {
  display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; min-width: 0;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #eef1f0;
}
.tile[hidden] { display: none; }
.tile:hover { background: rgba(255, 255, 255, .16); }
.tile-et { font-size: 13px; color: #aeb8bc; }
.tile-val { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
.tile.alerta .tile-val { color: #f0b26a; }
@media (max-width: 760px) { .hoy-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

nav.secciones .sep { flex: none; width: 1px; align-self: stretch; margin: 6px 4px; background: var(--linea); }
.pill-n { margin-left: 8px; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--enlace); color: #fff; font-size: 12px; line-height: 1.5; text-align: center; }
.pill-n[hidden] { display: none; }
nav.secciones a[aria-current="true"] .pill-n { background: #fff; color: var(--tinta); }

/* El mapa de Voz Vecinal es un desplegable */
details.voz-mapa { margin: 0 0 22px; padding: 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
details.voz-mapa[hidden] { display: none; }
details.voz-mapa > summary { cursor: pointer; padding: 14px 0; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; min-height: 44px; display: flex; align-items: center; }
details.voz-mapa[open] > summary { padding-bottom: 6px; }
details.voz-mapa > *:not(summary) { margin-left: 0; }
details.voz-mapa > .voz-datos { padding-bottom: 18px; }

/* Cortes y obras de carretera */
.aviso-carretera { padding: 12px 0 12px 14px; border-left: 5px solid #e3a72f; margin-bottom: 10px; }
.aviso-carretera.corte { border-color: var(--teja); }
.aviso-carretera h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.aviso-carretera p { margin: 3px 0 0; font-size: 14px; }
.aviso-carretera .aviso-carretera-meta { color: var(--gris); }
.aviso-carretera .enlace { display: inline-block; margin-top: 4px; font-size: 14px; }
.enlace-boton { font: inherit; font-size: 14px; font-weight: 600; color: var(--enlace); background: none; border: 0; padding: 8px 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-align: left; }

/* Comunidad: cabecera, línea de resumen y tablón */
.header-acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-cta-sec { background: #fff; color: var(--tinta); border: 1px solid var(--tinta); }
.btn-cta-sec:hover { background: var(--tinta); color: #fff; }
.hoy .comunidad { margin: 10px 0 0; font-size: 17px; color: #c9d0d2; }
.hoy .comunidad[hidden] { display: none; }
footer small a { color: inherit; }

.anuncio { padding: 16px 0; border-bottom: 1px solid var(--linea); }
.anuncio.resuelto { opacity: .65; }
.anuncio-meta { margin: 0 0 4px; font-size: 14px; color: var(--gris); }
.anuncio h3 { margin: 0 0 6px; font-family: var(--display); font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.anuncio-texto { margin: 0 0 8px; white-space: pre-wrap; max-width: 62ch; }
.anuncio-contacto { margin: 0; font-weight: 600; }
.anuncio-contacto a { color: var(--enlace); }
.anuncio-caduca { margin: 4px 0 0; font-size: 13px; color: var(--gris); }
.etiqueta.tipo-perdido { background: #f6e3d3; color: #8a2a10; }
.etiqueta.tipo-encontrado, .etiqueta.ok { background: #e0efe5; color: #166534; }
.etiqueta.tipo-ayuda { background: #fdf0cf; color: #7a5200; }
.etiqueta.tipo-ofrezco, .etiqueta.tipo-regalo { background: #dcecf2; color: #0b5568; }
@media (max-width: 640px) { .header-acciones .btn-cta { padding: 10px 14px; font-size: 14px; } }

/* Viento */
.viento-punto { margin: 0 0 12px; }
.viento-punto select { width: 100%; }
.viento-ahora { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
.viento-flecha { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--tinta); color: #fff; font-size: 28px; line-height: 1; transition: transform .3s; }
.viento-num { font-family: var(--display); line-height: 1; white-space: nowrap; }
.viento-num b { font-size: 52px; font-weight: 800; letter-spacing: -.03em; }
.viento-num span { font-size: 16px; font-weight: 600; color: var(--gris); }
.viento-det { display: grid; gap: 2px; font-size: 14px; color: var(--gris); min-width: 0; }
.viento-det strong { color: var(--tinta); font-size: 16px; }
.viento-sub { margin: 18px 0 8px; font-size: 15px; font-weight: 700; }
.viento-horas { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding-bottom: 18px; position: relative; }
.viento-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.viento-barra { width: 100%; border-radius: 3px 3px 0 0; background: #7aa7b5; }
.viento-barra.viento-moderado { background: var(--enlace); }
.viento-barra.viento-fuerte { background: #e3a72f; }
.viento-barra.viento-muyfuerte { background: var(--teja); }
.viento-hora { position: absolute; bottom: -18px; left: 0; font-size: 11px; color: var(--gris); white-space: nowrap; }
.viento-dias { list-style: none; margin: 0; padding: 0; }
.viento-dia { display: grid; grid-template-columns: 76px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linea); font-size: 14px; }
.viento-dia-nombre { font-weight: 600; text-transform: capitalize; }
.viento-dia .etiqueta { margin: 0; }
.etiqueta.viento-flojo { background: #e6ecee; color: #2a3135; }
.etiqueta.viento-moderado { background: #dcecf1; color: #08475b; }
.etiqueta.viento-fuerte { background: #fdf0cf; color: #7a5200; }
.etiqueta.viento-muyfuerte { background: #f6e3d3; color: #8a2a10; }

/* Cámaras (no se usan en la sierra por ahora) */
.camaras-aviso { margin: 0 0 18px; padding: 10px 14px; border-left: 4px solid var(--enlace); background: #eaf2f4; font-size: 14px; border-radius: 0 8px 8px 0; }
.camaras-rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.camara { display: grid; gap: 10px; }
.camara-marco { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, #2b3a42, #18221d); display: grid; place-items: center; align-content: center; gap: 10px; }
.camara-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.camara-play { font: inherit; font-weight: 700; font-size: 16px; padding: 12px 22px; min-height: 44px; border-radius: 999px; border: 0; background: #fff; color: var(--tinta); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.camara-play:hover { background: var(--fondo, #f6f6f3); }
.camara-en-vivo { position: absolute; top: 10px; left: 10px; padding: 2px 9px; border-radius: 4px; background: var(--teja); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.camara-nota { color: #c9d0d2; font-size: 13px; }
.camara-info h3 { margin: 0; font-family: var(--display); font-size: 19px; line-height: 1.2; }
.camara-meta { margin: 2px 0 0; font-size: 14px; color: var(--gris); }

/* Gasolina */
.gas-filtros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.gas-filtros select { width: 100%; }
.gas-filtros > * { min-width: 0; }
.gas-filtros select { min-width: 0; text-overflow: ellipsis; }
.gas-resumen { margin: 0 0 10px; font-size: 14px; color: var(--gris); }
.gas-resumen strong { color: var(--tinta); font-size: 18px; }
.gas-lista { list-style: none; margin: 0; padding: 0; }
.gas-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: 14px; }
.gas-top { background: #eaf4ee; margin: 0 -10px; padding: 10px; border-radius: 8px; border-bottom-color: transparent; }
.gas-info { display: grid; gap: 1px; min-width: 0; }
.gas-info span { color: var(--gris); overflow-wrap: anywhere; }
.gas-info .gas-horario { font-size: 12px; }
.gas-der { display: grid; gap: 2px; justify-items: end; flex: none; text-align: right; }
.gas-der b { font-family: var(--display); font-size: 17px; white-space: nowrap; }
.gas-der a { font-size: 12px; }

/* Waze */
.waze-caja { margin: 12px 0; }
.waze-mapa { width: 100%; height: 440px; border: 0; border-radius: 10px; background: var(--linea); display: block; }

/* Comentarios */
.coment-caja { margin: 10px 0 0; padding: 12px 0 0; border-top: 1px solid var(--linea); }
.coment-lista { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.coment { background: #f1f3f2; border-radius: 10px; padding: 10px 12px; }
.coment p { margin: 0; }
.coment-meta { font-size: 13px; color: var(--gris); font-weight: 600; }
.coment-texto { font-size: 15px; overflow-wrap: anywhere; white-space: pre-wrap; }
.coment-form { display: grid; gap: 8px; }
.coment-form input[type=text], .coment-form textarea { font: inherit; padding: 9px 10px; border: 1px solid #aab2b5; border-radius: 8px; min-height: 42px; width: 100%; box-sizing: border-box; }
.coment-form .trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.coment-form .btn-cta { justify-self: start; }
.coment-msg { margin: 0; font-size: 14px; }
.coment-msg.ok { color: #166534; }
.coment-msg.error { color: #9d2f10; }

/* ---------- Voz Vecinal: rediseño ---------- */
.vz-cab { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-end; justify-content: space-between; margin: 0 0 18px; }
.vz-cab .section-sub { margin-bottom: 0; max-width: 46ch; }
.vz-cta { min-height: 52px; padding: 12px 26px; font-size: 17px; border-radius: 999px; box-shadow: 0 6px 18px rgba(11, 95, 122, .28); }
.vz-pulso { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.vz-pulso[hidden] { display: none; }
.vz-dato { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--tinta); color: #fff; }
.vz-dato b { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.vz-dato span { font-size: 14px; opacity: .85; }
.vz-dato.abierto b { color: #ff9a78; }
.vz-dato.hecho { background: #e3f2e8; color: #14532d; }
.vz-dato.hecho b { color: #166534; }
.vz-filtros { display: grid; gap: 12px; margin: 0 0 18px; }
.vz-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -2px; scrollbar-width: none; }
.vz-chips::-webkit-scrollbar { display: none; }
.vz-chip { flex: none; font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid #aab2b5; background: #fff; color: var(--tinta); cursor: pointer; white-space: nowrap; }
.vz-chip:hover { border-color: var(--tinta); }
.vz-chip[aria-pressed="true"] { background: var(--tinta); border-color: var(--tinta); color: #fff; }
.vz-fila { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: end; justify-content: space-between; }
.vz-orden { display: inline-flex; padding: 3px; border-radius: 999px; background: #e9ecea; }
.vz-orden-b { font: inherit; font-size: 14px; font-weight: 600; min-height: 40px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--gris); cursor: pointer; }
.vz-orden-b[aria-pressed="true"] { background: #fff; color: var(--tinta); box-shadow: 0 1px 3px rgba(20, 24, 27, .18); }
.vz-oculto { display: none; }
.vz-lista { display: grid; gap: 14px; }
.vz-card { --ac: var(--gris); display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 8px 20px; padding: 18px 20px 18px 22px; background: #fff; border: 1px solid var(--linea); border-left: 6px solid var(--ac); border-radius: 14px; }
.vz-card.tipo-agua { --ac: #1f5f7a; } .vz-card.tipo-via { --ac: #a8641a; } .vz-card.tipo-corte { --ac: #a9531a; }
.vz-card.tipo-alumbrado { --ac: #b58900; } .vz-card.tipo-limpieza { --ac: #4d7c3a; } .vz-card.tipo-ruido { --ac: #6b4fa0; }
.vz-main { min-width: 0; }
.vz-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; font-size: 14px; color: var(--gris); }
.vz-tipo { font-weight: 700; color: var(--ac); }
.vz-nuevo { padding: 1px 9px; border-radius: 999px; background: var(--teja); color: #fff; font-size: 12px; font-weight: 700; }
.vz-lugar { margin: 0 0 6px; font-family: var(--display); font-size: 23px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.vz-texto { margin: 0 0 12px; max-width: 62ch; }
.vz-hecho { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border-radius: 999px; background: #dcf1e3; color: #166534; font-weight: 700; font-size: 14px; }
.vz-lema { margin: 0 0 8px; font-weight: 700; font-size: 14px; color: var(--teja); }
.vz-destacada { border-color: var(--teja); box-shadow: 0 8px 24px rgba(169, 83, 26, .14); }
.vz-card.es-resuelta { --ac: #2e8b57; opacity: 1; background: #f6fbf7; }
.vz-card.es-resuelta .vz-lugar { color: #1f4d33; }
.vz-apoyo { display: grid; align-content: start; justify-items: center; gap: 6px; text-align: center; padding: 8px 0 0 18px; border-left: 1px dashed var(--linea); }
.vz-num { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; letter-spacing: -.03em; color: var(--ac); }
.vz-num-et { font-size: 13px; color: var(--gris); line-height: 1.2; }
.vz-barra-ap { display: block; width: 100%; height: 6px; border-radius: 3px; background: #e9ecea; overflow: hidden; }
.vz-barra-ap i { display: block; height: 100%; background: var(--ac); border-radius: 3px; }
.vz-apoyo .btn-apoyo { width: 100%; margin-top: 4px; border-color: var(--ac); color: var(--ac); font-weight: 700; padding: 8px 10px; }
.vz-apoyo .btn-apoyo:hover { background: var(--ac); color: #fff; }
.vz-apoyo .btn-apoyo[aria-pressed="true"] { background: var(--ac); border-color: var(--ac); color: #fff; }
.vz-card .coment-caja { grid-column: 1 / -1; }
@keyframes vz-pulso { 0% { transform: scale(1); } 40% { transform: scale(1.015); box-shadow: 0 0 0 6px rgba(11, 95, 122, .16); } 100% { transform: scale(1); } }
.vz-card.vz-pulsa { animation: vz-pulso .5s ease-out; }
@media (prefers-reduced-motion: reduce) { .vz-card.vz-pulsa { animation: none; } }
.vz-sep { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--linea); }
.vz-sep h3 { margin: 0; font-family: var(--display); font-size: 22px; color: #166534; }
.vz-sep p { margin: 2px 0 0; font-size: 14px; color: var(--gris); }
.vz-vacio { padding: 28px 20px; text-align: center; border: 1px dashed #aab2b5; border-radius: 14px; background: #fff; }
.vz-vacio p { margin: 0; font-weight: 600; }
.vz-vacio .vz-vacio-sub { margin-top: 4px; font-weight: 400; color: var(--gris); }
.vz-fab { display: none; }
@media (max-width: 640px) {
  .vz-card { grid-template-columns: 1fr; padding: 16px 16px 16px 18px; }
  .vz-apoyo { grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; align-items: center; justify-items: start; text-align: left; padding: 12px 0 0; border-left: 0; border-top: 1px dashed var(--linea); gap: 2px 12px; }
  .vz-num { grid-row: 1 / 3; font-size: 40px; }
  .vz-barra-ap { grid-column: 2; }
  .vz-apoyo .btn-apoyo { grid-column: 1 / -1; margin-top: 8px; min-height: 46px; }
  .vz-cta { display: none; }
  .vz-fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--teja); color: #fff; font: inherit; font-weight: 700; font-size: 16px; box-shadow: 0 8px 22px rgba(169, 83, 26, .4); cursor: pointer; }
  body.en-voz .vz-fab { display: inline-flex; align-items: center; }
  body.en-voz { padding-bottom: 80px; }
}

.main-grid > * { min-width: 0; }
.vz-cab > div { flex: 1 1 320px; }
@media (max-width: 640px) {
  .vz-pulso { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .vz-dato { padding: 12px 12px; }
  .vz-dato b { font-size: 32px; }
  .vz-dato span { font-size: 12px; }
}

/* ---------- Portada: lo último entre vecinos y casillas ---------- */
.actividad { margin: 22px 0 0; }
.actividad[hidden] { display: none; }
.act-tit { margin: 0 0 10px; font-family: var(--display); font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.act-lista { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.act-card { flex: 0 0 min(260px, 78%); scroll-snap-align: start; display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 14px; background: #f6f7f5; color: var(--tinta); text-decoration: none; border-left: 5px solid var(--gris); }
.act-card:hover { background: #fff; }
.act-card strong { font-family: var(--display); font-size: 17px; line-height: 1.25; }
.act-sub { font-size: 13px; color: var(--gris); }
.act-marca { font-size: 12px; font-weight: 700; color: var(--gris); }
.act-aviso { border-left-color: var(--teja); } .act-aviso .act-marca { color: var(--teja); }
.act-hecho { border-left-color: #2e8b57; } .act-hecho .act-marca { color: #166534; }
.act-anuncio { border-left-color: var(--enlace); } .act-anuncio .act-marca { color: var(--enlace); }
.hoy-tiles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hoy-tiles .tile { flex: 1 1 150px; }
@media (max-width: 760px) {
  .hoy-tiles { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; }
  .hoy-tiles .tile { flex: 0 0 150px; scroll-snap-align: start; }
}
/* ---------- Tablón en tarjetas ---------- */
#tb-chips { margin-top: 4px; }
.tb-barra { border-bottom: 0; padding-bottom: 6px; }
#lista-tablon { display: grid; gap: 14px; }
.anuncio { --ac: var(--gris); padding: 18px 20px 18px 22px; background: #fff; border: 1px solid var(--linea); border-left: 6px solid var(--ac); border-radius: 14px; }
.anuncio.tipo-perdido { --ac: #a9531a; } .anuncio.tipo-encontrado { --ac: #2e8b57; } .anuncio.tipo-ayuda { --ac: #b58900; }
.anuncio.tipo-ofrezco { --ac: #1f5f7a; } .anuncio.tipo-regalo { --ac: #6b4fa0; }
.anuncio.resuelto { opacity: 1; background: #f6fbf7; --ac: #2e8b57; }
.anuncio h3 { font-size: 23px; letter-spacing: -.015em; }
.anuncio-contacto { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #eef5f7; font-size: 15px; }
.anuncio-caduca { margin-top: 8px; }
.anuncio .voz-acciones { margin-top: 6px; }

/* Avisos al móvil */
.btn-avisos { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.btn-avisos:hover { background: rgba(255, 255, 255, .2); }
.btn-avisos[hidden] { display: none; }
.push-temas { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.push-temas legend { font-weight: 600; font-size: 15px; padding: 0; margin: 0 0 8px; }
.push-tema { display: flex !important; align-items: center; gap: 10px; font-weight: 400 !important; font-size: 16px !important; min-height: 40px; }
.push-tema input { width: 22px; height: 22px; min-height: 0; flex: none; }
.push-ok { margin: 0; padding: 10px 14px; border-radius: 8px; background: #e3f2e8; color: #166534; font-weight: 600; }
.push-ok[hidden], .push-ios[hidden] { display: none; }
.push-ios { padding: 10px 14px; border-radius: 8px; background: #fdf0cf; color: #7a5200; }

/* ---------- Barra de secciones: pestañas + menú de servicios ---------- */
.secciones-lista { align-items: center; gap: 10px; overflow: visible; }
.secciones-lista .tabs { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; padding: 2px 0; }
.secciones-lista .tabs::-webkit-scrollbar { display: none; }
nav.secciones .servicios-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--tinta); background: #fff; color: var(--tinta); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
nav.secciones .servicios-btn[aria-expanded="true"] { background: var(--tinta); color: #fff; }
.servicios-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linea); box-shadow: 0 16px 32px rgba(20, 24, 27, .16); max-height: calc(100vh - 64px); overflow-y: auto; }
.servicios-menu[hidden] { display: none; }
.servicios-tit { margin: 14px 0 10px; font-weight: 700; font-size: 15px; }
.servicios-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-bottom: 16px; }
nav.secciones .servicios-grid a { display: grid; gap: 2px; align-content: start; min-height: 64px; padding: 10px 14px; border: 1px solid var(--linea); border-radius: 12px; background: #f6f7f5; white-space: normal; font-weight: 400; }
nav.secciones .servicios-grid a:hover { border-color: var(--tinta); background: #fff; }
nav.secciones .servicios-grid strong { font-size: 15px; }
.serv-val { font-size: 13px; color: var(--gris); overflow-wrap: anywhere; }
.serv-val:empty { display: none; }
@media (max-width: 640px) {
  .servicios-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .secciones-lista { gap: 8px; }
  nav.secciones .servicios-btn span { display: none; }
  nav.secciones .servicios-btn { width: 44px; justify-content: center; padding: 8px; }
}
@media (max-width: 640px) {
  .secciones-lista .tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 22px), transparent); padding-right: 18px; }
}

.servicios-tit2 { margin-top: 18px; }

/* Desplegables de pueblos: botones de comarca y buscador escribiendo */
.chips-comarca { margin: 0 0 8px; }
.agenda-filtros .chips-comarca { margin-top: 8px; }
.busca-pueblo { display: block; width: 100%; margin: 4px 0 6px; padding: 9px 12px; border: 1.5px solid #cfd9de; border-radius: 10px; font: inherit; font-size: 15px; background: #fff; color: var(--tinta); }
.busca-pueblo:focus { outline: 3px solid var(--verde); outline-offset: 1px; }
.hoy .busca-pueblo { max-width: 320px; }

/* ====== Color de la sierra: verde pino, teja, granito y ocre ====== */
:root {
  --fondo: #faf9f5;
  --verde: #2f6b4f; --verde-osc: #1f4d38; --verde-clr: #e0efe5;
  --arcilla: #9c6b3c; --ocre: #c89b2e; --ocre-clr: #fbf1d6;
  --enlace-clr: #dcecf2; --teja-clr: #f6e3d3; --teja-osc: #8f4314;
}
body { background: var(--fondo); }

/* Botones principales: teja; los secundarios, verde pino */
.btn-cta { background: var(--teja-osc); color: #fff; }
.btn-cta:hover { background: #743611; }
.btn-cta-sec, .sky .btn-cta-sec { background: #fff; color: var(--verde-osc); border: 1.5px solid var(--verde); }
.btn-cta-sec:hover { background: var(--verde); color: #fff; }

/* Pestañas y filtros */
nav.secciones a[aria-current="true"] { background: var(--verde); border-color: var(--verde); color: #fff; }
nav.secciones a:hover { border-color: var(--verde); }
nav.secciones .servicios-btn { border-color: var(--verde); color: var(--verde-osc); }
nav.secciones .servicios-btn[aria-expanded="true"] { background: var(--verde); color: #fff; }
.chip[aria-pressed="true"] { background: var(--verde); border-color: var(--verde); color: #fff; }
.chip:hover { border-color: var(--verde); }
nav.secciones a[aria-current="true"] .pill-n { background: #fff; color: var(--verde-osc); }

/* Cada sección con su color */
#agenda { --acento: #a9531a; }
#noticias { --acento: #2a6f8a; }
#voz-vecinal { --acento: var(--verde); }
#tablon { --acento: var(--ocre); }
#gasolina { --acento: var(--ocre); }
#carreteras { --acento: #a9531a; }
#tiempo { --acento: #2a6f8a; }
.section-title::after { content: ""; display: block; width: 56px; height: 5px; border-radius: 3px; margin-top: 10px; background: var(--acento, var(--teja)); }
.panel { border-top: 5px solid var(--acento, var(--linea)); }
.panel h2::after { content: none; }
#agenda .agenda-dia.es-hoy, .agenda-dia.es-hoy { color: var(--teja-osc); }
.agenda-hora:not(.sin) { color: var(--verde-osc); }
.agenda-dia { border-left: 4px solid var(--acento, var(--teja)); padding-left: 10px; }
.story h3 a { background-image: linear-gradient(#2a6f8a, #2a6f8a); }

/* Etiquetas de agenda por tipo */
.etiqueta.cat-musica { background: var(--enlace-clr); color: #08475b; }
.etiqueta.cat-cultura { background: #f3dfd6; color: #7a2f17; }
.etiqueta.cat-deporte { background: var(--verde-clr); color: #166534; }
.etiqueta.cat-familia { background: var(--ocre-clr); color: #7a5200; }
.etiqueta.cat-mercadillo { background: var(--teja-clr); color: #8a2a10; }
.etiqueta.cat-gastronomia { background: #f3dfd6; color: #7a2f17; }
.etiqueta.cat-fiestas { background: var(--teja-clr); color: #8a2a10; }
.etiqueta.precio { background: var(--verde-clr); color: #166534; }

/* Franja de color arriba de los avisos y en el pie */
.hoy { border-top: 0; }
.tile { border-top: 3px solid var(--tc, rgba(255, 255, 255, .25)); }
#tile-voz { --tc: #7fc79a; } #tile-tablon { --tc: var(--ocre); } #tile-gasolina { --tc: var(--ocre); }
#tile-carreteras { --tc: #f0b26a; } #tile-tiempo { --tc: #7cc0dc; }
footer { border-top: 6px solid; border-image: linear-gradient(90deg, var(--verde) 0 25%, #8a9aa6 25% 50%, var(--teja-osc) 50% 75%, var(--ocre) 75% 100%) 1; }
a:focus-visible, button:focus-visible, select:focus-visible { outline-color: var(--verde); }

/* Botón Compartir (es <button>, igual que el enlace) */
button.voz-enlace { background: none; border: 0; padding: 0 4px; cursor: pointer; font-family: inherit; }
.ag-comp { display: inline-flex; margin-left: 8px; }

/* Avisos al móvil ya activados */
.btn-avisos.activo { background: #e4f3ea; color: #1f6b44; border-color: #9fd2b5; }

.farm-pdfs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.farm-pdfs a { padding: 9px 14px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 1.5px solid var(--linea); background: #fff; font-weight: 600; font-size: 15px; color: var(--enlace); text-decoration: none; }
.farm-pdfs a:hover { border-color: var(--enlace); }

/* ---------- Prioridad: portada compacta, casillas visibles, servicios plegables ---------- */
.panel.colapsable { padding: 0; margin: 0 0 12px; scroll-margin-top: 64px; }
.panel.colapsable > h2 { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 20px; cursor: pointer; font-size: 19px; }
.panel.colapsable > h2:focus-visible { outline: 3px solid var(--enlace); outline-offset: -3px; border-radius: 16px; }
.panel.colapsable > :not(h2) { margin-left: 20px; margin-right: 20px; }
.panel.colapsable > :last-child { margin-bottom: 20px; }
.panel.colapsable.cerrado > :not(h2) { display: none; }
.panel-res { margin-left: auto; font-family: var(--texto); font-size: 14px; font-weight: 600; color: var(--gris); text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-flecha { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--tinta); border-bottom: 2px solid var(--tinta); transform: rotate(45deg); transition: transform .15s; margin-top: -3px; }
.panel.colapsable:not(.cerrado) > h2 { border-bottom: 1px solid var(--linea); margin-bottom: 14px; }
.panel.colapsable:not(.cerrado) .panel-flecha { transform: rotate(-135deg); margin-top: 3px; }
.panel.colapsable:not(.cerrado) .panel-res { display: none; }

@media (max-width: 640px) {
  .hero { min-height: 250px; padding-top: 18px; }
  .hero .lead { display: none; }
  .hero h1 { max-width: none; font-size: clamp(30px, 9vw, 38px); line-height: 1.05; }
  .paisaje { height: 62%; }
  .hoy-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 8px; margin-top: 14px; }
  .hoy-tiles .tile { flex: none; padding: 10px 12px; }
  .tile-et { font-size: 12px; }
  .tile-val { font-size: 15px; }
}
@media (min-width: 641px) {
  .hero { min-height: 400px; }
  .hero h1 { max-width: none; font-size: clamp(44px, 6vw, 72px); }
  .hero .lead { max-width: 56ch; font-size: 17px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(26px, 7.2vw, 34px); white-space: nowrap; }
  #sol-horas { display: none; }
}
/* Escritorio: web más ancha y texto de la cabecera sobre fondo claro (sin pisar las montañas) */
@media (min-width: 641px) {
  .container { width: min(1360px, calc(100% - 64px)); }
  .hero { min-height: 430px; }
  .paisaje { height: min(36%, 260px); }
  .hero .lead { color: #18221d; font-weight: 500; }
}
@media (min-width: 1500px) { .container { width: min(1480px, calc(100% - 96px)); } }

/* ---------- Agenda visual: tarjetas por tipo ---------- */
.agenda-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 12px 0 8px; }
.agenda-item.ag-card { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--linea); border-top: 0; border-radius: 14px; overflow: hidden; background: #fff; --cc: #5b6368; --cc-bg: #eceff0; }
.ag-card.cat-musica { --cc: #2a6f8a; --cc-bg: #dcecf2; }
.ag-card.cat-cultura { --cc: #8a3a1c; --cc-bg: #f3e1d6; }
.ag-card.cat-deporte { --cc: #166534; --cc-bg: #dcf0e3; }
.ag-card.cat-familia { --cc: #8a5a00; --cc-bg: #fbecc8; }
.ag-card.cat-mercadillo { --cc: #b23a14; --cc-bg: #fbe0d4; }
.ag-card.cat-gastronomia { --cc: #7a2f17; --cc-bg: #f6dfd0; }
.ag-card.cat-fiestas { --cc: #a3225f; --cc-bg: #f8dbe9; }
.ag-cab { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--cc-bg); color: var(--cc); }
.ag-ico { flex: none; }
.ag-cat { font-size: 13px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-hora { margin-left: auto; flex: none; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -.01em; }
.ag-hora.sin { font-size: 13px; font-weight: 700; font-family: var(--texto); }
.ag-cuerpo { display: flex; flex-direction: column; gap: 6px; padding: 14px; flex: 1; }
.ag-cuerpo h4 { margin: 0; font-size: 20px; line-height: 1.2; }
.ag-lugar { font-size: 14px; }
.ag-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.ag-pie .ag-comp { margin-left: auto; }
.agenda-hora:not(.sin) { color: inherit; }
@media (max-width: 520px) { .agenda-lista { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
.ag-dia-fila { grid-column: 1 / -1; }
.ag-dia-fila .agenda-dia { margin: 14px 0 0; }

/* ---------- Fotos de vecinos ---------- */
.fotos-campo { display: grid; gap: 8px; }
.fotos-et { font-weight: 600; font-size: 15px; } .fotos-et small { font-weight: 400; color: var(--gris); }
.fotos-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.fotos-lista:empty { display: none; }
.fthumb { position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--linea); }
.fthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fthumb.subiendo::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .6); }
.fthumb-x { position: absolute; top: 4px; right: 4px; z-index: 2; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 0; background: rgba(20, 24, 27, .8); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.fotos-add { justify-self: start; }
.fotos-nota { margin: 0; font-size: 13px; color: var(--gris); }
.fotos-fila { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0 2px; max-width: 440px; }
.fotos-fila a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--linea); }
.fotos-fila img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fotos-fila:has(a:only-child) { grid-template-columns: minmax(0, 1fr); } .fotos-fila a:only-child { aspect-ratio: 16 / 9; }

/* ---------- Iconos ---------- */
.ico { flex: none; }
.tile { position: relative; padding-right: 40px; }
.tile-ico { position: absolute; top: 10px; right: 10px; color: var(--tc, #aeb8bc); opacity: .95; }
.panel-ico { color: var(--acento, var(--gris)); }
.panel.colapsable > h2 { gap: 10px; }
.tipo-ico { vertical-align: -3px; margin-right: 4px; }
.vz-tipo { white-space: nowrap; }
.etiqueta .tipo-ico { vertical-align: -3px; margin-right: 4px; }
@media (max-width: 640px) { .tile-ico { top: 9px; right: 9px; width: 20px; height: 20px; } }

/* ---------- Portada más tranquila ---------- */
.hoy-tiles .tile-menor, .hoy-tiles .tile-aviso:not(.alerta) { display: none !important; }
.actividad { display: none !important; }
.zona { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #aeb8bc; font-size: 14px; }
.zona select { font: inherit; font-weight: 600; font-size: 14px; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 7px 30px 7px 14px; min-height: 36px; cursor: pointer; }
.zona select option { color: #18221d; }

/* El tiempo */
.tiempo-ahora { display: flex; align-items: center; gap: 14px; padding: 6px 0 14px; }
.tiempo-emo { font-size: 3rem; line-height: 1; }
.tiempo-txt { display: flex; flex-direction: column; gap: 2px; }
.tiempo-grados { font-size: 2.4rem; line-height: 1; }
.tiempo-desc { font-size: 1.05rem; font-weight: 600; }
.tiempo-txt small { color: var(--texto-suave, #5b6770); }
.tiempo-dias { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tiempo-dias li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 1px solid var(--linea); border-radius: 10px; text-align: center; }
.td-dia { font-weight: 600; text-transform: capitalize; }
.td-emo { font-size: 1.5rem; }
.td-temp { font-size: .85rem; white-space: nowrap; }
.td-lluvia { font-size: .75rem; }
.tiempo-sub { font-size: 1rem; margin: 6px 0 8px; }
@media (max-width: 420px) { .td-temp { font-size: .75rem; } }

/* Borrar lo que uno ha enviado */
.btn-borrar { color: #a33a2a; }
.coment .btn-borrar { margin-top: 2px; font-size: .85rem; }

/* Días abierta, seguir aviso y marcador semanal */
.vz-dias { font-size: .9rem; margin: 4px 0 0; color: var(--texto-suave, #5b6770); }
.vz-dias.medio { color: #9a6a00; font-weight: 600; }
.vz-dias.grave { color: #a33a2a; font-weight: 700; }
.btn-seguir[aria-pressed="true"] { font-weight: 600; }
.vz-marcador { border: 1px solid var(--linea); border-radius: 14px; padding: 12px 16px; margin: 0 0 16px; background: var(--fondo-tarjeta, #fff); }
.vz-marcador h3 { margin: 0 0 6px; font-size: 1.05rem; }
.vz-marcador-total { margin: 0 0 8px; font-size: 1rem; }
.vz-marcador-total b { font-size: 2rem; margin-right: 6px; }
.vz-marcador-lista { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.vz-marcador-lista li { display: grid; grid-template-columns: 8.5rem 1fr 2rem; align-items: center; gap: 8px; }
.vz-marcador-barra { display: block; height: 10px; border-radius: 6px; background: rgba(0,0,0,.08); overflow: hidden; }
.vz-marcador-barra i { display: block; height: 100%; background: #1c8a5a; border-radius: 6px; }
@media (max-width: 420px) { .vz-marcador-lista li { grid-template-columns: 6.5rem 1fr 2rem; } }

/* Voz Vecinal destacada en la portada (compacta) */
.vz-destacado { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: #fff; color: #18221d; border-left: 6px solid var(--verde, #2f6b4f); box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.vz-destacado[hidden] { display: none; }
.vz-destacado h2 { margin: 0 0 4px; font-size: 1.15rem; line-height: 1.2; color: #18221d; }
.vz-destacado .vzd-sub { display: none; margin: 0 0 8px; color: #4a5358; font-size: .95rem; }
.vzd-datos { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-bottom: 8px; }
.vzd-dato { display: flex; align-items: baseline; gap: 6px; }
.vzd-dato b { font-size: 1.5rem; line-height: 1.1; }
.vzd-dato.abierto b { color: #c2410c; }
.vzd-dato.hecho b { color: #2f6b4f; }
.vzd-dato span { font-size: .92rem; color: #3a4348; }
.vzd-vacio { margin: 0; color: #3a4348; font-size: .95rem; }
.vzd-caso { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 10px; padding: 7px 10px; border-radius: 9px; background: #fdf1e7; color: #7a2e0b; font-weight: 600; font-size: .88rem; line-height: 1.35; text-decoration: none; }
.vzd-caso[hidden] { display: none; }
.vzd-acc { display: flex; flex-wrap: nowrap; gap: 14px; align-items: center; }
.vzd-acc .btn-primario { min-height: 44px; padding-inline: 16px; font-size: .95rem; white-space: nowrap; }
.vzd-ver { font-weight: 700; color: #1f5f7a; white-space: nowrap; font-size: .95rem; }
.tabs a[href="#voz-vecinal"] { font-weight: 800; }
@media (min-width: 900px) { .vz-destacado .vzd-sub { display: block; } .vzd-caso { -webkit-line-clamp: 1; } }

/* Ajustes: cabecera en una fila y aviso destacado sin recortes raros */
.vzd-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.vzd-cab h2 { margin: 0; }
.vzd-datos { margin-bottom: 6px; }
.vzd-caso { display: block; margin: 0; padding: 7px 10px; }
.vzd-caso span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) { .vzd-caso span { -webkit-line-clamp: 1; } }

/* Ubicación opcional en Voz Vecinal */
.ubic-campo { margin: 4px 0 14px; }
.ubic-campo .btn-sec { min-height: 44px; padding: 10px 16px; border: 1px solid #aab2b5; border-radius: 10px; background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ubic-campo small { font-weight: 400; color: #5b6368; }
.ubic-est { margin: 8px 0 0; font-size: 15px; color: #166534; }
.ubic-est .btn-enlace { background: none; border: 0; padding: 4px 6px; font: inherit; color: #1f5f7a; text-decoration: underline; cursor: pointer; min-height: 32px; }
.vz-mapa { display: inline-block; margin: 8px 0 0; font-weight: 600; font-size: 15px; color: var(--enlace, #1f5f7a); }

/* ---------- Páginas propias de Voz Vecinal y del Tablón ----------
   Son el mismo archivo que la portada: el servidor pone las clases del <body> y aquí se esconde lo que no toca. */
.pagina-cab { display: none; }
body.modo-voz .pagina-cab.pc-voz, body.modo-tablon .pagina-cab.pc-tablon, body.modo-directo .pagina-cab.pc-directo { display: block; max-width: 760px; padding: 32px 0 4px; }
.pagina-cab .migas { font-size: 15px; color: var(--gris); margin: 0 0 12px; }
.pagina-cab .migas a { color: var(--gris); }
.pagina-cab h1 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 5.5vw, 48px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 12px; }
.pagina-cab .lead { font-size: 19px; line-height: 1.55; color: #2a3135; max-width: 62ch; margin: 0; }
body.modo-pagina .hero, body.modo-pagina #hoy, body.modo-pagina #secciones, body.modo-pagina .main-grid > aside,
body.modo-pagina .solo-portada { display: none !important; }
body.modo-voz .col-principal > section:not(#voz-vecinal), body.modo-tablon .col-principal > section:not(#tablon), body.modo-directo .col-principal > section:not(#en-directo) { display: none !important; }
body.modo-voz #voz-vecinal.tab-off:not([hidden]), body.modo-tablon #tablon.tab-off:not([hidden]), body.modo-directo #en-directo.tab-off:not([hidden]) { display: block; }
body.modo-directo #t-directo, body.modo-directo #en-directo > .section-sub, body.modo-directo .camaras-aviso { display: none; }
body.modo-voz #t-voz, body.modo-voz #voz-vecinal .vz-cab .section-sub, body.modo-tablon #t-tablon, body.modo-tablon #tablon .vz-cab .section-sub { display: none; }
body.modo-voz .vz-cab, body.modo-tablon .vz-cab { justify-content: flex-start; }
/* En las páginas propias, la acción ya está en la barra de arriba (ordenador) o en el botón flotante (móvil) */
body.modo-voz .vz-cta, body.modo-tablon .vz-cta { display: none; }
body.modo-tablon #tablon > .vz-cab { display: none; }
/* Chips de comarca en su propia línea, encima del municipio y la búsqueda */
.voz-filtros > .chips-comarca { flex: 1 0 100%; margin: 0; }
body.modo-pagina .main-grid { grid-template-columns: minmax(0, 1fr); padding-top: 12px; }

/* Mapa con la ubicación de los avisos */
.voz-geo { margin: 18px 0; border: 1px solid var(--linea); border-radius: 12px; padding: 2px 16px 14px; background: #fff; }
.voz-geo summary { font-weight: 700; cursor: pointer; padding: 12px 0; }
.voz-geo .btn { margin: 4px 0 8px; }
.geo-mapa { height: 420px; border-radius: 10px; margin: 10px 0 4px; border: 1px solid var(--linea); position: relative; z-index: 0; }
@media (max-width: 600px) { .geo-mapa { height: 320px; } }
.geo-popup p { margin: 6px 0; font-size: 14px; line-height: 1.4; }
.geo-popup a { color: var(--enlace); font-weight: 600; }

/* ---- Botones de acción de las tarjetas (compartir, comentar, seguir…) ---- */
.voz-acciones { gap: 8px; }
.voz-acciones .voz-enlace, .voz-acciones .enlace-boton {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px;
  border: 1.5px solid #cfd9de; border-radius: 999px; background: #fff; color: var(--enlace);
  font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer;
}
.voz-acciones .voz-enlace:hover, .voz-acciones .enlace-boton:hover { background: #eef5f8; border-color: var(--enlace); }
.voz-acciones .voz-enlace:focus-visible, .voz-acciones .enlace-boton:focus-visible { outline: 3px solid var(--enlace); outline-offset: 2px; }
.voz-acciones .acc-compartir { background: var(--enlace); border-color: var(--enlace); color: #fff; }
.voz-acciones .acc-compartir:hover { background: #0b4f66; color: #fff; }
.voz-acciones .btn-borrar { color: #a3341a; border-color: #ecc5bb; }
.voz-acciones .btn-borrar:hover { background: #fbeee9; border-color: #a3341a; }
.voz-acciones .btn-renovar { background: #eef5f8; }
.voz-acciones .acc-compartir::before, .voz-acciones .acc-coment::before, .voz-acciones .acc-ver::before {
  content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
  -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat;
}
.voz-acciones .acc-compartir { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v7a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-7'/%3E%3Cpath d='M16 6l-4-4-4 4'/%3E%3Cpath d='M12 2v13'/%3E%3C/svg%3E"); }
.voz-acciones .acc-coment { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a8 8 0 0 1-11.6 7.1L4 20l1-4.6A8 8 0 1 1 21 12z'/%3E%3C/svg%3E"); }
.voz-acciones .acc-ver { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
@media (max-width: 480px) { .voz-acciones .voz-enlace, .voz-acciones .enlace-boton { padding: 0 14px; font-size: 14px; } }

/* ---- Bienvenida de la portada ---- */
.bienvenida { padding: 8px 0 0; }
.bv-caja { background: #fff; border: 1px solid #e3e6e8; border-left: 6px solid var(--enlace); border-radius: 18px; padding: 18px 18px 8px; margin: 8px 0 4px; }
.bv-caja h2 { margin: 0 0 6px; font-size: 21px; }
.bv-caja p { margin: 0 0 14px; max-width: 60ch; }
.bv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.bv-op { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; min-height: 70px; text-align: left; font: inherit; font-size: 15px; font-weight: 600; color: var(--enlace); background: #fff; border: 1.5px solid #cfd9de; border-radius: 14px; cursor: pointer; }
.bv-op b { font-size: 22px; font-weight: 400; }
.bv-op:hover { background: #eef5f8; border-color: var(--enlace); }
.bv-op:focus-visible, .bv-ok:focus-visible { outline: 3px solid var(--enlace); outline-offset: 2px; }
.bv-prim { background: var(--enlace); border-color: var(--enlace); color: #fff; }
.bv-prim:hover { background: #0b4f66; color: #fff; }
.bv-ok { margin: 8px 0 4px; min-height: 44px; padding: 0; font: inherit; font-weight: 600; color: #555; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.bv-op[hidden], .bienvenida[hidden] { display: none; }

/* ---- Listas compactas (Voz Vecinal y Tablón): fila cerrada, detalle al tocar ---- */
.vz-cols, .vz-centro, .vz-lado { display: block; }
.vz-lista { gap: 0; }
.vz-lista .vz-destacada { margin-bottom: 14px; }
.vz-lista .vz-sep { margin: 18px 0 8px; }
.compacta { position: relative; cursor: pointer; border-radius: 0; box-shadow: none; }
.vz-card.compacta { grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 12px 52px 12px 16px; border-width: 0 0 1px 5px; }
.vz-lista > .compacta:first-of-type, .vz-lista > .vz-sep + .compacta { border-top: 1px solid var(--linea); }
.vz-card.compacta .vz-meta { margin: 0 0 2px; font-size: 13px; }
.vz-card.compacta .vz-lugar { margin: 0; font-size: 17px; line-height: 1.25; }
.vz-card.compacta .vz-apoyo { border: 0; padding: 0; gap: 0; align-self: center; }
.vz-card.compacta .vz-num { font-size: 24px; letter-spacing: 0; }
.vz-card.compacta .vz-num-et { font-size: 11px; max-width: 70px; }
.compacta:not(.abierta) :is(.vz-texto, .fotos-fila, .vz-mapa, .voz-respuesta, .voz-acciones, .vz-barra-ap, .btn-apoyo, .vz-dias, .vz-hecho, .coment-caja, .anuncio-texto, .anuncio-contacto, .anuncio-caduca) { display: none; }
.vz-card.compacta.abierta { grid-template-columns: minmax(0, 1fr) 150px; gap: 8px 20px; padding: 16px 52px 16px 18px; background: #f7fafb; }
.vz-card.compacta.abierta .vz-lugar { font-size: 21px; }
.vz-card.compacta.abierta .vz-apoyo { border-left: 1px dashed var(--linea); padding: 8px 0 0 18px; gap: 6px; }
.vz-card.compacta.abierta .vz-num { font-size: 40px; }
.vz-card.compacta.abierta .vz-num-et { font-size: 13px; max-width: none; }
.vz-card.compacta.es-resuelta { background: #f6fbf7; }
.anuncio.compacta { padding: 12px 52px 12px 16px; border-width: 0 0 1px 5px; border-radius: 0; margin: 0; }
.anuncio.compacta .anuncio-meta { margin: 0 0 2px; }
.anuncio.compacta h3 { font-size: 17px; margin: 0; }
.anuncio.compacta.abierta { background: #f7fafb; padding-top: 16px; padding-bottom: 16px; }
.anuncio.compacta.abierta h3 { font-size: 21px; margin-bottom: 6px; }
#lista-tablon { border-top: 1px solid var(--linea); }
.fila-abrir { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.fila-abrir::before { content: ""; position: absolute; left: 15px; top: 14px; width: 10px; height: 10px; border: solid var(--enlace); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .15s; }
.compacta.abierta .fila-abrir::before { transform: rotate(-135deg); top: 18px; }
.fila-abrir:hover { background: #eef5f8; }
.fila-abrir:focus-visible { outline: 3px solid var(--enlace); outline-offset: -2px; }
@media (max-width: 480px) { .vz-card.compacta.abierta { grid-template-columns: minmax(0, 1fr); } .vz-card.compacta.abierta .vz-apoyo { border-left: 0; padding: 4px 0 0; } }
@media (prefers-reduced-motion: reduce) { .fila-abrir::before { transition: none; } }
/* Ordenador: Voz Vecinal en dos columnas (lista + mapa fijo); el Tablón en una columna centrada */
@media (min-width: 1000px) {
  .modo-voz .vz-cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 32px; align-items: start; }
  .modo-voz .vz-lado { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
  .modo-voz .voz-geo[open] .geo-mapa { height: 380px; }
  .modo-tablon #tablon > :is(.vz-filtros, #lista-tablon, .tb-barra) { max-width: 780px; }
  .modo-tablon #lista-tablon { margin: 0 auto 0 0; max-width: 780px; }
}

/* ---- Ajuste: filas separadas, contador legible, una sola línea de datos ---- */
.vz-lista { gap: 8px; }
.vz-lista .vz-destacada { margin-bottom: 8px; }
.vz-lista .vz-sep { margin: 16px 0 4px; }
.vz-card.compacta, .anuncio.compacta { border: 1px solid var(--linea); border-left: 5px solid var(--ac); border-radius: 12px; box-shadow: 0 1px 3px rgba(20, 30, 40, .08); background: #fff; }
.vz-lista > .compacta:first-of-type, .vz-lista > .vz-sep + .compacta { border-top: 1px solid var(--linea); }
.vz-card.compacta.abierta, .anuncio.compacta.abierta { background: #f4f9fb; border-color: #bcd3dc; border-left-color: var(--ac); box-shadow: 0 3px 10px rgba(20, 30, 40, .10); }
#lista-tablon { border-top: 0; display: grid; gap: 8px; }
.anuncio.compacta { margin: 0; }
.vz-card.compacta .vz-meta { flex-wrap: nowrap; gap: 0 8px; overflow: hidden; white-space: nowrap; }
.vz-card.compacta .vz-meta > * { flex: none; }
.vz-card.compacta .vz-meta .vz-tipo { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.vz-card.compacta .vz-apoyo { display: grid; grid-template-columns: 1fr; justify-items: center; width: 62px; gap: 0; }
.vz-card.compacta .vz-num { font-size: 24px; line-height: 1; }
.vz-card.compacta .vz-num-et { font-size: 11px; line-height: 1.15; max-width: 62px; text-align: center; }
.vz-card.compacta.abierta .vz-apoyo { width: auto; }
.vz-card.compacta.abierta .vz-meta { flex-wrap: wrap; white-space: normal; }
#lista-voz { margin-bottom: 24px; }
@media (max-width: 999px) { .vz-lado { margin-top: 8px; } }
/* Fila cerrada: el tipo se ve por el icono y el color; el texto del tipo solo al abrir */
.vz-card.compacta:not(.abierta) .vz-meta .vz-tipo { display: none; }
.vz-card.compacta:not(.abierta) .vz-meta { white-space: normal; flex-wrap: wrap; }

/* ---- Tablón: contacto directo, "ya resuelto" y foto en la fila cerrada ---- */
.contacto-acc { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.contacto-wa { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #2f6b4f; color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.contacto-wa:hover { background: #14663a; }
.voz-acciones .btn-resuelto { color: #14663a; border-color: #b8dcc6; }
.voz-acciones .btn-resuelto:hover { background: #e9f6ee; border-color: #14663a; }
.mini-foto { display: none; }
.anuncio.compacta:not(.abierta) .mini-foto { display: block; position: absolute; right: 52px; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--linea); }
.anuncio.compacta:has(.mini-foto):not(.abierta) { padding-right: 120px; min-height: 80px; }
.anuncio-contacto { border-radius: 18px; }

.vz-card.tipo-plagas { --ac: #8a5a2b; } .vz-card.tipo-transporte { --ac: #1f5f7a; } .vz-card.tipo-verde { --ac: #2e8b57; }

/* ---- Tarjeta del Tablón en la portada ---- */
.tb-destacado { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; margin: 12px 0; padding: 14px 16px; background: #fff; border: 1px solid var(--linea); border-left: 6px solid #6b4fa0; border-radius: 14px; color: #171a1c; text-decoration: none; }
.tb-destacado:hover { background: #f8f5fc; }
.tb-destacado:focus-visible { outline: 3px solid var(--enlace); outline-offset: 2px; }
.tbd-tit { font-family: var(--display); font-weight: 700; font-size: 19px; }
.tbd-n { font-size: 14px; font-weight: 700; color: #5a3f90; text-align: right; }
.tbd-ult { grid-column: 1 / -1; font-size: 15px; color: #394147; }
.tbd-ver { grid-column: 1 / -1; font-weight: 700; color: var(--enlace); font-size: 15px; margin-top: 2px; }
.tb-destacado[hidden] { display: none; }

/* ---- Portada: Voz Vecinal y Tablón en una fila compacta, para que los servicios se vean enseguida ---- */
.dest-par { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.dest-par > * { margin: 0; min-width: 0; }
.dest-par .vz-destacado { padding: 12px 14px; }
.dest-par .vzd-caso, .dest-par .vzd-sub { display: none !important; }
.dest-par .vzd-cab { flex-direction: column; align-items: flex-start; gap: 0; margin-bottom: 4px; }
.dest-par .vzd-cab h2 { font-size: 1.05rem; }
.dest-par .vzd-ver { font-size: .9rem; order: 3; margin-top: 2px; }
.dest-par .vzd-datos { gap: 0 10px; margin-bottom: 0; }
.dest-par .vzd-dato b { font-size: 1.35rem; }
.dest-par .vzd-dato span { font-size: .85rem; }
.dest-par .tb-destacado { grid-template-columns: 1fr; gap: 0; padding: 12px 14px; }
.dest-par .tbd-tit { font-size: 1.05rem; }
.dest-par .tbd-n { text-align: left; font-size: .9rem; }
.dest-par .tbd-ult { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem; line-height: 1.3; margin-top: 2px; }
.dest-par .tbd-ver { font-size: .9rem; }
.dest-par .tbd-ult { display: none; }

/* ===== Mejora general de la portada ===== */
/* Aviso del día: una línea corta, aparte de la frase principal */
.aviso-hoy { display: inline-block; margin: 0 0 10px; padding: 6px 12px; border-radius: 999px; background: #fff3cd; color: #7a4b00; font-weight: 700; font-size: 14px; line-height: 1.3; }
.aviso-hoy[hidden] { display: none; }
/* Móvil: cabecera fina, una sola acción principal (el botón flotante) */
@media (max-width: 640px) {
  body:not(.modo-pagina) .hero { min-height: 150px; padding-top: 6px; }
  body:not(.modo-pagina) .hero h1 { font-size: 26px; max-width: none; white-space: normal; }
  body:not(.modo-pagina) .hero .fecha { margin-bottom: 2px; }
  body:not(.modo-pagina) .paisaje { height: 80%; }
  .header-acciones { display: none; }
  .vz-fab { display: inline-flex; align-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 30; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--teja); color: #fff; font: inherit; font-weight: 700; font-size: 16px; box-shadow: 0 8px 22px rgba(169, 83, 26, .35); }
  body { padding-bottom: 80px; }
}

/* Banda «hoy» clara (la oscura solo si el móvil tiene el modo oscuro activado) */
@media not (prefers-color-scheme: dark) {
  .hoy { background: #eef3f5; color: #18221d; border-top: 1px solid #dbe4e8; border-bottom: 1px solid #dbe4e8; }
  .hoy .frase b { color: #c2410c; }
  .hoy .comunidad { color: #3a4348; }
  .zona { color: #4a5358; }
  .zona select { color: #18221d; background: #fff; border-color: #c5d2d8; }
  .tile { background: #fff; border-color: #dbe4e8; color: #18221d; box-shadow: 0 1px 2px rgba(20, 30, 40, .05); }
  .tile:hover { background: #f6f9fa; }
  .tile-et { color: #5f686e; }
  .tile-val { color: #18221d; }
  .tile.alerta .tile-val { color: #c2410c; }
  .tile-ico { color: var(--tc, #5f686e); }
  .btn-avisos { background: #fff; color: #1f5f7a; border-color: #c5d2d8; }
  .btn-avisos:hover { background: #f6f9fa; }
  .dest-par .vz-destacado, .dest-par .tb-destacado { border: 1px solid #dbe4e8; border-left-width: 6px; }
  .vz-destacado { box-shadow: 0 1px 2px rgba(20, 30, 40, .05); }
  .act-tit { color: #18221d; }
}
/* Servicios: las tarjetas cerradas siguen visibles también en móvil (se abren al tocarlas o desde las casillas de arriba) */
@media (max-width: 900px) {
  body:not(.modo-pagina) .main-grid > aside { margin-top: 0; }
}

/* Agenda: solo el rango a la vista; el resto, en «Más filtros» */
.agenda-mas { margin-top: 8px; }
.agenda-mas > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid #cfd9de; border-radius: 999px; background: #fff; color: var(--enlace); font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.agenda-mas > summary::-webkit-details-marker { display: none; }
.agenda-mas > summary::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10M10 18h4'/%3E%3C/svg%3E") center/contain no-repeat; }
.agenda-mas[open] > summary { background: #eef5f8; border-color: var(--enlace); }
.agenda-mas > summary:focus-visible { outline: 3px solid var(--enlace); outline-offset: 2px; }
.agenda-mas > .filtro, .agenda-mas > .agenda-selects { margin-top: 10px; }
/* Pie de página en columnas */
footer .container { align-items: flex-start; }
.pie-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 22px 28px; flex: 1 1 420px; max-width: 760px; }
.pie-cols h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: #fff; }
.pie-cols a, .pie-cols span { display: block; padding: 5px 0; font-size: 14.5px; color: #c9d0d2; text-decoration: none; }
.pie-cols a:hover { color: #fff; text-decoration: underline; }
.pie-cols a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pie-cols span { font-size: 13.5px; color: #9aa4a8; }
@media not (prefers-color-scheme: dark) {
  .dest-par .vz-destacado { border-left-color: var(--verde, #2f6b4f); }
  .dest-par .tb-destacado { border-left-color: #6b4fa0; }
}
.pie-cols { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); flex: 1 1 100%; min-width: 0; max-width: 760px; }

/* ---- Agenda compacta: una línea por evento, detalle al tocar ---- */
.agenda-item.ag-card.compacta { flex-direction: row; align-items: center; padding-right: 52px; min-height: 64px; cursor: pointer; }
.agenda-item.ag-card.compacta:not(.abierta) .ag-cab { background: none; flex: none; width: 92px; padding: 10px 0 10px 14px; gap: 6px; }
.agenda-item.ag-card.compacta:not(.abierta) .ag-cat { display: none; }
.agenda-item.ag-card.compacta:not(.abierta) .ag-hora { font-size: 14px; line-height: 1.2; }
.agenda-item.ag-card.compacta:not(.abierta) .ag-cuerpo { padding: 10px 0; gap: 2px; min-width: 0; }
.agenda-item.ag-card.compacta:not(.abierta) h4 { font-size: 17px; }
.agenda-item.ag-card.compacta:not(.abierta) .ag-lugar { margin: 0; font-size: 14px; }
.agenda-item.ag-card.compacta:not(.abierta) .ag-pie { display: none; }
.agenda-item.ag-card.compacta.abierta { flex-direction: column; align-items: stretch; padding-right: 0; }
.agenda-item.ag-card.compacta.abierta .fila-abrir { top: 3px; }
.ag-enlace { font-size: 14px; font-weight: 600; color: var(--enlace); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.ag-enlace:hover { text-decoration-thickness: 2px; }
.agenda-item.ag-card.compacta.abierta .ag-pie { gap: 6px 16px; }
.agenda-item.ag-card.compacta.abierta .ag-cab { padding-right: 56px; }

/* Acciones de la agenda: botones con icono */
.agenda-item.ag-card.compacta.abierta .ag-pie { gap: 8px; }
.ag-pie .ag-enlace {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid #cfd9de; border-radius: 999px; background: #fff; color: var(--enlace);
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.ag-pie .ag-enlace:hover { background: #eef5f8; border-color: var(--enlace); }
.ag-pie .ag-enlace:focus-visible { outline: 3px solid var(--enlace); outline-offset: 2px; }
.ag-pie .ag-comp { margin-left: 0; }
.ag-acc-ico { flex: none; }

/* Cabecera de ordenador con foto real (opcional): pon la foto en static/img/hero.webp y añade la clase
   "con-foto" a <section class="hero">. Sin ella se ve la ilustración con el cielo en vivo, también en ordenador. */
.hero-foto { display: none; }
@media (min-width: 641px) {
  .con-foto .hero-foto {
    --vel: 250, 250, 247;
    display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(var(--vel), .96) 0, rgba(var(--vel), .88) 38%, rgba(var(--vel), 0) 72%),
      url(/static/img/hero.webp) center 56% / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 18%);
  }
  .hero-foto::after { content: ""; position: absolute; inset: 0; background: rgba(10, 16, 34, 0); transition: background .6s; }
  .sky.oscuro .con-foto .hero-foto { --vel: 14, 20, 38; }
  .sky.oscuro .con-foto .hero-foto::after { background: rgba(10, 16, 34, .55); }
  .hero.con-foto { min-height: 480px; }
  .hero.con-foto .paisaje { display: none; }
}

/* Página /agenda: lista escrita en el propio HTML */
.agenda-pagina { padding-top: 24px; padding-bottom: 56px; max-width: 820px; }
.agenda-pagina h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6vw, 44px); line-height: 1.05; letter-spacing: -.02em; margin: 6px 0 10px; }
.agenda-pagina .lead { margin: 0 0 18px; font-size: 17px; color: #2a3135; max-width: 60ch; }
.ag-pg-munis { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.ag-pg-munis a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid #cfd9de; border-radius: 999px; background: #fff; color: #18221d; font-size: 14px; font-weight: 600; text-decoration: none; }
.ag-pg-munis a:hover { border-color: var(--enlace); }
.ag-pg-munis a.activo { background: var(--enlace); border-color: var(--enlace); color: #fff; }
.ag-pg-tipos { margin-top: -10px; }
.ag-pg-tipos a { min-height: 36px; font-size: 13px; }
.ag-pg-dia { margin: 0 0 22px; }
.ag-pg-dia h2 { font-size: 18px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid #18221d; }
.ag-pg-lista { list-style: none; margin: 0; padding: 0; }
.ag-pg-lista li { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px solid #e3e9ec; }
.ag-pg-hora { flex: none; width: 86px; font-weight: 700; font-size: 15px; color: var(--enlace); font-variant-numeric: tabular-nums; }
.ag-pg-cuerpo { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-pg-cuerpo a { font-weight: 700; font-size: 17px; color: #18221d; text-decoration: none; }
.ag-pg-cuerpo a:hover { text-decoration: underline; }
.ag-pg-meta { font-size: 14px; color: #4b5156; }
.ag-pg-vacio { padding: 18px; border: 1.5px dashed #cfd9de; border-radius: 14px; color: #2a3135; }
.ag-pg-pie { margin-top: 26px; }
.ag-pg-pie p { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ag-pg-pie .fuente { display: block; }
@media (max-width: 480px) { .ag-pg-hora { width: 64px; font-size: 14px; } .ag-pg-lista li { gap: 10px; } }

.agenda-ver-todo { margin: 14px 0 4px; }
.agenda-ver-todo .btn-primario { display: inline-flex; text-decoration: none; }

.ag-pg-tarjetas { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 820px) { .ag-pg-tarjetas { grid-template-columns: 1fr 1fr; } }
.ag-pg-tarjetas .ag-cuerpo h3 { margin: 0; font-size: 20px; line-height: 1.2; }
.ag-pg-tarjetas .ag-cuerpo h3 a { color: inherit; text-decoration: none; }
.ag-pg-tarjetas .ag-cuerpo h3 a:hover { text-decoration: underline; }

.titulares { margin: 28px 0 8px; }
.titulares .story-lista { display: block; }
.titulares-mas { margin: 8px 0 0; }
.titulares-mas a { font-weight: 700; color: var(--enlace); text-decoration: underline; text-underline-offset: 3px; }
body:has(#noticias:not(.tab-off)) #titulares { display: none; }

/* Botones de la agenda: todos del mismo tamaño y estilo */
.agenda-acciones, .ag-pg-botones { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 0; }
.ag-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--enlace); background: #fff; color: var(--enlace); font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; }
.ag-btn[hidden] { display: none; }
.ag-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ag-btn:hover { background: #eef5f8; }
.ag-btn-pri { background: var(--enlace); color: #fff; }
.ag-btn-pri:hover { background: #084b61; }
.ag-btn:focus-visible { outline: 3px solid var(--enlace); outline-offset: 2px; }
.ag-pg-pie p.ag-pg-botones { margin-top: 0; }

/* ---- Con la barra flotante solo hay una barra: la fila de secciones de la portada se esconde (Noticias y En directo van en el menú Servicios) ---- */
nav.secciones { display: none; }
html { scroll-padding-top: 90px; }
@media (max-width: 700px) { html { scroll-padding-top: 16px; } }

/* ===== Agenda: «Todo el día» cabe en la tarjeta compacta; botón «Ver más» ===== */
.agenda-item.ag-card.compacta:not(.abierta) .ag-cab { width: 96px; min-width: 0; }
.agenda-item.ag-card.compacta:not(.abierta) .ag-hora { margin-left: 0; flex: 1 1 auto; min-width: 0; }
.agenda-item.ag-card.compacta:not(.abierta) .ag-hora.sin { font-size: 12px; line-height: 1.15; white-space: normal; }
.agenda-item.ag-card.compacta:not(.abierta) .ag-cuerpo { padding-left: 8px; }
.ag-ver-mas { display: block; width: 100%; margin: 12px 0 0; }

/* ===== Filtros de la agenda: un color por grupo (cuándo, dónde, qué) ===== */
.ag-pg-munis a { --g: var(--enlace); --g-clr: #c9dbe3; border-color: var(--g-clr); }
.ag-pg-munis:not(.ag-pg-vistas):not(.ag-pg-tipos) a { --g: var(--verde, #2f6b4f); --g-clr: #cfe2d6; }
.ag-pg-tipos a { --g: var(--teja); --g-clr: #ecd3c2; }
.ag-pg-munis a:hover { border-color: var(--g); }
.ag-pg-munis a.activo { background: var(--g); border-color: var(--g); color: #fff; }
#agenda-rango .chip { border-color: #c9dbe3; }
#agenda-rango .chip[aria-pressed="true"] { background: var(--enlace); border-color: var(--enlace); color: #fff; }
#agenda .chips-comarca .chip { border-color: #cfe2d6; }
#agenda .chips-comarca .chip[aria-pressed="true"] { background: var(--verde, #2f6b4f); border-color: var(--verde, #2f6b4f); color: #fff; }
#agenda-rapidos .chip { border-color: #ecd3c2; }
#agenda-rapidos .chip[aria-pressed="true"] { background: var(--teja); border-color: var(--teja); color: #fff; }

/* ===== Agenda: artículos de planes de la prensa local (solo titular y enlace) ===== */
.ag-planes { margin: 26px 0 0; padding: 16px 18px; border: 1px solid var(--linea); border-left: 4px solid var(--teja); border-radius: 12px; background: #fff; }
.ag-planes h2, .ag-planes h3 { margin: 0 0 10px; font-size: 17px; }
.ag-planes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ag-planes li { display: flex; flex-direction: column; gap: 2px; }
.ag-planes a { font-weight: 700; color: var(--tinta); text-decoration: none; line-height: 1.3; }
.ag-planes a:hover { text-decoration: underline; }
.ag-planes a::after { content: " ↗"; color: var(--gris); font-weight: 400; }
.ag-planes span { font-size: 13px; color: var(--gris); }
/* ===== Portada: cuatro tarjetas iguales (Voz Vecinal, Tablón, este finde, mañana) ===== */
.hoy .comunidad, #tile-tiempo { display: none !important; }
.dest-par { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0 4px; }
.dest-par > .vz-destacado { grid-column: 1 / -1; }
.dest-par > .hc-tiempo { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .dest-par { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .dest-par > .vz-destacado, .dest-par > .hc-tiempo { grid-column: auto; }
}
.dest-par > .vz-destacado, .dest-par > .tb-destacado, .dest-par > .hc {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 14px 16px 12px;
  background: #fff; color: #18221d; text-decoration: none; border: 1px solid var(--linea); border-top: 4px solid var(--cc, #5b6368);
  border-left-width: 1px; border-radius: 14px; box-shadow: 0 2px 10px rgba(24, 34, 29, .06);
}
.dest-par > [hidden] { display: none !important; }
.dest-par > a:hover { box-shadow: 0 4px 16px rgba(24, 34, 29, .12); background: #fff; }
.dest-par > .vz-destacado { --cc: var(--verde, #2f6b4f); }
.dest-par > .tb-destacado { --cc: #6b4fa0; }
.dest-par > .hc-agenda { --cc: var(--enlace); }
.dest-par > .hc-tiempo { --cc: var(--ocre, #c89b2e); }
/* rótulo */
.dest-par .vzd-cab h2, .tbd-tit, .hc-tit { margin: 0; font-family: var(--texto); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cc); }
.dest-par .vzd-cab { margin: 0; }
.dest-par .vz-destacado .vzd-sub { display: none; }
/* la cifra */
.dest-par .vzd-datos { margin: 0; gap: 2px 14px; }
.dest-par .vzd-dato b, .tbd-n b, .hc-n b { font-family: var(--display); font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: #18221d; }
.dest-par .vzd-dato.abierto b { color: #c2410c; }
.dest-par .vzd-dato span, .tbd-n, .hc-n { font-size: 15px; color: #3a4348; }
.tbd-n, .hc-n { display: flex; align-items: baseline; gap: 6px; }
/* el detalle: como mucho dos líneas */
.tbd-ult, .hc-det, .dest-par .vzd-caso span, .dest-par .vzd-vacio { font-size: 14px; line-height: 1.35; color: #4a5358; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dest-par .vzd-caso { background: none; padding: 0; margin: 0; color: inherit; font-weight: 400; }
/* el enlace, siempre abajo */
.tbd-ver, .hc-ver { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 700; color: var(--enlace); }
.dest-par .vzd-ver { font-size: 14px; }
.dest-par > .tb-destacado, .dest-par > .tb-destacado > * { text-align: left; justify-content: flex-start; align-items: baseline; }
.dest-par > .tb-destacado { align-items: stretch; }
.dest-par .tbd-ult { display: -webkit-box; }
.dest-par .tbd-n { font-weight: 400; color: #3a4348; }
/* texto de las tarjetas con más cuerpo y contraste (se leía flojo) */
.dest-par .vzd-cab h2, .dest-par .tbd-tit, .dest-par .hc-tit { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; }
.dest-par .vzd-dato span, .dest-par .tbd-n, .dest-par .hc-n { font-size: 16px; font-weight: 600; color: #18221d; }
.dest-par .tbd-ult, .dest-par .hc-det, .dest-par .vzd-caso span, .dest-par .vzd-vacio { font-size: 15px; font-weight: 500; line-height: 1.4; color: #2a3135; }
.dest-par .tbd-ver, .dest-par .hc-ver, .dest-par .vzd-ver { font-size: 15px; font-weight: 700; }
#hc-tiempo-txt { font-size: 22px; }
.dest-par .tbd-tit, .dest-par .hc-tit { font-size: 13px; line-height: 1.3; }
.dest-par .vzd-cab { display: contents; }
.dest-par .vzd-ver { order: 9; margin-top: auto; padding-top: 4px; font-weight: 700; color: var(--enlace); }
.dest-par .vzd-dato.cero b { color: #18221d; }
@media (min-width: 1000px) { .hoy p.frase { max-width: 46ch; } }
@media (max-width: 619px) {
  .dest-par .vzd-dato b, .tbd-n b, .hc-n b { font-size: 26px; }
  .dest-par > .tb-destacado, .dest-par > .hc { padding: 12px 13px 10px; }
  .tbd-ult, .hc-det { font-size: 13px; }
}
/* ===== /agenda: filtros compactos (cuándo en botones, dónde en un desplegable, qué en una fila deslizable) ===== */
.ag-pg-donde { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--verde, #2f6b4f); }
.ag-pg-donde span { text-transform: uppercase; letter-spacing: .05em; font-size: 12.5px; }
.ag-pg-donde select { flex: 1 1 auto; max-width: 340px; min-height: 44px; padding: 0 36px 0 14px; border: 1.5px solid var(--verde, #2f6b4f); border-radius: 999px; background: #fff; color: #18221d; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.ag-pg-vistas { margin-bottom: 14px; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ag-pg-vistas a { padding: 0 12px; white-space: nowrap; }
.ag-pg-tipos { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 22px; padding: 2px 16px 6px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.ag-pg-tipos::-webkit-scrollbar { display: none; }
.ag-pg-tipos a { flex: none; white-space: nowrap; }
@media (min-width: 900px) { .ag-pg-tipos { flex-wrap: wrap; overflow: visible; margin: -4px 0 22px; padding: 0; -webkit-mask-image: none; mask-image: none; } }
/* ===== Tablón y Voz Vecinal: el botón de publicar, en la cabecera de la página ===== */
.pc-accion { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 6px; }
.pc-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--teja); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(169, 83, 26, .28); }
.pc-cta:hover { background: #93460f; }
.pc-cta:focus-visible { outline: 3px solid var(--enlace); outline-offset: 3px; }
.pc-tablon .pc-cta { background: #6b4fa0; box-shadow: 0 6px 18px rgba(107, 79, 160, .28); }
.pc-tablon .pc-cta:hover { background: #573f86; }
.pc-nota { font-size: 14px; color: var(--gris); }
@media (max-width: 619px) { .pc-cta { width: 100%; justify-content: center; } .pc-nota { width: 100%; text-align: center; } }
/* la barra de arriba no repite el botón en estas páginas */
body.modo-voz .ng-cta, body.modo-tablon .ng-cta { display: none; }
/* el flotante, solo cuando el de la cabecera ya no se ve */
body.cta-a-la-vista .vz-fab { display: none !important; }
body.modo-tablon .vz-fab { background: #6b4fa0; box-shadow: 0 8px 22px rgba(107, 79, 160, .35); }
/* en el ordenador también aparece al bajar, para no tener que volver arriba */
@media (min-width: 761px) {
  body.modo-voz:not(.cta-a-la-vista) .vz-fab, body.modo-tablon:not(.cta-a-la-vista) .vz-fab {
    display: inline-flex; align-items: center; position: fixed; right: 24px; bottom: 24px; z-index: 30; min-height: 52px; padding: 12px 22px;
    border: 0; border-radius: 999px; color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
  body.modo-voz:not(.cta-a-la-vista) .vz-fab { background: var(--teja); box-shadow: 0 8px 22px rgba(169, 83, 26, .35); }
}
/* ===== Tablón: compraventa entre particulares ===== */
.tb-venta[hidden] { display: none; }
.aviso-venta { margin: 8px 0; padding: 10px 12px; border-left: 4px solid var(--enlace); border-radius: 8px; background: #e8f1f5; color: #18221d; font-size: 14px; line-height: 1.45; }
.tb-venta .casilla { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; font-size: 15px; }
.tb-venta .casilla input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.anuncio-precio { margin: 2px 0 6px; font-family: var(--display); font-size: 22px; font-weight: 800; color: #18221d; }
.anuncio-venta { margin: 6px 0; font-size: 13.5px; color: #1f5f7a; }
.etiqueta.tipo-vendo { background: #e1eef5; color: #1f5f7a; }
.etiqueta.tipo-compro { background: #f3ead9; color: #7a5410; }
/* ===== Portada: dónde es la web, sobre el selector de zona ===== */
.hoy .lema { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--verde, #2f6b4f); }
.hoy .lema:empty { display: none; }

/* ---- Agenda más compacta: /agenda y la fila abierta de la portada ---- */
/* Tarjeta en fila: hora e icono a la izquierda, borde del color del tipo, botones pequeños. */
.ag-pg-tarjetas { gap: 8px; }
.ag-pg-tarjetas .agenda-item.ag-card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr);
  border: 1px solid var(--linea); border-left: 4px solid var(--cc); border-radius: 12px;
}
.ag-pg-tarjetas .ag-card .ag-cab {
  flex-direction: column; align-items: flex-start; justify-content: flex-start;
  gap: 6px; padding: 11px 0 10px 11px; background: none;
}
.ag-pg-tarjetas .ag-card .ag-hora { order: -1; margin: 0; font-size: 17px; }
.ag-pg-tarjetas .ag-card .ag-hora.sin { font-size: 12px; line-height: 1.15; }
.ag-pg-tarjetas .ag-card .ag-ico { width: 18px; height: 18px; }
.ag-pg-tarjetas .ag-card .ag-cat {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.ag-pg-tarjetas .ag-card .ag-cuerpo { gap: 2px; padding: 10px 12px 10px 4px; }
.ag-pg-tarjetas .ag-cuerpo h3 { font-size: 17px; line-height: 1.25; }
.ag-pg-tarjetas .ag-lugar { margin: 0; font-size: 13.5px; line-height: 1.35; }
.agenda-pagina .ag-pg-dia { margin-bottom: 16px; }

/* Botones de acción más bajos, en las dos agendas */
.ag-pg-tarjetas .ag-pie, .agenda-item.ag-card.compacta.abierta .ag-pie { gap: 6px; padding-top: 6px; }
.ag-pg-tarjetas .ag-pie .ag-enlace, .agenda-item.ag-card.compacta.abierta .ag-pie .ag-enlace {
  min-height: 36px; padding: 0 11px; gap: 6px; font-size: 13px;
}
.ag-pie .etiqueta { font-size: 12.5px; }

/* Solo iconos en /agenda (dos columnas en el PC) y en el móvil; el texto sigue ahí para lectores
   y sale como título al pasar el ratón. */
.ag-pg-tarjetas .ag-pie .ag-enlace { width: 40px; padding: 0; justify-content: center; position: relative; }
.ag-pg-tarjetas .ag-pie .ag-txt {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 600px) {
  .agenda-item.ag-card.compacta.abierta .ag-pie .ag-enlace {
    width: 40px; padding: 0; justify-content: center; position: relative;
  }
  .agenda-item.ag-card.compacta.abierta .ag-pie .ag-txt {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}


/* /agenda en el PC: una fila por evento (hora · título y lugar · botones a la derecha) */
.ag-pie .etiqueta { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 820px) {
  .ag-pg-tarjetas { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ag-pg-tarjetas .agenda-item.ag-card { grid-template-columns: 92px minmax(0, 1fr); }
  .ag-pg-tarjetas .ag-card .ag-cab { flex-direction: row; align-items: center; gap: 8px; padding: 0 0 0 14px; }
  .ag-pg-tarjetas .ag-card .ag-hora.sin { white-space: nowrap; }
  .ag-pg-tarjetas .ag-card .ag-cuerpo {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
    column-gap: 16px; row-gap: 1px; padding: 10px 14px 10px 6px; align-content: center;
  }
  .ag-pg-tarjetas .ag-cuerpo h3, .ag-pg-tarjetas .ag-lugar { grid-column: 1; }
  .ag-pg-tarjetas .ag-card .ag-pie { grid-column: 2; grid-row: 1 / span 2; flex-wrap: nowrap; padding: 0; margin: 0; justify-content: flex-end; }
  .ag-pg-tarjetas .ag-pie .etiqueta { max-width: 150px; }
}


/* /agenda con el mismo ancho que el resto de páginas; en pantallas grandes, dos columnas de filas */
.agenda-pagina { max-width: none; }
@media (min-width: 1200px) { .ag-pg-tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; } }


/* ---- Cabecera de cada día en la agenda: bloque de calendario + título + nº de eventos ---- */
.ag-dia-cab { display: flex; align-items: center; gap: 12px; padding: 8px 0 9px; margin: 0 0 10px; border-bottom: 2px solid #18221d; background: var(--fondo); }
.ag-dia-cab h2, .ag-dia-cab h3, .ag-pg-dia .ag-dia-cab h2 {
  flex: 1; min-width: 0; margin: 0; padding: 0; border: 0;
  font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; color: #18221d;
}
.ag-dia-num {
  flex: none; display: flex; flex-direction: column; align-items: stretch; width: 52px; overflow: hidden;
  border: 1.5px solid #18221d; border-radius: 10px; background: #fff; text-align: center; line-height: 1;
}
.ag-dia-num small {
  order: -1; padding: 3px 0 2px; background: #18221d; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.ag-dia-num b { padding: 4px 0 5px; font-family: var(--display); font-size: 22px; font-weight: 800; color: #18221d; }
.ag-dia-n { flex: none; font-size: 13px; font-weight: 600; color: #5b656b; white-space: nowrap; }
/* Hoy en el color de la marca; sábado y domingo en un azul suave */
.ag-dia-cab.es-hoy { border-bottom-color: var(--teja); }
.ag-dia-cab.es-hoy .ag-dia-num { border-color: var(--teja); }
.ag-dia-cab.es-hoy .ag-dia-num small { background: var(--teja); }
.ag-dia-cab.es-hoy .ag-dia-num b, .ag-dia-cab.es-hoy h2, .ag-dia-cab.es-hoy h3 { color: #8a3f12; }
.ag-dia-cab.es-finde .ag-dia-num { border-color: #2a6f8a; }
.ag-dia-cab.es-finde .ag-dia-num small { background: #2a6f8a; }
.ag-dia-cab.es-finde .ag-dia-num b { color: #1f5468; }
/* En la portada el día va dentro de la lista */
.ag-dia-fila .ag-dia-cab { margin: 16px 0 2px; }
.ag-dia-fila:first-child .ag-dia-cab { margin-top: 4px; }
/* En /agenda la cabecera del día se queda pegada arriba mientras bajas por sus eventos */
.agenda-pagina .ag-pg-dia { margin-bottom: 20px; }
.ag-pg-dia .ag-dia-cab { position: sticky; top: 0; z-index: 20; transition: top .25s ease; }
body:has(.ng:not(.ng-oculta)) .ag-pg-dia .ag-dia-cab { top: 74px; }
@media (max-width: 480px) {
  .ag-dia-cab { gap: 10px; }
  .ag-dia-cab h2, .ag-dia-cab h3, .ag-pg-dia .ag-dia-cab h2 { font-size: 17px; }
  .ag-dia-num { width: 46px; }
  .ag-dia-num b { font-size: 19px; }
  .ag-dia-n { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .ag-pg-dia .ag-dia-cab { transition: none; } }




/* ---- /agenda: «Proponer un evento» en primer plano ---- */
.ok-dialogo[hidden] { display: none; }
.ag-proponer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 14px 16px 14px 18px; border-radius: 14px;
  background: #eaf3f6; border: 1px solid #cfe2e9; border-left: 5px solid var(--enlace);
}
.ag-proponer p { margin: 0; flex: 1 1 320px; font-size: 15px; line-height: 1.4; color: #2a3135; }
.ag-proponer b { display: block; font-family: var(--display); font-size: 18px; font-weight: 800; color: #18221d; margin-bottom: 2px; }
.ag-proponer .ag-btn { flex: none; }
/* Botón flotante en el móvil cuando el aviso de arriba ya no se ve */
.ag-flota { display: none; }
@media (max-width: 700px) {
  .ag-flota:not([hidden]) {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
    display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border-radius: 999px;
    background: var(--enlace); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
    box-shadow: 0 8px 24px rgba(10, 30, 40, .3);
  }
  .ag-flota svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .ag-proponer .ag-btn { width: 100%; justify-content: center; }
}


/* ---- Voz Vecinal: meta de apoyos en las tarjetas ---- */
.vz-barra-meta { display: block; height: 8px; border-radius: 999px; background: #e3e9ec; overflow: hidden; margin-top: 8px; }
.vz-barra-meta i { display: block; height: 100%; border-radius: 999px; background: #b45309; transition: width .3s; }
.vz-barra-meta.llena i { background: #166534; }
.vz-objetivo { margin: 6px 0 0; font-size: 13px; line-height: 1.3; font-weight: 600; color: #8a4a0c; }
.vz-objetivo.hecho { color: #166534; }

/* ---- Informe del mes de Voz Vecinal ---- */
.informe-mes { padding-top: 24px; padding-bottom: 56px; max-width: 980px; }
.informe-mes h1 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 6vw, 44px); line-height: 1.05; letter-spacing: -.02em; margin: 6px 0 10px; }
.informe-mes .lead { margin: 0 0 18px; font-size: 17px; color: #2a3135; max-width: 62ch; }
.im-filtros { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.im-filtros label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: #4b5156; }
.im-filtros select { font: inherit; font-size: 16px; min-height: 44px; padding: 0 12px; border: 1.5px solid #cfd9de; border-radius: 10px; background: #fff; color: #18221d; }
.im-cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 14px; }
.im-cifra { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--linea); }
.im-cifra b { font-family: var(--display); font-size: 36px; font-weight: 800; line-height: 1; color: #18221d; }
.im-cifra span { font-size: 14px; color: #4b5156; line-height: 1.3; }
.im-cifra.hecho b { color: #166534; }
.im-cifra.abierto b { color: #b45309; }
.im-nota { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; background: #eef7f0; color: #14532d; }
.im-sec { margin: 26px 0 0; }
.im-sec h2 { font-size: 20px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid #18221d; }
.im-lista { margin: 0; padding: 0 0 0 1.4em; }
.im-lista li { padding: 10px 0; border-bottom: 1px solid #e3e9ec; }
.im-lista li > a { color: #18221d; }
.im-resueltos { list-style: none; padding-left: 0; }
.im-tipo { color: #4b5156; font-size: 14px; }
.im-datos { display: block; font-size: 14px; color: #4b5156; margin-top: 2px; }
.im-llevado { color: #166534; font-weight: 600; }
.im-vacio { padding: 14px; border: 1.5px dashed #cfd9de; border-radius: 12px; color: #2a3135; }
.im-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 14px; }
@media print {
  .ng, .im-filtros, .im-acciones, .migas { display: none !important; }
  .informe-mes { padding: 0; max-width: none; }
  .im-cifra { break-inside: avoid; }
  body { background: #fff; }
}


.vz-marcador-pie { margin: 10px 0 0; font-size: 14px; color: #4b5156; }
.vz-marcador-pie b { color: #166534; }
.vz-marcador-pie a { font-weight: 700; color: var(--enlace); }

.compacta:not(.abierta) :is(.vz-objetivo, .vz-barra-meta) { display: none; }


/* Voz Vecinal: tipos de problema. En el móvil, fila que se desliza con el dedo (el borde difuminado avisa
   de que hay más); en el ordenador, con ratón no se puede deslizar, así que van en varias líneas. */
.vz-chips { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }
@media (min-width: 700px), (hover: hover) and (pointer: fine) {
  .vz-chips { flex-wrap: wrap; overflow: visible; padding-right: 2px; -webkit-mask-image: none; mask-image: none; }
}


/* Voz Vecinal: el pueblo, arriba y en negrita */
.vz-muni { display: flex; align-items: center; gap: 5px; margin: 0 0 3px; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #18221d; }
.vz-muni-ico { width: 15px; height: 15px; flex: none; color: var(--ac, #b45309); }
.vz-card.compacta .vz-muni { margin-bottom: 1px; }


/* ---- Farmacias de guardia ---- */
.farmacia { padding: 12px 0 12px 14px; border-left: 5px solid #166534; margin-bottom: 10px; }
.farmacia h3 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.farmacia p { margin: 3px 0 0; font-size: 14px; }
.farmacia-meta { color: var(--gris); }
.farmacia-horario { font-weight: 600; color: #166534; }
.farmacia-acc { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px !important; }
.farmacia-nota { margin: 0 0 10px; font-size: 15px; }

/* ---- Barra de navegación flotante (todas las páginas menos la portada) ---- */
.ng { position: sticky; top: 10px; z-index: 50; margin: 10px auto 0; width: min(980px, calc(100% - 20px)); }
.ng-cap { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 14px; border-radius: 999px; background: rgba(18, 22, 25, .93); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 10px 30px rgba(10, 14, 18, .28), inset 0 1px 0 rgba(255, 255, 255, .08); }
.ng-marca { display: flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; margin-right: 8px; white-space: nowrap; }
.ng-marca svg { width: 28px; height: 22px; flex: none; }
.ng-marca b { font-weight: 800; }
.ng-marca i { font-style: normal; font-weight: 500; color: #efd6ae; }
.ng-lista { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; padding: 2px 0; }
.ng-lista a.ng-it, .ng-lista summary { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px 0 11px; border-radius: 999px; border: 0; color: rgba(255, 255, 255, .88); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; list-style: none; white-space: nowrap; transition: background .15s, color .15s; }
.ng-lista summary::-webkit-details-marker { display: none; }
.ng-it svg, .ng-lista summary svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.ng-lista a.ng-it:hover, .ng-lista summary:hover, .ng-lista details[open] > summary { background: rgba(255, 255, 255, .13); color: #fff; }
.ng-lista a.ng-it[aria-current="page"], .ng-lista summary.ng-aqui { background: #fff; color: #18221d; }
.ng-it[aria-current="page"] svg, .ng-lista summary.ng-aqui svg { stroke: #a9531a; opacity: 1; }
.ng-lista details { position: relative; }
.ng-lista summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 1px; transition: transform .2s; }
.ng-lista details[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.ng-cta { display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px; border-radius: 999px; background: #a9531a; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; margin-left: auto; }
.ng-cta:hover { background: #b93a17; }
.ng-c { display: none; }
.ng-panel { position: absolute; top: calc(100% + 12px); left: -8px; width: min(440px, 86vw); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border-radius: 22px; background: #fff; color: #18221d; box-shadow: 0 22px 50px rgba(10, 14, 18, .32); border: 1px solid #e3e9ec; animation: ng-abre .18s ease-out; transform-origin: top left; }
@keyframes ng-abre { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.ng-panel a { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: 14px; border: 0; color: #18221d; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.2; }
.ng-panel a small { font-weight: 500; font-size: 12.5px; color: #5b656b; }
.ng-panel a:hover, .ng-panel a[aria-current="page"] { background: #fdf0ea; }
.ng-panel a:hover small, .ng-panel a[aria-current="page"] small { color: #8a3a1c; }
.ng a:focus-visible, .ng summary:focus-visible { outline: 3px solid #e8b97a; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .ng-panel { animation: none; } }
@media (max-width: 700px) {
  .ng { width: calc(100% - 14px); top: 7px; margin-top: 7px; }
  .ng-cap { border-radius: 26px; padding: 4px 5px; }
  .ng-marca b, .ng-marca i { display: none; }
  .ng-marca { margin-right: 4px; }
  .ng-lista { gap: 0; }
  .ng-lista a.ng-it, .ng-lista summary { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; min-height: 52px; padding: 0 2px; border-radius: 20px; font-size: 11.5px; text-align: center; }
  .ng-it svg, .ng-lista summary svg { width: 21px; height: 21px; }
  .ng-lista summary::after { display: none; }
  .ng-lista details { flex: 1 1 0; display: flex; position: static; }
  .ng-lista details > summary { flex: 1; }
  .ng-l { display: none; }
  .ng-c { display: inline; }
  .ng-cta { display: none; }
  .ng-panel { position: fixed; left: 7px; right: 7px; top: 64px; width: auto; }
}

/* Barra clara: cristal esmerilado con letra oscura, más suave que la versión negra */
.ng-cap { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); border: 1px solid rgba(20, 24, 27, .08); box-shadow: 0 6px 22px rgba(20, 40, 50, .12); }
.ng-marca { color: #18221d; }
.ng-marca i { color: #a9531a; }
.ng-marca svg path:first-child { fill: #18221d; }
.ng-lista a.ng-it, .ng-lista summary { color: #3a444a; }
.ng-lista a.ng-it:hover, .ng-lista summary:hover, .ng-lista details[open] > summary { background: rgba(20, 24, 27, .07); color: #18221d; }
.ng-lista a.ng-it[aria-current="page"], .ng-lista summary.ng-aqui { background: #f6e9df; color: #7f3d12; }
.ng-panel { box-shadow: 0 16px 40px rgba(20, 40, 50, .18); }
@media (max-width: 700px) { .ng { transition: transform .25s ease; } .ng.ng-oculta { transform: translateY(-130%); } }
@media (prefers-reduced-motion: reduce) { .ng { transition: none; } }

/* Un color por sección, los mismos de las tarjetas de la portada */
.ng-c-voz { --nc: #2f6b4f; --nf: #e3f3ea; --nt: #14633a; }
.ng-c-tablon { --nc: #6a4aa0; --nf: #ece6f6; --nt: #52387f; }
.ng-c-agenda { --nc: #0b6fa0; --nf: #e0eff7; --nt: #0b5a82; }
.ng-c-servicios { --nc: #a9531a; --nf: #f6e9df; --nt: #7f3d12; }
.ng-c-guias { --nc: #b9801a; --nf: #f8eed6; --nt: #8a5e0c; }
.ng-lista .ng-it svg, .ng-lista summary svg { stroke: var(--nc); opacity: 1; stroke-width: 2.1; }
.ng-lista a.ng-it:hover, .ng-lista summary:hover, .ng-lista details[open] > summary { background: var(--nf); color: var(--nt); }
.ng-lista a.ng-it[aria-current="page"], .ng-lista summary.ng-aqui { background: var(--nf); color: var(--nt); }
.ng-it[aria-current="page"] svg, .ng-lista summary.ng-aqui svg { stroke: var(--nc); }
.ng-cap { background: rgba(255, 255, 255, .93); }
