:root {
  --navy: #0a2342;
  --lime: #7cdb2e;
  --lime-deep: #5fb01a;
  --paper: #f7f8fa;
  --ink: #1c2430;
  --muted: #667384;
  --bg: #ffffff;
  --surface: #ffffff;
  --border: #e6e9ef;
  --border-strong: #d5dae3;
  --portrait-border: #e1e5ec;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #122536;
  --ink: #e8eef5;
  --muted: #9aabbc;
  --bg: #0b1622;
  --surface: #102033;
  --border: #243447;
  --border-strong: #2f4258;
  --portrait-border: #2f4258;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  transition: background-color 0.2s ease, color 0.2s ease;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--lime-deep); }
html[data-theme="dark"] a:hover { color: var(--lime); }

.wrap { width: min(1080px, calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { max-width: 40rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.nav { display: flex; gap: 1.2rem; }
.nav a { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.nav a[aria-current="page"] { color: var(--lime-deep); }
html[data-theme="dark"] .nav a[aria-current="page"] { color: var(--lime); }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
}
.lang button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.lang button.is-active { background: var(--navy); color: #fff; }
html[data-theme="dark"] .lang button.is-active { background: #1a6f9a; color: #fff; }

.theme-toggle {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.35rem;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--lime); color: var(--lime); }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  line-height: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.brand .logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}
.brand-name {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
  white-space: nowrap;
}
html[data-theme="dark"] .brand-name { color: var(--ink); }
.brand .logo-dark { display: none; }
html[data-theme="dark"] .brand .logo-light { display: none; }
html[data-theme="dark"] .brand .logo-dark { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  border-radius: 0.35rem;
  background: var(--lime);
  color: var(--navy);
  font-weight: 700;
  border: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--lime-deep); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.88rem; }

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 74vh, 720px);
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  background: var(--navy);
}
/* The photo is drawn wider than the hero and anchored left, so the family
   (centre of the photo) lands on the right and the copy sits over open sea. */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 140%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(10, 35, 66, 0.88) 0%,
      rgba(10, 35, 66, 0.7) 35%,
      rgba(10, 35, 66, 0.15) 58%,
      rgba(10, 35, 66, 0) 70%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 36rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.85rem;
  animation: rise 0.65s ease both;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.12;
  margin: 0 0 0.5rem;
  color: #fff;
  font-optical-sizing: auto;
  text-shadow: 0 2px 18px rgba(10, 35, 66, 0.35);
  animation: rise 0.75s ease 0.05s both;
}
.tagline {
  font-family: var(--display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 1rem;
  font-optical-sizing: auto;
  text-shadow: 0 1px 12px rgba(10, 35, 66, 0.35);
  animation: rise 0.8s ease 0.1s both;
}
.lede {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 0 1.6rem;
  animation: rise 0.85s ease 0.14s both;
}
.hero .lede {
  color: #e3eaf2;
  text-shadow: 0 1px 10px rgba(10, 35, 66, 0.4);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s ease 0.18s both;
}
.hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 35, 66, 0.55);
  border-left: 3px solid var(--lime);
  backdrop-filter: blur(4px);
  animation: rise 0.95s ease 0.22s both;
}
.hero-badge-sep { color: var(--lime); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.section { padding: 4.25rem 0; }
.section-tint { background: var(--paper); }
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  color: var(--ink);
  margin: 0 0 0.75rem;
}
#how h2, #trust h2 { text-align: center; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin: 1.5rem 0 0;
}
.about-stat {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.about-stat-accent {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--lime);
  margin-bottom: 0.6rem;
}
.about-stat-value {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 3rem);
  line-height: 1;
  color: var(--navy);
  margin: 0 0 0.35rem;
  font-optical-sizing: auto;
}
html[data-theme="dark"] .about-stat-value { color: var(--lime); }
.about-stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: left;
}
.about-divider {
  margin: 2.5rem 0 0;
  border: none;
  border-top: 1px solid var(--border);
}
.founder {
  margin: 1.25rem 0 0;
  color: var(--ink);
}
.founder-name { font-weight: 700; }
.founder-title { color: var(--muted); font-weight: 400; }
.specialties { display: flex; flex-direction: column; gap: 1rem; }
.specialties .eyebrow { margin-bottom: 0.1rem; }
.specialty {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--navy);
  color: #fff;
  border-left: 4px solid var(--lime);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.specialty:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 35, 66, 0.25);
}
html[data-theme="dark"] .specialty { background: var(--paper); border: 1px solid var(--border-strong); border-left: 4px solid var(--lime); }
html[data-theme="dark"] .specialty:hover { color: #fff; }
.specialty-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--lime);
}
.specialty-icon svg { width: 100%; height: 100%; }
.specialty-body { display: flex; flex-direction: column; gap: 0.35rem; }
.specialty-title { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
.specialty-text { color: #c5d0de; font-size: 0.92rem; }
.specialty-link { color: var(--lime); font-weight: 700; font-size: 0.9rem; margin-top: 0.2rem; }
.specialty-link::after { content: " →"; }

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.benefit {
  padding-top: 1rem;
  border-top: 3px solid var(--lime);
}
.benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lime-deep);
  margin-bottom: 0.85rem;
}
html[data-theme="dark"] .benefit-icon { color: var(--lime); }
.benefit-icon svg { width: 100%; height: 100%; }
.benefit h3 { margin: 0 0 0.4rem; color: var(--ink); font-size: 1.05rem; }
.benefit p { margin: 0; color: var(--muted); }

.service-tabs {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}
.service-tabs-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}
.service-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  padding: 0.9rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.service-tabs-list .service-tab:last-child { border-bottom: 0; }
.service-tab-num {
  font-family: var(--display);
  color: var(--border-strong);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.service-tab:hover { background: var(--paper); color: var(--ink); }
.service-tab.is-active {
  background: var(--navy);
  color: #fff;
}
.service-tab.is-active .service-tab-num { color: var(--lime); }
.service-tab-badge,
.service-panel-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: var(--lime);
  color: var(--navy);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.4;
}
.service-tab-badge { margin-left: auto; flex-shrink: 0; }
.service-panel-badge { margin-bottom: 0.6rem; }
.service-panel-badge + h3 { margin-top: 0; }
html[data-theme="dark"] .service-tab.is-active { background: #1a6f9a; }

.service-panels { position: relative; }
.service-panel {
  position: relative;
  padding: 1.75rem 2rem 2rem;
  border: 1px solid var(--border);
  background: var(--surface);
}
.service-panel-num {
  position: absolute;
  top: 0.5rem;
  right: 1.25rem;
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--paper);
  -webkit-text-stroke: 1px var(--border-strong);
  line-height: 1;
  pointer-events: none;
}
html[data-theme="dark"] .service-panel-num { color: var(--bg); }
.service-panel-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lime-deep);
  margin-bottom: 0.75rem;
}
html[data-theme="dark"] .service-panel-icon { color: var(--lime); }
.service-panel-icon svg { width: 100%; height: 100%; }
.service-panel h3 { margin: 0 0 0.5rem; color: var(--ink); font-size: 1.3rem; font-family: var(--display); }
.service-panel > p { margin: 0 0 1.25rem; color: var(--muted); max-width: 34rem; }
.service-checklist {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
}
.service-checklist li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink);
  font-size: 0.92rem;
}
.service-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--lime);
}
.service-more {
  font-weight: 700;
  color: var(--lime-deep);
}
html[data-theme="dark"] .service-more { color: var(--lime); }
.service-more::after { content: " →"; }

.process-row {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.process-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lime-deep);
  margin-bottom: 0.75rem;
}
html[data-theme="dark"] .process-icon { color: var(--lime); }
.process-icon svg { width: 100%; height: 100%; }
.process-step h3 {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.process-step p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.process-cta { margin-top: 2.25rem; }

#trust {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.insurer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
  margin: 1.75rem 0;
}
.insurer-tile {
  box-sizing: border-box;
  width: 184px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 0.9rem;
  background: #fff;
}
/* Each logo sets --logo-h so their visible ink weight is roughly equal. */
.insurer-tile img {
  display: block;
  height: var(--logo-h, 36px);
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.trust-reg { color: var(--muted); margin: 0; }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.75rem; }
.faq-item {
  border: 1px solid var(--border);
  padding: 0.2rem 1.1rem;
}
.faq-item summary {
  cursor: pointer;
  padding: 0.9rem 0;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  display: inline;
  margin: 0;
  font: inherit;
  color: inherit;
}
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--lime-deep);
  font-weight: 700;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 1rem; color: var(--muted); }

.contact {
  background: var(--navy);
  color: #fff;
}
.contact h2 { color: #fff; }
.contact p { color: #c5d0de; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.vcard {
  font-style: normal;
  background: rgba(255,255,255,0.06);
  padding: 1.5rem;
  border-left: 4px solid var(--lime);
  margin-top: 1.1rem;
}
.vcard a { color: var(--lime); font-weight: 700; font-size: 1.05rem; }
.vcard p { margin: 0 0 0.85rem; color: #d7e0ea; }
.vcard strong { color: #fff; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
  min-width: 0;
  background: rgba(255,255,255,0.06);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  align-self: start;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  width: 100%;
  min-width: 0;
}
.contact-form .field > span,
.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  box-sizing: border-box;
  font: inherit;
  font-weight: 400;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.2);
  color: #fff;
  width: 100%;
  max-width: 100%;
}
.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  line-height: inherit;
  padding-right: 2.5rem;
  cursor: pointer;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237cdb2e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.1rem;
}
.contact-form select.is-placeholder { color: #8a9aab; }
.contact-form select option { color: #fff; background: var(--navy); }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 2px rgba(124, 219, 46, 0.25);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #8a9aab; }
.contact-form textarea {
  resize: vertical;
  min-height: 7rem;
}
.contact-form .btn {
  display: inline-flex;
  width: 100%;
  margin-top: 0.15rem;
}
.contact-form .form-privacy {
  margin: 0;
  font-size: 0.8rem;
  color: #9fb0c3;
  line-height: 1.45;
}
.contact-form input.is-invalid,
.contact-form textarea.is-invalid {
  border-color: #ff6b6b;
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.28);
}
.field-error {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #ff8a80;
  line-height: 1.3;
}
.field-error[hidden] { display: none !important; }

.form-sent {
  display: none;
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: rgba(124, 219, 46, 0.2);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.form-sent.is-visible,
.form-sent.is-visible[hidden] {
  display: block !important;
}

.site-footer {
  padding: 1.35rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-weight: 700;
  color: var(--ink);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-brand .logo { width: 36px; height: 36px; object-fit: contain; }
.footer-brand .logo-dark { display: none; }
html[data-theme="dark"] .footer-brand .logo-light { display: none; }
html[data-theme="dark"] .footer-brand .logo-dark { display: block; }
.footer-affiliations {
  display: flex;
  align-items: flex-end;
  gap: 1.75rem;
}
.affiliation {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-start;
}
.affiliation-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.affiliation-plate {
  display: flex;
  align-items: center;
  height: 44px;
  line-height: 0;
}
.affiliation-plate img { width: auto; max-width: none; }
/* Both logos are drawn for light backgrounds; give them a white plate in dark mode. */
html[data-theme="dark"] .affiliation-plate {
  height: auto;
  padding: 0.4rem 0.6rem;
  background: #fff;
  border-radius: 0.3rem;
}
.footer-meta { text-align: right; }
.site-footer p { margin: 0; font-weight: 500; color: var(--muted); font-size: 0.9rem; }

/* Derechos y deberes page */
.page-hero {
  padding: 3.75rem 0 3rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.85rem;
  color: var(--ink);
  max-width: 44rem;
}
.page-hero .lede { max-width: 42rem; margin: 0; }
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.doc-card {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--lime);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.doc-card:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(10, 35, 66, 0.12);
}
.doc-icon { flex-shrink: 0; width: 2.5rem; height: 2.5rem; color: var(--lime-deep); }
html[data-theme="dark"] .doc-icon { color: var(--lime); }
.doc-icon svg { width: 100%; height: 100%; }
.doc-body { display: flex; flex-direction: column; gap: 0.25rem; }
.doc-title { font-family: var(--display); font-size: 1.2rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.doc-meta { font-size: 0.85rem; color: var(--muted); }
.doc-link { margin-top: 0.3rem; font-weight: 700; font-size: 0.9rem; color: var(--lime-deep); }
html[data-theme="dark"] .doc-link { color: var(--lime); }
.doc-link::after { content: " →"; }
.rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.rights-intro { color: var(--muted); margin: 0 0 1.25rem; }
.rights-list { grid-template-columns: 1fr; gap: 0.85rem; margin: 0; }
.rights-source { margin: 2.25rem 0 0; font-size: 0.85rem; color: var(--muted); }
.rights-source a { color: var(--lime-deep); font-weight: 600; }
html[data-theme="dark"] .rights-source a { color: var(--lime); }
.rights-cta { text-align: center; }
.rights-cta p { max-width: 36rem; margin: 0 auto 1.5rem; }

.nav-toggle {
  display: none;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.35rem;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .footer-inner { justify-content: center; text-align: center; }
  .footer-meta { text-align: center; }
  .footer-inner { flex-direction: column; }
  .footer-affiliations { justify-content: center; }
  .affiliation { align-items: center; }
  .site-header { overflow: visible; }
  .header-inner { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    z-index: 50;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
  }
  .nav a:last-child { border-bottom: 0; }
  .about-grid, .contact-grid, .doc-grid, .rights-grid { grid-template-columns: 1fr; }
  /* Mobile: copy on solid navy, photo strip below with the family in view. */
  .hero {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 3rem 0 0;
    text-align: center;
  }
  .hero-bg {
    order: 2;
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 26rem;
    margin-top: 1.5rem;
    object-position: 50% 55%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  }
  .hero-overlay { display: none; }
  .hero-copy { margin-inline: auto; }
  .hero .lede { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
  .hero-badge { justify-content: center; border-left: 0; border-top: 3px solid var(--lime); }
  .hero-badge-sep { display: none; }
  .service-tab-badge { margin-left: 0; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: 1fr; }
  .process-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-tabs { grid-template-columns: 1fr; }
  .service-tabs-list {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .service-tab {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    white-space: nowrap;
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
  .service-tabs-list .service-tab:last-child { border-right: 0; }
  .service-panel { padding: 1.5rem 1.25rem 1.75rem; }
  .service-checklist { grid-template-columns: 1fr; }
  .insurer-grid { gap: 0.85rem; }
  .insurer-tile { width: 148px; height: 76px; padding: 0.65rem 0.75rem; }
  .insurer-tile img { height: calc(var(--logo-h, 36px) * 0.8); }

  .wrap { width: min(1080px, calc(100% - 1.25rem)); }
  .header-inner {
    gap: 0.5rem;
    min-height: 3.6rem;
  }
  .brand {
    padding: 0;
    max-width: 42%;
    background: transparent;
    box-shadow: none;
  }
  .brand .logo {
    width: 44px;
    height: 44px;
  }
  .brand { gap: 0.4rem; }
  .brand-name { font-size: 1rem; }
  .header-actions {
    gap: 0.35rem;
    margin-left: auto;
  }
  .lang button {
    padding: 0.28rem 0.45rem;
    font-size: 0.72rem;
  }
  .theme-toggle {
    width: 2rem;
    height: 2rem;
  }
  .header-actions .btn-sm {
    padding: 0.42rem 0.65rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 400px) {
  .header-actions .btn-sm { display: none; }
  .brand { max-width: 60%; }
  .brand .logo { width: 40px; height: 40px; }
  .brand-name { font-size: 0.95rem; }
}
