/* Fundación Breogán · Design System «Pista» (v2) — tema de WordPress. Tokens + compoñentes + bloques. */
/* ==========================================================================
   Fundación Breogán · Design System v2 «Pista» — tokens
   Fonte única de verdade para cor, tipo, espazo, radios, sombras e movemento.
   Documentación: DESIGN-SYSTEM.md · Guía visual: /guia-de-estilo
   ========================================================================== */
/* Respaldo métrico: Arial axustada ao ancho das tipografías da marca (evita saltos ao cargar) */
@font-face { font-family: 'Display fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arial'); font-weight: 100 900; size-adjust: 64%; }
@font-face { font-family: 'Text fallback'; src: local('Arial'), local('ArialMT'), local('Liberation Sans'); font-weight: 100 900; size-adjust: 98.7%; }

:root {
  /* ---------- Cor: primitivas (do escudo) ---------- */
  --blue-950: #0a2a40;   /* noite: bandas e pé */
  --blue-800: #00476f;   /* azul profundo: titulares */
  --blue-700: #005f98;   /* azul Breogán: accións e ligazóns (6,8:1) */
  --blue-200: #b9ddf2;   /* liñas de pista */
  --blue-100: #e6f1f8;   /* superficie activa */
  --blue-50:  #f3f8fc;   /* superficie suave */
  --red-500:  #e73a37;   /* vermello do escudo: só tipo grande (≥24px) */
  --red-300:  #ff6b66;   /* vermello sobre fondo escuro (5,3:1) */
  --red-700:  #c8261f;   /* vermello accesible para botóns e texto (5,6:1) */
  --ink-900:  #0f1e2a;   /* texto (16,9:1) */
  --ink-600:  #4f5e6b;   /* texto secundario (6,7:1) */
  --ink-300:  #a7b3bd;   /* só decoración */
  --ink-200:  #d5dee5;   /* bordos */
  --ink-100:  #e9eef2;   /* separadores suaves */
  --white:    #ffffff;
  --amber-700: #8a5a00;
  --green-700: #1e6b3a;

  /* ---------- Cor: semántica ---------- */
  --bg: var(--white);
  --surface: var(--blue-50);
  --surface-strong: var(--blue-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-600);
  --heading: var(--blue-800);
  --link: var(--blue-700);
  --border: var(--ink-200);
  --border-soft: var(--ink-100);
  --accent: var(--red-700);
  --accent-display: var(--red-500);
  --brand: var(--blue-700);
  --band: var(--blue-950);
  --band-text: #dceaf4;
  --focus: var(--red-700);

  /* compatibilidade cos compoñentes da v1 */
  --c-azul: var(--blue-700); --c-azul-noite: var(--blue-800); --c-vermello: var(--red-500); --c-vermello-forte: var(--red-700);
  --c-celeste: var(--blue-50); --c-celeste-liña: var(--blue-200); --c-tinta: var(--ink-900); --c-gris: var(--ink-600);
  --c-liña: var(--ink-200); --c-papel: var(--white); --c-ambar: var(--amber-700); --c-verde: var(--green-700);

  /* ---------- Tipografía ---------- */
  --f-display: 'Big Shoulders Display Variable', 'Display fallback', 'Arial Narrow', sans-serif;
  --f-text: 'Atkinson Hyperlegible Next Variable', 'Text fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-texto: var(--f-text);
  /* escala fluída 360 → 1440 px (razón ~1,25 → 1,33) */
  --step--1: clamp(0.875rem, 0.85rem + 0.11vw, 0.9375rem);
  --step-0:  clamp(1.0625rem, 1.02rem + 0.19vw, 1.1875rem);
  --step-1:  clamp(1.25rem, 1.17rem + 0.37vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.33rem + 0.74vw, 2rem);
  --step-3:  clamp(1.875rem, 1.58rem + 1.3vw, 2.75rem);
  --step-4:  clamp(2.25rem, 1.75rem + 2.22vw, 3.75rem);
  --step-5:  clamp(2.75rem, 1.75rem + 4.44vw, 5.75rem); /* máximo display: 5,75rem */
  --lh-tight: 0.92;
  --lh-snug: 1.15;
  --lh-body: 1.6;
  --measure: 66ch;
  /* alias v1 */
  --t-0: var(--step--1); --t-1: 1rem; --t-2: var(--step-0); --t-3: var(--step-1); --t-4: var(--step-2); --t-5: var(--step-3); --t-6: var(--step-4); --t-7: var(--step-5);

  /* ---------- Espazo (fluído) ---------- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs:  clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  --space-s:   clamp(1rem, 0.93rem + 0.3vw, 1.25rem);
  --space-m:   clamp(1.5rem, 1.39rem + 0.46vw, 1.875rem);
  --space-l:   clamp(2rem, 1.78rem + 0.93vw, 2.75rem);
  --space-xl:  clamp(3rem, 2.67rem + 1.39vw, 4.125rem);
  --space-2xl: clamp(4rem, 3.33rem + 2.78vw, 6.25rem);
  --space-3xl: clamp(5rem, 3.89rem + 4.63vw, 8.75rem);
  /* alias v1 */
  --s-1: var(--space-3xs); --s-2: var(--space-2xs); --s-3: var(--space-xs); --s-4: var(--space-s); --s-5: var(--space-m);
  --s-6: var(--space-l); --s-7: var(--space-xl); --s-8: var(--space-2xl); --s-9: var(--space-3xl);

  /* ---------- Retícula ---------- */
  --wrap: 80rem;
  --gutter: clamp(1.25rem, 0.7rem + 2.4vw, 2.5rem);
  --header-h: 4.25rem;
  --ancho: var(--wrap); --medida: var(--measure); --cab-alto: var(--header-h);

  /* ---------- Radios, sombras ---------- */
  --r-sm: 6px;     /* campos */
  --r-md: 12px;    /* tarxetas e medios */
  --r-lg: 20px;    /* medios destacados */
  --r-pill: 999px; /* botóns, chips */
  --radio: var(--r-sm); --radio-g: var(--r-md);
  --shadow-1: 0 1px 2px rgb(10 42 64 / 0.06), 0 2px 8px -2px rgb(10 42 64 / 0.08);
  --shadow-2: 0 2px 4px rgb(10 42 64 / 0.05), 0 16px 40px -12px rgb(10 42 64 / 0.22);
  --sombra: var(--shadow-2);

  /* ---------- Movemento ---------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* expo out */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 140ms; --dur-2: 280ms; --dur-3: 700ms;
  --ease: var(--ease-out);
}
/* ==========================================================================
   Fundación Breogán · Design System v2 «Pista» — base e compoñentes
   Principios: fondos planos, fotografía real, tipografía con carácter
   (Big Shoulders + Atkinson Hyperlegible), un só momento animado por páxina,
   resposta visible a cada interacción. Tokens en tokens.css.
   ========================================================================== */

/* ---------- 1. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); scrollbar-color: var(--blue-200) transparent; accent-color: var(--blue-700); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; font-family: var(--f-text); font-size: var(--step-0); line-height: var(--lh-body);
  color: var(--text); background: var(--bg); caret-color: var(--red-700);
  font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, video, iframe, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color var(--dur-1), text-decoration-color var(--dur-1); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-200); color: var(--ink-900); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--blue-200); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
h1, h2, h3, h4 { margin: 0; line-height: var(--lh-snug); font-weight: 800; text-wrap: balance; }
p, ul, ol, figure, blockquote, dl { margin: 0; }
p { text-wrap: pretty; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-s); top: -100px; z-index: 100; background: var(--blue-950); color: #fff; padding: var(--space-xs) var(--space-s); border-radius: var(--r-pill); font-weight: 700; }
.skip-link:focus { top: var(--space-s); }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------- 2. Tipografía ---------- */
.display, .page-title, .h-section, .h-block, .feature__title, .card__title, .project h2, .news-card :is(h2, h3) {
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: -0.005em; font-weight: 800;
}
.page-title { font-size: var(--step-5); line-height: var(--lh-tight); color: var(--heading); max-width: 18ch; }
.h-section { font-size: var(--step-4); line-height: 0.95; color: var(--heading); }
.h-block { font-size: var(--step-2); line-height: 1; color: var(--heading); }
.lead { font-size: var(--step-1); line-height: 1.5; max-width: 54ch; color: var(--text); }
.meta { color: var(--text-muted); font-size: var(--step--1); }

/* texto longo do CMS */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--f-display); text-transform: uppercase; color: var(--heading); margin-top: 1.6em; line-height: 1; }
.prose h2 { font-size: var(--step-3); }
.prose h3 { font-size: var(--step-2); }
.prose h4 { font-size: var(--step-1); }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--red-700); }
.prose ul:has(> li:nth-child(10)) { columns: 2 16rem; column-gap: var(--space-l); }
.prose ul:has(> li:nth-child(10)) li { break-inside: avoid; }
.prose blockquote { padding: var(--space-s) var(--space-m); background: var(--surface); border-radius: var(--r-md); font-size: var(--step-1); }
.prose img { border-radius: var(--r-md); margin-block: var(--space-m); }
.prose img.icon { display: inline-block; margin: 0 0.5em 0 0; vertical-align: middle; border-radius: 0; }
.prose li > img { display: block; max-width: 12rem; margin: var(--space-xs) 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
.prose td, .prose th { border-bottom: 1px solid var(--border); padding: var(--space-2xs) var(--space-xs); text-align: left; vertical-align: top; }
.prose a { overflow-wrap: anywhere; }
.prose strong { font-weight: 700; }

/* ---------- 3. Botóns, chips, estados ---------- */
.btn {
  --bg: var(--blue-700); --fg: #fff; --bd: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 3rem; padding: 0.7rem 1.4rem;
  font: 700 1rem/1.15 var(--f-text); letter-spacing: 0.005em;
  color: var(--fg); background: var(--bg); border: 2px solid var(--bd); border-radius: var(--r-pill);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur-1), color var(--dur-1), border-color var(--dur-1), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.btn:hover { --bg: var(--blue-800); transform: translateY(-1px); box-shadow: var(--shadow-1); text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; transition-duration: 60ms; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn--accent { --bg: var(--red-700); }
.btn--accent:hover { --bg: #a51d17; }
.btn--ghost { --fg: var(--blue-700); --bd: var(--blue-200); background: transparent; }
.btn--ghost:hover { --fg: var(--blue-800); --bd: var(--blue-700); background: var(--blue-50); }
.btn--light { --bg: #fff; --fg: var(--blue-950); }
.btn--light:hover { --bg: var(--blue-100); }
.btn--on-dark { --fg: #fff; --bd: rgb(255 255 255 / 0.35); background: transparent; }
.btn--on-dark:hover { --bd: #fff; background: rgb(255 255 255 / 0.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.btn .ext { width: 0.9em; height: 0.9em; flex: none; }

/* ligazón con trazo que se debuxa */
.link-draw { color: var(--link); font-weight: 700; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size var(--dur-2) var(--ease-out); padding-bottom: 2px; }
.link-draw:hover, .link-draw:focus-visible { background-size: 100% 2px; }

.chip { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.35rem 0.85rem; border: 1px solid var(--blue-200); border-radius: var(--r-pill); font-size: var(--step--1); font-weight: 700; color: var(--blue-800); background: var(--blue-50); text-decoration: none; }
a.chip:hover { border-color: var(--blue-700); }

.status { display: inline-flex; align-items: center; gap: 0.45em; font-size: var(--step--1); font-weight: 700; line-height: 1.2; }
.status::before { content: ''; width: 0.65em; height: 0.65em; flex: none; border-radius: 50%; border: 2px solid currentColor; }
.status--active { color: var(--blue-700); }
.status--active::before { background: currentColor; box-shadow: 0 0 0 3px rgb(0 95 152 / 0.15); }
.status--soon { color: var(--amber-700); }
.status--soon::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.status--done, .status--closed { color: var(--ink-600); }
.status--done::before { border-radius: 2px; background: currentColor; clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); border: 0; }
.status--cancelled { color: var(--red-700); }
.status--cancelled::before { border-radius: 0; border: 0; background: currentColor; clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
.status--open { color: var(--green-700); }
.status--open::before { background: currentColor; }
.pending { display: inline-block; background: #fff4d6; color: #6b4600; border: 1px dashed #c99a2e; padding: 0.1rem 0.5rem; border-radius: var(--r-sm); font-size: var(--step--1); font-weight: 700; }

/* ---------- 4. Cabeceira ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 0.92); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color var(--dur-2), box-shadow var(--dur-2); view-transition-name: cabeceira; }
.site-header[data-scrolled] { border-color: var(--border-soft); box-shadow: 0 6px 24px -18px rgb(10 42 64 / 0.4); }
.site-header__in { display: flex; align-items: center; gap: var(--space-m); height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--blue-800); flex: none; border-radius: var(--r-sm); }
.brand img { width: 2.9rem; height: auto; }
.brand span { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; line-height: 0.88; letter-spacing: 0.01em; }
.brand span small { display: block; font-size: 1em; color: var(--red-700); }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav__link, .nav__more > button {
  position: relative; display: block; padding: 0.55rem 0.7rem; border-radius: var(--r-sm);
  font: 600 0.97rem/1.2 var(--f-text); color: var(--ink-900); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav__link::after { content: ''; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.2rem; height: 2px; background: var(--red-500); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out); }
.nav__link:hover { color: var(--blue-700); }
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.nav__link[aria-current] { color: var(--blue-700); }
.nav__more > button:hover { color: var(--blue-700); }
.nav__more { position: relative; }
.nav__more > button::after { content: ''; display: inline-block; width: 0.38em; height: 0.38em; margin-left: 0.45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-0.2em) rotate(45deg); transition: transform var(--dur-2) var(--ease-out); }
.nav__more > button[aria-expanded='true']::after { transform: translateY(0.05em) rotate(-135deg); }
.nav__sub { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 15rem; list-style: none; margin: 0; padding: 0.4rem; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-md); box-shadow: var(--shadow-2); transform-origin: top right; animation: pop var(--dur-2) var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.nav__sub[hidden] { display: none; }
.nav__sub a { display: block; padding: 0.6rem 0.8rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-900); font-weight: 600; }
.nav__sub a:hover { background: var(--blue-50); color: var(--blue-700); }
.header-actions { display: flex; align-items: center; gap: 0.35rem; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-pill); color: var(--blue-800); background: none; border: 0; cursor: pointer; text-decoration: none; transition: background-color var(--dur-1); }
.icon-btn:hover { background: var(--blue-50); }
.icon-btn svg { width: 1.3rem; height: 1.3rem; }
.header-actions .btn { min-height: 2.6rem; padding: 0.5rem 1.15rem; }
.menu-btn { display: none; }
@media (max-width: 71.99rem) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; gap: 0.45rem; width: auto; padding: 0 0.9rem; font: 700 0.95rem var(--f-text); }
  .header-actions { margin-left: auto; }
}
@media (max-width: 29.99rem) { .header-actions .btn { display: none; } }

/* menú móbil a pantalla completa */
.mobile-nav { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: #fff; color: var(--ink-900); overflow-y: auto; }
.mobile-nav::backdrop { background: rgb(10 42 64 / 0.4); }
.mobile-nav[open] { animation: menu-in var(--dur-2) var(--ease-out); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 var(--gutter); border-bottom: 1px solid var(--border-soft); }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--space-s) var(--gutter); }
.mobile-nav li a { display: flex; align-items: center; min-height: 3.25rem; border-bottom: 1px solid var(--border-soft); font-family: var(--f-display); font-size: clamp(1.75rem, 1.2rem + 3vw, 2.5rem); font-weight: 800; text-transform: uppercase; text-decoration: none; color: var(--blue-800); }
.mobile-nav li a[aria-current='page'] { color: var(--red-700); }
.mobile-nav .mobile-nav__legal { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-s); padding-top: 0; }
.mobile-nav .mobile-nav__legal a { min-height: 2.75rem; border: 0; font: 600 var(--step--1) var(--f-text); text-transform: none; color: var(--ink-600); }
.mobile-nav__cta { padding: var(--space-s) var(--gutter); }
.mobile-nav__cta .btn { width: 100%; }

/* ---------- 5. Portada ---------- */
/* hero: mensaxe + feito + accións, á dereita fotografía real e escudo */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero__in { position: relative; display: grid; gap: var(--space-xl); align-items: center; padding-block: var(--space-2xl) var(--space-2xl); min-height: min(calc(100svh - var(--header-h)), 52rem); }
@media (min-width: 64rem) { .hero__in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-2xl); } }
.hero__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: var(--step-5); line-height: 0.9; letter-spacing: -0.01em; color: var(--blue-800); max-width: 13ch; }
.hero__title span { display: block; }
.hero__lead { margin-top: var(--space-m); font-size: var(--step-1); line-height: 1.5; max-width: 44ch; color: var(--ink-900); }
.hero__fact { margin-top: var(--space-s); color: var(--ink-600); font-size: var(--step-0); max-width: 44ch; }
.hero__fact strong { color: var(--blue-700); }
.hero__actions { margin-top: var(--space-l); }
.hero__media { position: relative; justify-self: stretch; }
.hero__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--blue-100); box-shadow: var(--shadow-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__crest { object-fit: contain; position: absolute; left: calc(-1 * var(--space-l)); bottom: var(--space-l); width: clamp(6.5rem, 4rem + 6vw, 9.5rem); aspect-ratio: 1; padding: 1rem; border-radius: 50%; background: #fff; box-shadow: var(--shadow-2); }
.hero__crest img { width: 100%; height: 100%; object-fit: contain; }
.hero__court { position: absolute; inset: auto -10% -18% auto; width: 70%; color: var(--blue-200); pointer-events: none; z-index: -1; }
.hero__court path, .hero__court circle, .hero__court line { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
@media (max-width: 63.99rem) {
  .hero__in { min-height: 0; padding-block: var(--space-l) var(--space-xl); }
  .hero__media { max-width: 30rem; }
  .hero__photo { aspect-ratio: 5 / 4; }
  .hero__crest { left: auto; right: var(--space-s); bottom: calc(-1 * var(--space-m)); width: 6rem; }
}
/* entrada única do hero */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-enter] { animation: enter-up 0.9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }
  .hero__photo[data-enter] { animation-name: enter-clip; animation-duration: 1.1s; }
  .hero__court .arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s 0.35s var(--ease-out) forwards; }
  @keyframes enter-up { from { opacity: 0; transform: translateY(18px); } }
  @keyframes enter-clip { from { clip-path: inset(100% 0 0 0 round var(--r-lg)); } to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* seccións */
.section { padding-block: var(--space-2xl); }
.section--tint { background: var(--surface); }
.section--dark { background: var(--band); color: var(--band-text); }
.section--dark :is(.h-section, .h-block) { color: #fff; }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-s) var(--space-l); margin-bottom: var(--space-l); }
.section__head p { color: var(--text-muted); max-width: 46ch; }
.section__head .h-section { max-width: 18ch; }
.baseline { border-top: 2px solid var(--blue-700); position: relative; padding-top: var(--space-m); }
.baseline::before { content: ''; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red-500); }

/* formas de colaborar: lista editorial, non tarxetas */
.ways { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
@media (min-width: 52rem) { .ways { grid-template-columns: 1fr 1fr; column-gap: var(--space-xl); } }
.way { position: relative; display: grid; grid-template-columns: 1fr auto; gap: var(--space-2xs) var(--space-m); align-items: start; padding-block: var(--space-m); border-bottom: 1px solid var(--border); }
.way h3 { font-family: var(--f-display); text-transform: uppercase; font-size: var(--step-2); line-height: 1; color: var(--blue-800); grid-column: 1; }
.way h3 a { color: inherit; text-decoration: none; }
.way h3 a::after { content: ''; position: absolute; inset: 0; }
.way p { grid-column: 1; color: var(--ink-600); font-size: var(--step--1); line-height: 1.55; max-width: 46ch; }
.way__go { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--blue-200); color: var(--blue-700); transition: background-color var(--dur-2), color var(--dur-2), transform var(--dur-2) var(--ease-out), border-color var(--dur-2); }
.way__go svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; }
.way:hover h3, .way:focus-within h3 { color: var(--blue-700); }
.way:hover .way__go, .way:focus-within .way__go { background: var(--blue-700); border-color: var(--blue-700); color: #fff; transform: translateX(3px); }
.way:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.way h3 a:focus-visible { outline: none; }
.way--primary h3 { color: var(--red-700); }
.ways__more { margin-top: var(--space-m); color: var(--ink-600); }

/* proxectos en curso */
.proj-row { display: grid; gap: var(--space-m); list-style: none; padding: 0; margin: 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.proj-tile { position: relative; display: grid; gap: var(--space-xs); align-content: start; }
.proj-tile__media { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--border-soft); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.proj-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.proj-tile h3 { font-family: var(--f-display); text-transform: uppercase; font-size: var(--step-1); line-height: 1; color: var(--blue-800); }
.proj-tile h3 a { color: inherit; text-decoration: none; }
.proj-tile h3 a::after { content: ''; position: absolute; inset: 0; }
.proj-tile p { font-size: var(--step--1); color: var(--ink-600); line-height: 1.5; }
.proj-tile:hover .proj-tile__media { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.proj-tile:hover .proj-tile__media img { transform: scale(1.03); }
.proj-tile:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--r-md); }
.proj-tile h3 a:focus-visible { outline: none; }

/* banda de marca: socio benefactor */
.band { background: var(--band); color: var(--band-text); padding-block: var(--space-2xl); overflow: hidden; }
.band__in { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 60rem) { .band__in { grid-template-columns: 1.15fr 1fr; } }
.band__kicker { font-family: var(--f-display); font-weight: 600; font-size: var(--step-3); line-height: 1; color: var(--blue-200); text-transform: none; }
.band__title { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: var(--step-5); line-height: 0.85; color: var(--red-500); letter-spacing: -0.01em; }
.band__title span { display: block; color: #fff; }
.band__tag { margin-top: var(--space-s); font-size: var(--step-1); color: var(--band-text); }
.band__price { margin-top: var(--space-m); font-size: var(--step-0); color: #fff; }
.band__price strong { font-family: var(--f-display); font-size: var(--step-3); font-weight: 800; color: #fff; margin-right: 0.2em; }
.band__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid rgb(185 221 242 / 0.25); }
.band__list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: var(--space-xs); padding-block: var(--space-s); border-bottom: 1px solid rgb(185 221 242 / 0.25); font-size: var(--step-0); color: #fff; }
.band__list svg { width: 1.3rem; height: 1.3rem; margin-top: 0.2rem; fill: none; stroke: var(--red-300); stroke-width: 2.5; }
.band__list small { display: block; color: var(--band-text); font-size: var(--step--1); margin-top: 0.2rem; opacity: 0.9; }
.band .btn-row { margin-top: var(--space-l); }

/* novas: composición editorial */
.news-ed { display: grid; gap: var(--space-l); }
@media (min-width: 60rem) { .news-ed { grid-template-columns: 1.25fr 1fr; gap: var(--space-xl); } }
.news-ed__list { list-style: none; padding: 0; margin: 0; display: grid; align-content: start; }
.news-mini { position: relative; display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--space-s); align-items: center; padding-block: var(--space-s); border-bottom: 1px solid var(--border); }
.news-mini:first-child { padding-top: 0; }
.news-mini__media { aspect-ratio: 4 / 5; border-radius: var(--r-sm); overflow: hidden; background: var(--blue-100); }
.news-mini__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.news-mini h3 { font-family: var(--f-display); text-transform: uppercase; font-size: var(--step-1); line-height: 1; color: var(--blue-800); }
.news-mini h3 a { color: inherit; text-decoration: none; }
.news-mini h3 a::after { content: ''; position: absolute; inset: 0; }
.news-mini time { display: block; font-size: var(--step--1); color: var(--ink-600); font-weight: 700; margin-bottom: 0.35rem; }
.news-mini:hover h3 { color: var(--blue-700); }
.news-mini:hover img { transform: scale(1.04); }
.news-mini:focus-within { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 4px; }
.news-mini h3 a:focus-visible { outline: none; }

/* momento tipográfico (aparece unha vez ao chegar) */
.moment { padding-block: var(--space-3xl); text-align: left; }
.moment__text { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.5rem, 1.2rem + 6vw, 6rem); line-height: 0.9; color: var(--blue-800); max-width: 16ch; }

/* apoios: grupos de logos */
.supporters { display: grid; gap: var(--space-xl); }
.supporters__group { display: grid; gap: var(--space-m); padding-top: var(--space-m); border-top: 1px solid var(--border); }
@media (min-width: 60rem) { .supporters__group { grid-template-columns: 16rem minmax(0, 1fr); gap: var(--space-xl); } }
.supporters__group > * { min-width: 0; }
.supporters__group h3, .supporters__group h2 { font-family: var(--f-display); text-transform: uppercase; font-size: var(--step-1); line-height: 1.05; color: var(--blue-800); }

.intro-grid { display: grid; gap: var(--space-xl); align-items: start; }
@media (min-width: 60rem) { .intro-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); } }
.intro-grid .prose p:first-child { font-size: var(--step-1); line-height: 1.5; color: var(--ink-900); }
.intro-grid .prose p { color: var(--ink-600); }

/* ---------- 6. Cabeceira de páxina interior ---------- */
.page-head { padding-block: var(--space-xl) var(--space-l); background: var(--surface); border-bottom: 1px solid var(--border-soft); }
.page-head .lead { margin-top: var(--space-s); color: var(--ink-600); }
.page-head .share, .page-head > .wrap > p { margin-top: var(--space-s); }
.page-body { padding-block: var(--space-xl) var(--space-2xl); }
.page-body > :not(:first-child) { margin-top: var(--space-xl); }
.page-body > .h-section + :not(:first-child), .page-body > .h-block + :not(:first-child) { margin-top: var(--space-m); }
.page-body > :not(:first-child).h-section { margin-top: var(--space-2xl); }
.crumbs { font-size: var(--step--1); color: var(--ink-600); margin-bottom: var(--space-s); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: ''; display: inline-block; width: 0.35em; height: 0.35em; margin-right: 0.55rem; border: solid var(--ink-300); border-width: 2px 2px 0 0; transform: translateY(-0.1em) rotate(45deg); }
.crumbs a { color: var(--ink-600); text-decoration: none; }
.crumbs a:hover { color: var(--blue-700); text-decoration: underline; }

/* ---------- 7. Novas (listado) ---------- */
.news-grid { display: grid; gap: var(--space-l) var(--space-m); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); list-style: none; padding: 0; margin: 0; }
@media (min-width: 60rem) { .news-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.news-card { position: relative; display: flex; flex-direction: column; gap: var(--space-xs); }
.news-card__media { aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--blue-100); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.news-card:hover .news-card__media { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.news-card:hover .news-card__media img { transform: scale(1.03); }
.news-card__body { display: grid; gap: 0.4rem; }
.news-card__meta { display: flex; flex-wrap: wrap; gap: 0.2rem var(--space-xs); font-size: var(--step--1); color: var(--ink-600); font-weight: 700; }
.news-card__project { color: var(--blue-700); }
.news-card__project::before { content: ''; display: inline-block; width: 0.45em; height: 0.45em; margin-right: 0.45em; border-radius: 50%; background: var(--red-500); vertical-align: 0.12em; }
.news-card :is(h2, h3) { font-size: 1.6rem; line-height: 1; color: var(--blue-800); }
.news-card :is(h2, h3) a { color: inherit; text-decoration: none; }
.news-card :is(h2, h3) a::after { content: ''; position: absolute; inset: 0; }
.news-card:hover :is(h2, h3) { color: var(--blue-700); }
.news-card__excerpt { font-size: var(--step--1); color: var(--ink-600); line-height: 1.55; }
.news-card:focus-within { outline: 3px solid var(--focus); outline-offset: 6px; border-radius: var(--r-md); }
.news-card :is(h2, h3) a:focus-visible { outline: none; }
.news-grid--featured { grid-template-columns: 1fr; margin-bottom: var(--space-xl); }
@media (min-width: 52rem) {
  .news-card--featured { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--space-xl); }
  .news-card--featured .news-card__media { aspect-ratio: 4 / 4.4; border-radius: var(--r-lg); }
}
.news-card--featured :is(h2, h3) { font-size: var(--step-4); line-height: 0.92; }
.news-card--featured .news-card__excerpt { font-size: var(--step-0); max-width: 48ch; }

.news-filters { display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-l); align-items: end; justify-content: space-between; margin-bottom: var(--space-xl); }
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 var(--space-l); }
.news-filters .filters { margin: 0; }
.filter-link, .filters button { display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.45rem 1rem; border: 1px solid var(--blue-200); border-radius: var(--r-pill); font: 700 var(--step--1)/1 var(--f-text); color: var(--blue-800); text-decoration: none; background: #fff; cursor: pointer; transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1); }
.filter-link:hover, .filters button:hover { border-color: var(--blue-700); }
.filter-link[aria-current='page'], .filters button[aria-pressed='true'] { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }
.filters button span { font-weight: 400; opacity: 0.8; margin-left: 0.3em; }
.project-filter { display: grid; gap: 0.3rem; min-width: min(100%, 20rem); }
.project-filter label { font-size: var(--step--1); font-weight: 700; color: var(--ink-600); }
.project-filter select { min-height: 2.75rem; padding: 0.4rem 2.2rem 0.4rem 1rem; font: inherit; font-size: 1rem; border: 1px solid var(--blue-200); border-radius: var(--r-pill); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005f98' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.8rem center / 1rem; color: var(--ink-900); appearance: none; }
.project-links ul { columns: 2 12rem; font-size: var(--step--1); }

/* ---------- 8. Proxectos ---------- */
.features { display: grid; gap: var(--space-2xl); list-style: none; padding: 0; margin: 0; }
.feature { display: grid; gap: var(--space-m) var(--space-xl); align-items: center; }
@media (min-width: 52rem) { .feature { grid-template-columns: 1fr 1fr; } .feature--media-first .feature__media { order: -1; } }
.feature__media { border-radius: var(--r-lg); overflow: hidden; background: var(--blue-100); }
.feature__media img { width: 100%; }
.feature__title { font-size: var(--step-3); line-height: 0.95; color: var(--blue-800); margin-top: var(--space-2xs); }
.feature .prose { margin-top: var(--space-s); }
.feature .btn-row { margin-top: var(--space-m); }

.project-grid { display: grid; gap: var(--space-xl) var(--space-m); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.project { display: flex; flex-direction: column; gap: var(--space-xs); }
.project[hidden] { display: none; }
.project__media { aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--border-soft); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.project:hover .project__media { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.project:hover .project__media img { transform: scale(1.03); }
.project h2 { font-size: var(--step-2); line-height: 0.95; color: var(--blue-800); }
.project .prose { font-size: var(--step--1); color: var(--ink-600); }
.project .prose p + p { margin-top: 0.5em; }
.project .btn-row { margin-top: auto; padding-top: var(--space-2xs); }
.project .btn { min-height: 2.6rem; padding: 0.45rem 1.1rem; }
.project__news { font-size: var(--step--1); font-weight: 700; }

/* ---------- 9. Tarxetas (persoas, inscricións, boletíns) ---------- */
.cards { display: grid; gap: var(--space-l) var(--space-m); grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.cards--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: 0.35rem; }
.card__media { border-radius: var(--r-md); overflow: hidden; background: var(--surface); aspect-ratio: var(--ratio, 4 / 5); margin-bottom: var(--space-2xs); transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.card__media--contain img { object-fit: contain; }
.card:has(a):hover .card__media { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card:has(a):hover .card__media img { transform: scale(1.03); }
.card__title { font-size: 1.55rem; line-height: 1; color: var(--blue-800); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--blue-700); text-decoration: underline; text-decoration-thickness: 2px; }
.card__meta { color: var(--ink-600); font-size: var(--step--1); line-height: 1.45; }
.card--muted .card__media img { filter: grayscale(1) opacity(0.55); }
.card--muted .card__title { color: var(--ink-600); }
.card .btn-row { margin-top: var(--space-2xs); }
.card__pdf { font-size: var(--step--1); font-weight: 700; color: var(--red-700); }

/* ---------- 10. Logos, galerías, columnas, imaxes ---------- */
.logos { display: grid; gap: var(--space-2xs); grid-template-columns: repeat(auto-fill, minmax(min(30%, 8.5rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.logos--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.logos li { display: grid; min-width: 0; }
.logo-tile { display: grid; place-items: center; aspect-ratio: 1; padding: var(--space-xs); background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-md); transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.logos--wide .logo-tile { aspect-ratio: 2.9; }
a.logo-tile:hover { border-color: var(--blue-200); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.logo-tile img { max-height: 100%; width: auto; object-fit: contain; }
.gallery { display: grid; gap: var(--space-2xs); grid-template-columns: repeat(auto-fill, minmax(min(46%, 11rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.gallery a, .gallery button, .gallery__static { display: block; aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; background: var(--blue-100); cursor: zoom-in; width: 100%; }
.gallery__static { cursor: default; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.gallery a:hover img, .gallery button:hover img { transform: scale(1.04); }
.columns { display: grid; gap: var(--space-l); }
@media (min-width: 52rem) { .columns { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); } }
.columns > div > * + * { margin-top: var(--space-s); }
.block-image { border-radius: var(--r-md); overflow: hidden; max-width: 48rem; }
.block-image figcaption { font-size: var(--step--1); color: var(--ink-600); padding-top: var(--space-2xs); }
.zoom { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; border-radius: var(--r-md); overflow: hidden; }
.motto { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); color: var(--blue-700); text-transform: uppercase; line-height: 1; padding-top: var(--space-m); border-top: 2px solid var(--blue-700); position: relative; max-width: 22ch; }
.motto::before { content: ''; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red-500); }

/* vídeo e mapa (fachadas sen cookies) */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--blue-950); color: #fff; }
.video button, .video a.video__fallback { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--space-xs); width: 100%; border: 0; background: var(--blue-950); color: #fff; cursor: pointer; font: 600 1rem/1.3 var(--f-text); text-decoration: none; text-align: center; padding: var(--space-m); }
.video svg.play { width: 4.5rem; height: 4.5rem; transition: transform var(--dur-2) var(--ease-out); }
.video button:hover svg.play { transform: scale(1.08); }
.video small { opacity: 0.85; font-size: var(--step--1); max-width: 34ch; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .court { position: absolute; inset: 0; width: 100%; height: 100%; color: rgb(185 221 242 / 0.2); }
.video .court * { fill: none; stroke: currentColor; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__facade { position: absolute; inset: 0; display: grid; place-content: center; gap: var(--space-xs); padding: var(--space-m); text-align: center; }

/* ---------- 11. Formularios ---------- */
.form { display: grid; gap: var(--space-m); max-width: 46rem; }
.form__grid { display: grid; gap: var(--space-s) var(--space-m); }
@media (min-width: 40rem) { .form__grid { grid-template-columns: 1fr 1fr; } .form__grid .wide { grid-column: 1 / -1; } }
.form__step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--space-m); }
.form__step[hidden], .form__final[hidden] { display: none; }
.form__step legend { padding: 0; margin-bottom: var(--space-s); font-size: var(--step-2); }
.form__step legend:focus { outline: none; }
.form__final { display: grid; gap: var(--space-s); }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 1rem; }
.field .req { color: var(--red-700); }
.field__help { font-size: var(--step--1); color: var(--ink-600); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3.1rem; padding: 0.7rem 0.95rem; font: inherit; font-size: var(--step-0); color: var(--ink-900);
  background: #fff; border: 1.5px solid var(--ink-200); border-radius: var(--r-sm);
  transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.field input::placeholder, .field textarea::placeholder { color: #6b7884; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink-300); }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-700); outline: none; box-shadow: 0 0 0 4px rgb(0 95 152 / 0.18); }
.field [aria-invalid='true'] { border-color: var(--red-700); box-shadow: 0 0 0 4px rgb(200 38 31 / 0.12); }
.field__error { color: var(--red-700); font-size: var(--step--1); font-weight: 700; }
.field__error:empty { display: none; }
.check { display: flex; gap: var(--space-xs); align-items: flex-start; font-size: 1rem; }
.check input { width: 1.35rem; height: 1.35rem; margin-top: 0.15rem; flex: none; }
.form__note { font-size: var(--step--1); color: var(--ink-600); }
.form__legal { font-size: var(--step--1); padding: var(--space-s); background: var(--surface); border-radius: var(--r-md); }
.form__status { padding: var(--space-s); border-radius: var(--r-md); font-weight: 700; }
.form__status[data-kind='ok'] { background: #e6f3ea; color: var(--green-700); }
.form__status[data-kind='error'] { background: #fde9e8; color: var(--red-700); }
.form__status[data-kind='info'] { background: var(--surface); color: var(--blue-800); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.steps { display: flex; gap: var(--space-2xs); list-style: none; padding: 0; margin: 0; }
.steps li { flex: 1; display: flex; align-items: center; gap: 0.5rem; padding-top: var(--space-xs); border-top: 3px solid var(--blue-200); font-size: var(--step--1); font-weight: 700; color: var(--ink-600); transition: border-color var(--dur-2), color var(--dur-2); }
.steps li[aria-current='step'] { border-color: var(--red-700); color: var(--ink-900); }
.steps li.done { border-color: var(--blue-700); color: var(--blue-700); }
.steps__n { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--blue-50); color: var(--blue-800); flex: none; font-variant-numeric: tabular-nums; }
.steps li[aria-current='step'] .steps__n { background: var(--red-700); color: #fff; }
.steps li.done .steps__n { background: var(--blue-700); color: #fff; }
@media (max-width: 30rem) { .steps li { font-size: 0; gap: 0; } .steps__n { font-size: var(--step--1); } }
.summary { padding: var(--space-m); border: 1px solid var(--blue-200); border-radius: var(--r-md); background: var(--surface); }
.summary dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem var(--space-m); margin: var(--space-s) 0 0; font-size: var(--step--1); }
.summary dt { font-weight: 700; color: var(--ink-600); }
.summary dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- 12. Nova (detalle) ---------- */
.article-head { display: grid; gap: var(--space-l); align-items: end; }
@media (min-width: 60rem) { .article-head { grid-template-columns: 1.3fr 1fr; gap: var(--space-xl); } }
.article-head .page-title { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.5rem); max-width: 20ch; }
.article-head__media { border-radius: var(--r-lg); overflow: hidden; max-height: 34rem; box-shadow: var(--shadow-2); }
.article-head__media img { width: 100%; height: 100%; max-height: 34rem; object-fit: cover; }
.article-body { display: grid; gap: var(--space-m); max-width: 46rem; }
.article-body .gallery { grid-template-columns: repeat(auto-fill, minmax(min(46%, 13rem), 1fr)); }
.project-tag { margin-top: var(--space-xs); font-weight: 700; font-size: 1rem; }
.project-tag span { color: var(--ink-600); font-weight: 600; margin-right: 0.3rem; }
.related { margin-top: var(--space-2xl); }
.related .section__head { margin-bottom: var(--space-m); }
.pager { display: grid; gap: var(--space-s); margin-top: var(--space-2xl); padding-top: var(--space-l); border-top: 1px solid var(--border); }
@media (min-width: 48rem) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { display: block; text-decoration: none; padding: var(--space-s) var(--space-m); border-radius: var(--r-md); border: 1px solid var(--border-soft); transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.pager a:hover { border-color: var(--blue-200); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.pager small { display: block; color: var(--ink-600); font-weight: 700; font-size: var(--step--1); margin-bottom: 0.2rem; }
.pager span { font-family: var(--f-display); text-transform: uppercase; font-weight: 800; font-size: var(--step-1); line-height: 1; color: var(--blue-800); }
.pager .next { text-align: right; }
.pagination { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: var(--space-2xl); align-items: center; }
.pagination a, .pagination span { min-width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; padding: 0 0.85rem; border-radius: var(--r-pill); text-decoration: none; font-weight: 700; border: 1px solid var(--blue-200); font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: var(--blue-700); background: var(--blue-50); }
.pagination [aria-current='page'] { background: var(--blue-800); color: #fff; border-color: var(--blue-800); }
.pagination .gap { border: 0; }

/* compartir */
.share { position: relative; display: inline-block; }
.share__btn { min-height: 2.5rem; padding: 0.4rem 1rem; }
.share__btn svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2; }
.share__menu { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.share__btn:not([hidden]) + .share__menu { position: absolute; z-index: 20; top: calc(100% + 0.4rem); left: 0; flex-direction: column; min-width: 13rem; padding: 0.4rem; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-md); box-shadow: var(--shadow-2); animation: pop var(--dur-2) var(--ease-out); }
.share__menu[hidden] { display: none; }
.share__menu a, .share__menu button { display: block; padding: 0.6rem 0.8rem; border: 0; border-radius: var(--r-sm); background: none; font: 600 1rem/1.2 var(--f-text); color: var(--ink-900); text-align: left; text-decoration: none; cursor: pointer; }
.share__menu a:hover, .share__menu button:hover { background: var(--blue-50); color: var(--blue-700); }

/* ---------- 13. Contacto, busca ---------- */
.contact-grid { display: grid; gap: var(--space-2xl); }
@media (min-width: 60rem) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact-data { display: grid; gap: var(--space-s); align-content: start; }
.contact-data a.big { font-family: var(--f-display); font-weight: 800; font-size: var(--step-4); line-height: 1; text-decoration: none; color: var(--blue-800); overflow-wrap: anywhere; }
.contact-data a.big:hover { color: var(--blue-700); }
.search-form { display: flex; gap: var(--space-2xs); max-width: 40rem; }
.search-form input { flex: 1; min-height: 3.25rem; padding: 0.6rem 1.2rem; font: inherit; border: 1.5px solid var(--blue-200); border-radius: var(--r-pill); }
.search-form input:focus { border-color: var(--blue-700); outline: none; box-shadow: 0 0 0 4px rgb(0 95 152 / 0.18); }
.fb-resultados { list-style: none; padding: 0; margin: var(--space-l) 0 0; display: grid; gap: var(--space-m); max-width: var(--measure); }
.fb-resultados a { font-family: var(--f-display); font-size: var(--step-2); font-weight: 800; text-transform: uppercase; text-decoration: none; line-height: 1; }
.fb-resultados p { color: var(--ink-600); font-size: var(--step--1); margin-top: 0.3rem; }
.fb-resultados mark { background: var(--blue-100); color: inherit; border-radius: 2px; }

/* ---------- 14. Antepé e pé ---------- */
.prefooter { background: var(--surface); border-top: 1px solid var(--border-soft); padding-block: var(--space-xl); }
.prefooter__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-m); }
.prefooter__title { font-family: var(--f-display); font-weight: 800; text-transform: uppercase; font-size: var(--step-3); line-height: 0.95; color: var(--blue-800); max-width: 20ch; }
.prefooter p { color: var(--ink-600); margin-top: 0.4rem; }
.site-footer { background: var(--band); color: var(--band-text); padding-block: var(--space-2xl) var(--space-l); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: var(--space-xl); }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.footer-brand { display: grid; gap: var(--space-s); align-content: start; }
.footer-brand .crest { width: 5.5rem; background: #fff; border-radius: 50%; padding: 0.7rem; }
.footer-brand p { color: var(--band-text); max-width: 26ch; font-family: var(--f-display); font-weight: 700; font-size: var(--step-1); line-height: 1.1; text-transform: uppercase; }
.site-footer h2 { font-family: var(--f-text); text-transform: none; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.02em; margin-bottom: var(--space-s); color: var(--blue-200); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer ul a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-2) var(--ease-out); }
.site-footer ul a:hover { background-size: 100% 1px; }
.socials { display: flex !important; gap: 0.5rem !important; flex-wrap: wrap; }
.socials a { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid rgb(185 221 242 / 0.35); background: none !important; transition: background-color var(--dur-2), color var(--dur-2), border-color var(--dur-2); }
.socials a:hover { background-color: #fff !important; color: var(--blue-950); border-color: #fff; }
.socials svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.legal-links { display: flex !important; flex-wrap: wrap; gap: 0.5rem var(--space-m) !important; }
.legal-links a { color: var(--band-text) !important; }
.footer-bottom { margin-top: var(--space-2xl); padding-top: var(--space-m); border-top: 1px solid rgb(185 221 242 / 0.2); display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-l); justify-content: space-between; font-size: var(--step--1); color: var(--band-text); }

/* ---------- 15. Visor ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--space-s); background: transparent; display: none; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; gap: var(--space-xs); animation: menu-in var(--dur-2) var(--ease-out); }
.lightbox::backdrop { background: rgb(10 20 30 / 0.94); }
.lightbox__fig { display: grid; place-items: center; min-height: 0; margin: 0; }
.lightbox__fig img { max-width: 100%; max-height: calc(100dvh - 7rem); width: auto; height: auto; object-fit: contain; border-radius: var(--r-sm); }
.lightbox__fig figcaption { color: #fff; font-size: 1rem; padding-top: var(--space-2xs); text-align: center; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-xs); color: #fff; }
.lightbox__btns { display: flex; gap: 0.4rem; }
.lightbox__bar button { display: inline-grid; place-items: center; min-width: 3rem; height: 3rem; padding: 0 1.1rem; background: #fff; color: var(--ink-900); border: 0; border-radius: var(--r-pill); font-weight: 700; cursor: pointer; }
.lightbox__bar button[hidden] { display: none; }
.lightbox__bar svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* ---------- 16. Transicións entre páxinas ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- 17. Impresión ---------- */
@media print {
  .site-header, .site-footer, .prefooter, .hero__court, .filters, .pager, .skip-link, .share { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
}

/* ---------- 18. Portada: axustes de composición ---------- */
.hero__media { margin: 0; isolation: isolate; }
.hero__court { position: absolute; inset: -12% -14% auto auto; width: 75%; z-index: -1; }
.hero__photo { display: block; }
.hero__photo img { object-position: 62% 50%; transition: transform 0.8s var(--ease-out); }
.hero__cap { margin-top: var(--space-s); font-size: var(--step--1); color: var(--ink-600); padding-left: calc(var(--space-xl) + var(--space-s)); }
@media (max-width: 63.99rem) { .hero__cap { padding-left: 0; padding-right: 7rem; } .hero__court { display: none; } }
.band__intro { color: var(--band-text); margin-bottom: var(--space-s); max-width: 48ch; }
.news-ed__lead { list-style: none; padding: 0; margin: 0; }
.news-ed__lead .news-card__media { aspect-ratio: 1; border-radius: var(--r-lg); }
.news-ed__lead .news-card :is(h2, h3) { font-size: var(--step-3); line-height: 0.95; }
.news-ed__lead .news-card__excerpt { font-size: var(--step-0); max-width: 52ch; }
.supporters__group h2 { font-family: var(--f-display); text-transform: uppercase; font-size: var(--step-1); line-height: 1.05; color: var(--blue-800); }
.nav__more > button.is-current { color: var(--blue-700); }
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .moment [data-reveal] { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease-out); }
  .moment [data-reveal].is-in { clip-path: inset(0 0 0 0); }
}
.form__nav { justify-content: space-between; padding-top: var(--space-2xs); }
.form__nav[hidden], .form__status[hidden] { display: none; }
.form--steps { padding: var(--space-l); border: 1px solid var(--border-soft); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); }
@media (max-width: 40rem) { .form--steps { padding: var(--space-m) var(--space-s); } }
.chip--static { cursor: default; }
.video + .meta { margin-top: var(--space-2xs); }
.video + .meta a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
/* compartir: co JS dispoñible, o estado inicial xa é o despregable (sen saltos ao cargar) */
@media (scripting: enabled) {
  .share .share__btn[hidden] { display: inline-flex; }
  .share .share__btn[hidden] + .share__menu { display: none; }
}
@media (min-width: 40rem) and (max-width: 63.99rem) { .hero__title { max-width: 16ch; } }

/* ---------- 19. Guía de estilo (/guia-de-estilo) ---------- */
.sg-swatches { display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); list-style: none; padding: 0; margin: 0; }
.sg-swatches li { border: 1px solid var(--border-soft); border-radius: var(--r-md); overflow: hidden; font-size: var(--step--1); }
.sg-swatches span { display: block; height: 4.5rem; }
.sg-swatches p { padding: var(--space-2xs) var(--space-xs); }
.sg-swatches code { display: block; color: var(--ink-600); }
.sg-scale { display: grid; gap: var(--space-s); }
.sg-scale p { display: grid; grid-template-columns: 7rem 1fr; gap: var(--space-s); align-items: baseline; }
.sg-scale small { color: var(--ink-600); font-family: var(--f-text); font-size: var(--step--1); text-transform: none; font-weight: 400; }
.sg-row { display: flex; flex-wrap: wrap; gap: var(--space-s); align-items: center; }
.sg-dark { background: var(--band); padding: var(--space-m); border-radius: var(--r-md); }

/* =========================================================================
   20. WordPress: contido de bloques (páxinas e novas)
   ========================================================================= */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.img-missing { display: grid; place-items: center; width: 100%; height: 100%; min-height: 6rem; background: var(--blue-50); color: var(--blue-200); }
.img-missing svg { width: 32%; max-width: 4rem; }
.hero__fallback { object-fit: contain !important; padding: 15%; background: var(--blue-50); }

/* ritmo vertical do contido */
.entry > * + * { margin-top: var(--space-m); }
.entry > :is(h2, h3, h4) { margin-top: var(--space-xl); }
.entry > :is(h2, h3, h4) + * { margin-top: var(--space-s); }
.entry > :first-child { margin-top: 0; }
.entry > :is(p, ul, ol, blockquote, .wp-block-list, .wp-block-quote), .wp-block-column > :is(p, ul, ol), .fb-destacado__texto :is(p, ul, ol) { max-width: var(--measure); }
/* temas clásicos: os grupos levan un contedor interior; os nosos grupos con deseño ignórano */
.wp-block-group[class*="fb-"] > .wp-block-group__inner-container { display: contents; }
.entry .wp-block-group:not([class*="fb-"]) > .wp-block-group__inner-container > * + * { margin-top: var(--space-s); }
.entry > .wp-block-group, .entry > .wp-block-columns, .entry > .wp-block-gallery { margin-top: var(--space-l); }
.entry .wp-block-heading, .entry > h2, .entry > h3, .entry > h4 { font-family: var(--f-display); text-transform: uppercase; color: var(--heading); line-height: 0.98; font-weight: 800; }
.entry h2.wp-block-heading, .entry > h2 { font-size: var(--step-3); }
.entry h3.wp-block-heading, .entry > h3 { font-size: var(--step-2); }
.entry h4.wp-block-heading, .entry > h4 { font-size: var(--step-1); }
.entry a:not(.btn):not(.wp-block-button__link):not(.logo-tile) { overflow-wrap: anywhere; }
.entry :is(.wp-block-list, ol) { padding-left: 1.2em; }
.entry li + li { margin-top: 0.4em; }
.entry li::marker { color: var(--red-700); }
.entry .wp-block-list:has(> li:nth-child(10)) { columns: 2 16rem; column-gap: var(--space-l); }
.entry .wp-block-list:has(> li:nth-child(10)) li { break-inside: avoid; }
.entry strong { font-weight: 700; }
.entry table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.entry td, .entry th { border-bottom: 1px solid var(--border); padding: var(--space-2xs) var(--space-xs); text-align: left; vertical-align: top; }
.entry iframe { max-width: 100%; border: 0; }
.entry .wp-block-quote { margin-left: 0; margin-right: 0; padding: var(--space-s) var(--space-m); background: var(--surface); border-radius: var(--r-md); border: 0; font-size: var(--step-1); }
.entry .wp-block-quote > * + * { margin-top: 0.6em; }
.entry .wp-block-separator { border: 0; border-top: 1px solid var(--border); margin-block: var(--space-xl); opacity: 1; }
.entry .motto { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); color: var(--blue-700); text-transform: uppercase; line-height: 1; padding-top: var(--space-m); border-top: 2px solid var(--blue-700); position: relative; max-width: 22ch; }
.entry .motto::before { content: ''; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red-500); }

/* imaxes */
.wp-block-image { margin: 0; }
.wp-block-image img { border-radius: var(--r-md); height: auto; }
.entry > .wp-block-image { max-width: 48rem; }
.wp-block-image figcaption, .wp-element-caption { font-size: var(--step--1); color: var(--ink-600); padding-top: var(--space-2xs); margin: 0; text-align: left; }
.zoom img { transition: transform 0.6s var(--ease-out); }
.zoom:hover img { transform: scale(1.02); }
.zoom:focus-visible { outline-offset: 3px; }

/* galerías: grella cadrada */
.wp-block-gallery.has-nested-images { display: grid !important; gap: var(--space-2xs) !important; grid-template-columns: repeat(auto-fill, minmax(min(46%, 11rem), 1fr)); margin: 0; }
.wp-block-gallery.has-nested-images figure.wp-block-image { width: auto !important; margin: 0 !important; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--blue-100); }
.wp-block-gallery.has-nested-images figure.wp-block-image :is(img, .zoom) { width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0; }
.wp-block-gallery.has-nested-images figure.wp-block-image .zoom { display: block; aspect-ratio: 1; }
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { display: none; }
.article-body .wp-block-gallery.has-nested-images { grid-template-columns: repeat(auto-fill, minmax(min(46%, 13rem), 1fr)); }

/* botóns de bloque = botóns do sistema */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.wp-block-button { margin: 0; }
.wp-block-button__link, .wp-element-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.7rem 1.4rem;
  font: 700 1rem/1.15 var(--f-text); color: #fff; background: var(--blue-700); border: 2px solid var(--blue-700); border-radius: var(--r-pill);
  text-decoration: none; transition: background-color var(--dur-1), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.wp-block-button__link:hover { background: var(--blue-800); border-color: var(--blue-800); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.wp-block-button__link:active { transform: scale(0.98); box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--blue-700); border-color: var(--blue-200); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--blue-50); border-color: var(--blue-700); color: var(--blue-800); }
.fb-etiquetas { font-size: var(--step--1); font-weight: 700; color: var(--blue-800); }

/* columnas */
.wp-block-columns { display: grid !important; gap: var(--space-l) !important; margin: 0; }
@media (min-width: 52rem) { .wp-block-columns { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.wp-block-column > * + * { margin-top: var(--space-s); }
.wp-block-column > :is(h2, h3).wp-block-heading { font-size: var(--step-2); }

/* vídeo */
.wp-block-embed { margin: 0; }
.wp-block-embed.fb-video { max-width: 48rem; }
.wp-block-embed__wrapper iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r-lg); }
.video + .meta { margin-top: var(--space-2xs); }
.video + .meta a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }

/* grupos con deseño: tarxetas, filas con foto, muros de logos */
.wp-block-group.fb-tarxetas { display: grid; gap: var(--space-l) var(--space-m); grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr)); }
.wp-block-group.fb-tarxeta { display: flex; flex-direction: column; gap: 0.35rem; }
.wp-block-group.fb-tarxeta > *, .fb-tarxeta > .wp-block-group__inner-container > * { margin: 0 !important; }
.fb-tarxeta .wp-block-image { border-radius: var(--r-md); overflow: hidden; background: var(--surface); aspect-ratio: 4 / 5; margin-bottom: var(--space-2xs) !important; }
.fb-tarxeta .wp-block-image :is(img, .zoom, a) { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.fb-tarxeta .wp-block-heading { font-family: var(--f-display); text-transform: uppercase; font-size: 1.55rem !important; line-height: 1; color: var(--blue-800); }
.fb-tarxeta .wp-block-heading a { color: inherit; text-decoration: none; }
.fb-tarxeta .wp-block-heading a:hover { color: var(--blue-700); text-decoration: underline; text-decoration-thickness: 2px; }
.fb-tarxeta p { font-size: var(--step--1); line-height: 1.45; color: var(--ink-600); }
.fb-tarxeta .wp-block-buttons { margin-top: var(--space-2xs) !important; }
.fb-tarxeta .wp-block-button__link { min-height: 2.6rem; padding: 0.45rem 1.1rem; }
.fb-meta { margin: 0; }
.fb-estado { font-size: var(--step--1); font-weight: 700; color: var(--blue-700); }
.fb-estado--done, .fb-estado--closed { color: var(--ink-600); }
.fb-estado--cancelled { color: var(--red-700); }
.fb-estado--soon { color: var(--amber-700); }

.wp-block-group.fb-destacados { display: grid; gap: var(--space-2xl); }
.wp-block-group.fb-destacado { display: grid; gap: var(--space-m) var(--space-xl); align-items: center; }
@media (min-width: 52rem) {
  .wp-block-group.fb-destacado { grid-template-columns: 1fr 1fr; }
  .fb-destacado--inverso :is(.wp-block-image) { order: 2; }
}
.fb-destacado > *, .fb-destacado > .wp-block-group__inner-container > * { margin: 0 !important; }
:is(.fb-destacado, .fb-destacado > .wp-block-group__inner-container) > .wp-block-image { border-radius: var(--r-lg); overflow: hidden; background: var(--blue-100); }
:is(.fb-destacado, .fb-destacado > .wp-block-group__inner-container) > .wp-block-image img { border-radius: 0; width: 100%; }
:is(.fb-destacado__texto, .fb-destacado__texto > .wp-block-group__inner-container) > * + * { margin-top: var(--space-s); }
.fb-destacado__texto .wp-block-heading { font-size: var(--step-3) !important; line-height: 0.95; }

.wp-block-group.fb-logos { display: grid; gap: var(--space-2xs); grid-template-columns: repeat(auto-fill, minmax(min(30%, 8.5rem), 1fr)); }
.wp-block-group.fb-logos > *, .fb-logos > .wp-block-group__inner-container > * { margin: 0 !important; }
.fb-logos .wp-block-image { display: grid; place-items: center; aspect-ratio: 1; padding: var(--space-xs); background: #fff; border: 1px solid var(--border-soft); border-radius: var(--r-md); transition: border-color var(--dur-2), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out); }
.fb-logos .wp-block-image:has(a):hover { border-color: var(--blue-200); transform: translateY(-2px); box-shadow: var(--shadow-1); }
.fb-logos .wp-block-image img { max-height: 100%; width: auto; object-fit: contain; border-radius: 0; }
.fb-logos .wp-block-image .zoom { display: grid; place-items: center; height: 100%; cursor: zoom-in; }

/* proxectos dentro dunha páxina */
.fb-proxectos { margin-top: 0; }
.project .fb-edit { align-self: flex-start; }
.status--open::before { background: currentColor; }

/* =========================================================================
   21. Contact Form 7
   ========================================================================= */
.wpcf7 { max-width: 46rem; }
.wpcf7-form { display: grid; gap: var(--space-s); }
.wpcf7-form > p { margin: 0; }
.wpcf7-form label { display: grid; gap: 0.4rem; font-weight: 700; font-size: 1rem; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="url"], select, textarea) {
  width: 100%; min-height: 3.1rem; padding: 0.7rem 0.95rem; font: 400 var(--step-0)/1.4 var(--f-text); color: var(--ink-900);
  background: #fff; border: 1.5px solid var(--ink-200); border-radius: var(--r-sm); transition: border-color var(--dur-1), box-shadow var(--dur-1);
}
.wpcf7-form textarea { min-height: 9rem; resize: vertical; }
.wpcf7-form select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23005f98' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 1rem; padding-right: 2.5rem; }
.wpcf7-form :is(input, select, textarea):hover { border-color: var(--ink-300); }
.wpcf7-form :is(input, select, textarea):focus { border-color: var(--blue-700); outline: none; box-shadow: 0 0 0 4px rgb(0 95 152 / 0.18); }
.wpcf7-form .wpcf7-not-valid { border-color: var(--red-700) !important; box-shadow: 0 0 0 4px rgb(200 38 31 / 0.12); }
.wpcf7-not-valid-tip { display: block; color: var(--red-700); font-size: var(--step--1); font-weight: 700; margin-top: 0.35rem; }
.wpcf7-form input[type="submit"], .wpcf7-submit {
  justify-self: start; min-height: 3rem; padding: 0.7rem 1.6rem; font: 700 1rem/1.15 var(--f-text); color: #fff; background: var(--red-700);
  border: 2px solid var(--red-700); border-radius: var(--r-pill); cursor: pointer; transition: background-color var(--dur-1), transform var(--dur-2) var(--ease-out);
}
.wpcf7-submit:hover { background: #a51d17; transform: translateY(-1px); }
.wpcf7-submit:disabled { opacity: 0.6; cursor: progress; }
.wpcf7-spinner { display: inline-block; width: 1.4rem; height: 1.4rem; margin-left: 0.75rem; border: 3px solid var(--blue-200); border-top-color: var(--blue-700); border-radius: 50%; visibility: hidden; vertical-align: middle; }
.wpcf7-form.submitting .wpcf7-spinner { visibility: visible; animation: fb-spin 0.8s linear infinite; }
@keyframes fb-spin { to { transform: rotate(360deg); } }
.wpcf7-response-output { margin: 0 !important; padding: var(--space-s) !important; border-radius: var(--r-md); border: 0 !important; font-weight: 700; background: var(--surface); color: var(--blue-800); }
.wpcf7-response-output:empty { display: none; }
.wpcf7-form.sent .wpcf7-response-output { background: #e6f3ea; color: var(--green-700); }
.wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.failed .wpcf7-response-output, .wpcf7-form.unaccepted .wpcf7-response-output, .wpcf7-form.spam .wpcf7-response-output { background: #fde9e8; color: var(--red-700); }
.wpcf7 .screen-reader-response { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wpcf7-form .hidden-fields-container, .wpcf7 form .wpcf7-response-output[aria-hidden="true"]:empty { display: none; }
.wpcf7-list-item { margin: 0 1rem 0 0; }
.form7-inputnumber { display: block; }
/* formulario por pasos (socio benefactor) */
.fb-form-steps { padding: var(--space-l); border: 1px solid var(--border-soft); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-1); }
@media (max-width: 40rem) { .fb-form-steps { padding: var(--space-m) var(--space-s); } }
.fb-step { display: grid; gap: var(--space-s); border: 0; padding: 0; margin: 0; min-width: 0; }
.fb-step[hidden] { display: none; }
.fb-step legend { padding: 0; margin-bottom: var(--space-2xs); font-family: var(--f-display); text-transform: uppercase; font-weight: 800; font-size: var(--step-2); color: var(--blue-800); line-height: 1; }
.fb-step legend:focus { outline: none; }
@media (min-width: 40rem) { .fb-step__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s) var(--space-m); } .fb-step__grid > .wide { grid-column: 1 / -1; } }
.fb-step__grid { display: grid; gap: var(--space-s); }
.fb-step__nav { display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: space-between; padding-top: var(--space-2xs); }
.fb-help { font-size: var(--step--1); color: var(--ink-600); font-weight: 400; }
.fb-err-live { color: var(--red-700); font-size: var(--step--1); font-weight: 700; }
.fb-err-live:empty { display: none; }

/* =========================================================================
   22. Escritorio na web: botóns «Editar» (só administradores)
   ========================================================================= */
.fb-edit { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: var(--space-s); padding: 0.35rem 0.8rem; font: 700 0.8125rem/1.2 var(--f-text); color: #6b4600; background: #fff4d6; border: 1px dashed #c99a2e; border-radius: var(--r-pill); text-decoration: none; }
.fb-edit svg { width: 0.95rem; height: 0.95rem; }
.fb-edit:hover { background: #ffe9ad; color: #4d3200; }
.band .fb-edit, .site-footer .fb-edit { background: rgb(255 244 214 / 0.95); }
.section__head .fb-edit { margin-top: 0; }
.fb-edit--inline { margin-top: var(--space-2xs); }

/* paxinación de WordPress */
.pagination .page-numbers { min-width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; padding: 0 0.85rem; border-radius: var(--r-pill); text-decoration: none; font-weight: 700; border: 1px solid var(--blue-200); }
.pagination a.page-numbers:hover { border-color: var(--blue-700); background: var(--blue-50); }
.pagination .page-numbers.current { background: var(--blue-800); color: #fff; border-color: var(--blue-800); }
.pagination .page-numbers.gap, .pagination .page-numbers.dots { border: 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: var(--space-2xl); }
.mobile-nav__search { display: flex; gap: var(--space-2xs); padding: var(--space-s) var(--gutter) 0; }
.mobile-nav__search input { flex: 1; min-width: 0; min-height: 3rem; padding: 0.5rem 1rem; font: inherit; border: 1.5px solid var(--blue-200); border-radius: var(--r-pill); }
/* incrustacións de Instagram nas novas */
.entry :is(.instagram-media, .embedpress-wrapper, .ose-embedpress-responsive) { max-width: 34rem !important; margin-inline: 0 !important; }
.entry > .map { aspect-ratio: auto; min-height: 20rem; height: clamp(20rem, 40vw, 28rem); }

/* os elementos de grella nunca se estiran polo ancho intrínseco das imaxes */
:is(.news-grid, .project-grid, .proj-row, .cards, .logos, .gallery, .news-ed, .intro-grid, .band__in, .hero__in, .footer-grid, .wp-block-columns, .fb-tarxetas, .fb-logos, .fb-destacado, .contact-grid) > *, :is(.fb-tarxetas, .fb-logos, .fb-destacado) > .wp-block-group__inner-container > * { min-width: 0; }
.fb-live .wpcf7-not-valid-tip { display: none; }
/* texto corrido: entre parágrafos e listas, o espazo dun texto normal */
.entry > :is(p, .wp-block-list, ul, ol) + :is(p, .wp-block-list, ul, ol), .wp-block-column > :is(p, ul, ol) + :is(p, ul, ol), :is(.fb-destacado__texto, .fb-destacado__texto > .wp-block-group__inner-container) > :is(p, ul, ol) + :is(p, ul, ol) { margin-top: 1em; }
/* logos: nunca máis anchos que a súa columna */
.logos li > *, .logo-tile { min-width: 0; }
.logo-tile { overflow: hidden; }
.logo-tile img { max-width: 100%; height: auto; max-height: 100%; }
.news-filters > * { min-width: 0; max-width: 100%; }
.project-filter { flex: 1 1 16rem; max-width: 22rem; }
.project-filter select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
.fb-portfolio__media { max-width: 48rem; margin-bottom: var(--space-l) !important; }
/* Portfolios: a entradilla (antes un título longo) e os logos da empresa e a entidade */
.entry .fb-entradilla { font-size: var(--step-1); line-height: 1.5; max-width: 54ch; color: var(--heading); font-weight: 500; }
.entry .fb-portfolio__logos { max-width: 24rem; }
