/* Cabecera del Ajuntament: barra de servicio clara + cabecera blanca; paneles con grupos en tarjetas.
   Por debajo de 1100 px el mismo HTML pasa a ser un cajón con acordeones. Todo va bajo .epm para no
   mezclarse con los estilos del tema ni de Elementor. */
.epm {
  --epm-paper: #ffffff;
  --epm-panel: #f6f5f2;
  --epm-bar: #f2f1ee;
  --epm-ink: #1d1c19;
  --epm-ink-soft: #5c5850;
  --epm-line: #e2dfd8;
  --epm-line-strong: #cfcac0;
  --epm-gold: #c39001;        /* oro del escudo: botones, línea activa */
  --epm-gold-text: #7a5800;   /* oro para texto sobre blanco, 6,5:1 */
  --epm-gold-tint: #f6eed6;
  --epm-focus: #1e6fa8;
  --epm-pad: 28px;
  box-sizing: border-box;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--epm-ink);
  -webkit-font-smoothing: antialiased;
}
.epm *, .epm *::before, .epm *::after { box-sizing: border-box; }
.epm [hidden] { display: none !important; }
.epm svg { flex: none; }
.epm a { color: inherit; }
.epm :focus-visible { outline: 3px solid var(--epm-focus); outline-offset: 2px; border-radius: 4px; }
.epm .epm-in { max-width: 1360px; margin-inline: auto; }
.epm .epm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .epm * { transition: none !important; } }

/* ---------- Barra de servicio ---------- */
.epm-utility { background: var(--epm-bar); border-bottom: 1px solid var(--epm-line); font-size: 14px; }
.epm-utility .epm-in { display: flex; align-items: center; gap: 22px; padding: 6px var(--epm-pad); min-height: 42px; }
.epm-utility a { white-space: nowrap; text-decoration: none; color: var(--epm-ink); display: inline-flex; align-items: center; gap: 7px; }
.epm-utility a:hover { color: var(--epm-gold-text); text-decoration: underline; text-underline-offset: 3px; }
.epm-utility .epm-push { margin-left: auto; }
.epm-utility .epm-sep { flex: none; width: 1px; height: 18px; background: var(--epm-line-strong); }
.epm-utility .epm-phone { font-weight: 600; font-variant-numeric: tabular-nums; gap: 6px; }
.epm-utility .epm-phone svg { color: var(--epm-ink-soft); }
.epm-utility .epm-seu { background: var(--epm-gold); color: #1d1c19; font-weight: 650; padding: 5px 12px; border-radius: 6px; }
.epm-utility .epm-seu:hover { color: #1d1c19; text-decoration: none; filter: brightness(1.07); }
.epm-utility .epm-ext { color: var(--epm-ink-soft); }
.epm-utility .epm-seu .epm-ext { display: none; }
/* Canal de WhatsApp (siempre a la vista, con nombre) y redes sociales (iconos) */
.epm-utility .epm-wa { background: var(--epm-paper); border: 1px solid var(--epm-line-strong); padding: 4px 11px 4px 8px; border-radius: 6px; font-weight: 650; gap: 6px; }
.epm-utility .epm-wa:hover { border-color: #0a7d3e; color: var(--epm-ink); text-decoration: none; }
.epm .epm-net-whatsapp svg { color: #0a7d3e; }
.epm-utility .epm-socials { display: inline-flex; align-items: center; gap: 2px; margin-inline: -8px; }
.epm-utility .epm-social { width: 34px; height: 34px; justify-content: center; border-radius: 6px; color: var(--epm-ink-soft); }
.epm-utility .epm-social:hover { background: var(--epm-paper); color: var(--epm-ink); text-decoration: none; }
.epm .epm-extra-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.epm .epm-lang { display: inline-flex; gap: 2px; font-weight: 600; font-size: 13px; letter-spacing: .03em; }
.epm .epm-lang a { padding: 3px 7px; border-radius: 5px; color: var(--epm-ink-soft); }
.epm .epm-lang a[aria-current="true"],
.epm .epm-lang a[aria-current="true"]:hover { color: var(--epm-paper); background: var(--epm-ink); text-decoration: none; }

/* ---------- Cabecera ---------- */
.epm-header {
  position: sticky; top: 0; z-index: 99;
  background: var(--epm-paper); border-bottom: 1px solid var(--epm-line);
}
@media (min-width: 601px) { .admin-bar .epm-header { top: var(--wp-admin--admin-bar--height, 32px); } }
.epm-header > .epm-in { display: flex; align-items: stretch; gap: 28px; padding: 0 var(--epm-pad); min-height: 84px; }
.epm .epm-brand { display: flex; align-items: center; text-decoration: none; line-height: 0; }
.epm .epm-brand img { height: 58px; width: auto; max-width: none; }

.epm .epm-nav { margin-left: auto; display: flex; }
.epm .epm-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: 6px; }
.epm .epm-item { display: flex; margin: 0; }
.epm .epm-top {
  position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px;
  font: inherit; font-size: 16.5px; font-weight: 600; line-height: 1.2; letter-spacing: 0; text-transform: none; white-space: nowrap;
  border: 0; border-radius: 0; background: none; color: var(--epm-ink); text-decoration: none; cursor: pointer;
  transition: color .15s ease;
}
.epm .epm-top::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: transparent; transition: background .15s ease;
}
.epm .epm-top:hover, .epm .epm-top:focus { color: var(--epm-gold-text); background: none; }
.epm .epm-top:hover::after { background: var(--epm-line-strong); }
.epm .epm-top.is-current::after { background: var(--epm-gold); }
.epm .epm-top[aria-expanded="true"] { color: var(--epm-gold-text); }
.epm .epm-top[aria-expanded="true"]::after { background: var(--epm-gold); }
.epm .epm-top .epm-chev { transition: transform .2s ease; color: var(--epm-ink-soft); }
.epm .epm-top[aria-expanded="true"] .epm-chev { transform: rotate(180deg); color: var(--epm-gold-text); }
.epm .epm-top .epm-ext { color: var(--epm-ink-soft); }
.epm .epm-home { padding: 0 6px 0 10px; }
.epm .epm-home-icon { width: 24px; height: 24px; max-width: none; flex: none; }
.epm .epm-home::after { left: 10px; right: 6px; }
.epm .epm-home-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.epm .epm-tools { display: flex; align-items: center; gap: 8px; }
.epm .epm-icon-btn,
.epm .epm-search .epsite-search-trigger {
  height: 44px; min-width: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; border: 1px solid var(--epm-line); background: var(--epm-paper); color: var(--epm-ink);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1; cursor: pointer; opacity: 1;
  transition: color .15s ease, border-color .15s ease;
}
.epm .epm-icon-btn:hover, .epm .epm-icon-btn:focus,
.epm .epm-search .epsite-search-trigger:hover, .epm .epm-search .epsite-search-trigger:focus {
  border-color: var(--epm-gold); color: var(--epm-gold-text); background: var(--epm-paper); opacity: 1;
}
.epm .epm-icon-btn[aria-expanded="true"] { border-color: var(--epm-gold); background: var(--epm-gold-tint); color: var(--epm-gold-text); }
.epm .epm-search { display: flex; }
.epm .epm-search .epsite-search-trigger::after { content: var(--epm-search-label); }
.epm .epm-search .epsite-search-icon { width: 18px; height: 18px; }
.epm .epm-search .epsite-search-trigger:focus-visible { outline: 3px solid var(--epm-focus); outline-offset: 2px; }
.epm .epm-burger { display: none; }
.epm .epm-burger .epm-i-close { display: none; }
.epm .epm-burger[aria-expanded="true"] .epm-i-open { display: none; }
.epm .epm-burger[aria-expanded="true"] .epm-i-close { display: block; }

/* ---------- Paneles ---------- */
.epm .epm-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--epm-panel-top, 150px)); max-height: calc(100dvh - var(--epm-panel-top, 150px)); overflow-y: auto;
  background: var(--epm-panel); border-bottom: 1px solid var(--epm-line);
  box-shadow: 0 22px 32px -22px rgba(29, 28, 25, .35);
}
.epm .epm-panel > .epm-in { padding: 22px var(--epm-pad) 28px; display: grid; gap: 18px; }
.epm .epm-phead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.epm .epm-phead h2 { margin: 0; font: inherit; font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--epm-ink); text-transform: none; }
.epm .epm-phead p { margin: 0; color: var(--epm-ink-soft); flex: 1 1 260px; }
.epm .epm-close {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  font: inherit; font-size: 14px; font-weight: 600; line-height: 1; color: var(--epm-ink-soft);
  background: var(--epm-paper); border: 1px solid var(--epm-line); border-radius: 8px; cursor: pointer;
}
.epm .epm-close:hover, .epm .epm-close:focus { color: var(--epm-ink); border-color: var(--epm-line-strong); background: var(--epm-paper); }

.epm .epm-cols { display: grid; gap: 14px; align-items: start; grid-template-columns: repeat(var(--epm-n, 3), minmax(0, 1fr)); }
.epm .epm-n1 { --epm-n: 1; } .epm .epm-n2 { --epm-n: 2; } .epm .epm-n3 { --epm-n: 3; } .epm .epm-n4 { --epm-n: 4; } .epm .epm-n5 { --epm-n: 5; }
.epm .epm-news-col { grid-column: span 2; }

.epm .epm-card { background: var(--epm-paper); border: 1px solid var(--epm-line); border-radius: 10px; padding: 16px 16px 12px; margin: 0; }
.epm .epm-card h3,
.epm .epm-news-col h3 { margin: 0; font: inherit; font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--epm-ink); text-transform: none; letter-spacing: 0; }
.epm .epm-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.epm .epm-ic { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--epm-gold-tint); color: var(--epm-gold-text); flex: none; }
.epm .epm-links { list-style: none; margin: 0; padding: 0; }
.epm .epm-links li { margin: 0; }
.epm .epm-links li:not([hidden]) ~ li:not([hidden]) { border-top: 1px solid var(--epm-line); }
.epm .epm-links a { display: flex; align-items: center; gap: 8px; padding: 9px 2px; text-decoration: none; color: var(--epm-ink); font-size: 15px; }
.epm .epm-links a:hover { color: var(--epm-gold-text); text-decoration: underline; text-underline-offset: 3px; }
.epm .epm-links .epm-ext, .epm .epm-chip .epm-ext { color: var(--epm-ink-soft); }

.epm .epm-feature { background: var(--epm-gold-tint); border-color: transparent; padding: 18px; display: grid; gap: 10px; }
.epm .epm-feature h3 { margin: 0; }
.epm .epm-feature p { margin: 0; color: var(--epm-ink-soft); font-size: 14px; }
.epm .epm-actions { display: grid; gap: 8px; }
.epm .epm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 8px;
  font-weight: 650; font-size: 15px; line-height: 1.3; text-decoration: none; text-align: center;
}
.epm .epm-btn .epm-ext { display: none; }
.epm .epm-btn-primary { background: var(--epm-gold); color: #1d1c19; }
.epm .epm-btn-primary:hover { color: #1d1c19; filter: brightness(1.07); }
.epm .epm-btn-ghost { background: var(--epm-paper); border: 1px solid var(--epm-line-strong); color: var(--epm-ink); }
.epm .epm-btn-ghost:hover { border-color: var(--epm-gold); color: var(--epm-gold-text); }

/* Buscador de servicios */
.epm .epm-finder { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.epm .epm-filter {
  flex: 1 1 320px; max-width: 520px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--epm-line-strong); border-radius: 10px; padding: 0 14px; background: var(--epm-paper);
}
.epm .epm-filter:focus-within { border-color: var(--epm-focus); box-shadow: 0 0 0 3px rgba(30, 111, 168, .2); }
.epm .epm-filter svg { color: var(--epm-ink-soft); }
.epm .epm-filter input {
  flex: 1; min-width: 0; width: auto; height: 46px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  font: inherit; font-size: 16px; color: var(--epm-ink); outline: none;
}
.epm .epm-count { font-size: 14px; color: var(--epm-ink-soft); font-variant-numeric: tabular-nums; }
.epm .epm-empty { margin: 0; padding: 14px 16px; background: var(--epm-paper); border: 1px dashed var(--epm-line-strong); border-radius: 10px; }
.epm mark { background: var(--epm-gold-tint); color: inherit; border-radius: 2px; padding: 0 1px; }

.epm .epm-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 4px; }
.epm .epm-quick > span { font-weight: 650; margin-right: 4px; }
.epm .epm-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--epm-paper); border: 1px solid var(--epm-line); text-decoration: none; font-size: 14px; font-weight: 550; color: var(--epm-ink);
}
.epm .epm-chip:hover { border-color: var(--epm-gold); color: var(--epm-gold-text); }

/* Actualidad */
.epm .epm-news-col { display: grid; gap: 12px; }
.epm .epm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.epm .epm-more { font-weight: 650; color: var(--epm-gold-text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.epm .epm-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.epm .epm-more .epm-arrow { transform: rotate(-90deg); }
.epm .epm-news { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.epm .epm-news a {
  display: grid; gap: 6px; align-content: start; text-decoration: none; padding: 16px; color: var(--epm-ink);
  background: var(--epm-paper); border: 1px solid var(--epm-line); border-radius: 10px;
}
.epm .epm-news a:hover { border-color: var(--epm-gold); }
.epm .epm-news time { font-size: 13px; font-weight: 600; color: var(--epm-gold-text); }
.epm .epm-news strong { font-size: 16px; line-height: 1.35; font-weight: 650; text-wrap: balance; }
.epm .epm-news .epm-cats { font-size: 13px; color: var(--epm-ink-soft); }

.epm .epm-extra { display: none; }

/* ---------- Pantalla mediana ---------- */
@media (min-width: 1100px) and (max-width: 1279px) {
  .epm { --epm-pad: 20px; }
  .epm-header > .epm-in { gap: 16px; }
  .epm .epm-list { gap: 0; }
  .epm .epm-top { padding: 0 10px; font-size: 16px; }
  .epm .epm-top::after { left: 10px; right: 10px; }
  .epm-utility .epm-in { gap: 11px; }
  .epm-utility .epm-hide-sm .epm-ext { display: none; }
  .epm .epm-n4 { --epm-n: 2; }
  .epm .epm-n5 { --epm-n: 3; }
}

/* ---------- Móvil y tableta: cajón con acordeones ---------- */
@media (max-width: 1099px) {
  .epm { --epm-pad: 16px; }
  .epm-utility .epm-in { gap: 12px; }
  .epm-utility .epm-hide-sm, .epm-utility .epm-socials, .epm-utility .epm-sep-links, .epm-utility .epm-sep-socials { display: none; }
  .epm-header > .epm-in { min-height: 68px; gap: 10px; align-items: center; }
  .epm .epm-brand img { height: 46px; }
  .epm .epm-tools { margin-left: auto; }
  .epm .epm-search .epsite-search-trigger::after { content: none; }
  .epm .epm-burger { display: inline-flex; }
  .epm .epm-nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; display: none;
    background: var(--epm-paper); border-top: 1px solid var(--epm-line); border-bottom: 1px solid var(--epm-line);
    max-height: calc(100vh - var(--epm-panel-top, 110px)); max-height: calc(100dvh - var(--epm-panel-top, 110px));
    overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 22px 32px -22px rgba(29, 28, 25, .35);
  }
  .epm .epm-nav.is-open { display: block; }
  .epm .epm-list { flex-direction: column; gap: 0; }
  .epm .epm-item { display: block; border-bottom: 1px solid var(--epm-line); }
  .epm .epm-top { width: 100%; justify-content: space-between; height: 58px; padding: 0 16px; font-size: 18px; text-align: left; }
  .epm .epm-top::after { display: none; }
  .epm .epm-top.is-current { box-shadow: inset 4px 0 0 var(--epm-gold); }
  .epm .epm-home { justify-content: flex-start; gap: 10px; padding: 0 16px; }
  .epm .epm-home-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .epm .epm-top[aria-expanded="true"] { background: var(--epm-panel); }
  .epm .epm-panel { position: static; max-height: none; overflow: visible; box-shadow: none; border: 0; }
  .epm .epm-panel > .epm-in { padding: 4px 16px 20px; gap: 14px; }
  .epm .epm-phead { display: none; }
  .epm .epm-cols { grid-template-columns: 1fr; gap: 10px; }
  .epm .epm-news-col { grid-column: auto; }
  .epm .epm-filter { max-width: none; }
  .epm .epm-links a { padding: 12px 2px; font-size: 16px; }
  .epm .epm-chip { padding: 10px 14px; font-size: 15px; }
  .epm .epm-news { grid-template-columns: 1fr; }
  .epm .epm-extra { display: grid; gap: 10px; padding: 16px; }
  .epm .epm-extra .epm-btn { padding: 13px; }
  .epm .epm-extra-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .epm .epm-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .epm .epm-news-col { grid-column: span 2; }
  .epm .epm-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .epm .epm-extra { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .epm .epm-extra-phone, .epm .epm-extra-social { grid-column: 1 / -1; }
}
@media (max-width: 699px) {
  .epm-utility .epm-phone, .epm-utility .epm-sep-phone { display: none; }
  /* En el móvil el canal queda como botón de icono; el nombre lo sigue leyendo el lector de pantalla. */
  .epm-utility .epm-wa { width: 38px; height: 34px; padding: 0; justify-content: center; }
  .epm-utility .epm-wa .epm-net-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Buscador general (ventana de «El Poble Site Search») ----------
   Mismo lenguaje que los paneles del menú. Solo son estilos: el plugin del buscador no se modifica. */
body .epsite-search-portal-host {
  --epm-paper: #ffffff; --epm-panel: #f6f5f2; --epm-ink: #1d1c19; --epm-ink-soft: #5c5850;
  --epm-line: #e2dfd8; --epm-line-strong: #cfcac0; --epm-gold: #c39001; --epm-gold-text: #7a5800;
  --epm-gold-tint: #f6eed6; --epm-focus: #1e6fa8;
  --epsite-ink: #1d1c19; --epsite-muted: #5c5850; --epsite-line: #e2dfd8; --epsite-accent-dark: #7a5800;
}
body .epsite-search-portal-host .epsite-search-overlay { background: rgba(29, 28, 25, .5); }
body .epsite-search-portal-host .epsite-search-overlay.has-preloaded-backdrop { background: transparent; }
body .epsite-search-portal-host .epsite-search-dialog {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.5; color: var(--epm-ink);
  background: var(--epm-panel); border: 0; border-radius: 12px; overflow: hidden; gap: 14px; max-width: 860px; width: min(860px, 100%);
  box-shadow: 0 22px 48px -18px rgba(29, 28, 25, .45);
}
body .epsite-search-portal-host .epsite-search-dialog :focus-visible { outline: 3px solid var(--epm-focus); outline-offset: 2px; }

body .epsite-search-portal-host .epsite-search-head { background: var(--epm-paper); color: var(--epm-ink); border-bottom: 1px solid var(--epm-line); min-height: 62px; padding: 12px 22px; margin-bottom: 4px; }
body .epsite-search-portal-host .epsite-search-head h2 { font-family: inherit; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--epm-ink); text-transform: none; }
body .epsite-search-portal-host .epsite-close,
body .epsite-search-portal-host .epsite-close:hover,
body .epsite-search-portal-host .epsite-close:focus {
  width: auto; height: 36px; padding: 0 12px; gap: 6px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  background: var(--epm-paper); border: 1px solid var(--epm-line); border-radius: 8px; color: var(--epm-ink-soft);
}
body .epsite-search-portal-host .epsite-close:hover { color: var(--epm-ink); border-color: var(--epm-line-strong); }
body .epsite-search-portal-host .epsite-close::after { content: var(--epm-close-label, ""); }
body .epsite-search-portal-host .epsite-close svg { width: 14px; height: 14px; }

body .epsite-search-portal-host .epsite-search-form { gap: 10px; }
body .epsite-search-portal-host .epsite-search-field input {
  appearance: none; -webkit-appearance: none; height: 46px; min-height: 46px; padding: 0 14px 0 44px; font-family: inherit; font-size: 16px; color: var(--epm-ink);
  border: 1px solid var(--epm-line-strong); border-radius: 10px; box-shadow: none;
  background: var(--epm-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5850' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 14px 50% / 18px 18px no-repeat;
}
body .epsite-search-portal-host .epsite-search-field input:focus { border-color: var(--epm-focus); box-shadow: 0 0 0 3px rgba(30, 111, 168, .2); outline: 0; }
body .epsite-search-portal-host .epsite-submit,
body .epsite-search-portal-host .epsite-submit:hover,
body .epsite-search-portal-host .epsite-submit:focus {
  min-height: 46px; padding: 0 20px; font-family: inherit; font-size: 15px; font-weight: 650;
  background: var(--epm-gold); border: 1px solid var(--epm-gold); border-radius: 10px; color: #1d1c19;
}
body .epsite-search-portal-host .epsite-submit:hover { filter: brightness(1.07); }
body .epsite-search-portal-host .epsite-button-spinner { border-color: rgba(29, 28, 25, .3); border-top-color: #1d1c19; }
body .epsite-search-portal-host .epsite-search-status { font-size: 14px; color: var(--epm-ink-soft); font-variant-numeric: tabular-nums; }
body .epsite-search-portal-host .epsite-search-status:empty { display: none; }

body .epsite-search-portal-host .epsite-type-filter-label { font-size: 14px; font-weight: 650; color: var(--epm-ink); text-transform: none; }
body .epsite-search-portal-host .epsite-type-filter-button,
body .epsite-search-portal-host .epsite-type-filter-button:focus {
  display: inline-block; min-height: 34px; padding: 8px 13px; font-family: inherit; font-size: 14px; font-weight: 550; line-height: 1.2; text-transform: lowercase;
  background: var(--epm-paper); border: 1px solid var(--epm-line); border-radius: 999px; color: var(--epm-ink);
}
body .epsite-search-portal-host .epsite-type-filter-button::first-letter { text-transform: uppercase; }
body .epsite-search-portal-host .epsite-type-filter-button:hover { background: var(--epm-paper); border-color: var(--epm-gold); color: var(--epm-gold-text); }
body .epsite-search-portal-host .epsite-type-filter-button.is-active,
body .epsite-search-portal-host .epsite-type-filter-button.is-active:hover,
body .epsite-search-portal-host .epsite-type-filter-button.is-active:focus { background: var(--epm-ink); border-color: var(--epm-ink); color: var(--epm-paper); }

body .epsite-search-portal-host .epsite-results {
  gap: 0; padding: 0; margin: 0 22px 22px; background: var(--epm-paper); border: 1px solid var(--epm-line); border-radius: 10px; overflow: hidden;
}
body .epsite-search-portal-host .epsite-empty { background: none; color: var(--epm-ink-soft); padding: 16px; }
body .epsite-search-portal-host .epsite-result { border: 0; border-radius: 0; padding: 14px 16px; gap: 14px; grid-template-columns: 112px minmax(0, 1fr); box-shadow: none; }
body .epsite-search-portal-host .epsite-result.has-no-image { grid-template-columns: minmax(0, 1fr); }
body .epsite-search-portal-host .epsite-result + .epsite-result { border-top: 1px solid var(--epm-line); }
body .epsite-search-portal-host .epsite-result:hover { box-shadow: none; background: #fbfaf8; }
body .epsite-search-portal-host .epsite-result-media { min-height: 76px; border-radius: 6px; background: var(--epm-panel); }
body .epsite-search-portal-host .epsite-result-body { gap: 4px; }
body .epsite-search-portal-host .epsite-result-kicker { font-size: 13px; font-weight: 600; color: var(--epm-ink-soft); text-transform: none; gap: 6px; }
body .epsite-search-portal-host .epsite-type { background: none; padding: 0; color: var(--epm-gold-text); }
body .epsite-search-portal-host .epsite-result-title { font-family: inherit; font-size: 17px; font-weight: 650; line-height: 1.3; }
body .epsite-search-portal-host .epsite-result-title a { color: var(--epm-ink); }
body .epsite-search-portal-host .epsite-result-title a:hover { color: var(--epm-gold-text); text-decoration: underline; text-underline-offset: 3px; }
body .epsite-search-portal-host .epsite-result-excerpt { font-size: 14px; color: var(--epm-ink-soft); }
body .epsite-search-portal-host .epsite-result-excerpt mark { background: var(--epm-gold-tint); color: var(--epm-ink); font-weight: 600; border-radius: 2px; }
body .epsite-search-portal-host .epsite-result-terms span { border-color: var(--epm-line); border-radius: 999px; padding: 4px 8px; color: var(--epm-ink-soft); }
body .epsite-search-portal-host .epsite-result-link { font-family: inherit; font-size: 14px; font-weight: 650; text-transform: none; color: var(--epm-gold-text); margin-top: 2px; }
body .epsite-search-portal-host .epsite-result-link:hover { color: var(--epm-gold-text); text-decoration: underline; text-underline-offset: 3px; }
body .epsite-search-portal-host .epsite-load-more,
body .epsite-search-portal-host .epsite-load-more:hover,
body .epsite-search-portal-host .epsite-load-more:focus {
  font-family: inherit; font-size: 15px; font-weight: 650; background: var(--epm-paper); border: 1px solid var(--epm-line-strong); border-radius: 8px; color: var(--epm-ink);
}
body .epsite-search-portal-host .epsite-load-more:hover { border-color: var(--epm-gold); color: var(--epm-gold-text); }
@media (max-width: 700px) {
  body .epsite-search-portal-host .epsite-search-dialog { border-radius: 0; }
  body .epsite-search-portal-host .epsite-search-head, body .epsite-search-portal-host .epsite-search-form,
  body .epsite-search-portal-host .epsite-search-status, body .epsite-search-portal-host .epsite-type-filter { padding-inline: 16px; }
  body .epsite-search-portal-host .epsite-results { margin: 0 16px 16px; }
  body .epsite-search-portal-host .epsite-result { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 12px; }
  body .epsite-search-portal-host .epsite-result.has-no-image { grid-template-columns: minmax(0, 1fr); }
  body .epsite-search-portal-host .epsite-result-media { aspect-ratio: 1; min-height: 0; align-self: start; }
}

/* ---------- Filtro de noticias (plugin «El Poble News Filter») ----------
   Mismo lenguaje que el buscador y los paneles del menú. Solo son estilos: el plugin del filtro no se modifica. */
body .elpoble-news-filter-root {
  --epm-paper: #ffffff; --epm-panel: #f6f5f2; --epm-ink: #1d1c19; --epm-ink-soft: #5c5850;
  --epm-line: #e2dfd8; --epm-line-strong: #cfcac0; --epm-gold: #c39001; --epm-gold-text: #7a5800;
  --epm-gold-tint: #f6eed6; --epm-focus: #1e6fa8;
  --epnews-ink: #1d1c19; --epnews-muted: #5c5850; --epnews-line: #e2dfd8; --epnews-soft: #f6f5f2; --epnews-accent-strong: #1e6fa8;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; color: var(--epm-ink);
}
body .elpoble-news-filter-root a:focus-visible, body .elpoble-news-filter-root button:focus-visible,
body .elpoble-news-filter-root input:focus-visible, body .elpoble-news-filter-root select:focus-visible { outline: 3px solid var(--epm-focus); outline-offset: 2px; }

body .elpoble-news-filter-root .epnews-panel { background: var(--epm-panel); border: 1px solid var(--epm-line); border-radius: 12px; overflow: hidden; }
body .elpoble-news-filter-root .epnews-quick-filter { background: none; min-height: 66px; padding: 12px 18px; }
body .elpoble-news-filter-root .epnews-quick-title { font-family: inherit; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--epm-ink); }
body .elpoble-news-filter-root .epnews-quick-field { gap: 10px; font-size: 15px; }
body .elpoble-news-filter-root .epnews-quick-label { font-family: inherit; font-size: 14px; font-weight: 650; color: var(--epm-ink); }

body .elpoble-news-filter-root .epnews-select,
body .elpoble-news-filter-root .epnews-input,
body .elpoble-news-filter-root .epnews-calendar-jump-select {
  appearance: none; -webkit-appearance: none; min-height: 42px; padding: 0 12px; font-family: inherit; font-size: 15px; color: var(--epm-ink);
  background-color: var(--epm-paper); border: 1px solid var(--epm-line-strong); border-radius: 10px; box-shadow: none;
}
body .elpoble-news-filter-root .epnews-select,
body .elpoble-news-filter-root .epnews-calendar-jump-select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5850' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 14px 14px;
}
body .elpoble-news-filter-root .epnews-calendar-jump-select { min-height: 38px; border-radius: 8px; font-size: 14px; padding: 0 26px 0 10px; background-position: right 8px center; background-size: 12px 12px; }
body .elpoble-news-filter-root .epnews-input[type="search"] {
  padding-left: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5850' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; background-size: 18px 18px;
}
body .elpoble-news-filter-root .epnews-field:focus-within .epnews-select,
body .elpoble-news-filter-root .epnews-field:focus-within .epnews-input,
body .elpoble-news-filter-root .epnews-select:focus,
body .elpoble-news-filter-root .epnews-input:focus,
body .elpoble-news-filter-root .epnews-calendar-jump-select:focus { border-color: var(--epm-focus); box-shadow: 0 0 0 3px rgba(30, 111, 168, .2); }

body .elpoble-news-filter-root .epnews-button,
body .elpoble-news-filter-root .epnews-button:focus {
  min-height: 42px; padding: 0 18px; font-family: inherit; font-size: 15px; font-weight: 650;
  background: var(--epm-gold); border: 1px solid var(--epm-gold); border-radius: 10px; color: #1d1c19;
}
body .elpoble-news-filter-root .epnews-button:hover,
body .elpoble-news-filter-root .epnews-button:active { background: var(--epm-gold); border-color: var(--epm-gold); color: #1d1c19; filter: brightness(1.07); }
body .elpoble-news-filter-root .epnews-button-secondary,
body .elpoble-news-filter-root .epnews-quick-button,
body .elpoble-news-filter-root .epnews-load-more,
body .elpoble-news-filter-root .epnews-button-secondary:focus,
body .elpoble-news-filter-root .epnews-quick-button:focus,
body .elpoble-news-filter-root .epnews-load-more:focus { background: var(--epm-paper); border: 1px solid var(--epm-line-strong); border-radius: 8px; color: var(--epm-ink); filter: none; }
body .elpoble-news-filter-root .epnews-button-secondary:hover,
body .elpoble-news-filter-root .epnews-quick-button:hover,
body .elpoble-news-filter-root .epnews-load-more:hover,
body .elpoble-news-filter-root .epnews-button-secondary:active,
body .elpoble-news-filter-root .epnews-quick-button:active,
body .elpoble-news-filter-root .epnews-load-more:active { background: var(--epm-paper); border-color: var(--epm-gold); color: var(--epm-gold-text); filter: none; }
body .elpoble-news-filter-root .epnews-quick-button[aria-expanded="true"],
body .elpoble-news-filter-root .epnews-quick-button[aria-expanded="true"]:hover,
body .elpoble-news-filter-root .epnews-quick-button[aria-expanded="true"]:focus { background: var(--epm-gold-tint); border-color: var(--epm-gold); color: var(--epm-gold-text); }

body .elpoble-news-filter-root .epnews-panel-body { background: var(--epm-paper); border-top: 1px solid var(--epm-line); }
body .elpoble-news-filter-root .epnews-panel-body.is-closed { border-top-color: transparent; }
body .elpoble-news-filter-root .epnews-panel-body-inner { padding: 20px 18px 22px; gap: 28px; }
body .elpoble-news-filter-root .epnews-fields { gap: 16px; }
body .elpoble-news-filter-root .epnews-field { font-size: 14px; font-weight: 600; color: var(--epm-ink); }
body .elpoble-news-filter-root .epnews-field .epnews-select,
body .elpoble-news-filter-root .epnews-field .epnews-input { font-weight: 400; }

body .elpoble-news-filter-root .epnews-date-range-picker h3 { font-family: inherit; font-size: 16px; font-weight: 700; color: var(--epm-ink); }
body .elpoble-news-filter-root .epnews-icon-button,
body .elpoble-news-filter-root .epnews-icon-button:focus { min-height: 38px; background: var(--epm-paper); border: 1px solid var(--epm-line); border-radius: 8px; color: var(--epm-ink); font-family: inherit; }
body .elpoble-news-filter-root .epnews-icon-button:hover,
body .elpoble-news-filter-root .epnews-icon-button:active { background: var(--epm-paper); border-color: var(--epm-gold); color: var(--epm-gold-text); }
body .elpoble-news-filter-root .epnews-icon-button:disabled { background: var(--epm-panel); border-color: var(--epm-line); color: #a8a399; }
body .elpoble-news-filter-root .epnews-calendar-month-title { font-family: inherit; font-size: 15px; font-weight: 700; }
body .elpoble-news-filter-root .epnews-weekdays span { font-size: 13px; font-weight: 600; color: var(--epm-ink-soft); }
body .elpoble-news-filter-root .epnews-day,
body .elpoble-news-filter-root .epnews-day:focus { background: var(--epm-paper); border: 1px solid transparent; border-radius: 6px; color: var(--epm-ink); font-family: inherit; font-size: 15px; }
body .elpoble-news-filter-root .epnews-day:hover { background: var(--epm-paper); border-color: var(--epm-gold); color: var(--epm-ink); }
body .elpoble-news-filter-root .epnews-day.is-in-range { background: var(--epm-gold-tint); border-color: transparent; border-radius: 0; }
body .elpoble-news-filter-root .epnews-day.is-selected,
body .elpoble-news-filter-root .epnews-day.is-range-start,
body .elpoble-news-filter-root .epnews-day.is-range-end { background: var(--epm-gold); border-color: var(--epm-gold); border-radius: 6px; color: #1d1c19; font-weight: 700; }
body .elpoble-news-filter-root .epnews-day.is-today:not(.is-selected) { text-decoration-color: var(--epm-gold); }
body .elpoble-news-filter-root .epnews-day.is-other-month { background: none; border-color: transparent; color: #8a857b; }
body .elpoble-news-filter-root .epnews-day:disabled { background: none; color: #b5b0a6; }

body .elpoble-news-filter-root .epnews-chip,
body .elpoble-news-filter-root .epnews-chip:focus { background: var(--epm-paper); border: 1px solid var(--epm-line-strong); border-radius: 999px; color: var(--epm-ink); font-family: inherit; font-size: 14px; font-weight: 550; padding: 7px 12px; }
body .elpoble-news-filter-root .epnews-chip:hover { background: var(--epm-paper); border-color: var(--epm-gold); color: var(--epm-gold-text); }
body .elpoble-news-filter-root .epnews-status { color: var(--epm-ink-soft); font-size: 14px; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  body .elpoble-news-filter-root .epnews-mobile-filter-trigger,
  body .elpoble-news-filter-root .epnews-mobile-filter-trigger:hover,
  body .elpoble-news-filter-root .epnews-mobile-filter-trigger:focus {
    background: var(--epm-panel); border: 1px solid var(--epm-line); border-radius: 12px; color: var(--epm-ink); font-family: inherit; font-size: 19px; font-weight: 700; min-height: 62px;
  }
  body .elpoble-news-filter-root .epnews-mobile-filter-action { background: var(--epm-paper); border: 1px solid var(--epm-line-strong); border-radius: 8px; color: var(--epm-ink); font-size: 14px; font-weight: 650; min-height: 38px; }
  body .elpoble-news-filter-root .epnews-select, body .elpoble-news-filter-root .epnews-input,
  body .elpoble-news-filter-root .epnews-button, body .elpoble-news-filter-root .epnews-icon-button { min-height: 46px; }
  body .elpoble-news-filter-root .epnews-sheet-head { background: var(--epm-paper); border-bottom: 1px solid var(--epm-line); color: var(--epm-ink); }
  body .elpoble-news-filter-root .epnews-sheet-title { font-family: inherit; font-size: 20px; font-weight: 700; color: var(--epm-ink); }
  body .elpoble-news-filter-root .epnews-sheet-close,
  body .elpoble-news-filter-root .epnews-sheet-close:hover,
  body .elpoble-news-filter-root .epnews-sheet-close:focus { background: var(--epm-paper); border: 1px solid var(--epm-line); border-radius: 8px; color: var(--epm-ink-soft); font-size: 26px; }
  body .elpoble-news-filter-root .epnews-sheet-date-summary { background: var(--epm-panel); border-left: 0; border-radius: 8px; }
  body .elpoble-news-filter-root .epnews-sheet-foot { border-top-color: var(--epm-line); }
}

/* Tarjetas de noticia: tarjeta blanca completa, foto 3:2, fecha y categorías sobre el título y enlace al pie. */
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-grid { gap: 24px; }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card {
  display: flex; flex-direction: column; padding: 0; background: var(--epm-paper); border: 1px solid var(--epm-line); border-radius: 10px; overflow: hidden;
  transition: border-color .15s ease;
}
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card:hover,
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card:focus-within { border-color: var(--epm-gold); }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-media { height: auto; aspect-ratio: 3 / 2; border-radius: 0; box-shadow: none; background: var(--epm-panel); flex: none; }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card:hover .epnews-card-image { transform: none; }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-meta { order: 1; display: block; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--epm-ink-soft); }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-date { display: inline; margin: 0; font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--epm-gold-text); }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-categories { font-family: inherit; font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--epm-ink-soft); }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-date + .epnews-card-categories::before { content: " · "; white-space: pre; }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-category { color: var(--epm-ink-soft); }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-category:hover,
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-category:focus-visible { color: var(--epm-gold-text); text-decoration: underline; text-underline-offset: 3px; }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-category-separator { font-size: 0; color: var(--epm-ink-soft); }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-category-separator::before { content: " · "; font-size: 13.5px; white-space: pre; }
/* Zona táctil cómoda para las categorías (eran enlaces de 15 px de alto), sin cambiar cómo se ven */
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-category { display: inline-block; padding-block: 8px; margin-block: -8px; }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-title { order: 2; min-height: 0; margin: 0; font-family: inherit; font-size: 19px; font-weight: 650; line-height: 1.3; color: var(--epm-ink); text-wrap: pretty; }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-title a,
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-title a:hover,
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-title a:focus-visible { color: var(--epm-ink); }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-cta {
  order: 3; margin-top: auto; padding-top: 8px; align-self: flex-start; font-family: inherit; font-size: 15px; font-weight: 650; line-height: 1.5;
  text-transform: none; color: var(--epm-gold-text);
}
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-cta::after { content: " \2192"; }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-cta:hover,
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-cta:focus-visible { color: var(--epm-gold-text); text-decoration: underline; text-underline-offset: 3px; }
body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-placeholder { font-size: 14px; font-weight: 600; color: var(--epm-ink-soft); }
@media (max-width: 900px) { body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-grid { gap: 18px; } }
@media (max-width: 640px) {
  body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-media { height: auto; }
  body :is(.elpoble-news-filter-root, .epnews-latest) .epnews-card-title { font-size: 18px; }
}

/* ---------- Página de noticias: encabezado propio, noticia destacada y contador ---------- */
/* La sección de Elementor con la foto y el título antiguos (la que va justo antes de la del filtro) deja de mostrarse. */
.e-con:has(+ .e-con .epnews-page-head) { display: none !important; }
.e-con:has(> .elementor-widget-shortcode :is(.epnews-page-head, .epev-page-head)),
.e-con-inner:has(> .elementor-widget-shortcode :is(.epnews-page-head, .epev-page-head)) { padding-top: 0 !important; margin-top: 0 !important; }

body :is(.epnews-page-head, .epev-page-head) {
  --epm-paper: #ffffff; --epm-panel: #f6f5f2; --epm-ink: #1d1c19; --epm-ink-soft: #5c5850; --epm-line: #e2dfd8; --epm-gold: #c39001; --epm-gold-text: #7a5800;
  display: grid; gap: 10px; margin: 0 0 28px; padding: 22px 0 26px;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--epm-ink);
  /* Fondo a todo el ancho de la ventana sin salirse de la caja del contenido. */
  background: var(--epm-panel); box-shadow: 0 0 0 100vmax var(--epm-panel); clip-path: inset(0 -100vmax);
}
body :is(.epnews-page-head, .epev-page-head) .epnews-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--epm-ink-soft); }
body :is(.epnews-page-head, .epev-page-head) .epnews-crumbs li { margin: 0; }
body :is(.epnews-page-head, .epev-page-head) .epnews-crumbs li + li::before { content: "\203A"; margin-right: 6px; }
body :is(.epnews-page-head, .epev-page-head) .epnews-crumbs a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body :is(.epnews-page-head, .epev-page-head) .epnews-crumbs a:hover { color: var(--epm-gold-text); }
body :is(.epnews-page-head, .epev-page-head) .epnews-page-title { margin: 0; font-family: inherit; font-size: 38px; font-weight: 700; line-height: 1.15; letter-spacing: -.015em; color: var(--epm-ink); text-transform: none; }
body :is(.epnews-page-head, .epev-page-head) .epnews-page-lead { margin: 0; max-width: 62ch; font-size: 17px; color: var(--epm-ink-soft); }
body :is(.epnews-page-head, .epev-page-head) .epnews-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 6px; font-size: 14px; }
body :is(.epnews-page-head, .epev-page-head) .epnews-follow > span { font-weight: 650; }
body :is(.epnews-page-head, .epev-page-head) .epnews-follow-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--epm-paper); border: 1px solid var(--epm-line); color: var(--epm-ink); text-decoration: none; font-weight: 550;
}
body :is(.epnews-page-head, .epev-page-head) .epnews-follow-chip:hover { border-color: var(--epm-gold); color: var(--epm-gold-text); }
body :is(.epnews-page-head, .epev-page-head) .epnews-follow-chip svg { color: #0a7d3e; flex: none; }
body :is(.epnews-page-head, .epev-page-head) a:focus-visible { outline: 3px solid #1e6fa8; outline-offset: 2px; }

body .elpoble-news-filter-root .epnews-frame.is-new-layout { gap: 28px; }
body .elpoble-news-filter-root .epnews-section-label { margin: 0 0 12px; font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1.4; color: var(--epm-ink-soft); text-transform: none; letter-spacing: 0; }
body .elpoble-news-filter-root .epnews-featured {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--epm-paper); border: 1px solid var(--epm-line); border-radius: 12px; overflow: hidden;
  transition: border-color .15s ease;
}
body .elpoble-news-filter-root .epnews-featured:hover,
body .elpoble-news-filter-root .epnews-featured:focus-within { border-color: var(--epm-gold); }
body .elpoble-news-filter-root .epnews-featured-media { display: block; aspect-ratio: 16 / 10; background: var(--epm-panel); }
body .elpoble-news-filter-root .epnews-featured-image { display: block; width: 100%; height: 100%; object-fit: cover; }
body .elpoble-news-filter-root .epnews-featured-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 28px 30px; }
body .elpoble-news-filter-root .epnews-featured-title { margin: 0; font-family: inherit; font-size: 28px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--epm-ink); text-wrap: pretty; }
body .elpoble-news-filter-root .epnews-featured-title a,
body .elpoble-news-filter-root .epnews-featured-title a:hover { color: var(--epm-ink); text-decoration: none; }
body .elpoble-news-filter-root .epnews-featured-body .epnews-card-meta { order: -1; }
body .elpoble-news-filter-root .epnews-featured-excerpt { margin: 0; font-size: 16px; line-height: 1.5; color: var(--epm-ink-soft); }
body .elpoble-news-filter-root .epnews-featured-cta { align-self: flex-start; margin-top: 4px; text-decoration: none; }
body .elpoble-news-filter-root .epnews-featured-cta::after { content: " \2192"; white-space: pre; }
body .elpoble-news-filter-root .epnews-count { font-size: 14px; color: var(--epm-ink-soft); font-variant-numeric: tabular-nums; margin-right: 6px; }
body .elpoble-news-filter-root .epnews-showing { margin: 10px 0 0; text-align: center; font-size: 14px; color: var(--epm-ink-soft); font-variant-numeric: tabular-nums; }
body .elpoble-news-filter-root .is-new-layout .epnews-load-more { margin-top: 0; min-height: 46px; padding: 0 22px; }
@media (max-width: 900px) {
  body :is(.epnews-page-head, .epev-page-head) .epnews-page-title { font-size: 30px; }
  body .elpoble-news-filter-root .epnews-featured { grid-template-columns: 1fr; }
  body .elpoble-news-filter-root .epnews-featured-body { padding: 20px; }
  body .elpoble-news-filter-root .epnews-featured-title { font-size: 23px; }
}

/* «Segueix-la també en»: en móvil, una sola línea que se desliza en horizontal (antes ocupaba 3-4 líneas). */
@media (max-width: 600px) {
  body :is(.epnews-page-head, .epev-page-head) { gap: 8px; padding: 16px 0 18px; margin-bottom: 20px; }
  body :is(.epnews-page-head, .epev-page-head) .epnews-page-lead { font-size: 16px; }
  body :is(.epnews-page-head, .epev-page-head) .epnews-follow { /* epnews-follow móvil */
    flex-wrap: nowrap; gap: 8px; margin: 4px 0 0; padding: 2px 32px 4px 0;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  }
  body :is(.epnews-page-head, .epev-page-head) .epnews-follow::-webkit-scrollbar { display: none; }
  body :is(.epnews-page-head, .epev-page-head) .epnews-follow > span { flex: none; font-size: 13px; color: var(--epm-ink-soft); }
  body :is(.epnews-page-head, .epev-page-head) .epnews-follow-chip { flex: none; padding: 6px 11px; font-size: 13.5px; white-space: nowrap; scroll-snap-align: start; }
}

/* ---------- Página de agenda: encabezado propio y tarjetas de actividad ---------- */
/* Las secciones de Elementor anteriores a la del calendario (foto con título y rejilla antigua de carteles) dejan de mostrarse. */
.e-con:has(~ .e-con .epev-page-head) { display: none !important; }

body .epev-grid {
  --epm-paper: #ffffff; --epm-panel: #f6f5f2; --epm-ink: #1d1c19; --epm-ink-soft: #5c5850; --epm-line: #e2dfd8; --epm-line-strong: #cfcac0; --epm-gold: #c39001; --epm-gold-text: #7a5800;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0 0 40px;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.5; color: var(--epm-ink);
}
body .epev-grid .epev-card { display: flex; flex-direction: column; min-width: 0; background: var(--epm-paper); border: 1px solid var(--epm-line); border-radius: 10px; overflow: hidden; transition: border-color .15s ease; }
body .epev-grid .epev-card:hover,
body .epev-grid .epev-card:focus-within { border-color: var(--epm-gold); }
body .epev-grid .epev-poster { position: relative; display: block; flex: none; aspect-ratio: 5 / 7; background: var(--epm-panel); border-bottom: 1px solid var(--epm-line); }
body .epev-grid .epev-poster img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top; border-radius: 0; }
body .epev-grid .epev-tag { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 999px; background: var(--epm-paper); border: 1px solid var(--epm-line-strong); font-size: 13px; font-weight: 650; line-height: 1.4; color: var(--epm-ink); }
body .epev-grid .epev-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
body .epev-grid .epev-when { margin: 0; font-size: 14.5px; font-weight: 650; color: var(--epm-gold-text); }
body .epev-grid .epev-time { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--epm-ink-soft); font-variant-numeric: tabular-nums; }
body .epev-grid .epev-time svg { flex: none; }
body .epev-grid .epev-title { margin: 2px 0 0; font-family: inherit; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--epm-ink); text-wrap: pretty; }
body .epev-grid .epev-title a,
body .epev-grid .epev-title a:hover { color: var(--epm-ink); text-decoration: none; }
body .epev-grid .epev-cta { margin-top: auto; padding-top: 8px; align-self: flex-start; font-size: 15px; font-weight: 650; color: var(--epm-gold-text); text-decoration: none; }
body .epev-grid .epev-cta::after { content: " \2192"; white-space: pre; }
body .epev-grid .epev-cta:hover { color: var(--epm-gold-text); text-decoration: underline; text-underline-offset: 3px; }
body .epev-grid a:focus-visible { outline: 3px solid #1e6fa8; outline-offset: 2px; border-radius: 4px; }
/* Efecto al pasar el ratón por una tarjeta de actividad: se eleva un poco, el cartel se acerca y la flecha avanza. El título no se subraya.
   Solo en dispositivos con ratón; con «reducir movimiento» queda únicamente el borde dorado. */
body .epev-grid .epev-card { transition: border-color .15s ease, transform .2s ease, box-shadow .2s ease; }
body .epev-grid .epev-poster { overflow: hidden; }
body .epev-grid .epev-poster img { transition: transform .35s ease; }
body .epev-grid .epev-cta::after { display: inline-block; transition: transform .2s ease; }
@media (hover: hover) {
  body .epev-grid .epev-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(29, 28, 25, .14); }
  body .epev-grid .epev-card:hover .epev-poster img { transform: scale(1.04); }
  body .epev-grid .epev-card:hover .epev-cta::after { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  body .epev-grid .epev-card, body .epev-grid .epev-poster img, body .epev-grid .epev-cta::after { transition: none; }
  body .epev-grid .epev-card:hover, body .epev-grid .epev-card:hover .epev-poster img, body .epev-grid .epev-card:hover .epev-cta::after { transform: none; }
}
body .epev-empty { margin: 0 0 40px; padding: 18px; background: #f6f5f2; border: 1px dashed #cfcac0; border-radius: 10px; font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; color: #5c5850; }
@media (max-width: 1099px) { body .epev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 760px) {
  body .epev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
  body .epev-grid .epev-body { padding: 12px; }
  body .epev-grid .epev-title { font-size: 15.5px; }
  body .epev-grid .epev-when { font-size: 13.5px; }
}

/* ---------- Últimas noticias de la portada: las mismas tarjetas que la página de noticias ---------- */
body .epnews-latest {
  --epm-paper: #ffffff; --epm-panel: #f6f5f2; --epm-ink: #1d1c19; --epm-ink-soft: #5c5850; --epm-line: #e2dfd8; --epm-gold: #c39001; --epm-gold-text: #7a5800;
  width: 100%; font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; color: var(--epm-ink);
}
body .epnews-latest, body .epnews-latest * { box-sizing: border-box; }
body .epnews-latest .epnews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
body .epnews-latest .epnews-card { min-width: 0; }
body .epnews-latest .epnews-card-media { display: block; overflow: hidden; width: 100%; }
body .epnews-latest .epnews-card-image { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; border-radius: 0; }
body .epnews-latest .epnews-card-title a,
body .epnews-latest .epnews-card-category,
body .epnews-latest .epnews-card-cta { text-decoration: none; }
body .epnews-latest a:focus-visible { outline: 3px solid #1e6fa8; outline-offset: 2px; border-radius: 4px; }
@media (max-width: 900px) { body .epnews-latest .epnews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { body .epnews-latest .epnews-grid { grid-template-columns: 1fr; } }

/* ---------- Accesos rápidos de la portada (los cuatro botones de cristal sobre la foto) ----------
   Parte del cristal que ya tenían (brillo interior y borde claro, definidos en la propia página) y le añade:
   tinte oscuro para que el texto blanco se lea sobre cualquier foto, icono en su recuadro, texto más grande
   y dos filas de dos en tableta y móvil. Solo afecta a ese bloque, que únicamente existe en la portada. */
body .elementor-element.elementor-element-8d78cce .elementor-widget-button a.elementor-button {
  display: flex; align-items: center; width: 100%; min-height: 60px; padding: 9px 12px 9px 10px; border-radius: 14px;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: 0; text-align: left;
  color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08) 55%), rgba(29, 28, 25, .34) !important;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px -12px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
}
body .elementor-element.elementor-element-8d78cce .elementor-widget-button a.elementor-button:hover,
body .elementor-element.elementor-element-8d78cce .elementor-widget-button a.elementor-button:focus {
  color: #fff; border-color: rgba(255, 255, 255, .85);
  background: linear-gradient(135deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .14) 55%), rgba(29, 28, 25, .34) !important;
}
body .elementor-element.elementor-element-8d78cce .elementor-widget-button a.elementor-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
body .elementor-element.elementor-element-8d78cce .elementor-widget-button a.elementor-button .elementor-button-content-wrapper { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; }
body .elementor-element.elementor-element-8d78cce .elementor-widget-button a.elementor-button .elementor-button-icon {
  flex: none; order: 0; width: 40px; height: 40px; margin: 0; display: grid; place-items: center; border-radius: 10px;
  background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); font-size: 22px; line-height: 1; text-shadow: none;
}
body .elementor-element.elementor-element-8d78cce .elementor-widget-button a.elementor-button .elementor-button-icon i::before { margin: 0; width: auto; }
body .elementor-element.elementor-element-8d78cce .elementor-widget-button a.elementor-button .elementor-button-text { flex: 1; min-width: 0; text-align: left; white-space: normal; }
body .elementor-element.elementor-element-8d78cce .elementor-widget-button .elementor-button-wrapper { display: block; }
@media (max-width: 1000px) {
  body .elementor-element.elementor-element-8d78cce > .e-con-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  body .elementor-element.elementor-element-8d78cce > .e-con-inner > .e-con { --width: 100%; width: 100%; max-width: none; }
  body .elementor-element.elementor-element-8d78cce .elementor-widget-button a.elementor-button { min-height: 56px; padding: 8px 10px 8px 8px; border-radius: 12px; font-size: 15px; }
  body .elementor-element.elementor-element-8d78cce .elementor-widget-button a.elementor-button .elementor-button-content-wrapper { gap: 10px; }
  body .elementor-element.elementor-element-8d78cce .elementor-widget-button a.elementor-button .elementor-button-content-wrapper::after { display: none; }
  body .elementor-element.elementor-element-8d78cce .elementor-widget-button a.elementor-button .elementor-button-icon { width: 36px; height: 36px; border-radius: 9px; font-size: 20px; }
}

/* ---------- Carrusel de logotipos de la portada ----------
   Se mantiene tal como estaba (tarjetas blancas muy redondeadas, solo el logotipo). Cambian tres cosas:
   las flechas pasan a ser de cristal, la tarjeta se eleva con un aro dorado al pasar el ratón y en móvil se ven dos. */
body .elementor-element.elementor-element-593eab6 :is(.elementor-swiper-button-prev, .elementor-swiper-button-next) {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 18px; cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08) 55%), rgba(29, 28, 25, .42);
  border: 1px solid rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 22px -12px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  transition: background .15s ease, border-color .15s ease;
}
body .elementor-element.elementor-element-593eab6 :is(.elementor-swiper-button-prev, .elementor-swiper-button-next):hover {
  border-color: rgba(255, 255, 255, .9);
  background: linear-gradient(135deg, rgba(255, 255, 255, .36), rgba(255, 255, 255, .14) 55%), rgba(29, 28, 25, .42);
}
body .elementor-element.elementor-element-593eab6 :is(.elementor-swiper-button-prev, .elementor-swiper-button-next):focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
body .elementor-element.elementor-element-593eab6 :is(.elementor-swiper-button-prev, .elementor-swiper-button-next) svg { width: 18px; height: 18px; fill: #fff; }
body .elementor-element.elementor-element-593eab6 .elementor-swiper-button-prev { left: -34px; }
body .elementor-element.elementor-element-593eab6 .elementor-swiper-button-next { right: -34px; }
body .elementor-element.elementor-element-593eab6 .swiper { padding-block: 8px; margin-block: -8px; }
body .elementor-element.elementor-element-593eab6 .swiper-slide img { transition: transform .18s ease, box-shadow .18s ease; }
body .elementor-element.elementor-element-593eab6 .swiper-slide a:hover img,
body .elementor-element.elementor-element-593eab6 .swiper-slide a:focus-visible img { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 0 2px #c39001, 0 14px 26px -14px rgba(0, 0, 0, .5); }
body .elementor-element.elementor-element-593eab6 .swiper-slide a:focus-visible { outline: none; }
@media (max-width: 767px) {
  body .elementor-element.elementor-element-593eab6 { --swiper-slides-to-display: 2; --swiper-slides-gap: 10px; }
  body .elementor-element.elementor-element-593eab6 :is(.elementor-swiper-button-prev, .elementor-swiper-button-next) { display: none; }
  body .elementor-element.elementor-element-593eab6 .swiper-slide img { height: 120px; padding: 16px; border-radius: 24px; }
}

/* =====================================================================
   Pie del Ajuntament: marrón del pie original, escudo blanco y dorado.
   Franja 1 contacto y trámites · franja 2 columnas de enlaces · redes · barra legal.
   Por debajo de 700 px las columnas pasan a acordeones (el contacto queda abierto).
   ===================================================================== */
.epm-foot {
  --epm-f-bg: #302203;
  --epm-f-bg-2: #231803;
  --epm-f-card: #3b2a07;
  --epm-f-line: #4d3a14;
  --epm-f-soft: #e6dcc6;   /* 11:1 sobre #302203 */
  --epm-f-gold: #e8bd4c;   /* títulos, 8,4:1 sobre #302203 */
  --epm-focus: #8cc8f2;
  background: var(--epm-f-bg);
  color: #fff;
  margin: 0;
}
.epm-foot a { color: #fff; text-decoration: none; }
.epm-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.epm-foot .epm-in { max-width: 1240px; padding-inline: var(--epm-pad); }
.epm-foot h2 { font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--epm-f-gold); margin: 0 0 12px; }
.epm-foot ul { list-style: none; margin: 0; padding: 0; }

/* Franja 1 */
.epm-f-top { padding-block: 36px 28px; border-bottom: 1px solid var(--epm-f-line); }
.epm-f-top .epm-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.epm-f-brand a { display: inline-block; line-height: 0; }
.epm-f-brand img { width: 190px; height: auto; display: block; }
.epm-f-contact { display: grid; gap: 4px; }
.epm-foot .epm-f-row { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; margin-inline: -10px; border-radius: 8px; color: #fff; }
.epm-foot a.epm-f-row:hover { background: var(--epm-f-card); text-decoration: none; }
.epm-foot a.epm-f-row:hover .epm-f-v { text-decoration: underline; text-underline-offset: 3px; }
.epm-f-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--epm-f-card); color: var(--epm-f-gold); display: grid; place-items: center; flex: none; }
.epm-f-k { display: block; font-size: 13px; color: var(--epm-f-soft); }
.epm-f-v { display: block; font-weight: 600; overflow-wrap: anywhere; }
.epm-f-tel .epm-f-v { font-size: 19px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.epm-f-tramits p { margin: 0 0 14px; color: var(--epm-f-soft); }
.epm-foot .epm-f-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 16px; border-radius: 8px; font-weight: 650; }
.epm-foot .epm-f-btn + .epm-f-btn { margin-top: 10px; }
.epm-foot .epm-f-btn-gold { background: var(--epm-gold); color: #1d1c19; }
.epm-foot .epm-f-btn-gold .epm-ext { color: #1d1c19; }
.epm-foot .epm-f-btn-line { border: 1px solid #7a6436; color: #fff; }
.epm-foot .epm-f-btn:hover { text-decoration: none; filter: brightness(1.08); }
.epm-foot .epm-f-btn-line:hover { background: var(--epm-f-card); }

/* Franja 2 */
.epm-f-links { padding-block: 30px 26px; }
.epm-f-links .epm-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.epm-f-col summary { list-style: none; cursor: default; pointer-events: none; display: block; }
.epm-f-col summary::-webkit-details-marker { display: none; }
.epm-f-col .epm-f-chev { display: none; color: var(--epm-f-gold); transition: transform .2s ease; }
.epm-f-col ul { display: grid; gap: 2px; }
.epm-foot .epm-f-col li a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; color: var(--epm-f-soft); }
.epm-foot .epm-f-col li a:hover { color: #fff; }
.epm-foot .epm-ext { color: var(--epm-f-soft); opacity: .8; }

/* Redes */
.epm-f-social { padding-block: 0 28px; }
.epm-f-social .epm-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.epm-f-lbl { color: var(--epm-f-soft); margin-right: 4px; font-weight: 600; }
.epm-foot .epm-f-net { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--epm-f-card); font-weight: 600; font-size: 14px; }
.epm-foot .epm-f-net:hover { background: #4a360d; text-decoration: none; }
.epm-foot .epm-f-net svg,
.epm-foot .epm-f-net.epm-net-whatsapp svg { color: var(--epm-f-gold); }

/* Franja 3 */
.epm-f-legal { background: var(--epm-f-bg-2); font-size: 14px; color: var(--epm-f-soft); }
.epm-f-legal .epm-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 16px; padding-inline: max(var(--epm-pad), 92px); } /* los botones flotantes de accesibilidad y teléfonos quedan a los lados */
.epm-f-legal ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.epm-foot .epm-f-legal a { color: var(--epm-f-soft); }
.epm-foot .epm-f-legal a:hover { color: #fff; }
.epm-foot .epm-f-cookies { font: inherit; color: var(--epm-f-soft); background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 0; line-height: inherit; box-shadow: none; text-transform: none; letter-spacing: 0; }
.epm-foot .epm-f-cookies:hover { color: #fff; background: none; }

/* Tableta */
@media (max-width: 1099px) {
  .epm-f-top .epm-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .epm-f-brand { grid-column: 1 / -1; }
  .epm-f-links .epm-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Móvil: acordeones */
@media (max-width: 700px) {
  .epm-foot .epm-in { padding-inline: 16px; }
  .epm-f-top { padding-block: 28px 20px; }
  .epm-f-top .epm-in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .epm-f-brand img { width: 160px; }
  .epm-f-links { padding-block: 4px 20px; }
  .epm-f-links .epm-in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .epm-f-col { border-bottom: 1px solid var(--epm-f-line); }
  .epm-f-col summary { pointer-events: auto; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
  .epm-f-col summary h2 { margin: 0; font-size: 17px; }
  .epm-f-col .epm-f-chev { display: block; }
  .epm-f-col details[open] .epm-f-chev { transform: rotate(180deg); }
  .epm-f-col ul { padding-bottom: 14px; }
  .epm-foot .epm-f-col li a { padding: 9px 0; font-size: 16px; }
  .epm-f-social { padding-block: 20px 24px; }
  .epm-f-lbl { width: 100%; }
  .epm-f-legal .epm-in { flex-direction: column; align-items: flex-start; padding-block: 18px 96px; padding-inline: 16px; } /* aire para los botones flotantes */
  .epm-f-legal ul { gap: 8px 18px; }
}

/* ---------- Accesibilidad (OneTap) en la barra superior, en lugar del botón flotante ---------- */
body:has(.epm-utility .epm-a11y) .onetap-container-toggle { display: none !important; }
.epm-utility .epm-a11y {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 4px 11px 4px 8px;
  font: inherit; font-weight: 650; color: var(--epm-ink); white-space: nowrap;
  background: var(--epm-paper); border: 1px solid var(--epm-line-strong); border-radius: 6px; cursor: pointer;
}
.epm-utility .epm-a11y svg { color: var(--epm-ink-soft); flex: none; }
.epm-utility .epm-a11y:hover { border-color: var(--epm-gold); }
.epm-utility .epm-a11y:hover svg { color: var(--epm-gold-text); }
.epm-utility .epm-a11y:focus-visible { outline: 3px solid #1e6fa8; outline-offset: 2px; }
.epm-utility .epm-a11y[aria-expanded="true"] { border-color: var(--epm-ink); }
@media (max-width: 1439px) {
  /* Sin sitio para el texto: solo el icono, con el formato del botón de WhatsApp en el móvil. El nombre sigue en title y para lectores de pantalla. */
  .epm-utility .epm-a11y { width: 38px; height: 34px; padding: 0; justify-content: center; position: relative; }
  .epm-utility .epm-a11y .epm-a11y-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .epm-utility .epm-sep-a11y { display: none; }
}
@media (max-width: 699px) {
  .epm-utility .epm-a11y { width: 34px; }
  .epm-utility .epm-in:has(.epm-a11y) { gap: 9px; }
}
@media (max-width: 379px) {
  .epm-utility .epm-in:has(.epm-a11y) { gap: 6px; }
}
