/* Piezas propias de Aurda que no existían en el sistema de diseño base. */

/* Fila de cifras (50 años · +1000 proyectos · 80 ciudades) */
body.theme-aurda .aud-stats .elementor-heading-title {
  font-family: var(--aud-font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem) !important;
  line-height: 1 !important;
  letter-spacing: -0.03em !important;
  font-weight: 700;
}
body.theme-aurda .aud-stats .elementor-widget-text-editor p {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--aud-muted);
}

/* Mapa de contacto: en escala de grises, coherente con la paleta */
body.theme-aurda .aud-contact-map iframe {
  filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--aud-line);
}

/* Leyenda Kit Digital del pie */
body.theme-aurda .aud-kd-endorsement p {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--aud-ink-soft);
  max-width: 62rem;
  margin: 0.75rem auto 0;
  text-align: center;
}

/* Información RGPD del formulario */
body.theme-aurda .aud-info-rgpd {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--aud-ink-soft);
  margin: 0;
}

/* Ficha de proyecto */
body.theme-aurda .aud-programa-title {
  margin-top: 2rem;
}

/* Enlace «saltar al contenido» visible solo con teclado */
body.theme-aurda .skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: var(--aud-ink);
  color: #fff;
  clip: auto;
  width: auto;
  height: auto;
}

/* Aviso de cookies (Adapta RGPD) con la paleta del sitio */
body.theme-aurda #cookies-eu-banner {
  background: var(--aud-ink) !important;
  color: #f3f3f1 !important;
  font-family: var(--aud-font-body) !important;
  font-size: 0.875rem !important;
  line-height: 1.55 !important;
  padding: 1rem 1.25rem !important;
}
body.theme-aurda #cookies-eu-banner a,
body.theme-aurda #cookies-eu-more {
  color: #fff !important;
  text-decoration: underline;
}
body.theme-aurda #cookies-eu-accept,
body.theme-aurda #cookies-eu-reject {
  font-family: var(--aud-font-body) !important;
  font-size: 0.75rem !important;
  font-weight: 650 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-radius: 0 !important;
  padding: 0.7rem 1.4rem !important;
  border: 1px solid #fff !important;
}
body.theme-aurda #cookies-eu-accept {
  background: #fff !important;
  color: var(--aud-ink) !important;
}
body.theme-aurda #cookies-eu-reject {
  background: transparent !important;
  color: #fff !important;
}

/* Botón de herramientas de accesibilidad (Ally) en negro, como el resto de controles */
body.theme-aurda #pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a {
  background-color: var(--aud-ink) !important;
  color: #fff !important;
}

/* Antetítulos: tamaño fijo en todas las pantallas (el puente móvil daba a todo titular tamaño de H1). */
body.theme-aurda .aud-eyebrow-h .elementor-heading-title {
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  letter-spacing: 0.15em !important;
}

/* Logo de Aurda (casi cuadrado): se fija por altura, no por ancho. */
body.theme-aurda .aud-site-header-bar .elementor-widget-image,
body.theme-aurda .aud-site-header .elementor-widget-image {
  width: auto !important;
  max-width: none !important;
}
body.theme-aurda .aud-site-header-bar .elementor-widget-image img,
body.theme-aurda .aud-site-header .elementor-widget-image img {
  height: 52px !important;
  width: auto !important;
  max-width: none !important;
}
@media (max-width: 899px) {
  body.theme-aurda .aud-site-header-bar .elementor-widget-image img,
  body.theme-aurda .aud-site-header .elementor-widget-image img {
    height: 40px !important;
  }
}

/* Menú móvil abierto: la hamburguesa queda visible encima del panel y se convierte en «cerrar» (X). */
body.theme-aurda .aud-nav-toggle.is-open {
  position: fixed !important;
  top: 1.1rem;
  right: 1.25rem;
  z-index: 300 !important;
}
body.theme-aurda .aud-nav-toggle span {
  transition: transform 0.25s var(--aud-ease), opacity 0.2s ease;
}
body.theme-aurda .aud-nav-toggle.is-open span {
  background: #fff !important;
}
body.theme-aurda .aud-nav-toggle.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.theme-aurda .aud-nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}
body.theme-aurda .aud-nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Foco visible con teclado (el CSS base lo eliminaba en botones). */
body.theme-aurda .aud-nav-toggle:focus-visible,
body.theme-aurda .aud-filter-btn:focus-visible,
body.theme-aurda .aud-gallery__item:focus-visible,
body.theme-aurda a:focus-visible,
body.theme-aurda button:focus-visible {
  outline: 2px solid var(--aud-ink) !important;
  outline-offset: 3px !important;
}
body.theme-aurda .aud-el-nav-mobile a:focus-visible,
body.theme-aurda .aud-nav-toggle.is-open:focus-visible {
  outline-color: #fff !important;
}
