:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dfe5ec;
  --paper: #fbfcfe;
  --soft: #f2f6f9;
  --white: #ffffff;
  --orange: #f4ad18;
  --orange-dark: #d58d00;
  --green: #008c4a;
  --green-dark: #006c3a;
  --yellow: #ffc84a;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding-bottom: var(--cookie-consent-height, 0);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
}

.topbar__inner > *,
.nav > *,
.section__head > *,
.page-title > *,
.split > *,
.form-wrap > *,
.solution-card,
.sector-card,
.article-card,
.process-step,
.metric-card,
.resource-card,
.qa-card,
.contact-box,
.cta-band {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

.topbar {
  background: var(--orange);
  color: var(--ink);
  font-size: 0.88rem;
}

.topbar__inner,
.nav,
.section__inner,
.footer__inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  font-weight: 500;
}

.topbar a:hover {
  border-color: currentColor;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(223, 229, 236, 0.95);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  line-height: 1;
}

.brand__logo {
  width: auto;
  height: 54px;
  max-width: 260px;
  object-fit: contain;
}

.brand__name {
  display: grid;
  gap: 4px;
  font-size: 1.04rem;
}

.brand__tag {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #273244;
  font-weight: 500;
  font-size: 0.94rem;
}

.nav__links a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  border-color: var(--orange);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5f6b7a;
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.language-switcher a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.language-switcher a:hover,
.language-switcher a[aria-current="true"] {
  color: var(--ink);
  border-color: var(--orange);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.94rem;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: var(--ink);
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(244, 173, 24, 0.28);
}

.button--primary:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.button--secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button--dark {
  color: var(--white);
  background: var(--ink);
}

.button--ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.hero {
  position: relative;
  min-height: 660px;
  display: grid;
  align-items: stretch;
  background: var(--ink);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.64) 44%, rgba(17, 24, 39, 0.2) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.05) 45%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 94px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(280px, 400px);
  gap: 54px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--white);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--green));
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  color: var(--white);
  font-size: 3.5rem;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 620px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 38px;
}

.fact {
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.fact strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
}

.fact span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.quote-panel {
  align-self: end;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(251, 252, 254, 0.96);
  box-shadow: var(--shadow);
}

.quote-panel h2 {
  margin: 0;
  font-size: 1.25rem;
}

.quote-panel p {
  margin-top: 10px;
  color: var(--muted);
}

.quick-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 20px;
}

.quick-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #283449;
  font-weight: 500;
}

.quick-list span::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.section {
  padding: 82px 0;
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section__head--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1040px;
}

.section-action {
  margin: -12px 0 28px;
}

.kicker {
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.section--dark .kicker {
  color: var(--orange);
}

.section h2,
.page-title h1 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.section__head p,
.page-title p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section--dark .section__head p,
.section--dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

.need-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.need-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--white);
  color: #2d3748;
  font-weight: 500;
  cursor: pointer;
}

.need-tabs button.is-active {
  border-color: var(--orange);
  background: #fff5df;
  color: #7b5100;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.solution-card,
.sector-card,
.article-card,
.process-step,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.solution-card {
  min-height: 360px;
  overflow: hidden;
}

.solution-card img,
.sector-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.solution-card__body,
.sector-card__body,
.article-card,
.process-step,
.metric-card {
  padding: 20px;
}

.solution-card h3,
.sector-card h3,
.article-card h3,
.process-step h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.25;
  overflow-wrap: break-word;
}

.solution-card p,
.sector-card p,
.article-card p,
.process-step p {
  margin-top: 10px;
  color: var(--muted);
}

.inline-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--green);
  font-weight: 500;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.sector-card {
  overflow: hidden;
}

.sector-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sector-card--link:hover,
.sector-card--link:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(15, 113, 87, 0.42);
  box-shadow: 0 14px 30px rgba(14, 38, 31, 0.1);
}

.sector-card--text {
  min-height: 210px;
}

.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.process-step {
  position: relative;
  min-height: 235px;
}

.process-step strong {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--orange-dark);
  border-radius: 8px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 52px;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 12px;
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.resource-card {
  position: relative;
  min-height: 250px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.resource-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 18px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}

.resource-card span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: 0.84rem;
}

.resource-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.resource-card p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.cta-band {
  padding: 54px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.93), rgba(17, 24, 39, 0.78)),
    url("images/trazabilidad-codificacion.webp") center / cover;
  color: var(--white);
}

.cta-band h2 {
  max-width: 760px;
}

.cta-band p {
  max-width: 720px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.cta-band .hero__actions {
  margin-top: 24px;
}

.cta-band .button--secondary,
.cta-band .button--ghost {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.18);
}

.cta-band .button--secondary:hover,
.cta-band .button--ghost:hover {
  border-color: var(--soft);
  background: var(--soft);
  color: var(--ink);
}

.page-hero {
  padding: 72px 0;
  background: var(--soft);
}

.page-hero--compact {
  padding: 44px 0;
}

.page-title {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  gap: 54px;
  align-items: center;
}

.page-title img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.breadcrumb {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--green);
  font-weight: 500;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card strong {
  display: block;
  font-size: 1.7rem;
  color: var(--green);
}

.footer-logo {
  width: auto;
  height: 62px;
  max-width: 280px;
  margin-bottom: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--white);
}

.metric-card span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 0.48fr);
  gap: 44px;
  align-items: start;
}

.form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.form--compact {
  gap: 12px;
  padding: 22px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-header,
.form-section {
  display: grid;
  gap: 14px;
}

.form-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-header h2,
.form-section__head h3 {
  margin: 0;
}

.form-header p,
.form-section__head p,
.prefill-note {
  color: var(--muted);
}

.form-required {
  font-size: 0.88rem;
}

.prefill-note {
  padding: 12px 14px;
  border: 1px solid #cfe1d3;
  border-radius: 8px;
  background: #f3fbf5;
  font-size: 0.9rem;
}

.form-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mode-tab {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: #263244;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.mode-tab.is-active {
  border-color: var(--orange);
  background: #fff6e4;
  box-shadow: 0 8px 20px rgba(244, 173, 24, 0.16);
}

.form-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcfdff;
}

.form--compact .form-header {
  padding-bottom: 14px;
}

.form--compact .form-section {
  gap: 12px;
  padding: 14px;
}

.form--compact .form-section__head p {
  font-size: 0.92rem;
}

.form-section__head {
  display: grid;
  gap: 6px;
}

label {
  display: grid;
  gap: 7px;
  color: #263244;
  font-weight: 500;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.form--compact textarea {
  min-height: 104px;
}

.form-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.status {
  min-height: 24px;
  color: var(--green);
  font-weight: 500;
}

.privacy-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.privacy-box h3 {
  margin: 0;
  font-size: 1rem;
}

.privacy-box p {
  color: var(--muted);
  font-size: 0.9rem;
}

.check-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.88rem;
}

.check-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
}

.form button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.contact-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.contact-box h2,
.contact-box h3 {
  margin: 0;
}

.contact-box h3 {
  margin-top: 24px;
}

.contact-box p,
.contact-box ul {
  color: var(--muted);
}

.contact-box ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.map-card__body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.map-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.map-card p {
  color: var(--muted);
}

.map-card iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.qa-anchor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.qa-anchor-grid a {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--green);
  font-weight: 500;
}

.qa-list {
  display: grid;
  gap: 18px;
}

.qa-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.qa-card > span {
  width: fit-content;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
}

.qa-card h2,
.qa-card h3 {
  margin: 0;
}

.qa-card h2 {
  font-size: 1.7rem;
  line-height: 1.18;
  overflow-wrap: break-word;
}

.qa-card h3 {
  font-size: 1rem;
}

.qa-card p {
  margin-top: 8px;
  color: var(--muted);
}

.qa-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legal-content {
  display: grid;
  gap: 22px;
  max-width: 900px;
}

.legal-content h2 {
  margin-top: 14px;
  font-size: 1.55rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.legal-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content .button {
  color: var(--white);
  text-decoration: none;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--soft);
  color: var(--ink);
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.cookie-settings-button {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 70;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.16);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}

.cookie-settings-button:hover,
.cookie-settings-button:focus-visible {
  background: var(--green);
  color: var(--white);
}

.map-consent-placeholder {
  min-height: 320px;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 28px;
  background: var(--soft);
  text-align: center;
}

.map-consent-placeholder h3 {
  margin: 0;
  font-size: 1.12rem;
}

.map-consent-placeholder p {
  max-width: 42ch;
}

.map-consent-placeholder .button {
  width: fit-content;
  margin: 4px auto 0;
}

iframe[data-cookieblock-src]:not([src]) {
  display: none;
}

.cookie-consent {
  position: fixed;
  inset: auto 0 0;
  z-index: 120;
  max-height: 65vh;
  max-height: 65dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 -7px 25px rgba(17, 24, 39, 0.12);
}

.cookie-consent__inner {
  width: min(var(--max), 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 42%);
  gap: 12px 24px;
  align-items: center;
  margin: 0 auto;
}

.cookie-consent__message {
  grid-column: 1;
}

.cookie-consent__message h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 650;
}

.cookie-consent__message p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.5;
}

.cookie-consent__message a,
.cookie-consent__back {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 7px;
}

.cookie-consent__options label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  cursor: pointer;
}

.cookie-consent__options label:has(input:disabled) {
  cursor: default;
}

.cookie-consent__options strong,
.cookie-consent__options small {
  display: block;
}

.cookie-consent__options small {
  color: var(--muted);
}

.cookie-consent__options input {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--green-dark);
}

.cookie-consent__back {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.cookie-consent__inner:has(.cookie-consent__options:not([hidden])) .cookie-consent__actions {
  grid-column: 1 / -1;
  width: min(100%, 495px);
  justify-self: end;
}

.cookie-consent__actions button {
  min-height: 44px;
  padding: 7px;
  border: 1px solid var(--green-dark);
  border-radius: 5px;
  background: var(--green-dark);
  color: var(--white);
  font: inherit;
  font-size: 0.87rem;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.cookie-consent__actions button:hover {
  background: #004e2a;
}

.cookie-consent :is(a, button, input):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .cookie-consent__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .cookie-consent__actions,
  .cookie-consent__inner:has(.cookie-consent__options:not([hidden])) .cookie-consent__actions {
    width: 100%;
  }
}

@media (max-width: 630px) {
  .cookie-consent__options {
    grid-template-columns: minmax(0, 1fr);
  }
}

h1,
h2,
h3,
strong,
b,
.brand,
.topbar a,
.nav__links,
.button,
.eyebrow,
.kicker,
.quick-list span,
.fact strong,
.inline-link,
.process-step strong,
.metric-card strong,
label,
.status {
  font-weight: 500;
}

.footer {
  background: var(--ink);
  color: var(--white);
  padding: 54px 0 28px;
}

.footer__inner {
  display: grid;
  gap: 34px;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) minmax(150px, 0.72fr) minmax(190px, 0.9fr) minmax(220px, 1.1fr);
  gap: 34px;
}

.footer h2,
.footer h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.72);
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--white);
}

.footer__brand-link {
  display: inline-flex;
}

.footer__brand p {
  max-width: 34ch;
}

.footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__locations {
  display: grid;
  gap: 14px;
  font-style: normal;
}

.footer__locations p {
  margin: 0;
}

.footer__locations strong {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 16px;
}

.legacy-page-hero .page-title {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
}

.legacy-page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 4rem;
  line-height: 1.02;
  overflow-wrap: break-word;
}

.legacy-lead {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.08rem;
}

.legacy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: 64px;
  align-items: start;
}

.legacy-prose {
  max-width: 780px;
}

.legacy-prose h2 {
  margin: 42px 0 14px;
  font-size: 1.8rem;
}

.legacy-prose h2:first-child {
  margin-top: 0;
}

.legacy-prose h3 {
  margin: 30px 0 12px;
  font-size: 1.25rem;
}

.legacy-prose p {
  margin-bottom: 20px;
  color: #354152;
  font-size: 1.02rem;
}

.legacy-aside {
  position: sticky;
  top: 112px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.legacy-aside h2 {
  margin: 6px 0 12px;
  font-size: 1.55rem;
}

.legacy-aside p:not(.kicker) {
  margin-bottom: 22px;
  color: var(--muted);
}

.legacy-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.legacy-link-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.legacy-link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 140, 74, 0.42);
  box-shadow: var(--shadow);
}

.legacy-link-card h3 {
  margin: 4px 0 12px;
  font-size: 1.16rem;
  line-height: 1.28;
  overflow-wrap: break-word;
}

.legacy-link-card p {
  flex: 1;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Technical authority pages */
.entity-profile .section__inner {
  max-width: 1040px;
}

.entity-profile h2 {
  margin: 8px 0 14px;
}

.entity-profile p:not(.kicker) {
  max-width: 900px;
  color: var(--muted);
  font-size: 1.08rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 48px;
  align-items: start;
}

.technical-prose {
  min-width: 0;
}

.technical-prose > * + * {
  margin-top: 22px;
}

.technical-prose h2 {
  margin-top: 48px;
  font-size: 1.85rem;
}

.technical-prose h3 {
  margin: 30px 0 10px;
  font-size: 1.22rem;
}

.technical-prose p,
.technical-prose li,
.technical-prose td,
.technical-prose th {
  color: #354152;
  font-size: 1rem;
}

.technical-prose ul,
.technical-prose ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.answer-box {
  margin: 0 0 34px;
  padding: 28px;
  border: 1px solid rgba(0, 140, 74, 0.28);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #f5fbf8;
}

.answer-box .kicker {
  margin-bottom: 8px;
}

.answer-box h2 {
  margin: 0;
  font-size: 1.55rem;
}

.answer-box p {
  margin-top: 12px;
  color: #283449;
  font-size: 1.06rem;
}

.topic-nav {
  position: sticky;
  top: 112px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.topic-nav h2 {
  font-size: 1.25rem;
}

.topic-nav ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.topic-nav a:not(.button) {
  color: var(--green-dark);
  font-weight: 500;
}

.content-meta {
  margin-top: 12px !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
}

.table-wrap {
  margin: 26px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.comparison-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table caption {
  padding: 16px 18px;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}

.comparison-table th {
  color: var(--ink);
  background: var(--soft);
  font-weight: 700;
}

.decision-grid,
.related-grid,
.entity-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.decision-card,
.related-card,
.entity-strip > div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.decision-card h3,
.related-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.decision-card p,
.related-card p,
.entity-strip p {
  color: var(--muted);
}

.related-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.related-card p {
  flex: 1;
}

.entity-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.entity-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 1.05rem;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.faq-list details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-list summary {
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.faq-list details p {
  margin-top: 12px;
}

.proof-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 18px;
}

.proof-links a {
  color: var(--green-dark);
  font-weight: 600;
}

.not-found {
  width: min(680px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
}

.not-found img {
  width: min(280px, 70vw);
  margin-bottom: 22px;
}

.not-found h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1.02;
}

.not-found > p:not(.kicker) {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.05rem;
}

.not-found__languages {
  margin-top: 16px;
}

.not-found__languages a {
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 1180px) {
  .nav {
    position: relative;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "lang lang";
    gap: 8px 10px;
    padding: 9px 0 10px;
  }

  .brand {
    grid-area: brand;
    justify-self: start;
  }

  .language-switcher {
    grid-area: lang;
    justify-self: start;
    margin-left: 0;
  }

  .nav__actions {
    grid-area: actions;
    justify-self: end;
    position: absolute;
    top: 16px;
    right: 0;
  }

  .menu-button {
    display: inline-grid !important;
    place-items: center;
    background: var(--white);
  }

  .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav__links.is-open {
    display: grid;
    gap: 12px;
  }

  .hero__inner,
  .page-title,
  .split,
  .form-wrap,
  .legacy-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .legacy-page-hero .page-title {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-panel {
    max-width: 540px;
  }

  .legacy-aside {
    position: static;
    max-width: 620px;
  }

  .topic-nav {
    position: static;
  }

  .solution-grid,
  .sector-grid,
  .process,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid,
  .resource-grid,
  .qa-anchor-grid,
  .footer__grid,
  .legacy-link-grid,
  .decision-grid,
  .related-grid,
  .entity-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar__inner,
  .nav,
  .section__inner,
  .footer__inner,
  .hero__inner,
  .page-title {
    width: min(100% - 28px, var(--max));
  }

  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 0;
  }

  .nav {
    gap: 8px 10px;
  }

  .brand__logo {
    height: 46px;
    max-width: 185px;
  }

  .language-switcher {
    gap: 4px;
    font-size: 0.78rem;
  }

  .menu-button {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }

  .nav__actions .button {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding: 70px 0 44px;
  }

  .hero h1,
  .page-title h1,
  .legacy-page-hero h1,
  .not-found h1 {
    font-size: 2.35rem;
  }

  .hero__lead {
    font-size: 1.02rem;
  }

  .hero__facts,
  .solution-grid,
  .sector-grid,
  .process,
  .article-grid,
    .resource-grid,
    .metrics,
    .qa-anchor-grid,
    .qa-columns,
    .map-grid,
    .field-grid,
    .field-grid--compact,
    .form-mode-tabs,
    .footer__grid,
    .section__head,
    .legacy-link-grid,
    .decision-grid,
    .related-grid,
    .entity-strip {
    grid-template-columns: 1fr;
  }

  .answer-box {
    padding: 22px;
  }

  .section {
    padding: 58px 0;
  }

  .section h2 {
    font-size: 1.9rem;
  }

  .cta-band {
    padding: 30px 22px;
  }

  .button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .solution-card {
    min-height: auto;
  }

  .solution-card img,
  .sector-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .qa-card,
  .form {
    padding: 22px;
  }


  .hero__actions {
    flex-direction: column;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .footer__legal-links {
    justify-content: flex-start;
  }
}

/* Champi quote assistant */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.champi {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147482000;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.45;
}

.champi button,
.champi input,
.champi textarea {
  font: inherit;
  letter-spacing: 0;
}

.champi__launcher {
  min-width: 168px;
  height: 54px;
  padding: 0 18px 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #d58d00;
  border-radius: 8px;
  color: var(--ink);
  background: var(--orange);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.2);
  font-weight: 750;
  cursor: pointer;
}

.champi__launcher:hover,
.champi__launcher:focus-visible {
  background: #ffc54a;
  outline: 3px solid rgba(0, 140, 74, 0.25);
  outline-offset: 2px;
}

.champi--compact .champi__launcher {
  width: 50px;
  min-width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
}

.champi--compact .champi__launcher-label,
.champi--compact .champi__launcher-label-short {
  display: none;
}

.champi__launcher-label-short {
  display: none;
}

.champi__avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  box-shadow: inset -8px 0 0 var(--orange);
  font-size: 1rem;
  font-weight: 850;
}

.champi__panel {
  width: min(400px, calc(100vw - 28px));
  height: min(690px, calc(100dvh - 36px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cfd7e2;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 58px rgba(17, 24, 39, 0.26);
}

.champi__header {
  min-height: 68px;
  padding: 10px 10px 10px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 38px 38px;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: var(--ink);
}

.champi__identity {
  min-width: 0;
  display: grid;
  line-height: 1.25;
}

.champi__identity strong {
  font-size: 1rem;
}

.champi__identity small {
  overflow: hidden;
  color: #d8dee8;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.champi__icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: #ffffff;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.champi__icon-button:hover,
.champi__icon-button:focus-visible {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.champi__conversation,
.champi__review,
.champi__success {
  min-height: 0;
  flex: 1;
}

.champi__conversation {
  display: flex;
  flex-direction: column;
}

.champi__messages {
  position: relative;
  min-height: 0;
  flex: 1;
  padding: 18px 16px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f7f9fb;
}

.champi__message {
  display: flex;
  margin-bottom: 12px;
}

.champi__message p {
  width: fit-content;
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.champi__message--assistant {
  justify-content: flex-start;
}

.champi__message--assistant p {
  color: var(--ink);
  background: var(--white);
}

.champi__message--user {
  justify-content: flex-end;
}

.champi__message--user p {
  border-color: #006c3a;
  color: #ffffff;
  background: var(--green-dark);
}

.champi__quick-replies {
  min-height: 0;
  padding: 0 14px 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  background: #f7f9fb;
}

.champi__quick-replies:empty {
  display: none;
}

.champi__quick-replies button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 7px 8px;
  border: 1px solid #aeb9c8;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
  cursor: pointer;
}

.champi__quick-replies button:hover,
.champi__quick-replies button:focus-visible {
  border-color: var(--green);
  color: var(--green-dark);
  outline: none;
}

.champi__quick-replies .champi__other-answer-toggle {
  grid-column: 1 / -1;
  min-height: 40px;
  border-color: #82ad98;
  color: var(--green-dark);
  background: #eef8f3;
}

.champi__custom-answer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 6px;
  padding: 9px;
  border: 1px solid #82ad98;
  border-radius: 6px;
  background: #eef8f3;
}

.champi__custom-answer[hidden] {
  display: none;
}

.champi__custom-answer label {
  min-width: 0;
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
}

.champi__custom-answer input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 8px 9px;
  border: 1px solid #aeb9c8;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font-weight: 400;
}

.champi__custom-answer input:focus {
  border-color: var(--green);
  outline: 2px solid rgba(0, 140, 74, 0.15);
}

.champi__quick-replies .champi__custom-answer button {
  width: auto;
  min-height: 42px;
  border-color: var(--green-dark);
  color: #ffffff;
  background: var(--green);
}

.champi__typing {
  padding: 7px 16px;
  color: var(--muted);
  background: #f7f9fb;
  font-size: 0.8rem;
}

.champi__composer {
  min-height: 64px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: end;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.champi__composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 104px;
  padding: 10px 11px;
  resize: none;
  border: 1px solid #aeb9c8;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
}

.champi__composer textarea:focus {
  border-color: var(--green);
  outline: 2px solid rgba(0, 140, 74, 0.15);
}

.champi__composer button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--green-dark);
  border-radius: 6px;
  color: #ffffff;
  background: var(--green);
  font-size: 1.15rem;
  cursor: pointer;
}

.champi__composer button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.champi__conversation-actions {
  padding: 0 10px 10px;
  display: grid;
  gap: 6px;
  background: var(--white);
}

.champi__conversation-actions > span {
  color: var(--muted);
  font-size: 0.74rem;
  text-align: center;
}

.champi__conversation-actions a,
.champi__consent a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.champi__review-button,
.champi__submit {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--orange-dark);
  border-radius: 6px;
  color: var(--ink);
  background: var(--orange);
  font-weight: 750;
  cursor: pointer;
}

.champi__review-button:hover,
.champi__review-button:focus-visible,
.champi__submit:hover,
.champi__submit:focus-visible {
  background: #ffc54a;
  outline: 2px solid rgba(0, 140, 74, 0.2);
}

.champi__review {
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.champi__back {
  min-height: 34px;
  padding: 4px 0;
  border: 0;
  color: var(--green-dark);
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.champi__review h2,
.champi__success h2 {
  margin: 8px 0 4px;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.champi__review > p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.champi__review form {
  display: grid;
  gap: 11px;
}

.champi__review form > label,
.champi__field-row label {
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.champi__field-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 9px;
}

.champi__review input[type="text"],
.champi__review input[type="email"],
.champi__review input[type="tel"],
.champi__review textarea,
.champi__review input[type="file"] {
  width: 100%;
  min-width: 0;
  border: 1px solid #aeb9c8;
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font-weight: 400;
}

.champi__review input[type="text"],
.champi__review input[type="email"],
.champi__review input[type="tel"] {
  height: 42px;
  padding: 8px 10px;
}

.champi__review textarea {
  min-height: 122px;
  padding: 9px 10px;
  resize: vertical;
}

.champi__review input:focus,
.champi__review textarea:focus {
  border-color: var(--green);
  outline: 2px solid rgba(0, 140, 74, 0.15);
}

.champi__file-label input {
  padding: 7px;
  font-size: 0.78rem;
}

.champi__file-label small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.champi__field-help {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 400;
}

.champi__consent {
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: start;
  gap: 8px !important;
  color: var(--muted) !important;
  font-size: 0.75rem !important;
  font-weight: 400 !important;
}

.champi__consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.champi__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.champi__form-status {
  min-height: 1.1em;
  color: #8b2c1d;
  font-size: 0.78rem;
}

.champi__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.champi__success {
  padding: 42px 28px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.champi__success-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  font-size: 1.6rem;
  font-weight: 800;
}

.champi__success p {
  margin-top: 8px;
  color: var(--muted);
}

@media (max-width: 520px) {
  .champi {
    right: 8px;
    bottom: 8px;
  }

  .champi__panel {
    width: calc(100vw - 16px);
    height: min(760px, calc(100dvh - 16px));
  }

  .champi__field-row {
    grid-template-columns: 1fr;
  }

  .champi__launcher {
    min-width: 154px;
    height: 50px;
  }

  .champi--compact .champi__launcher {
    min-width: 48px;
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 350px) {
  .champi__launcher {
    min-width: 118px;
    padding-right: 12px;
  }

  .champi__launcher-label {
    display: none;
  }

  .champi__launcher-label-short {
    display: inline;
  }
}

@media (max-width: 420px) {
  .topbar {
    font-size: 0.82rem;
  }

  .brand__logo {
    height: 42px;
    max-width: 155px;
  }

  .language-switcher {
    font-size: 0.72rem;
    gap: 3px;
  }

  .menu-button {
    width: 38px;
    height: 38px;
  }

  .cookie-settings-button {
    left: 8px;
    bottom: 8px;
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .hero h1,
  .page-title h1 {
    font-size: 2.05rem;
  }
}


/* =====================================================================
   PASADA DE LEGIBILIDAD - 25/09/2026
   Anadido al final del archivo para no alterar ninguna regla anterior.
   Afecta a las 68 paginas en los tres idiomas: el diseno no tiene idioma.
   PARA REVERTIR: borrar todo lo que hay a partir de este comentario.
   ===================================================================== */

/* 1. FORMULARIOS
   Safari en iPhone amplia la pantalla al tocar un campo cuya letra mida
   menos de 16px, y el usuario tiene que reducirla a mano. Con 1rem deja
   de ocurrir, y de paso se lee mejor. */
label {
  font-size: 1rem;
}

input,
select,
textarea {
  font-size: 1rem;
}

.champi input,
.champi textarea,
.champi__review input[type="text"],
.champi__review input[type="email"],
.champi__review input[type="tel"],
.champi__review textarea,
.champi__composer textarea,
.champi__custom-answer input {
  font-size: 1rem;
}

.check-field {
  font-size: 0.95rem;
}

/* 2. SUBTITULOS QUE SE DISTINGAN DEL TEXTO
   En las guias tecnicas habia 27 subtitulos del mismo tamano que el
   parrafo que encabezaban (16px frente a 16.8px), lo que impedia
   ojear la pagina. */
.qa-card h3 {
  font-size: 1.2rem;
  line-height: 1.32;
}

.privacy-box h3 {
  font-size: 1.08rem;
}

@media (max-width: 720px) {
  .qa-columns {
    gap: 30px;
  }
}

/* 3. BARRA SUPERIOR Y SELECTOR DE IDIOMA
   La barra lleva los dos telefonos: es la informacion mas comercial
   de la web y estaba a 13px en movil. */
.topbar {
  font-size: 0.95rem;
}

.language-switcher {
  font-size: 0.9rem;
}

.language-switcher a {
  padding: 10px 4px;
}

@media (max-width: 420px) {
  .topbar {
    font-size: 0.95rem;
  }

  .language-switcher {
    font-size: 0.9rem;
  }
}

/* 4. AREA TACTIL DE TELEFONOS Y CORREOS
   Median entre 17 y 20 px de alto. Apple y Google recomiendan 44 px
   minimo para cualquier elemento que se toca con el dedo. */
.topbar a:not(.button),
.contact-box a:is([href^="tel:"], [href^="mailto:"]):not(.button),
.footer a:is([href^="tel:"], [href^="mailto:"]):not(.button),
:is(.legacy-prose, .technical-prose, .page-title, .hero) a[href^="tel:"]:not(.button) {
  display: inline-block;
  padding: 11px 2px;
  font-weight: 600;
}

/* 5. BOTONES
   Texto a 16px y altura minima de 44px en todos los casos. */
.button {
  font-size: 1rem;
}

.menu-button {
  width: 44px;
  height: 44px;
}

.cookie-settings-button {
  min-height: 44px;
}

@media (max-width: 720px) {
  .menu-button {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .menu-button {
    width: 44px;
    height: 44px;
  }

  .cookie-settings-button {
    min-height: 44px;
  }
}

/* 6. LINEAS DE LECTURA MAS CORTAS EN ORDENADOR
   Algunos parrafos llegaban a 140 caracteres por linea; lo comodo son
   60-75. En movil ya estaban bien, asi que no se tocan. */
@media (min-width: 721px) {
  .qa-card > p,
  .technical-prose p,
  .technical-prose li,
  .legacy-prose p,
  .legacy-prose li {
    max-width: 60ch;
  }
}

/* 7. ENLACES DE WHATSAPP
   Misma funcion que el telefono: tienen que poder tocarse igual. */
.contact-box a[href*="wa.me"],
.footer a[href*="wa.me"],
.legacy-prose a[href*="wa.me"],
.technical-prose a[href*="wa.me"] {
  display: inline-block;
  padding: 11px 2px;
  font-weight: 600;
}

/* 8. MENU DE NAVEGACION EN MOVIL Y TABLET
   Los enlaces del menu desplegable median 19 px de alto: son los cinco
   enlaces principales de la web y hay que poder acertar con el dedo. */
@media (max-width: 1180px) {
  .nav__links.is-open {
    gap: 2px;
  }

  .nav__links a {
    display: block;
    padding: 15px 6px;
    border-radius: 6px;
    font-size: 1rem;
  }
}

/* 9. AJUSTE DE LA BARRA SUPERIOR
   El area tactil de los tres enlaces hacia crecer la barra de 110 a 176 px
   en movil, comiendose un tercio de la primera pantalla. Con margen
   negativo el area para el dedo se mantiene, pero la barra no engorda. */
.topbar a {
  padding: 8px 2px;
  margin: -8px 0;
}

/* ============================================================
   FLOTANTES QUE TAPABAN LOS BOTONES DE CONVERSION - 28/09/2026
   A 390 px, "Configurar cookies" (132x44) y "Habla con Champi"
   (203x50) formaban una franja fija de 50 px que cruzaba casi todo
   el ancho de la pantalla. Al pulsar el centro de "Solicitar
   presupuesto" el toque llegaba al chat, no al boton.
   PARA DESHACERLO: borrar desde este comentario hasta el final.
   ============================================================ */

/* 1. EL CONTROL DE COOKIES, EN EL PIE
   script.js lo anade ahora a .footer__legal-links, junto a Aviso
   legal, Privacidad y Cookies. Aqui solo se le da el aspecto de los
   enlaces vecinos. El padding con margen negativo deja 40 px de area
   tactil sin que la fila del pie crezca. */
.cookie-settings-link {
  padding: 8px 0;
  margin: -8px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  font: inherit;
  cursor: pointer;
}

.cookie-settings-link:hover,
.cookie-settings-link:focus-visible {
  color: var(--white);
}

/* 2. EL CHAT, COMPACTO EN MOVIL Y TABLET
   El lanzador medía 203 px de ancho. La hoja ya tenia disenado un
   circulo (.champi--compact), pero solo se activaba despues de que el
   usuario cerrara el chat una vez; al visitante nuevo le salia siempre
   la pastilla grande. */
@media (max-width: 720px) {
  .champi__launcher {
    width: 56px;
    min-width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
  }

  .champi__launcher-label,
  .champi__launcher-label-short {
    display: none;
  }
}

/* ============================================================
   PORTADA: MENOS HUECO ARRIBA Y BOTONES IGUALADOS - 30/09/2026
   Medido a 1440 px: entre el final de la barra blanca y el
   antetitulo "Fabricantes de etiquetas desde 1967" habia 191 px
   de imagen vacia, y los dos botones del hero median distinto
   (177 px el naranja y 209 px el blanco).
   PARA DESHACERLO: borrar desde este comentario hasta el final.
   ============================================================ */
@media (min-width: 721px) {
  /* 1. LA COLUMNA DE TEXTO ARRANCA ARRIBA
     .hero__inner tenia align-items: end, asi que la columna de texto
     se pegaba abajo y quedaba 97 px por debajo del panel. Con start
     arranca a la misma altura, y el margen superior baja de 94 a 56.
     El panel de la derecha no se mueve: es el elemento mas alto. */
  .hero__inner {
    padding-top: 56px;
    align-items: start;
  }

  /* 2. LOS DOS BOTONES, DEL MISMO ANCHO Y CUADRADOS CON LOS TRES DATOS
     Dos columnas iguales con la misma separacion de 10 px que usa
     .hero__facts, de modo que la pareja ocupa exactamente el mismo
     ancho que el bloque de 1967 / 360 / Sectores y sus bordes
     coinciden. Solo afecta al hero de las tres portadas: el resto de
     paginas usan .page-hero y .cta-band. */
  .hero .hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* ============================================================
   AJUSTES DE LA PORTADA - 01/10/2026
   1) El boton de telefono del hero heredaba display:inline-block
      de la pasada de legibilidad, asi que justify-content no hacia
      efecto y el texto quedaba pegado a la izquierda: 19 px por un
      lado y 144 px por el otro dentro de un boton de 335 px.
   2) .quote-panel tenia align-self:end y colgaba 79 px por debajo
      del antetitulo de la izquierda.
   PARA DESHACERLO: borrar desde este comentario hasta el final.
   ============================================================ */
.hero .hero__actions a[href^="tel:"] {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (min-width: 721px) {
  .quote-panel {
    align-self: start;
  }
}

/* ============================================================
   PUNTOS DEL PANEL COMO ENLACES - 01/10/2026
   Los cuatro puntos verdes del panel de la portada nombran las
   cuatro familias de producto, asi que pasan a ser enlaces. El
   aspecto es el mismo que tenian como <span>: misma tipografia,
   mismo color y mismo punto verde. Solo se anade el subrayado y
   el verde al pasar por encima, para que se note que se pulsan.
   PARA DESHACERLO: borrar desde este comentario hasta el final.
   ============================================================ */
.quick-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  margin: -5px 0;
  color: #283449;
  font-weight: 500;
  text-decoration: none;
}

.quick-list a::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.quick-list a:hover,
.quick-list a:focus-visible {
  color: var(--green-dark, #006b39);
  text-decoration: underline;
}

/* ============================================================
   SEGUNDA PASADA DE LA PORTADA - 01/10/2026
   Dictado de Luis: panel alineado con el titular, menos huecos,
   enlaces verdes al fondo de las tarjetas, imagen de la seccion
   de materiales a su tamano real, lista de materiales arreglada,
   cabeceras de Soluciones y Sectores a todo el ancho, guias
   centradas y caja final de presupuesto a todo el ancho.
   PARA DESHACERLO: borrar desde este comentario hasta el final.
   ============================================================ */

/* 1. El panel blanco arranca a la altura del H1, no del antetitulo. */
@media (min-width: 1181px) {
  .hero .quote-panel { margin-top: 44px; }
}

/* 6. Menos aire entre los recuadros 1967 / 360 / Sectores y la
      seccion siguiente: de 154 px a 72 px. */
@media (min-width: 721px) {
  .hero__inner { padding-bottom: 24px; }
  .hero + .section { padding-top: 40px; }
}

/* 8. El enlace verde se pega al fondo de la tarjeta, de modo que
      en una misma fila todos quedan a la misma altura. */
.solution-card,
.sector-card--link,
.resource-card { display: flex; flex-direction: column; }

.solution-card__body,
.sector-card__body { display: flex; flex-direction: column; flex: 1 1 auto; }

.solution-card__body .inline-link,
.sector-card__body .inline-link,
.resource-card .inline-link { margin-top: auto; padding-top: 16px; }

/* 9. La imagen de .split traia alto fijo en el HTML (1568 px) y
      anulaba el 4/3 de la hoja de estilos. Con height:auto vuelve
      a su tamano previsto y la seccion deja de tener 820 px de
      pantalla vacia. Afecta tambien a las portadas catalana e
      inglesa, que tenian el mismo fallo. */
.split img { height: auto; }

/* 10. Los puntos de las listas con enlaces dentro se rompian: el
       <li> era una rejilla y cada enlace saltaba de linea y se
       solapaba. Pasa a flujo normal con el punto naranja
       posicionado. */
.check-list li {
  display: block;
  position: relative;
  padding-left: 28px;
  grid-template-columns: none;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 8px;
  margin-top: 0;
}

/* 13. En Soluciones y Sectores el parrafo baja debajo del titulo
       y empieza donde empieza el titulo. */
@media (min-width: 721px) {
  #soluciones .section__head,
  #sectores .section__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }

  #soluciones .section__head > p,
  #sectores .section__head > p { max-width: 900px; }
}

/* 14. Proceso comercial: menos hueco entre el titulo y los pasos. */
#proceso .section__head { margin-bottom: 16px; }

/* 15. Recursos tecnicos: las tres fichas de abajo quedan centradas
       sobre los huecos de las cuatro de arriba. */
@media (min-width: 1181px) {
  #recursos .resource-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  #recursos .resource-card { grid-column: span 2; }
  #recursos .resource-card:nth-child(5) { grid-column: 2 / span 2; }
}

/* 16. Caja final de presupuesto: texto a todo el ancho, menos
       margen arriba y abajo y los dos botones iguales y centrados. */
.cta-band--wide { padding-top: 36px; padding-bottom: 36px; }
.cta-band--wide h2,
.cta-band--wide p { max-width: none; }

.cta-band--wide .hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band--wide .hero__actions .button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}


/* ============================================================
   CABECERA DE LA PORTADA MAS ARRIBA (OPCION A+) - 01/10/2026
   Medido en la pantalla de Luis: 1.252 px de ancho y 542 de alto
   utiles. Los dos botones del hero acababan en 577 y le quedaban
   cortados por 35 px. Apretando el aire de la columna de texto
   acaban en 501 y le sobran 41 px. El titular se queda a 56 px.
   Tambien baja el alto minimo del hero, para que al subir el
   texto no se vuelva a abrir el hueco de debajo de los recuadros.
   PARA DESHACERLO: borrar desde este comentario hasta el final.
   ============================================================ */
@media (min-width: 721px) {
  .hero { min-height: 586px; }
  .hero__inner { padding-top: 12px; }
  .hero .eyebrow { margin-bottom: 8px; }
  .hero .hero__lead { margin-top: 12px; }
  .hero .hero__actions { margin-top: 18px; }
}


/* ============================================================
   HERO A TODO EL ANCHO - 01/10/2026
   El titular y la entradilla pasan a ocupar la fila de arriba
   entera: el titular llega al borde derecho del boton de la
   cabecera y la entradilla justo hasta donde empieza el panel
   blanco. Debajo, los botones y los tres recuadros a la
   izquierda y el panel a la derecha, con el borde de arriba a la
   altura de los botones y el de abajo a la de los recuadros.
   Necesita el HTML nuevo del hero (.hero__head y .hero__cta).
   PARA DESHACERLO: borrar desde este comentario hasta el final
   Y devolver el index.html de /private/
   index.html.copia-2026-10-01-antes-heroancho
   ============================================================ */
@media (min-width: 1181px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas:
      "cabeza cabeza"
      "accion panel";
    row-gap: 28px;
    align-items: start;
  }

  .hero__head { grid-area: cabeza; }

  .hero__cta {
    grid-area: accion;
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }

  .hero .hero__actions { margin-top: 0; }
  .hero .hero__facts { margin-top: auto; }

  .hero .quote-panel {
    grid-area: panel;
    align-self: stretch;
    margin-top: 0;
  }

  .hero .quote-panel .quick-list { margin-bottom: 0; }

  .hero h1 { max-width: none; }
  .hero .hero__lead { max-width: calc(100% - 400px); }

  .hero { min-height: 545px; }
}


/* ============================================================
   TITULAR GRANDE Y PANEL ESTRECHO - 01/10/2026
   Fuera el antetitulo (iba en el HTML, ya no existe). El titular
   se parte en dos lineas fijas y crece hasta llenar la caja: la
   primera linea mide 1.171 px de los 1.180 disponibles. El
   tamano es elastico para que entre 1181 y 1232 px de pantalla
   siga cabiendo en dos lineas y nunca salten a tres. La
   entradilla pasa a todo el ancho (de 3 lineas a 2) y el panel
   baja de 400 a 340 px con los enlaces a 21,6 px, el mismo
   tamano que 1967 / 360 / Sectores.
   En movil no hay corte forzado: el titular fluye solo.
   PARA DESHACERLO: borrar desde este comentario hasta el final
   Y devolver /private/index.html.copia-2026-10-01-antes-titular
   ============================================================ */
@media (min-width: 721px) {
  .hero__inner { padding-top: 24px; }
}

@media (min-width: 1181px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) 340px; }

  .hero h1 { font-size: min(64px, calc((100vw - 40px) / 18.6)); }
  .hero h1 .h1-2 { display: block; }

  .hero .hero__lead { max-width: none; }

  .hero .quote-panel .quick-list a { font-size: 21.6px; }

  .hero { min-height: 520px; }
}

/* El titular catalan e ingles son mas cortos que el castellano, asi
   que cada idioma tiene su tamano para llenar la misma caja de
   1.180 px: castellano 64, catalan 65, ingles 63. */
@media (min-width: 1181px) {
  html[lang="ca"] .hero h1 { font-size: min(65px, calc((100vw - 40px) / 18.2)); }
  html[lang="en"] .hero h1 { font-size: min(63px, calc((100vw - 40px) / 18.8)); }
}


/* ============================================================
   PANEL MAS BAJO Y FILA MAS JUNTA - 01/10/2026
   El titulo del panel pasa al tamano de sus enlaces (21,6 px) y
   el panel se ensancha de 340 a 348 px para que siga cabiendo en
   una linea: el titulo mide 303 px en una caja interior de 320.
   El panel adelgaza de 259 a 233 px de alto, los botones bajan
   9 px y el hueco hasta los recuadros de 1967 pasa de 82 a 56.
   OJO AL TOCAR ESTO: los enlaces quedan en 41 px de alto con
   solape cero. La regla de legibilidad del 25/09 es 40 px minimo
   y cero solape, asi que no se puede apretar mas sin romperla.
   PARA DESHACERLO: borrar desde este comentario hasta el final.
   ============================================================ */
@media (min-width: 1181px) {
  .hero__inner {
    row-gap: 36px;
    grid-template-columns: minmax(0, 1fr) 348px;
  }

  .hero .quote-panel { padding: 14px; }
  .hero .quote-panel h2 { font-size: 21.6px; }

  .hero .quote-panel .quick-list { margin-top: 10px; gap: 8px; }
  .hero .quote-panel .quick-list a { padding: 4px 0; margin: -4px 0; }
}


/* ============================================================
   LA FICHA DE EMPRESA, REDUCIDA A UNA TIRA - 01/10/2026
   Su titular y su parrafo se han subido a la entradilla del
   hero, asi que en el HTML solo queda el antetitulo y los tres
   enlaces. Aqui se le quita el margen de seccion para que sea
   una tira: de 376 px a 119. Conserva "Cataluna" y el unico
   enlace de la portada a la landing de fabricante.
   PARA DESHACERLO: borrar desde este comentario hasta el final
   Y devolver los index.html de /private/*antes-entidad
   ============================================================ */
.section.entity-profile {
  padding-top: 28px;
  padding-bottom: 28px;
}

.section.entity-profile .kicker { margin-bottom: 14px; }


/* ============================================================
   RONDA DE PULIDO VISUAL - 02/10/2026
   Encargo de Luis: compactar, alinear y cuadrar sin redisenar.
   Todo lo de aqui es global: no hay ni una excepcion por URL.
   PARA DESHACERLO: borrar desde este comentario hasta el final.
   ============================================================ */

/* ---- 1. LA IMAGEN DE LAS CABECERAS INTERIORES ----
   La hoja ya pedia 4/3 para .page-title img, pero el atributo
   height del HTML lo anulaba: las fotos salian a su alto real
   (720 o 916 px) y eran ellas las que marcaban el alto de toda
   la primera pantalla. Es el mismo fallo que tenia .split img.
   Con height:auto el 4/3 vuelve a mandar en las ~70 paginas. */
.page-title img { height: auto; }

/* Tope de seguridad: si alguna foto futura viene muy alta, se
   recorta en vez de estirar la cabecera. */
.page-title picture,
.page-title img { max-height: 420px; object-fit: cover; }

/* ---- 2. GRUPO DE BOTONES (CTA) ----
   .hero__actions se usa en cabeceras interiores, en el hero de
   las portadas y en las bandas finales. Cuando los tres botones
   no caben, el tercero saltaba de linea y quedaba descuadrado.
   Ahora: misma altura siempre, mismo centrado y el mismo hueco
   entre filas que entre columnas. */
.hero__actions {
  align-items: stretch;
  row-gap: 12px;
}

.hero__actions > .button,
.page-actions > .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
}

/* ---- 3. CABECERAS INTERIORES MAS COMPACTAS ---- */
.page-hero { padding: 48px 0; }
.page-hero--compact { padding: 36px 0; }
.page-title { align-items: center; }

/* ---- 4. LA COLUMNA LATERAL ACOMPANA AL TEXTO ----
   En las guias y en Empresa el texto mide 3.000 px de alto y la
   columna de la derecha 390: a partir de ahi quedaba un hueco
   enorme y el texto parecia tirado a la izquierda. Con la
   columna pegajosa el bloque se lee centrado en la pagina. */
@media (min-width: 981px) {
  .content-layout > aside,
  .legacy-layout > aside {
    position: sticky;
    top: 96px;
  }
}

/* ---- 5. RESPONSIVE ---- */
@media (max-width: 720px) {
  .page-hero { padding: 32px 0; }
  .page-hero--compact { padding: 28px 0; }
  .page-title img { max-height: 260px; }
  .hero__actions > .button,
  .page-actions > .button { width: 100%; }
}

/* Cabeceras interiores con fotografías de formato estable. */
.page-hero:not(.page-hero--contact):has(.page-title > img) {
  padding-block: clamp(24px, 3vw, 36px);
}

.page-hero:not(.page-hero--contact) .page-title:has(> img) {
  gap: clamp(22px, 3vw, 42px);
}

.page-hero:not(.page-hero--contact) .page-title > img {
  width: min(100%, 380px);
  max-height: none;
  aspect-ratio: 8 / 5;
  justify-self: center;
}

.page-hero:not(.page-hero--contact) .page-title h1 + p {
  max-width: 64ch;
  margin-top: 12px;
}

@media (min-width: 900px) {
  .page-hero:not(.page-hero--contact) .page-title:has(> img) {
    grid-template-columns: minmax(0, 1fr) clamp(280px, 32vw, 380px);
  }
}

/* Cuerpo centrado para las páginas con una sola columna de lectura. */
.section__inner.reading-layout {
  max-width: 800px;
}

.reading-layout .technical-prose :is(p, li) {
  max-width: none;
}

.reading-layout .topic-nav {
  position: static;
}

.reading-layout .topic-nav h2 {
  margin: 0;
}

.reading-layout .topic-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0 0;
}
