/* ==========================================================================
   FerrolOnline · sistema de aplicación · v4.0.1
   Capa de continuidad sobre el contenido existente. No altera rutas ni datos.
   Orden: fuentes → tokens → shell → base editorial → componentes → utilidades.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tipografía autoalojada
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-vf.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/manrope-vf-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-vf.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/fraunces-vf-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
:root {
  --fo-navy-1000: #051920;
  --fo-navy-950: #08232d;
  --fo-navy-900: #0b2b36;
  --fo-navy-800: #143b47;
  --fo-navy-700: #1d4c59;
  --fo-green: #11834d;
  --fo-green-dark: #0a6239;
  --fo-green-soft: #e3f2e9;
  --fo-green-line: #bfe2d0;
  --fo-gold: #f1c960;
  --fo-gold-dark: #a87613;
  --fo-gold-soft: #fdf4d9;
  --fo-paper: #f5f2ea;
  --fo-paper-deep: #ece7db;
  --fo-card: #fffdf8;
  --fo-white: #ffffff;
  --fo-ink: #122f38;
  --fo-ink-soft: #2f4d56;
  --fo-muted: #5c737b;
  --fo-muted-light: #7d9096;
  --fo-line: #ded8c9;
  --fo-line-soft: #ebe6d9;
  --fo-danger: #a43a2a;
  --fo-radius-xl: 28px;
  --fo-radius-lg: 20px;
  --fo-radius-md: 14px;
  --fo-radius-sm: 10px;
  --fo-shadow-sm: 0 1px 2px rgba(9, 32, 39, 0.05), 0 6px 18px rgba(9, 32, 39, 0.05);
  --fo-shadow-md: 0 2px 4px rgba(9, 32, 39, 0.05), 0 18px 44px rgba(9, 32, 39, 0.09);
  --fo-shadow-lg: 0 30px 80px rgba(4, 24, 31, 0.3);
  --fo-font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fo-font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --fo-shell-w: 1220px;
  --fo-gutter: 24px;
  --fo-header-h: 74px;
  --fo-ease: cubic-bezier(0.2, 0.7, 0.25, 1);
  --fo-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Compatibilidad con la capa anterior */
  --navy: #143b47;
  --navy2: #205465;
  --green: #11834d;
  --gold: #f1c960;
  --ink: #122f38;
  --muted: #5c737b;
  --bg: #f5f2ea;
  --line: #ded8c9;
  --white: #fff;
  --radius: 20px;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--fo-header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--fo-paper);
  color: var(--fo-ink);
  font-family: var(--fo-font-sans);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
}
body.fo-palette-open {
  overflow: hidden;
}
::selection {
  background: var(--fo-gold);
  color: var(--fo-navy-950);
}
h1,
h2 {
  font-family: var(--fo-font-serif);
  font-weight: 600;
  font-variation-settings: "opsz" 72;
  letter-spacing: -0.028em;
  color: var(--fo-ink);
  text-wrap: balance;
}
h3,
h4,
h5,
h6 {
  font-family: var(--fo-font-sans);
  letter-spacing: -0.018em;
  color: var(--fo-ink);
}
p {
  text-wrap: pretty;
}
a {
  color: var(--fo-green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  color: var(--fo-green);
}
[hidden] {
  display: none !important;
}
img,
svg,
video {
  max-width: 100%;
}
img {
  height: auto;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--fo-gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.shellwidth {
  width: min(var(--fo-shell-w), calc(100% - var(--fo-gutter) * 2));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -10000px;
  top: 0;
  z-index: 999;
  background: var(--fo-gold);
  color: var(--fo-navy-950);
  padding: 12px 18px;
  font-weight: 800;
  border-radius: 0 0 12px 0;
}
.skip:focus {
  left: 0;
  top: 0;
}

/* --------------------------------------------------------------------------
   4. Shell · barra superior
   -------------------------------------------------------------------------- */
.fo-topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--fo-navy-950);
  color: #f4f8f6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: box-shadow 0.25s var(--fo-ease), background-color 0.25s var(--fo-ease);
}
.fo-topbar.is-stuck {
  background: rgba(7, 30, 38, 0.97);
  box-shadow: 0 12px 34px rgba(4, 20, 26, 0.28);
}
.fo-topbar__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--fo-header-h);
}
.fo-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
  line-height: 0;
}
.fo-brand__logo {
  display: block;
  width: 154px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}
.fo-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.fo-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  color: rgba(238, 246, 243, 0.78);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s, background-color 0.16s;
}
.fo-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.fo-nav a[aria-current="page"],
.fo-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.fo-nav a[aria-current="page"]::after,
.fo-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--fo-gold);
}
.fo-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.fo-iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  min-width: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4f8f6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  transition: background-color 0.16s, border-color 0.16s, transform 0.16s;
}
.fo-iconbtn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
}
.fo-iconbtn svg {
  width: 19px;
  height: 19px;
  flex: none;
}
.fo-iconbtn .fo-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 700;
}
.fo-search-open {
  padding-right: 8px;
}
.fo-saved-link {
  min-width: 42px;
  padding: 0;
}
.fo-saved-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--fo-gold);
  color: var(--fo-navy-950);
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--fo-navy-950);
}
.fo-saved-count[hidden] {
  display: none;
}
.fo-menubtn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.fo-menubtn svg {
  width: 21px;
  height: 21px;
}
.fo-mobilenav {
  display: none;
  padding: 6px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.fo-mobilenav.is-open {
  display: block;
}
.fo-mobilenav__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
}
.fo-mobilenav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #edf6f2;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.fo-mobilenav a:hover,
.fo-mobilenav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.fo-mobilenav a svg {
  width: 18px;
  height: 18px;
  color: var(--fo-gold);
  flex: none;
}
.fo-mobilenav__search {
  grid-column: 1 / -1;
  background: var(--fo-green) !important;
  border-color: var(--fo-green) !important;
  color: #fff;
}
.fo-mobilenav__search svg {
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   5. Base editorial sobre el contenido heredado
   -------------------------------------------------------------------------- */
.desktop-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.desktop-shell > main {
  flex: 1 0 auto;
}
.subpage {
  padding-top: 30px;
  min-height: 52vh;
}
.crumb {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--fo-muted);
  margin-bottom: 30px;
  letter-spacing: 0.01em;
}
.crumb a {
  color: var(--fo-muted);
  text-decoration: none;
}
.crumb a:hover {
  color: var(--fo-green-dark);
  text-decoration: underline;
}
.crumb span[aria-hidden="true"] {
  color: var(--fo-muted-light);
}
.page-intro {
  max-width: 860px;
  margin: 0 0 34px;
}
.page-intro h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 12px 0 18px;
}
.page-intro p {
  color: var(--fo-muted);
  font-size: 17.5px;
  line-height: 1.68;
}
.eyebrow {
  font-family: var(--fo-font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fo-green-dark);
}
.detail-article h1 {
  font-size: clamp(32px, 4.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.entry-content {
  color: var(--fo-ink-soft);
  font-size: 16px;
  line-height: 1.75;
}
.entry-content h2,
.entry-content h3 {
  margin-top: 1.7em;
}
.entry-content a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
.editorial-note,
.disclaimer {
  color: var(--fo-muted);
}
.editorial-note {
  background: var(--fo-gold-soft);
  border: 1px solid #eddfb4;
  border-radius: var(--fo-radius-sm);
}

/* Botones y controles */
.primary-btn,
.searchrow button,
.info-panel .button,
.fo344-btn,
.fo310-btn,
.fo37-actions a,
.fol36-actions a,
.fo-actions a,
.zone-panel a.button,
a.button,
.soft-btn {
  border-radius: 11px;
  font-weight: 800;
  letter-spacing: 0.005em;
  transition: transform 0.15s var(--fo-ease), filter 0.15s, background-color 0.15s;
}
.primary-btn,
.searchrow button,
.info-panel .button,
a.button {
  background: var(--fo-green);
  color: #fff;
  border: 1px solid var(--fo-green);
}
.primary-btn:hover,
.searchrow button:hover,
.info-panel .button:hover,
a.button:hover {
  background: var(--fo-green-dark);
  border-color: var(--fo-green-dark);
  color: #fff;
}
.soft-btn {
  background: var(--fo-card);
  border: 1px solid var(--fo-line);
  color: var(--fo-ink);
}
.soft-btn:hover {
  border-color: var(--fo-green);
  color: var(--fo-green-dark);
}
.filter-box,
.directory-filter,
input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font: inherit;
  color: var(--fo-ink);
}
.filter-box {
  background: var(--fo-card);
  border: 1px solid var(--fo-line);
  border-radius: var(--fo-radius-md);
  padding: 16px;
}
.filter-box input,
.directory-filter {
  background: #fff;
  border: 1px solid #cfc8b8;
  border-radius: 10px;
  padding: 12px 14px;
}
.filter-box input:focus,
.directory-filter:focus {
  border-color: var(--fo-green);
  outline: 3px solid var(--fo-gold);
  outline-offset: 1px;
}
input::placeholder,
textarea::placeholder {
  color: #8b9a9d;
}

/* Tarjetas heredadas */
.entry-card,
.tile,
.fo-panel,
.info-panel,
.detail-article,
.sidebar-card,
.phone-dir-card,
.b4-card,
.fo310-card,
.fol36-tile,
.fo37-card,
.agenda-guide,
.zone-info-card,
.neighborhood-feature__card,
.coast-card,
.v39-contact,
.fo344-panel,
.b6-card,
.fo-b6-card {
  background: var(--fo-card);
  border: 1px solid var(--fo-line);
  border-radius: var(--fo-radius-lg);
  box-shadow: var(--fo-shadow-sm);
}
.entry-card,
.tile {
  transition: transform 0.18s var(--fo-ease), border-color 0.18s, box-shadow 0.18s;
}
.entry-card:hover,
.tile:hover {
  transform: translateY(-3px);
  border-color: #b9cdc3;
  box-shadow: var(--fo-shadow-md);
}
.entry-card strong {
  font-family: var(--fo-font-sans);
  font-weight: 800;
}
.card-type {
  color: var(--fo-green-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}
.card-go,
.text-link {
  color: var(--fo-green-dark);
}
.tile-icon {
  color: var(--fo-green);
}
.tile-count {
  color: var(--fo-muted);
}
.chip-links a,
.hub-links a,
.directory-nav a,
.fo344-links a,
.fo-links a {
  background: var(--fo-card);
  border: 1px solid var(--fo-line);
  color: var(--fo-ink-soft);
}
.chip-links a:hover,
.hub-links a:hover,
.directory-nav a:hover,
.fo344-links a:hover {
  border-color: var(--fo-green);
  color: var(--fo-green-dark);
}
.hub-links a {
  border-radius: 999px;
}

/* Avisos y notas */
.fo-note,
.fo-newsletter-note,
.legal-pending,
.legal-update {
  border-radius: var(--fo-radius-sm);
}
.fo-note,
.legal-pending {
  background: var(--fo-gold-soft);
  border-left: 4px solid var(--fo-gold);
}
.fo3598-context,
.fo3599-context,
.fo340-summary,
.fol-audit-practical,
.fo-ficha-verificada,
.fo3598-links {
  background: var(--fo-card);
  border: 1px solid var(--fo-line);
  border-radius: var(--fo-radius-lg);
}
.fo-hero,
.zone-summary,
.agenda-cta,
.phone-directory-head,
.fo-concello-hero {
  background: linear-gradient(135deg, var(--fo-navy-900), #135b51);
  border-radius: var(--fo-radius-xl);
}
.fo-hero h1,
.zone-summary h2,
.agenda-cta strong,
.phone-directory-head h1,
.fo-concello-hero h1 {
  color: #fff;
}

/* Tablas */
table {
  border-color: var(--fo-line);
}

/* --------------------------------------------------------------------------
   6. Footer
   -------------------------------------------------------------------------- */
.fo-offline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fo-footer {
  margin-top: 80px;
  background: var(--fo-navy-950);
  color: #dce8e4;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fo-footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.fo-footer__cta-copy {
  max-width: 620px;
}
.fo-footer__cta .fo-kicker {
  color: var(--fo-gold);
}
.fo-footer__cta h2 {
  color: #fff;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.1;
  margin: 8px 0 10px;
}
.fo-footer__cta p {
  margin: 0;
  color: #b9cdc8;
  font-size: 14.5px;
}
.fo-footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: none;
}
.fo-btn-gold,
.fo-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.16s var(--fo-ease), background-color 0.16s;
}
.fo-btn-gold {
  background: var(--fo-gold);
  border: 1px solid var(--fo-gold);
  color: var(--fo-navy-950);
}
.fo-btn-gold:hover {
  background: #f6d783;
  color: var(--fo-navy-950);
  transform: translateY(-1px);
}
.fo-btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5faf8;
}
.fo-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.fo-btn-gold svg,
.fo-btn-ghost svg {
  width: 18px;
  height: 18px;
}
.fo-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 0.8fr 0.9fr 0.9fr;
  gap: 42px;
  padding: 44px 0 36px;
}
.fo-footer__brand img {
  width: 170px;
  height: auto;
  margin-bottom: 16px;
}
.fo-footer__brand p {
  margin: 0 0 10px;
  color: #b9cdc8;
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 360px;
}
.fo-footer__brand .fo-motto {
  color: #eaf3f0;
  font-weight: 650;
}
.fo-footer__col strong {
  display: block;
  margin-bottom: 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fo-footer__col a {
  display: block;
  padding: 5px 0;
  color: #b9cdc8;
  font-size: 13.5px;
  text-decoration: none;
}
.fo-footer__col a:hover {
  color: #fff;
  text-decoration: underline;
}
.fo-footer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94aba7;
  font-size: 12px;
}
.fo-footer__foot p {
  margin: 0;
}
.fo-footer__made {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.fo-footer__made::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fo-green);
  box-shadow: 0 0 0 4px rgba(17, 131, 77, 0.2);
}

/* --------------------------------------------------------------------------
   7. Navegación inferior móvil
   -------------------------------------------------------------------------- */
.fo-bottomnav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 85;
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 248, 0.96);
  border-top: 1px solid var(--fo-line);
  box-shadow: 0 -8px 30px rgba(7, 30, 38, 0.1);
}
.fo-bottomnav a {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 50px;
  border-radius: 12px;
  color: var(--fo-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.fo-bottomnav a svg {
  width: 22px;
  height: 22px;
}
.fo-bottomnav a[aria-current="page"] {
  color: var(--fo-green-dark);
  background: var(--fo-green-soft);
}
.fo-bottomnav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 18px;
  height: 3px;
  border-radius: 3px;
  background: var(--fo-green);
}

/* --------------------------------------------------------------------------
   8. Paleta de búsqueda (command palette)
   -------------------------------------------------------------------------- */
.fo-palette {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(14px, 8vh, 90px) 16px 24px;
  background: rgba(4, 20, 26, 0.74);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
}
.fo-palette.is-open {
  opacity: 1;
  visibility: visible;
}
.fo-palette__panel {
  width: min(680px, 100%);
  max-height: min(76vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--fo-card);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 22px;
  box-shadow: var(--fo-shadow-lg);
  overflow: hidden;
  transform: translateY(10px) scale(0.985);
  transition: transform 0.22s var(--fo-ease-out);
}
.fo-palette.is-open .fo-palette__panel {
  transform: none;
}
.fo-palette__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--fo-line);
  background: #fff;
}
.fo-palette__head > svg {
  width: 21px;
  height: 21px;
  color: var(--fo-green-dark);
  flex: none;
}
.fo-palette__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--fo-ink);
  font-size: 17px;
  font-weight: 550;
  outline: 0;
}
.fo-palette__esc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--fo-line);
  border-radius: 7px;
  background: var(--fo-paper);
  color: var(--fo-muted);
  font-size: 11px;
  font-weight: 700;
}
.fo-palette__body {
  overflow: auto;
  padding: 8px;
  overscroll-behavior: contain;
}
.fo-palette__hint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px 12px;
}
.fo-palette__hint a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 11px;
  border: 1px solid var(--fo-line);
  border-radius: 99px;
  background: #fff;
  color: var(--fo-ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.fo-palette__hint a:hover {
  border-color: var(--fo-green);
  color: var(--fo-green-dark);
}
.fo-palette__label {
  padding: 10px 12px 6px;
  color: var(--fo-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.fo-palette__result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--fo-ink);
  text-decoration: none;
  border: 1px solid transparent;
}
.fo-palette__result:hover,
.fo-palette__result.is-active {
  background: var(--fo-green-soft);
  border-color: var(--fo-green-line);
  text-decoration: none;
}
.fo-palette__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--fo-line);
  color: var(--fo-green-dark);
}
.fo-palette__icon svg {
  width: 17px;
  height: 17px;
}
.fo-palette__copy {
  min-width: 0;
  flex: 1;
}
.fo-palette__copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 750;
}
.fo-palette__copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--fo-muted);
  font-size: 12px;
}
.fo-palette__arrow {
  color: var(--fo-muted-light);
  font-size: 16px;
}
.fo-palette__empty {
  padding: 26px 16px;
  color: var(--fo-muted);
  text-align: center;
  font-size: 14px;
}
.fo-palette__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 16px;
  border-top: 1px solid var(--fo-line);
  background: #fff;
  color: var(--fo-muted);
  font-size: 11px;
}
.fo-palette__foot kbd {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--fo-line);
  border-radius: 4px;
  background: var(--fo-paper);
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   9. Utilidades
   -------------------------------------------------------------------------- */
.fo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--fo-green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.fo-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(17, 131, 77, 0.12);
}
.fo-kicker--gold {
  color: var(--fo-gold);
}
.fo-kicker--gold::before {
  box-shadow: 0 0 0 4px rgba(241, 201, 96, 0.16);
}
.fo-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
}
.fo-section-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.06;
  margin: 8px 0 0;
}
.fo-section-head p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--fo-muted);
  font-size: 15.5px;
}
.fo-section-head__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--fo-line);
  border-radius: 11px;
  background: var(--fo-card);
  color: var(--fo-ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.fo-section-head__link:hover {
  border-color: var(--fo-green);
  color: var(--fo-green-dark);
}
.fo-svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
svg use {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg:not(.fo-svg-sprite):not([width]):not([height]) {
  width: 1em;
  height: 1em;
  flex: none;
}

/* Compatibilidad: ocultar restos del shell antiguo si quedasen */
.header:not(.fo-topbar),
.footer:not(.fo-footer),
.bottom-nav:not(.fo-bottomnav) {
  display: none !important;
}

/* --------------------------------------------------------------------------
   10. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) {
  .fo-nav {
    gap: 0;
  }
  .fo-nav a {
    padding: 8px 9px;
    font-size: 12.5px;
  }
  .fo-search-open__label {
    display: none;
  }
  .fo-search-open {
    padding: 0;
    width: 42px;
  }
  .fo-iconbtn .fo-kbd {
    display: none;
  }
}
@media (max-width: 900px) {
  :root {
    --fo-gutter: 20px;
    --fo-header-h: 68px;
  }
  .fo-nav {
    display: none;
  }
  .fo-menubtn {
    display: inline-flex;
  }
  .fo-brand__logo {
    width: 138px;
  }
  .fo-topbar__inner {
    gap: 14px;
  }
  .fo-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
  }
  .fo-footer__brand {
    grid-column: 1 / -1;
  }
  .fo-footer__cta {
    align-items: flex-start;
    flex-direction: column;
  }
  .fo-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 760px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  .fo-bottomnav {
    display: flex;
  }
  .fo-footer {
    margin-top: 56px;
    padding-bottom: 0;
  }
  .fo-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding: 34px 0 24px;
  }
  .fo-footer__brand {
    grid-column: 1 / -1;
  }
  .fo-footer__cta {
    padding: 30px 0;
  }
  .fo-footer__cta-actions {
    width: 100%;
  }
  .fo-btn-gold,
  .fo-btn-ghost {
    flex: 1 1 160px;
  }
  .fo-footer__foot {
    padding-bottom: 18px;
  }
  .desktop-shell > main {
    overflow: clip;
  }
  .subpage {
    padding-top: 20px;
  }
  .page-intro p {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  :root {
    --fo-gutter: 16px;
  }
  .fo-brand__logo {
    width: 120px;
  }
  .fo-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .fo-footer__cta h2 {
    font-size: 27px;
  }
  .fo-palette {
    padding: 10px 8px 18px;
  }
  .fo-palette__panel {
    border-radius: 18px;
    max-height: 84vh;
  }
  .fo-palette__input {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
@media print {
  .fo-topbar,
  .fo-footer,
  .fo-bottomnav,
  .fo-palette,
  .detail-tools,
  .nav-toggle {
    display: none !important;
  }
  body {
    background: #fff;
    padding: 0;
  }
  .fo-print-note {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   QA de coherencia v4.0.1 · 2026-10-23
   - Los avisos heredados van siempre debajo de la cabecera de página.
   - Corrige contrastes de heroes editoriales y botones heredados.
   - Normaliza iconos en CTAs.
   -------------------------------------------------------------------------- */
.shellwidth .b3-panel,
.detail-article .b3-panel,
.shellwidth .editorial-verificacion,
.detail-article .editorial-verificacion {
  margin: 22px 0 28px;
  max-width: none;
}
.shellwidth .fo-concello-note,
.detail-article .fo-concello-note {
  margin: 0 0 26px;
  max-width: none;
}
.fo-reading .fo-hero {
  color: var(--fo-ink);
}
.fo-reading .fo-hero h1 {
  color: var(--fo-navy-800);
}
.fo-reading .fo-hero .lead {
  color: var(--fo-ink-soft);
}
.fo-reading .fo-hero .fo-kicker {
  color: var(--fo-green-dark);
}

.fo174-service-cta .fo174-cta-link {
  gap: 8px;
  background: var(--fo-green);
  color: var(--fo-white) !important;
}
.fo174-service-cta .fo174-cta-link:hover,
.fo174-service-cta .fo174-cta-link:focus-visible {
  background: var(--fo-green-dark);
}
.fo174-cta-link svg,
.fo324-btn svg,
.fo-action svg,
.fo-links svg,
.fo343-choice > svg,
.fo-hero__chips svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.fo343-choice > svg {
  width: 24px;
  height: 24px;
  color: var(--fo-green-dark);
  margin-bottom: 2px;
}
.fo-links a,
.fo-collab__actions a {
  gap: 7px;
}
.fo324-btn::after {
  content: none !important;
}
.fo324-btn {
  gap: 7px;
}
.fo-reading .fo-hero p {
  color: var(--fo-ink-soft);
}

/* Normaliza titulares de páginas heredadas que quedaban a tamaño de párrafo */
h1[data-fo-h1] {
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
@media (max-width: 580px) {
  h1[data-fo-h1] {
    font-size: clamp(1.9rem, 7.5vw, 2.4rem);
  }
}
.fo-action,
.fo-concello-actions a,
.fo-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.fo-reading .fo-links a,
.fo-concello-actions a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
