@font-face {
  font-family: "Onest";
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --asisa: #004a98;
  --asisa-hover: #003b79;
  --blue: #1677bc;
  --navy: #0b3155;
  --navy-deep: #071f36;
  --ink: #162b3f;
  --muted: #5b6f82;
  --mist: #f3f7fb;
  --sky: #e7f2fb;
  --line: #d8e4ee;
  --white: #ffffff;
  --arag: #fff100;
  --success: #147a55;
  --danger: #b42318;
  --shadow-sm: 0 8px 24px rgba(11, 49, 85, 0.08);
  --shadow-md: 0 22px 56px rgba(11, 49, 85, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shell: min(1160px, calc(100% - 40px));
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.cookie-lock {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #0b5fa8;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.92);
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy-deep);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

#companias,
#solicitud-arag,
#contacto {
  scroll-margin-top: 86px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(216, 228, 238, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-family: "Onest", "Avenir Next", system-ui, sans-serif;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  color: var(--white);
  background: var(--asisa);
  border-radius: 10px;
}

.brand-mark svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-name > span {
  color: var(--asisa);
}

.brand-name small {
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.desktop-nav a {
  color: #435b70;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.desktop-nav a:hover {
  color: var(--asisa);
}

.header-contact {
  display: flex;
  align-items: center;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  gap: 10px;
  line-height: 1.25;
}

.header-contact span {
  color: var(--muted);
  font-size: 0.78rem;
}

.header-contact a,
.mobile-call {
  color: var(--asisa);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.mobile-call {
  display: none;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid var(--asisa);
  border-radius: 9px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border: 2px solid var(--asisa);
  color: var(--white);
  background: var(--asisa);
  border-radius: var(--radius-sm);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--asisa-hover);
  background: var(--asisa-hover);
  transform: translateY(-1px);
}

.button-small {
  min-height: 44px;
  padding: 9px 17px;
  font-size: 0.86rem;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(22, 119, 188, 0.055) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(rgba(22, 119, 188, 0.055) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(135deg, #ffffff 0%, #f6fafe 54%, #ebf4fb 100%);
}

.hero::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
  background: linear-gradient(to bottom, var(--asisa) 0 78%, var(--arag) 78% 100%);
  content: "";
}

.hero-grid {
  display: grid;
  min-height: 610px;
  align-items: center;
  padding-block: 72px 80px;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.82fr);
  gap: clamp(58px, 7vw, 96px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--asisa);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 18px;
  height: 3px;
  background: var(--asisa);
  border-radius: 3px;
}

.eyebrow-dark {
  color: #a7d0ef;
}

.hero h1,
.arag-intro h2,
.legal-hero h1,
.legal-content h2 {
  margin: 0;
  font-family: "Onest", "Avenir Next", system-ui, sans-serif;
}

.hero h1 {
  max-width: 690px;
  color: var(--navy);
  font-size: clamp(3.25rem, 5.3vw, 4.85rem);
  font-weight: 700;
  letter-spacing: -0.047em;
  line-height: 1.025;
}

.hero h1 strong {
  display: block;
  color: var(--asisa);
  font-weight: 600;
}

.hero-lead {
  max-width: 610px;
  margin: 27px 0 0;
  color: #4b6378;
  font-size: clamp(1.08rem, 1.55vw, 1.22rem);
  line-height: 1.58;
}

.hero-help {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-help-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #b9cee0;
  color: var(--asisa);
  background: var(--white);
  border-radius: 50%;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-help p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.hero-help strong {
  color: var(--navy);
  font-weight: 650;
}

.hero-help a {
  color: var(--asisa);
  font-weight: 700;
}

.decision-panel {
  position: relative;
  padding: 24px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.decision-panel::after {
  position: absolute;
  right: 28px;
  bottom: -7px;
  width: 46px;
  height: 7px;
  background: var(--arag);
  border-radius: 0 0 7px 7px;
  content: "";
}

.decision-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 20px;
  gap: 20px;
}

.decision-heading span:not(.decision-arrow) {
  display: block;
  margin-bottom: 3px;
  color: #a9c9e3;
  font-size: 0.75rem;
}

.decision-heading h2 {
  margin: 0;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.decision-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.company-choice {
  position: relative;
  display: grid;
  min-height: 94px;
  align-items: center;
  padding: 15px 16px;
  color: var(--ink);
  background: var(--white);
  border-radius: 13px;
  grid-template-columns: 118px 1fr 34px;
  gap: 17px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.company-choice + .company-choice {
  margin-top: 10px;
}

.company-choice:hover {
  background: #f4f9fd;
  transform: translateX(3px);
}

.choice-logo {
  display: grid;
  min-height: 58px;
  padding: 10px;
  place-items: center;
  background: var(--mist);
  border-radius: 9px;
}

.choice-logo img {
  width: 96px;
  max-height: 38px;
}

.company-choice-sanitas .choice-logo img {
  width: 88px;
}

.choice-logo-arag {
  background: var(--arag);
}

.choice-logo-arag img {
  width: 74px;
}

.choice-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.choice-copy small {
  color: var(--muted);
  font-size: 0.76rem;
}

.choice-copy strong {
  color: var(--navy);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.35;
}

.choice-action {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--asisa);
  background: var(--sky);
  border-radius: 50%;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 1rem;
  transition: transform 160ms ease;
}

.company-choice:hover .choice-action {
  transform: translate(2px, -2px);
}

.company-choice-arag:hover .choice-action {
  transform: translateY(2px);
}

.decision-note {
  display: grid;
  margin: 17px 2px 1px;
  color: #c7dae9;
  font-size: 0.75rem;
  grid-template-columns: 19px 1fr;
  gap: 8px;
  line-height: 1.45;
}

.decision-note span {
  color: var(--arag);
  font-weight: 700;
}

.confidence {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

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

.confidence-item {
  display: grid;
  min-height: 132px;
  align-items: center;
  padding: 24px clamp(18px, 3vw, 40px);
  grid-template-columns: 38px 1fr;
  gap: 15px;
}

.confidence-item + .confidence-item {
  border-left: 1px solid var(--line);
}

.confidence-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--asisa);
  background: var(--sky);
  border-radius: 9px;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
}

.confidence-item p {
  display: flex;
  flex-direction: column;
  margin: 0;
  line-height: 1.4;
}

.confidence-item strong {
  color: var(--navy);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 650;
}

.confidence-item p span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.arag-section {
  position: relative;
  overflow: hidden;
  padding: 112px 0;
  background: var(--navy-deep);
}

.arag-section::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 100%;
  background: var(--arag);
  content: "";
}

.arag-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
  gap: clamp(58px, 8vw, 105px);
}

.arag-intro {
  position: sticky;
  top: 116px;
  color: var(--white);
}

.arag-logo-band {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px 10px 10px;
  margin-bottom: 34px;
  color: #3b3a00;
  background: var(--arag);
  border-radius: 11px;
  gap: 13px;
}

.arag-logo-band img {
  width: 78px;
}

.arag-logo-band span {
  padding-left: 12px;
  border-left: 1px solid rgba(0, 0, 0, 0.22);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 650;
}

.arag-intro h2 {
  max-width: 520px;
  color: var(--white);
  font-size: clamp(2.35rem, 4vw, 3.8rem);
  font-weight: 650;
  letter-spacing: -0.042em;
  line-height: 1.06;
}

.arag-lead {
  max-width: 540px;
  margin: 24px 0 0;
  color: #bfd0df;
  font-size: 1.05rem;
  line-height: 1.6;
}

.arag-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.arag-products span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #dbe7f1;
  border-radius: 20px;
  font-size: 0.76rem;
}

.contact-card {
  display: grid;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  grid-template-columns: 1fr;
  gap: 3px;
}

.contact-card-label {
  margin-bottom: 5px;
  color: #8fb1cc;
  font-size: 0.73rem;
}

.contact-card a {
  width: fit-content;
  color: var(--white);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.lead-form {
  padding: clamp(28px, 4vw, 44px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.form-heading > div {
  display: flex;
  flex-direction: column;
}

.form-heading > div > span {
  color: var(--navy);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 1.42rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.form-heading small {
  color: var(--muted);
  font-size: 0.75rem;
}

.form-step-count {
  padding: 6px 9px;
  color: var(--asisa);
  background: var(--sky);
  border-radius: 7px;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 650;
}

.form-block {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.form-block + .form-block {
  padding-top: 27px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.form-block legend {
  display: flex;
  align-items: center;
  padding: 0;
  margin-bottom: 17px;
  color: var(--navy);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 650;
  gap: 9px;
}

.form-block legend > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--white);
  background: var(--asisa);
  border-radius: 7px;
  font-size: 0.72rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.product-choice {
  position: relative;
  cursor: pointer;
}

.product-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.product-choice > span {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid #c6d4df;
  color: #40586d;
  background: #fbfdff;
  border-radius: 9px;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 550;
  line-height: 1.25;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.product-choice > span::before {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-right: 9px;
  border: 1.5px solid #91a7b8;
  border-radius: 50%;
  content: "";
}

.product-choice input:checked + span {
  border-color: var(--asisa);
  color: var(--asisa);
  background: #edf6fd;
}

.product-choice input:checked + span::before {
  border: 4px solid var(--asisa);
  background: var(--white);
}

.product-choice input:focus-visible + span {
  outline: 3px solid #0b5fa8;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.95);
}

.product-field {
  margin-bottom: 0;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: block;
  margin-bottom: 17px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
}

.field > span small {
  color: var(--muted);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #bacbd8;
  color: var(--ink);
  background: #fbfdff;
  border-radius: 9px;
  outline: none;
  font-size: 1rem;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field input,
.field select {
  height: 50px;
  padding: 0 13px;
}

.field textarea {
  min-height: 96px;
  padding: 11px 13px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--asisa);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 74, 152, 0.1);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea,
.field.is-invalid .product-choice > span {
  border-color: var(--danger);
}

.field-error {
  display: none;
  margin-top: 5px;
  color: var(--danger);
  font-size: 0.76rem;
}

.field.is-invalid > .field-error {
  display: block;
}

.check-field {
  display: grid;
  align-items: start;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  grid-template-columns: 21px 1fr;
  gap: 10px;
}

.check-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--asisa);
}

.check-field a {
  color: var(--asisa);
  font-weight: 600;
}

.check-field.is-invalid {
  padding: 9px;
  border: 1px solid var(--danger);
  border-radius: 8px;
}

.checkbox-error {
  display: none;
  margin-top: 2px;
  color: var(--danger);
  font-size: 0.76rem;
  grid-column: 2;
}

.check-field.is-invalid .checkbox-error {
  display: block;
}

.privacy-layer {
  margin: 16px 0 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.privacy-toggle {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border: 0;
  color: var(--asisa);
  background: transparent;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.privacy-toggle span {
  font-size: 1rem;
}

#privacy-summary {
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 0.75rem;
}

#privacy-summary p {
  margin: 5px 0;
}

.form-submit {
  width: 100%;
}

.submit-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
  text-align: center;
}

.form-status {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--success);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.form-status.is-error {
  color: var(--danger);
}

.site-footer {
  padding: 68px 0 24px;
  color: #c7d6e3;
  background: #061829;
}

.footer-main {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.brand-footer {
  color: var(--white);
}

.brand-footer .brand-mark {
  background: var(--blue);
}

.footer-brand > p {
  max-width: 310px;
  margin: 17px 0 0;
  color: #93a9bc;
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 32px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-links strong {
  margin-bottom: 7px;
  color: var(--white);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links a,
.footer-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 0;
  color: #9db1c3;
  background: transparent;
  font-size: 0.83rem;
  text-decoration: none;
}

.footer-links a:hover,
.footer-button:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-button {
  padding: 0;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 23px;
  margin-top: 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: #70889d;
  font-size: 0.7rem;
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: none;
  max-width: 1120px;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 18px;
  margin-inline: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  background: rgba(7, 31, 54, 0.98);
  border-radius: 15px;
  box-shadow: 0 18px 62px rgba(0, 0, 0, 0.3);
}

.cookie-banner.is-visible {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 24px;
  animation: cookie-in 280ms ease both;
}

.cookie-copy {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
}

.cookie-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--navy);
  background: var(--white);
  border-radius: 9px;
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 700;
}

.cookie-copy strong {
  display: block;
  margin-bottom: 1px;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 650;
}

.cookie-copy p {
  max-width: 680px;
  margin: 0;
  color: #bdcedd;
  font-size: 0.78rem;
  line-height: 1.45;
}

.cookie-copy a {
  color: var(--white);
}

.cookie-actions {
  display: flex;
  gap: 8px;
}

.cookie-button {
  min-height: 44px;
  padding: 9px 14px;
  border: 2px solid var(--blue);
  color: var(--white);
  background: var(--asisa);
  border-radius: 8px;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.cookie-button:hover {
  border-color: #78bae9;
  background: var(--blue);
}

.cookie-dialog {
  width: min(590px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
}

.cookie-dialog::backdrop {
  background: rgba(7, 31, 54, 0.74);
  backdrop-filter: blur(3px);
}

.cookie-dialog-inner {
  padding: 28px;
}

.dialog-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-heading h2 {
  margin: 0;
  color: var(--navy);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--navy);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
}

.dialog-intro {
  margin: 10px 0 20px;
  color: var(--muted);
  font-size: 0.86rem;
}

.cookie-option {
  display: grid;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  gap: 20px;
}

.cookie-option strong,
.cookie-option small {
  display: block;
}

.cookie-option strong {
  color: var(--navy);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.88rem;
  font-weight: 650;
}

.cookie-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.cookie-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--asisa);
}

.cookie-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
}

.cookie-dialog-actions .cookie-button {
  flex: 1 1 145px;
}

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Legal pages */
.legal-page {
  background: var(--mist);
}

.legal-page .site-header {
  position: relative;
}

.legal-hero {
  padding: 68px 0 54px;
  color: var(--white);
  background: var(--navy);
}

.breadcrumbs {
  margin-bottom: 20px;
  color: #a9c8e1;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--white);
}

.legal-hero h1 {
  max-width: 780px;
  color: var(--white);
  font-size: clamp(2.75rem, 5.4vw, 4.7rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.legal-hero p {
  margin: 17px 0 0;
  color: #bdd0df;
  font-size: 0.9rem;
}

.legal-layout {
  display: grid;
  align-items: start;
  padding-block: 62px 100px;
  grid-template-columns: 220px minmax(0, 790px);
  gap: 58px;
}

.legal-aside {
  position: sticky;
  top: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-aside strong {
  margin-bottom: 9px;
  color: var(--navy);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.73rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-aside a {
  padding: 7px 10px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
  text-decoration: none;
}

.legal-aside a:hover,
.legal-aside a[aria-current="page"] {
  border-color: var(--asisa);
  color: var(--asisa);
}

.legal-content {
  padding: clamp(28px, 5vw, 54px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  margin: 38px 0 12px;
  color: var(--navy);
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 26px 0 9px;
  color: var(--navy);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 650;
}

.legal-content p,
.legal-content li {
  color: #4d6275;
  font-size: 0.96rem;
}

.legal-content a {
  color: var(--asisa);
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content li + li {
  margin-top: 7px;
}

.legal-highlight {
  padding: 19px;
  margin: 22px 0;
  border-left: 4px solid var(--asisa);
  background: var(--mist);
  border-radius: 0 10px 10px 0;
}

.legal-highlight p {
  margin: 4px 0;
}

.legal-document-section {
  scroll-margin-top: 28px;
}

.legal-document-section + .legal-document-section {
  padding-top: 68px;
  margin-top: 72px;
  border-top: 1px solid var(--line);
}

.legal-section-heading {
  padding-bottom: 24px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.legal-section-heading .legal-kicker {
  margin: 0 0 7px;
  color: var(--asisa);
  font-family: "Onest", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.legal-section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-section-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.legal-document-section > h3 {
  margin-top: 34px;
  font-size: 1.18rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 22px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.legal-table th,
.legal-table td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  color: var(--navy);
  background: var(--mist);
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 650;
}

@media (max-width: 1000px) {
  .desktop-nav {
    display: none;
  }

  .header-contact {
    margin-left: auto;
  }

  .hero-grid,
  .arag-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    max-width: 800px;
    gap: 52px;
  }

  .decision-panel {
    width: min(650px, 100%);
  }

  .confidence-grid {
    grid-template-columns: 1fr;
  }

  .confidence-item {
    min-height: 98px;
  }

  .confidence-item + .confidence-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .arag-grid {
    max-width: 790px;
  }

  .arag-intro {
    position: static;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .cookie-banner.is-visible {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(100% - 28px, 620px);
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 66px;
  }

  .header-contact {
    display: none;
  }

  .mobile-call {
    display: inline-flex;
    margin-left: auto;
  }

  .hero::before {
    width: 5px;
  }

  .hero-grid {
    min-height: auto;
    padding-block: 54px 64px;
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11.2vw, 3.45rem);
    letter-spacing: -0.038em;
    line-height: 1.035;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 1.05rem;
  }

  .hero-help {
    margin-top: 24px;
  }

  .decision-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .decision-heading {
    padding-bottom: 16px;
  }

  .decision-heading h2 {
    font-size: 1.25rem;
  }

  .company-choice {
    min-height: 84px;
    padding: 12px;
    grid-template-columns: 88px 1fr 30px;
    gap: 12px;
  }

  .choice-logo {
    min-height: 52px;
    padding: 8px;
  }

  .choice-logo img {
    width: 74px;
    max-height: 32px;
  }

  .company-choice-sanitas .choice-logo img {
    width: 68px;
  }

  .choice-logo-arag img {
    width: 58px;
  }

  .choice-copy strong {
    font-size: 0.84rem;
  }

  .choice-copy small {
    font-size: 0.7rem;
  }

  .confidence-item {
    padding-inline: 14px;
  }

  .arag-section {
    padding-block: 78px;
  }

  .arag-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 45px;
  }

  .arag-intro h2 {
    font-size: clamp(2.15rem, 9vw, 3rem);
  }

  .arag-logo-band {
    margin-bottom: 27px;
  }

  .lead-form {
    padding: 24px 18px;
    border-radius: 17px;
  }

  .field-grid,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .product-grid {
    gap: 8px;
  }

  .form-heading {
    align-items: flex-start;
  }

  .form-step-count {
    display: none;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .cookie-banner {
    right: 9px;
    bottom: 9px;
    left: 9px;
    padding: 15px;
  }

  .cookie-copy {
    grid-template-columns: 1fr;
  }

  .cookie-icon {
    display: none;
  }

  .cookie-copy p {
    font-size: 0.74rem;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-actions .cookie-button:first-child {
    grid-column: 1 / -1;
  }

  .legal-hero {
    padding-block: 52px 42px;
  }

  .legal-layout {
    padding-block: 32px 72px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .legal-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .brand-name {
    font-size: 1.13rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .company-choice {
    grid-template-columns: 78px 1fr 28px;
    gap: 9px;
  }

  .choice-logo {
    padding-inline: 6px;
  }

  .choice-copy strong {
    font-size: 0.79rem;
  }

  .legal-content {
    padding: 23px 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
