@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f6f6;
  --bg-strong: #f1f1f1;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: rgba(255, 255, 255, 0.98);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --muted: #475569;
  --brand: #c8102e;
  --brand-deep: #c8102e;
  --accent: #057784;
  --accent-soft: #d8ecef;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-lift: 0 28px 60px rgba(15, 23, 42, 0.12);
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
}

::selection {
  background: rgba(207, 10, 44, 0.18);
}

a {
  color: inherit;
}

a,
button,
input {
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(207, 10, 44, 0.14),
    0 0 0 6px rgba(255, 255, 255, 0.95);
}

[hidden] {
  display: none !important;
}

site-header {
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  display: block;
  position: sticky;
  top: 0;
  z-index: 60;
}

.brand-mark {
  display: inline-flex;
  height: 2.75rem;
  width: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-deep);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.7);
}

.nav-pill--active {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hero-panel,
.soft-panel,
.surface-card,
.news-card,
.campaign-card,
.contact-panel,
.metric-card,
.timeline-item,
.accordion-item,
.list-row {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  background: var(--surface-strong);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  height: 10rem;
  width: 10rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(13, 140, 146, 0.08), transparent 72%);
  pointer-events: none;
}

.hero-panel--fiscal {
  background: var(--surface-strong);
}

.hero-panel--institutional {
  background: var(--surface-strong);
}

.soft-panel,
.contact-panel {
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.surface-card,
.news-card,
.campaign-card,
.theme-card,
.metric-card,
.timeline-item,
.accordion-item,
.list-row {
  border-radius: var(--radius-lg);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.section-kicker::before {
  display: none;
}

.section-title {
  font-size: clamp(2.35rem, 7vw, 4.35rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading {
  font-size: clamp(1.8rem, 4.8vw, 2.65rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.section-lead,
.section-header-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.section-header {
  display: grid;
  gap: 1rem;
}

.search-shell {
  position: relative;
}

.search-field {
  width: 100%;
  min-height: 4rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--text);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.search-field::placeholder {
  color: #64748b;
}

.search-field:hover {
  border-color: rgba(15, 23, 42, 0.18);
}

.search-button {
  min-height: 4rem;
  border-radius: 1.4rem;
  border: none;
  background: var(--brand);
  padding: 0 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.search-button:hover {
  transform: translateY(-1px);
}

.quick-chip,
.inline-pill,
.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.76);
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
}

.quick-chip:hover,
.footer-link:hover {
  background: white;
  transform: translateY(-1px);
}

.inline-pill {
  color: var(--brand-deep);
}

.inline-pill--muted {
  color: #475569;
}

.search-results {
  border-radius: 1.4rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.5rem;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
}

.search-results__summary {
  padding: 0.8rem 1rem 0.55rem;
  color: #64748b;
  font-size: 0.9rem;
}

.search-results__item {
  display: block;
  border-radius: 1rem;
  padding: 0.95rem 1rem;
}

.search-results__item:hover,
.search-results__item:focus-visible {
  background: rgba(15, 23, 42, 0.05);
}

.search-results__label {
  display: inline-flex;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  background: rgba(207, 10, 44, 0.08);
  padding: 0.3rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;

  color: var(--brand);
}

.search-results__title {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.search-results__copy {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

.notice-banner {
  display: grid;
  gap: 1rem;
  border-radius: 1.6rem;
  border: 1px solid rgba(200, 16, 46, 0.14);
  background: rgba(255, 255, 255, 0.96);
  padding: 1.25rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.notice-banner__eyebrow {
  color: var(--accent);
}

.notice-banner__action {
  background: var(--accent);
}

.notice-banner__action:hover {
  background: #04616b;
}

.theme-grid__actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.theme-grid__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  padding: 0 1.1rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}

.theme-grid__toggle:hover,
.theme-grid__toggle:focus-visible {
  border-color: rgba(200, 16, 46, 0.22);
  color: var(--brand);
}

.theme-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.theme-card:hover,
.theme-card:focus-visible,
.news-card:hover,
.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.theme-card--featured {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(200, 16, 46, 0.14);
}

.theme-grid--compact {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1fr);
}

.theme-card--compact {
  min-height: 5.5rem;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.98);
}

.theme-card--compact .card-icon {
  height: 2.8rem;
  width: 2.8rem;
  flex-shrink: 0;
  border-radius: 0.95rem;
  background: rgba(200, 16, 46, 0.08);
  color: var(--brand);
}

.theme-card__title {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.card-icon {
  display: inline-flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
}

.card-icon svg {
  height: 1.45rem;
  width: 1.45rem;
}

.card-icon--teal {
  background: rgba(5, 119, 132, 0.12);
  color: var(--accent);
}

.card-icon--sand {
  background: rgba(207, 10, 44, 0.1);
  color: var(--brand);
}

.card-icon--blue {
  background: rgba(5, 119, 132, 0.12);
  color: var(--accent);
}

.card-icon--amber {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.card-icon--mint {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.card-icon--rose {
  background: rgba(244, 114, 182, 0.13);
  color: #be185d;
}

.card-icon--indigo {
  background: rgba(99, 102, 241, 0.13);
  color: #4338ca;
}

.card-icon--cyan {
  background: rgba(6, 182, 212, 0.13);
  color: #0f766e;
}

.card-icon--stone {
  background: rgba(100, 116, 139, 0.14);
  color: #334155;
}

.card-arrow,
.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.card-arrow {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.card-arrow::after,
.link-inline::after {
  content: "→";
}

.stretched-link:hover {
  color: var(--brand);
}

.news-card,
.campaign-card,
.metric-card,
.timeline-item {
  padding: 1.25rem;
}

.news-featured-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.news-card--hero {
  padding: 0;
  overflow: hidden;
  background: #0f172a;
}

.news-card--hero:hover,
.news-card--row:hover {
  transform: none;
  box-shadow: var(--shadow-lift);
}

.news-card--hero__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.news-card--hero__media {
  width: 100%;
  min-height: 16rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 400ms ease;
}

.news-card--hero__link:hover .news-card--hero__media {
  transform: scale(1.03);
}

.news-card--hero__body {
  padding: 1.25rem;
}

.news-card--hero__title {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 0.5rem;
}

.news-card__date {
  font-size: 0.85rem;
  color: #64748b;
}

.news-featured-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.news-card--row {
  padding: 0;
  overflow: hidden;
}

.news-card--row__link {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 1rem;
}

.news-card--row__media {
  width: 100%;
  height: 5.5rem;
  border-radius: 0.85rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  flex-shrink: 0;
  transition: transform 400ms ease;
  overflow: hidden;
}

.news-card--row__link:hover .news-card--row__media {
  transform: scale(1.04);
}

.news-card--row__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.news-card--row__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.news-featured-aside__footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 0.25rem;
}

@media (min-width: 768px) {
  .news-featured-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .news-card--hero__media {
    min-height: 100%;
    position: absolute;
    inset: 0;
  }

  .news-card--hero__link {
    position: relative;
    min-height: 22rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
  }

  .news-card--hero__body {
    position: relative;
    z-index: 1;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.5) 60%, transparent 100%);
    padding: 4rem 1.5rem 1.5rem;
  }

  .news-card--hero__title {
    font-size: 1.4rem;
    color: #ffffff;
  }

  .news-card--hero .news-card__date {
    color: rgba(255, 255, 255, 0.75);
  }
}

@media (min-width: 1024px) {
  .news-card--hero__title {
    font-size: 1.55rem;
  }

  .news-card--row__link {
    grid-template-columns: 9rem 1fr;
  }

  .news-card--row__media {
    height: 6.5rem;
  }
}

.campaign-showcase {
  display: grid;
  gap: 1rem;
}

.campaign-spotlight {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 15.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #0f172a;
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.campaign-spotlight:hover,
.campaign-spotlight:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.campaign-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.14), rgba(15, 23, 42, 0.84));
}

.campaign-spotlight__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.94) contrast(1.02) brightness(0.82);
  transform: scale(1.02);
}

.campaign-spotlight__media--local {
  background-image: url("../img/hero/bilbao-banner.jpg");
}

.campaign-spotlight__media--recycle {
  background-image: url("../img/cards/recycling-bins.jpg");
}

.campaign-spotlight__media--family {
  background-image: url("../img/cards/families-park.jpg");
}

.campaign-spotlight__media--transparency {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.18)),
    url("../img/cards/bilbao-city-hall.jpg");
}

.campaign-spotlight__media--government {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.18)),
    url("../img/hero/team-office.jpg");
  background-position: center 30%;
}

.campaign-spotlight__media--normative {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.18)),
    url("../img/hero/meeting-room.jpg");
}

.campaign-spotlight__body {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.1rem 1.15rem;
}

.campaign-spotlight__pill {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.4rem 0.72rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;

  color: var(--brand-deep);
}

.campaign-spotlight__title {
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.campaign-spotlight__meta {
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  line-height: 1.45;
}

.campaign-spotlight--feature {
  min-height: 17rem;
}

.media-swatch {
  border-radius: 1.25rem;
  min-height: 10.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.media-swatch--budget {
  background-image: url("../img/cards/bilbao-city-hall.jpg");
}

.media-swatch--revenue {
  background-image: url("../img/hero/meeting-room.jpg");
}

.media-swatch--measures {
  background-image: url("../img/hero/bilbao-banner.jpg");
}

.media-swatch--local {
  background-image: url("../img/hero/bilbao-banner.jpg");
}

.media-swatch--recycle {
  background-image: url("../img/cards/recycling-bins.jpg");
}

.topic-hero-layout,
.fiscal-story,
.fiscal-story__grid,
.service-map-grid,
.topic-contact-grid {
  display: grid;
  gap: 1rem;
}

.topic-hero-layout {
  gap: 1.35rem;
}

.topic-hero-support {
  max-width: 46rem;
  margin-top: 0;
  color: #475569;
  font-size: 1rem;
  line-height: 1.75;
}

.topic-highlight-grid {
  display: grid;
  gap: 0.85rem;
}

.topic-highlight {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.topic-highlight:hover,
.topic-highlight:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(200, 16, 46, 0.18);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.topic-highlight__eyebrow {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;

}

.topic-highlight__title {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
}

.topic-highlight__meta {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.topic-hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 1.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #0f172a;
  box-shadow: var(--shadow-soft);
}

.topic-hero-media__image {
  min-height: 21rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.96) contrast(1.02) brightness(0.88);
}

.topic-hero-media__image--hacienda {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.16)),
    url("../img/hero/meeting-room.jpg");
}

.topic-hero-media__caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.45rem;
  max-width: 32rem;
  padding: 1rem 1.05rem;
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.74));
  color: #ffffff;
  backdrop-filter: blur(5px);
}

.topic-hero-media__tag {
  display: inline-flex;
  align-self: start;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.34rem 0.68rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;

}

.topic-hero-media__text {
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ── Topic hero banner (fullwidth photo + text overlay) ── */

.topic-hero-section {
  position: relative;
  z-index: 0;
}

.topic-hero-section--under {
  margin-top: -5rem;
}

@media (min-width: 768px) {
  .topic-hero-section--under {
    margin-top: -5.25rem;
  }
}

@media (min-width: 1024px) {
  .topic-hero-section--under {
    margin-top: -5.45rem;
  }
}

.topic-hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 24rem;
  display: flex;
  align-items: flex-end;
}

.topic-hero-banner__media {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.9) contrast(1.02) brightness(0.58);
}

.topic-hero-banner__media--hacienda {
  background-image: url("../img/hero/team-office.jpg");
  background-position: center 30%;
}

.topic-hero-banner__media--servicios-sociales {
  background-image: url("../img/hero/meeting-room.jpg");
  background-position: center 40%;
}

.topic-hero-banner__media--accion-social {
  background-image: url("../img/hero/team-office.jpg");
  background-position: center 28%;
}

.topic-hero-banner__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 18, 30, 0.32) 0%, rgba(7, 18, 30, 0.56) 60%, rgba(7, 18, 30, 0.78) 100%);
}

.topic-hero-banner__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.topic-hero-banner__content--under {
  padding-top: 6.5rem;
}

.topic-hero-banner__title {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #ffffff;
  max-width: 38rem;
  text-shadow: 0 8px 28px rgba(7, 18, 30, 0.5);
}

/* ── Topic breadcrumbs (light, inline) ── */

.topic-breadcrumb {
  margin-bottom: 0.75rem;
}

.topic-breadcrumb__list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  line-height: 1.2;
}

.topic-breadcrumb__list a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.topic-breadcrumb__list a:hover {
  color: #ffffff;
}

.topic-breadcrumb__list li[aria-current="page"] {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.topic-breadcrumb__list svg {
  opacity: 0.45;
}

/* ── Highlight grid pulled up over hero ── */

.topic-highlight-grid--over {
  position: relative;
  margin-top: -2.5rem;
  z-index: 2;
}

@media (min-width: 768px) {
  .topic-hero-banner {
    min-height: 28rem;
  }

  .topic-hero-banner__content {
    padding-top: 3rem;
    padding-bottom: 5rem;
  }

  .topic-hero-banner__content--under {
    padding-top: 7rem;
  }

  .topic-highlight-grid--over {
    margin-top: -1.6rem;
  }
}

@media (min-width: 1024px) {
  .topic-hero-banner {
    min-height: 32rem;
  }

  .topic-hero-banner__content {
    padding-bottom: 5.5rem;
  }

  .topic-hero-banner__content--under {
    padding-top: 7.5rem;
  }

  .topic-highlight-grid--over {
    margin-top: -1.8rem;
  }
}

.topic-visual-card {
  overflow: hidden;
  border-radius: 1.7rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.topic-visual-card__media {
  min-height: 18.5rem;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.topic-visual-card__media--hacienda {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.24)),
    url("../img/hero/meeting-room.jpg");
}

.topic-visual-card__media--territory {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.18)),
    url("../img/cards/bilbao-city-hall.jpg");
}

.topic-visual-card__body {
  display: grid;
  gap: 0.55rem;
  padding: 1.25rem;
}

.topic-visual-card__eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;

}

.topic-visual-card__title {
  font-size: 1.45rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.topic-visual-card__copy {
  color: var(--muted);
  line-height: 1.65;
}

.fiscal-story {
  align-items: start;
}

.fiscal-story__statement {
  max-width: 52rem;
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
}

.fiscal-story__statement strong {
  color: var(--brand);
  font-weight: 800;
}

.fiscal-story__copy {
  max-width: 58rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.fiscal-story-card,
.service-map-card,
.topic-contact-card {
  padding: 1.25rem;
}

.fiscal-story-card h3,
.service-map-card__title,
.topic-contact-card__title {
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.fiscal-story-card p,
.service-map-card__copy,
.topic-contact-card__copy {
  margin-top: 0.75rem;
  color: var(--muted);
  line-height: 1.65;
}

.service-map-card__eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(5, 119, 132, 0.08);
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;

  color: var(--accent);
}

.service-map-card__list {
  display: grid;
  gap: 0.55rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.service-map-card__list li {
  position: relative;
  padding-left: 1rem;
  color: #475569;
  line-height: 1.55;
}

.service-map-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63rem;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: var(--brand);
}

.topic-contact-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.topic-contact-card__link {
  display: inline-flex;
  margin-top: 1rem;
  align-items: center;
  gap: 0.45rem;
  color: var(--brand-deep);
  font-weight: 700;
}

.topic-contact-card__link::after {
  content: "→";
}

@media (min-width: 960px) {
  .fiscal-story__grid,
  .service-map-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-contact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .topic-highlight-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 720px) and (max-width: 959px) {
  .fiscal-story__grid,
  .service-map-grid,
  .topic-contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.media-swatch--family {
  background-image: url("../img/cards/families-park.jpg");
}

.media-swatch--autonomy {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.2)),
    url("../img/hero/meeting-room.jpg");
}

.media-swatch--care {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.2)),
    url("../img/cards/families-park.jpg");
}

.media-swatch--inclusion {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.2)),
    url("../img/cards/bilbao-city-hall.jpg");
}

.media-swatch--accion-social-colaboracion {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.18)),
    url("../img/hero/team-office.jpg");
  background-position: center 30%;
}

.media-swatch--accion-social-mayores {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.18)),
    url("../img/cards/families-park.jpg");
}

.media-swatch--accion-social-cuidados {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.18)),
    url("../img/hero/meeting-room.jpg");
}

.action-tile {
  border-radius: 1.35rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.74);
  padding: 1rem;
}

.action-tile--light {
  background: rgba(255, 255, 255, 0.86);
}

.action-value {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.95rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.action-label {
  margin-top: 0.35rem;
  color: #475569;
  line-height: 1.5;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem;
  font-weight: 600;
}

.social-link:hover {
  background: white;
}

.social-link__main {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.social-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-radius: 0.9rem;
  background: #ffffff;
  color: #17181d;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.social-link__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.social-link--instagram .social-link__icon {
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 24%, #d62976 58%, #962fbf 78%, #4f5bd5 100%);
  color: #ffffff;
  border: 0;
}

.social-link--facebook .social-link__icon {
  background: #1877f2;
  color: #ffffff;
  border: 0;
}

.social-link--linkedin .social-link__icon {
  background: #0a66c2;
  color: #ffffff;
  border: 0;
}

.social-link--tiktok .social-link__icon {
  background: #111827;
  color: #ffffff;
  border: 0;
}

.breadcrumb-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.2;
}

.breadcrumb-list li[aria-hidden="true"] {
  opacity: 0.45;
}

.breadcrumb-list a:hover {
  color: var(--brand-deep);
}

.list-row {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
}

.list-row-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.08);
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.timeline-item {
  border-left: 4px solid rgba(207, 10, 44, 0.32);
}

.timeline-date {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;

  color: var(--brand);
}

.metric-card {
  background: rgba(255, 255, 255, 0.96);
}

.metric-value {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--brand-deep);
}

.metric-label {
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.metric-note {
  margin-top: 0.5rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
}

.avatar-portrait {
  display: inline-flex;
  height: 4.75rem;
  width: 4.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  background: rgba(200, 16, 46, 0.08);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.accordion-item {
  padding: 0.5rem;
}

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: none;
  border-radius: 1.1rem;
  background: transparent;
  padding: 1rem;
  text-align: left;
}

.accordion-trigger:hover {
  background: rgba(15, 23, 42, 0.04);
}

.accordion-subtitle {
  display: block;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
}

.accordion-symbol {
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--brand);
}

.accordion-panel {
  padding: 0 1rem 1rem;
  color: #475569;
  line-height: 1.75;
}

site-footer {
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
  display: block;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-kicker--light {
  color: rgba(255, 255, 255, 0.92);
}

.section-kicker--light::before {
  background: rgba(255, 255, 255, 0.9);
}

.hero-compare {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-compare--fullbleed {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  box-shadow: none;
}

.home-hero-entry {
  margin-top: -5rem;
  position: relative;
  z-index: 0;
}

.hero-compare__grid {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.hero-compare__title {
  font-size: clamp(2.3rem, 6vw, 4.15rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-compare__lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-compare__lead--light,
.hero-compare__title--light {
  color: #ffffff;
}

.hero-compare__title--light {
  text-shadow: 0 14px 36px rgba(7, 18, 30, 0.58);
}

.hero-compare__lead--light {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 6px 22px rgba(7, 18, 30, 0.64);
}

.hero-compare__eyebrow {
  color: rgba(255, 255, 255, 0.96);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.24em;

  line-height: 1.2;
  text-shadow: 0 4px 16px rgba(7, 18, 30, 0.64);
}

.hero-compare__aside {
  border-radius: 1.8rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.hero-compare__aside--compact {
  padding: 1.15rem;
  max-width: 22rem;
}

.hero-compare__aside-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;

  color: #64748b;
}

.hero-compare__quick-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.hero-compare__quick-card {
  display: grid;
  gap: 0.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.95rem 1rem;
}

.hero-compare__quick-value {
  font-size: 1.65rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand-deep);
}

.hero-compare__quick-label {
  color: #475569;
  line-height: 1.45;
}

.hero-compare__text-links {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.hero-compare__text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.hero-compare__text-link::after {
  content: "→";
}

.hero-compare__video-shell {
  position: relative;
  overflow: hidden;
  min-height: 34rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background:
    linear-gradient(180deg, rgba(12, 24, 40, 0.06), rgba(6, 10, 15, 0.48)),
    linear-gradient(135deg, #23334c 0%, #325375 28%, #537f68 56%, #ba6d55 100%);
}

.hero-compare__video-media {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(0.88) contrast(1.01) brightness(0.62);
}

.hero-compare__video-shell::before,
.hero-compare__video-shell::after {
  content: "";
  position: absolute;
  inset: auto auto -10% -4%;
  width: 62%;
  height: 58%;
  border-radius: 55% 55% 0 0;
  background:
    linear-gradient(180deg, rgba(11, 33, 34, 0.24), rgba(8, 16, 22, 0.72)),
    linear-gradient(135deg, #3f5f54, #17242d);
  opacity: 0.95;
}

.hero-compare__video-shell::after {
  inset: auto -8% -12% auto;
  width: 44%;
  height: 46%;
  border-radius: 58% 58% 0 0;
  background:
    linear-gradient(180deg, rgba(11, 33, 34, 0.12), rgba(8, 16, 22, 0.58)),
    linear-gradient(135deg, #526b62, #1d2934);
}

.hero-compare__video-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.14), transparent 16%),
    radial-gradient(circle at 78% 24%, rgba(255, 208, 174, 0.14), transparent 15%),
    linear-gradient(90deg, rgba(7, 18, 30, 0.62) 0%, rgba(7, 18, 30, 0.44) 34%, rgba(7, 18, 30, 0.18) 68%, rgba(7, 18, 30, 0.08) 100%),
    linear-gradient(180deg, rgba(16, 22, 32, 0.12), rgba(16, 22, 32, 0.36));
}

.hero-compare__video-orb {
  position: absolute;
  right: 18%;
  top: 18%;
  height: 6.5rem;
  width: 6.5rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 227, 160, 0.7), rgba(255, 183, 101, 0.08) 70%, transparent 72%);
  filter: blur(0.2px);
  box-shadow: 0 0 40px rgba(255, 208, 174, 0.18);
}

.hero-compare__video-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 34rem;
  flex-direction: column;
  justify-content: end;
  gap: 1rem;
  padding: 1.4rem;
}

.hero-compare__video-overlay--raised {
  justify-content: flex-start;
  padding: 1.2rem 1rem 2rem;
}

.hero-compare__video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.hero-compare__eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: start;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.5rem 0.8rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;

  color: #ffffff;
  backdrop-filter: blur(6px);
}

.hero-compare__content-card {
  border-radius: 2rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  padding: 1.4rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  height: 100%;
}

.hero-editorial-stack,
.hero-service-stack {
  display: grid;
  gap: 1rem;
  align-content: start;
  height: 100%;
}

.hero-editorial-stack {
  grid-template-rows: minmax(0, 1fr) auto;
}

.hero-service-stack {
  grid-template-rows: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.hero-editorial-feature,
.hero-service-story,
.hero-service-help {
  border-radius: 1.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  height: 100%;
}

.hero-editorial-feature {
  display: grid;
}

.hero-editorial-feature__media {
  display: block;
  min-height: 9.4rem;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.45), transparent 20%),
    linear-gradient(135deg, #d45d5d, #f0a066 48%, #809f8a);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-editorial-feature__media--territory {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.04)),
    url("../img/hero/bilbao-banner.jpg");
}

.hero-editorial-feature__body {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem;
  height: 100%;
}

.hero-editorial-feature__eyebrow,
.hero-service-help__eyebrow {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;

  color: #64748b;
}

.hero-editorial-feature__title,
.hero-service-story__title,
.hero-service-help__title {
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--text);
}

.hero-editorial-feature__copy,
.hero-service-story__copy,
.hero-service-help__copy {
  color: var(--muted);
  line-height: 1.6;
}

.hero-editorial-mini-grid,
.hero-service-help__list {
  display: grid;
  gap: 0.85rem;
}

.hero-editorial-mini {
  display: grid;
  gap: 0.4rem;
  border-radius: 1.35rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
}

.hero-editorial-mini__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.hero-editorial-mini__copy {
  color: var(--muted);
  line-height: 1.55;
}

.hero-service-story {
  background: rgba(255, 255, 255, 0.96);
  padding: 1.2rem;
}

.hero-service-story__media {
  display: block;
  min-height: 7.8rem;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.5), transparent 20%),
    linear-gradient(135deg, #cc546f, #f2a4af 54%, #f8dccd);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-service-story__media--service {
  background-image:
    linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.04)),
    url("../img/hero/meeting-room.jpg");
}

.hero-service-story__body,
.hero-service-help__body {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-service-help {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-service-help__item {
  display: grid;
  gap: 0.2rem;
  border-radius: 1.1rem;
  background: rgba(248, 250, 252, 0.96);
  padding: 0.85rem 0.95rem;
}

.hero-service-help__label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.hero-service-help__detail {
  color: var(--muted);
  line-height: 1.45;
}

.hero-compare__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.hero-compare__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.84);
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
}

.hero-compare__trust-item strong {
  color: var(--brand-deep);
}

.hero-compare__grid--video {
  grid-template-columns: minmax(0, 1fr);
  padding: 1rem;
}

.hero-compare__grid--video-full {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
}

.hero-compare__video-shell--full {
  height: 100svh;
  min-height: 100svh;
  border-radius: 0;
  border: 0;
}

.hero-compare__video-shell--full::before {
  display: none;
}

.hero-compare__video-shell--full::after {
  display: none;
}

.hero-compare__video-overlay--full {
  height: 100svh;
  min-height: 100svh;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 30, 0.36) 0%, rgba(7, 18, 30, 0.24) 42%, rgba(7, 18, 30, 0.1) 74%, rgba(7, 18, 30, 0.03) 100%),
    linear-gradient(180deg, rgba(7, 18, 30, 0.06), rgba(7, 18, 30, 0.22));
}

.hero-compare__video-inner {
  width: 100%;
  max-width: none;
  min-height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 0.55rem;
  padding: clamp(6rem, 14vh, 8.5rem) clamp(1rem, 4vw, 3.5rem) 2rem;
}

.hero-compare__search-wrap {
  width: 100%;
  max-width: 50rem;
}

.hero-compare__video-content {
  width: 100%;
  max-width: 46rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  text-align: left;
  padding: 0.95rem 1.05rem 1.05rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(7, 18, 30, 0.1), rgba(7, 18, 30, 0.04));
  backdrop-filter: blur(2px);
}

.hero-compare--editorial {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
}

.hero-compare__grid--editorial,
.hero-compare__grid--service {
  grid-template-columns: minmax(0, 1fr);
}

.hero-compare--service {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.94);
}

.topic-showcase-intro,
.topic-option {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.topic-showcase-intro {
  padding: 1.5rem;
}

.topic-showcase-stack {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.topic-option {
  padding: 1.25rem;
}

.topic-option__header {
  display: grid;
  gap: 1rem;
}

.topic-option__scale {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  border-radius: 999px;
  background: #f6f6f6;
  padding: 0.55rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.topic-option__grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-card-sample {
  position: relative;
  display: flex;
  min-height: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.4rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.topic-card-sample:hover,
.topic-card-sample:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.topic-card-sample__body {
  display: flex;
  width: 100%;
}

.topic-card-sample__title {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.topic-card-sample--essential {
  min-height: 9.75rem;
}

.topic-card-sample--essential .topic-card-sample__body {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.topic-card-sample--row {
  min-height: 5.4rem;
}

.topic-card-sample--row .topic-card-sample__body {
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
}

.topic-card-sample--focus {
  min-height: 10rem;
}

.topic-card-sample--focus .topic-card-sample__body {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.1rem;
  padding: 1rem;
}

.topic-card-sample--focus::after {
  content: "\2192";
  position: absolute;
  right: 1rem;
  bottom: 0.95rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.topic-card-sample--focus::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  transition: background-color 180ms ease;
}

.topic-card-sample--focus:hover::after,
.topic-card-sample--focus:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.topic-card-sample--focus:hover::before,
.topic-card-sample--focus:focus-visible::before {
  background: var(--brand);
}

.topic-card-sample--media {
  min-height: 11rem;
}

.topic-card-sample__media {
  display: none;
}

.topic-card-sample--media .topic-card-sample__body {
  flex-direction: column;
}

.topic-card-sample--media .topic-card-sample__media {
  display: block;
  min-height: 6rem;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.topic-card-sample--media .topic-card-sample__media::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.02));
}

.topic-card-sample--media .topic-card-sample__body-inner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
}

.topic-card-sample__body-inner {
  display: inherit;
}

@keyframes heroFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(1.2%, -1.6%, 0) scale(1.04);
  }

  100% {
    transform: translate3d(-1%, 1.2%, 0) scale(1.02);
  }
}

@media (min-width: 768px) {
  .home-hero-entry {
    margin-top: -5.25rem;
  }

  .theme-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-grid__actions {
    display: none;
  }

  .topic-showcase-intro,
  .topic-option {
    padding: 1.75rem;
  }

  .topic-option__header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .topic-option__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-panel,
  .soft-panel,
  .contact-panel {
    padding: 2rem;
  }

  .notice-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.35rem 1.5rem;
  }

  .section-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .list-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.35rem 1.5rem;
  }

  .hero-compare__grid--editorial {
    grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.72fr);
    gap: 1.2rem;
  }

  .hero-compare__grid--service {
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.78fr);
    gap: 1.2rem;
  }

  .hero-editorial-mini-grid {
    grid-template-columns: 1fr;
  }

  .campaign-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campaign-spotlight--feature {
    grid-column: 1 / -1;
    min-height: 18rem;
  }
}

@media (min-width: 1024px) {
  .home-hero-entry {
    margin-top: -5.45rem;
  }

  .theme-grid--compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topic-option__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-compare__grid--video {
    grid-template-columns: minmax(0, 1.48fr) minmax(18rem, 0.62fr);
    align-items: start;
  }

  .hero-compare__video-shell {
    min-height: 38rem;
  }

  .hero-compare__video-overlay {
    min-height: 38rem;
    padding: 2rem;
  }

  .hero-compare__video-overlay--raised {
    padding: 1.5rem 1.5rem 2rem;
  }

  .hero-compare__video-shell--full {
    height: 100svh;
    min-height: 100svh;
  }

  .hero-compare__video-overlay--full {
    height: 100svh;
    min-height: 100svh;
    padding: 0;
  }

  .hero-compare__video-inner {
    padding: 7rem clamp(2rem, 4vw, 4rem) 2.4rem;
  }

  .hero-compare__content-card {
    padding: 1.65rem;
  }

  .campaign-showcase {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  }

  .campaign-spotlight--feature {
    grid-column: auto;
    min-height: 17.5rem;
  }
}

@media (max-width: 767px) {
  .theme-grid--compact .theme-card:nth-child(n + 7) {
    display: none;
  }

  .theme-grid--compact.is-expanded .theme-card:nth-child(n + 7) {
    display: flex;
  }

  .hero-compare__video-inner {
    justify-content: center;
    padding: 7.4rem 1rem 2rem;
  }

  .hero-compare__search-wrap {
    max-width: 100%;
  }

  .hero-compare__video-content {
    max-width: 22rem;
  }

  .hero-compare__search-wrap .search-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-compare__video-glow {
    animation: heroFloat 16s ease-in-out infinite alternate;
  }

  .hero-compare__video-orb {
    animation: heroFloat 14s ease-in-out infinite alternate-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════
   Breadcrumb bar (above hero, dark text)
═══════════════════════════════════════ */

.topic-breadcrumb-bar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.topic-breadcrumb--dark .topic-breadcrumb__list {
  color: #64748b;
}

.topic-breadcrumb--dark .topic-breadcrumb__list a {
  color: #64748b;
}

.topic-breadcrumb--dark .topic-breadcrumb__list a:hover {
  color: var(--brand);
}

.topic-breadcrumb--dark .topic-breadcrumb__list li[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.topic-breadcrumb--dark .topic-breadcrumb__list svg {
  opacity: 0.35;
}

/* ═══════════════════════════════════════
   Topic highlight chips (compact)
═══════════════════════════════════════ */

.topic-highlight-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.96);
  padding: 0.65rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  text-decoration: none;
}

.topic-chip:hover,
.topic-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(200, 16, 46, 0.22);
  color: var(--brand);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

/* ═══════════════════════════════════════
   Finder (3-column browser)
═══════════════════════════════════════ */

.finder {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  height: 480px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.finder__col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.finder__col--cats {
  width: 240px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
}

.finder__col--sits {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
}

.finder__col--detail {
  flex: 1;
  min-width: 0;
}

.finder__col-head {
  padding: 0.65rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.1em;
  color: #64748b;
  background: rgba(248, 250, 252, 0.96);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.finder__col-scroll {
  flex: 1;
  overflow-y: auto;
}

.finder__col-scroll::-webkit-scrollbar { width: 4px; }
.finder__col-scroll::-webkit-scrollbar-track { background: transparent; }
.finder__col-scroll::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.12); border-radius: 2px; }

.finder__cat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  transition: background 120ms ease;
}

.finder__cat:hover {
  background: rgba(200, 16, 46, 0.04);
}

.finder__cat--active {
  background: var(--brand);
}

.finder__cat--active:hover {
  background: #a80d26;
}

.finder__cat-icon {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(200, 16, 46, 0.08);
  color: var(--brand);
}

.finder__cat--active .finder__cat-icon {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.finder__cat-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.finder__cat-label {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.finder__cat--active .finder__cat-label {
  color: #ffffff;
}

.finder__cat-arr {
  color: #cbd5e1;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.finder__cat--active .finder__cat-arr {
  color: rgba(255, 255, 255, 0.5);
}

.finder__sit {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  transition: background 120ms ease;
}

.finder__sit:hover {
  background: rgba(200, 16, 46, 0.04);
}

.finder__sit--active {
  background: var(--brand);
}

.finder__sit--active:hover {
  background: #a80d26;
}

.finder__sit-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.finder__sit-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
}

.finder__sit--active .finder__sit-title,
.finder__sit--active .finder__sit-desc {
  color: #ffffff;
}

.finder__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #94a3b8;
  font-size: 0.88rem;
  text-align: center;
  gap: 0.5rem;
  padding: 2rem;
}

.finder__empty--tall {
  height: 420px;
}

.finder__empty-icon {
  font-size: 1.4rem;
  opacity: 0.5;
}

.finder__detail {
  padding: 1.5rem;
  height: 100%;
  overflow-y: auto;
}

.finder__detail::-webkit-scrollbar { width: 4px; }
.finder__detail::-webkit-scrollbar-track { background: transparent; }
.finder__detail::-webkit-scrollbar-thumb { background: rgba(15, 23, 42, 0.12); border-radius: 2px; }

.finder__detail-cat {
  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.finder__detail-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.65rem;
}

.finder__detail-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.finder__detail-links-title {
  font-size: 0.72rem;
  font-weight: 800;

  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 0.55rem;
}

.finder__detail-links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.finder__detail-links li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.3rem 0;
}

.finder__detail-bul {
  color: var(--brand);
  font-size: 0.5rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.finder__detail-links a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.finder__detail-links a:hover {
  color: #9b0c24;
}

.finder__detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding-top: 0.5rem;
}

.finder__detail-cta:hover {
  color: var(--brand);
}

/* ── Finder mobile ── */

.finder-mobile {
  display: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.finder-mobile__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: rgba(248, 250, 252, 0.96);
  border-bottom: 1px solid var(--border);
}

.finder-mobile__back {
  background: none;
  border: none;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  transition: opacity 150ms ease;
}

.finder-mobile__back:disabled {
  opacity: 0;
  pointer-events: none;
}

.finder-mobile__title {
  font-size: 0.95rem;
  font-weight: 700;
  flex: 1;
}

.finder-mobile__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.finder-mobile__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  cursor: pointer;
  gap: 0.75rem;
  transition: background 100ms ease;
}

.finder-mobile__item:hover {
  background: rgba(200, 16, 46, 0.04);
}

.finder-mobile__item-icon {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(200, 16, 46, 0.08);
  color: var(--brand);
}

.finder-mobile__item-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.finder-mobile__item-text {
  flex: 1;
  min-width: 0;
}

.finder-mobile__item-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
}

.finder-mobile__item-desc {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 0.1rem;
  line-height: 1.3;
}

.finder-mobile__arr {
  color: #cbd5e1;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.finder-mobile__detail {
  padding: 1.15rem;
}

.finder-mobile__slide-fwd {
  animation: finderSlideFwd 220ms ease both;
}

.finder-mobile__slide-back {
  animation: finderSlideBack 220ms ease both;
}

@keyframes finderSlideFwd {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes finderSlideBack {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 767px) {
  #finder-desktop { display: none; }
  .finder-mobile { display: block; }
}

/* ═══════════════════════════════════════
   Agenda section
═══════════════════════════════════════ */

.topic-agenda-section {
  background: var(--bg);
}

.agenda-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.agenda-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  background: transparent;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.agenda-filter:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.agenda-filter--active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.agenda-filter--active:hover {
  background: #a80d26;
  border-color: #a80d26;
  color: #ffffff;
}

.agenda-track-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -1rem;
  padding: 0 1rem 0.5rem;
  scrollbar-width: none;
}

.agenda-track-wrap::-webkit-scrollbar {
  display: none;
}

.agenda-track {
  display: flex;
  gap: 1rem;
}

.agenda-card {
  flex: 0 0 calc(33.333% - 0.67rem);
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.agenda-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.agenda-card__date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.06) 0%, rgba(200, 16, 46, 0.02) 100%);
  border-bottom: 1px solid var(--border);
}

.agenda-card__day {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}

.agenda-card__month {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #64748b;
  line-height: 1.2;
}

.agenda-card__body {
  padding: 1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.agenda-card__tag {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  background: rgba(5, 119, 132, 0.08);
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.agenda-card__tag--deadline {
  background: rgba(200, 16, 46, 0.07);
  color: var(--brand);
}

.agenda-card__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.agenda-card__meta {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: auto;
}

@media (max-width: 767px) {
  .agenda-card {
    flex: 0 0 82%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .agenda-card {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

/* ═══════════════════════════════════════
   Topic Search — contextual search bar
═══════════════════════════════════════ */

.topic-search {
  position: relative;
}

.topic-search__inner {
  border-radius: var(--radius-xl);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 2rem 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.topic-search__text {
  margin-bottom: 1rem;
}

.topic-search__lead {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
}

.topic-search__form {
  margin-bottom: 1rem;
}

.topic-search__field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.topic-search__icon {
  position: absolute;
  left: 1.15rem;
  width: 20px;
  height: 20px;
  color: #94a3b8;
  pointer-events: none;
}

.topic-search__field {
  width: 100%;
  min-height: 3.5rem;
  border-radius: 1.15rem;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  padding: 0.75rem 1.15rem 0.75rem 3rem;
  font-size: 1rem;
  color: var(--text);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.topic-search__field::placeholder {
  color: #94a3b8;
}

.topic-search__field:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.08);
}

.topic-search__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-search__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition:
    background 150ms ease,
    color 150ms ease;
}

.topic-search__chip:hover {
  background: rgba(200, 16, 46, 0.08);
  color: var(--brand);
}

@media (min-width: 768px) {
  .topic-search__inner {
    padding: 2.5rem 3rem 2rem;
  }
}

/* ═══════════════════════════════════════
   Topic KPI — key figures grid
═══════════════════════════════════════ */

.topic-kpi-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.topic-kpi {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 1.5rem 1.5rem 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.topic-kpi__value {
  display: block;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--brand);
}

.topic-kpi__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--muted);
}

.topic-kpi__bar {
  display: block;
  height: 4px;
  border-radius: 2px;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--brand) 0%, rgba(200, 16, 46, 0.2) 100%);
}

.topic-kpi__bar--98 { width: 98%; }
.topic-kpi__bar--42 { width: 42%; }
.topic-kpi__bar--100 { width: 100%; }

@media (min-width: 640px) {
  .topic-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .topic-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ═══════════════════════════════════════
   Topic Service Grid — card-based map
═══════════════════════════════════════ */

.topic-services-section {
  background: var(--bg);
}

.topic-service-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.topic-service-card {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.topic-service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.topic-service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(200, 16, 46, 0.07);
  color: var(--brand);
  margin-bottom: 0.85rem;
}

.topic-service-card__icon svg {
  width: 22px;
  height: 22px;
}

.topic-service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.topic-service-card__desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.topic-service-card__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.topic-service-card__links li {
  display: flex;
  align-items: center;
}

.topic-service-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 150ms ease;
}

.topic-service-card__links a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.4;
  flex-shrink: 0;
  transition: opacity 150ms ease;
}

.topic-service-card__links a:hover {
  color: var(--brand);
}

.topic-service-card__links a:hover::before {
  opacity: 1;
}

@media (min-width: 640px) {
  .topic-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .topic-service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ═══════════════════════════════════════
   Service Tree — accordion links
═══════════════════════════════════════ */

.topic-service-card__tree {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.svc-tree {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.svc-tree__item {
  display: flex;
  flex-direction: column;
}

.svc-tree__toggle,
.svc-tree__link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.4rem 0.35rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 120ms ease,
    color 120ms ease;
}

.svc-tree__toggle:hover,
.svc-tree__link:hover {
  background: rgba(200, 16, 46, 0.05);
  color: var(--brand);
}

.svc-tree__chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #94a3b8;
  transition: transform 180ms ease;
}

.svc-tree__toggle[aria-expanded="true"] .svc-tree__chevron {
  transform: rotate(90deg);
  color: var(--brand);
}

.svc-tree__dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.35;
  flex-shrink: 0;
  transition: opacity 120ms ease;
}

.svc-tree__link:hover .svc-tree__dot {
  opacity: 1;
}

.svc-tree__nest {
  padding-left: 0.9rem;
  margin-left: 0.4rem;
  border-left: 1.5px solid rgba(15, 23, 42, 0.08);
}

.svc-tree__nest[hidden] {
  display: none;
}

/* Depth indentation tightening */
.svc-tree--d1 .svc-tree__toggle,
.svc-tree--d1 .svc-tree__link {
  font-size: 0.82rem;
  font-weight: 500;
}

.svc-tree--d2 .svc-tree__toggle,
.svc-tree--d2 .svc-tree__link {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.svc-tree--d3 .svc-tree__toggle,
.svc-tree--d3 .svc-tree__link {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
}

/* ═══════════════════════════════════════
   Agenda V2 — redesigned timeline
═══════════════════════════════════════ */

.topic-agenda-v2 {
  background: linear-gradient(180deg, var(--bg) 0%, #eef0f4 50%, var(--bg) 100%);
}

.agenda-v2-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.agenda-v2-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition:
    background 150ms ease,
    color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.agenda-v2-filter:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.agenda-v2-filter--active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.agenda-v2-filter--active:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
}

.agenda-v2-filter__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.agenda-v2-filter__dot--deadline {
  background: var(--brand);
}

.agenda-v2-filter__dot--event {
  background: var(--accent);
}

.agenda-v2-filter__dot--info {
  background: #6366f1;
}

/* Featured event card */
.agenda-v2-featured {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--radius-xl);
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.agenda-v2-featured__date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--brand) 0%, #a80d26 100%);
  color: #fff;
  text-align: center;
  gap: 0.15rem;
}

.agenda-v2-featured__day {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.agenda-v2-featured__month-year {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.85;
}

.agenda-v2-featured__weekday {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.7;
  margin-top: 0.15rem;
}

.agenda-v2-featured__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.agenda-v2-featured__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.agenda-v2-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.agenda-v2-tag--deadline {
  background: rgba(200, 16, 46, 0.08);
  color: var(--brand);
}

.agenda-v2-tag--event {
  background: rgba(5, 119, 132, 0.08);
  color: var(--accent);
}

.agenda-v2-tag--info {
  background: rgba(99, 102, 241, 0.08);
  color: #6366f1;
}

.agenda-v2-tag--live {
  background: #065f46;
  color: #fff;
  animation: agenda-pulse 2s ease-in-out infinite;
}

@keyframes agenda-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.agenda-v2-featured__title {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.agenda-v2-featured__desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.agenda-v2-featured__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.agenda-v2-featured__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 150ms ease,
    transform 150ms ease;
}

.agenda-v2-featured__cta:hover {
  background: #a80d26;
  transform: translateY(-1px);
}

.agenda-v2-featured__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.agenda-v2-featured__link:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .agenda-v2-featured {
    grid-template-columns: 180px 1fr;
  }

  .agenda-v2-featured__body {
    padding: 2rem;
  }
}

@media (min-width: 1024px) {
  .agenda-v2-featured {
    grid-template-columns: 220px 1fr;
  }

  .agenda-v2-featured__day {
    font-size: 4.5rem;
  }

  .agenda-v2-featured__title {
    font-size: 1.65rem;
  }
}

/* Timeline items */
.agenda-v2-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.agenda-v2-item {
  display: grid;
  grid-template-columns: 28px 56px 1fr;
  gap: 0 0.85rem;
  padding-bottom: 1.75rem;
}

.agenda-v2-item:last-child {
  padding-bottom: 0;
}

.agenda-v2-item__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.35rem;
}

.agenda-v2-item__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px currentColor;
}

.agenda-v2-item__dot--deadline {
  color: var(--brand);
  background: var(--brand);
}

.agenda-v2-item__dot--event {
  color: var(--accent);
  background: var(--accent);
}

.agenda-v2-item__dot--info {
  color: #6366f1;
  background: #6366f1;
}

.agenda-v2-item__line {
  flex: 1;
  width: 2px;
  background: rgba(15, 23, 42, 0.1);
  margin-top: 0.35rem;
  border-radius: 1px;
}

.agenda-v2-item__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.1rem;
}

.agenda-v2-item__day {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
}

.agenda-v2-item__month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.agenda-v2-item__content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.agenda-v2-item__content:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.agenda-v2-item__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-top: 0.35rem;
}

.agenda-v2-item__meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.3rem;
  line-height: 1.4;
}

.agenda-v2-item__meta-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #94a3b8;
}

.agenda-v2-item__link {
  display: inline-flex;
  align-items: center;
  margin-top: 0.55rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.agenda-v2-item__link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .agenda-v2-item {
    grid-template-columns: 32px 72px 1fr;
    gap: 0 1rem;
  }

  .agenda-v2-item__day {
    font-size: 1.6rem;
  }
}

/* ═══════════════════════════════════════
   Topic Vision — narrative block
═══════════════════════════════════════ */

.topic-vision {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.topic-vision__content {
  max-width: 40rem;
}

.topic-vision__text {
  margin-top: 0.85rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

.topic-vision__aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.topic-vision__quote {
  border-left: 4px solid var(--brand);
  padding: 1.25rem 1.5rem;
  margin: 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: rgba(200, 16, 46, 0.04);
}

.topic-vision__quote p {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
  margin: 0;
}

.topic-vision__fact {
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-soft);
}

.topic-vision__fact-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.topic-vision__fact-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 768px) {
  .topic-vision {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

/* ═══════════════════════════════════════
   Tema Servicios Sociales — Rediseño 2026
═══════════════════════════════════════ */

/* Hero — lead + CTAs */
.topic-hero-banner__lead {
  max-width: 46rem;
  margin-top: 0.85rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.topic-hero-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.topic-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.topic-hero-cta svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.topic-hero-cta small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.85;
  margin-top: 1px;
}

.topic-hero-cta--primary {
  background: #fff;
  color: var(--brand, #c8102e);
  border-color: #fff;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.35);
}

.topic-hero-cta--primary:hover,
.topic-hero-cta--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.45);
  background: #fff;
  color: var(--brand, #c8102e);
}

.topic-hero-cta--secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.topic-hero-cta--secondary:hover,
.topic-hero-cta--secondary:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  color: #fff;
}

.topic-hero-cta--emergency {
  background: linear-gradient(135deg, #c8102e 0%, #8b0d22 100%);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 26px -12px rgba(200, 16, 46, 0.65);
  position: relative;
}

.topic-hero-cta--emergency::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255, 255, 255, 0.35);
  animation: fabPulse 2.4s ease-out infinite;
  pointer-events: none;
}

.topic-hero-cta--emergency:hover,
.topic-hero-cta--emergency:focus-visible {
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 16px 32px -12px rgba(200, 16, 46, 0.8);
}

@media (max-width: 640px) {
  .topic-hero-cta {
    padding: 0.7rem 0.95rem;
    font-size: 0.85rem;
  }
  .topic-hero-cta svg {
    width: 16px;
    height: 16px;
  }
  .topic-hero-banner__lead {
    font-size: 0.92rem;
  }
}

/* Chip strip — horizontal scroll on mobile */
.topic-chip-scroll {
  scroll-snap-type: x mandatory;
}
@media (max-width: 768px) {
  .topic-chip-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.4rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .topic-chip-scroll::-webkit-scrollbar { height: 4px; }
  .topic-chip-scroll::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.15); border-radius: 4px; }
  .topic-chip-scroll .topic-chip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

/* Sub-nav sticky */
.topic-subnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.topic-subnav.is-stuck {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px -14px rgba(15, 23, 42, 0.35);
}

.topic-subnav__list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0.55rem 0;
  scrollbar-width: none;
}
.topic-subnav__list::-webkit-scrollbar { display: none; }

.topic-subnav__list a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.topic-subnav__list a:hover,
.topic-subnav__list a:focus-visible {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

.topic-subnav__list a.is-active {
  background: #0f172a;
  color: #fff;
}

/* Search — with visible submit button */
.topic-search__form--withbtn {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.topic-search__form--withbtn .topic-search__field-wrap {
  flex: 1 1 auto;
}

.topic-search__submit {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1.2rem;
  border-radius: 14px;
  background: var(--brand, #c8102e);
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  box-shadow: 0 8px 22px -10px rgba(200, 16, 46, 0.55);
}
.topic-search__submit svg {
  width: 16px;
  height: 16px;
}
.topic-search__submit:hover,
.topic-search__submit:focus-visible {
  transform: translateY(-1px);
  background: #a80d27;
}
@media (max-width: 640px) {
  .topic-search__form--withbtn {
    flex-direction: column;
  }
  .topic-search__submit {
    padding: 0.8rem 1rem;
    justify-content: center;
  }
}

/* KPIs — glass + delta + mobile carousel */
.topic-kpi--glass {
  background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.75) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.topic-kpi--glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -22px rgba(15, 23, 42, 0.35);
}

.topic-kpi__delta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  cursor: help;
}
.topic-kpi__delta svg {
  width: 11px;
  height: 11px;
}
.topic-kpi__delta--up {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}
.topic-kpi__delta--down {
  background: rgba(239, 68, 68, 0.12);
  color: #991b1b;
}
.topic-kpi__delta--down svg {
  transform: rotate(180deg);
}

@media (max-width: 640px) {
  .topic-kpi-grid--snap {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.75rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .topic-kpi-grid--snap > .topic-kpi {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

/* Trámites enriquecidos */
.tramites-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .tramites-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.tramite-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 6px 18px -16px rgba(15, 23, 42, 0.2);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.tramite-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px -22px rgba(15, 23, 42, 0.3);
  border-color: rgba(200, 16, 46, 0.35);
}

.tramite-card__head {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
}

.tramite-card__icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: var(--brand, #c8102e);
}
.tramite-card__icon svg {
  width: 22px;
  height: 22px;
}

.tramite-card__title {
  font-family: var(--font-display, "Inter"), sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.tramite-card__desc {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
}

.tramite-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tramite-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.05);
  color: #334155;
  white-space: nowrap;
}
.tramite-badge svg {
  width: 12px;
  height: 12px;
}
.tramite-badge--online {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}
.tramite-badge--presencial {
  background: rgba(168, 85, 247, 0.12);
  color: #6b21a8;
}
.tramite-badge--time {
  background: rgba(34, 197, 94, 0.12);
  color: #166534;
}
.tramite-badge--docs {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
}

.tramite-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
  margin-top: auto;
}

.tramite-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand, #c8102e);
  text-decoration: none;
  transition: gap 180ms ease;
}
.tramite-card__cta:hover {
  gap: 0.6rem;
}

.tramite-card__link {
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  transition: color 160ms ease;
}
.tramite-card__link:hover {
  color: #0f172a;
}

/* Emergency FAB — violencia machista 24h */
.emergency-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem 0.85rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #c8102e 0%, #8b0d22 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 36px -12px rgba(200, 16, 46, 0.7), 0 0 0 4px rgba(200, 16, 46, 0.1);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.emergency-fab:hover,
.emergency-fab:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 42px -14px rgba(200, 16, 46, 0.8), 0 0 0 6px rgba(200, 16, 46, 0.15);
  color: #fff;
}

.emergency-fab__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  position: relative;
}
.emergency-fab__icon svg {
  width: 18px;
  height: 18px;
}
.emergency-fab__icon::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: fabPulse 2.4s ease-out infinite;
}

@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

.emergency-fab__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.emergency-fab__title {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.emergency-fab__subtitle {
  font-size: 0.72rem;
  opacity: 0.92;
}

@media (max-width: 480px) {
  .emergency-fab {
    padding: 0.7rem 1rem 0.7rem 0.75rem;
    gap: 0.55rem;
  }
  .emergency-fab__icon {
    width: 32px;
    height: 32px;
  }
  .emergency-fab__icon svg {
    width: 15px;
    height: 15px;
  }
  .emergency-fab__title { font-size: 0.82rem; }
  .emergency-fab__subtitle { font-size: 0.68rem; }
}

/* Agenda — scroll horizontal en móvil */
@media (max-width: 640px) {
  .agenda-v2-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
  }
  .agenda-v2-filters::-webkit-scrollbar { display: none; }
  .agenda-v2-filter {
    flex: 0 0 auto;
  }
}

/* Focus-visible polish para toda la página */
.topic-hero-cta:focus-visible,
.topic-subnav__list a:focus-visible,
.topic-search__submit:focus-visible,
.tramite-card__cta:focus-visible,
.emergency-fab:focus-visible,
.agenda-v2-filter:focus-visible {
  outline: 2px solid rgba(200, 16, 46, 0.5);
  outline-offset: 3px;
}
