:root {
  color-scheme: light;
  --ink: #172522;
  --muted: #5d6f68;
  --surface: #ffffff;
  --soft: #eef5f1;
  --line: #dbe6e1;
  --brand: #2f7f78;
  --brand-dark: #1f5f5a;
  --accent: #c9784a;
  --whatsapp: #0b746a;
  --max: 1120px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfdfb;
  line-height: 1.55;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.topbar {
  background: var(--brand-dark);
  color: #fff;
  font-size: 0.92rem;
}

.topbar__inner,
.nav__inner,
.section__inner,
.footer__inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  text-decoration: none;
  font-weight: 650;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__logo {
  width: 96px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.nav__links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
}

.nav__links a:hover {
  color: var(--brand-dark);
}

.nav__links .button--primary,
.nav__links .button--primary:hover {
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.button--primary {
  background: var(--whatsapp);
  color: #fff;
}

.button--secondary {
  background: #fff;
  color: var(--brand-dark);
  border-color: var(--line);
}

.button--dark {
  background: var(--brand-dark);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 660px;
  color: #fff;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 32, 29, 0.86) 0%, rgba(12, 32, 29, 0.62) 44%, rgba(12, 32, 29, 0.2) 100%),
    url("/assets/osteopatia-domicilio-hero.jpg") center / cover;
}

.hero__inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 76px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: #d9fff2;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 680px;
  margin-bottom: 28px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: #eef8f4;
}

.hero__actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__facts {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
  gap: 12px;
}

.fact {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.fact strong {
  display: block;
  font-size: 1.05rem;
}

.fact span {
  display: block;
  color: #dce9e5;
  font-size: 0.92rem;
}

.section {
  padding: 78px 0;
}

.section--soft {
  background: var(--soft);
}

.section--offers {
  background: #f8f5ef;
  border-top: 1px solid #eadfce;
  border-bottom: 1px solid #eadfce;
}

.section__heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section__heading h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.section__heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow--dark {
  color: var(--brand-dark);
}

.offer-grid {
  display: grid;
  gap: 24px;
}

.offer {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #dfd3c1;
  border-radius: 8px;
}

.offer__content {
  padding: 30px;
  align-self: center;
}

.offer__label {
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.offer h3 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.08;
}

.offer__content > p:not(.offer__label) {
  color: var(--muted);
}

.offer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.offer__image {
  display: block;
  align-self: stretch;
  background: #f3eee5;
}

.offer__image img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: contain;
}

.offer-terms {
  max-width: 920px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.media-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.media-band img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.list {
  padding-left: 20px;
  margin: 0;
  color: var(--muted);
}

.list li + li {
  margin-top: 8px;
}

.location-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.location-list a {
  display: inline-flex;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-weight: 750;
  color: var(--brand-dark);
}

.quote {
  border-left: 4px solid var(--accent);
}

.quote p {
  color: var(--ink);
}

.quote cite {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-style: normal;
  font-weight: 750;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.05rem;
}

.faq details p {
  max-width: 780px;
  margin: 12px 0 0;
  color: var(--muted);
}

.cta {
  background: var(--brand-dark);
  color: #fff;
}

.cta .section__inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 24px;
  align-items: center;
}

.cta p {
  margin-bottom: 0;
  color: #dfeeea;
}

.footer {
  background: #12221f;
  color: #dfeeea;
  padding: 46px 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 24px;
}

.footer a {
  color: #fff;
}

.footer h2,
.footer h3 {
  color: #fff;
  margin-bottom: 10px;
}

.footer__socials {
  font-size: 0.92rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.breadcrumb {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-hero {
  background: var(--soft);
  padding: 74px 0;
}

.page-hero h1 {
  color: var(--ink);
  max-width: 880px;
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.legal {
  max-width: 820px;
}

.legal h2 {
  margin-top: 36px;
  margin-bottom: 10px;
}

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

.legal-note {
  padding: 16px;
  border-left: 4px solid var(--accent);
  background: #fff7f1;
}

@media (max-width: 860px) {
  .topbar__inner {
    min-height: 38px;
    font-size: 0.82rem;
  }

  .nav__inner {
    min-height: 64px;
    gap: 12px;
  }

  .brand__logo {
    width: 72px;
    max-height: 54px;
  }

  .nav__links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
    font-size: 0.85rem;
  }

  .nav__links .button {
    min-height: 40px;
    padding: 0 12px;
  }

  .hero {
    min-height: 620px;
  }

  .hero__facts,
  .grid--3,
  .grid--2,
  .offer,
  .media-band,
  .cta .section__inner,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .offer__image {
    order: -1;
  }

  .offer__image img {
    min-height: 0;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 520px) {
  .hero__actions .button,
  .cta-row .button,
  .cta .button {
    width: 100%;
  }

  .topbar__inner {
    align-items: center;
  }

  .topbar__inner span {
    max-width: 235px;
  }

  .nav__inner {
    align-items: center;
  }

  .nav__links {
    width: calc(100% - 84px);
  }

  .nav__links > a:not(.button) {
    display: none;
  }

  .nav__links .button {
    width: 100%;
  }

  .hero__inner {
    padding-bottom: 54px;
  }

  .whatsapp-float {
    display: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.assistant {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 1000;
  font-family: inherit;
  color: #172522;
}

.assistant__launcher {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #266f67;
  color: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(18, 48, 43, 0.24);
  cursor: pointer;
}

.assistant__launcher:hover,
.assistant__launcher:focus-visible {
  background: #1e5d56;
}

.assistant__launcher-icon {
  width: 18px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 5px;
  position: relative;
}

.assistant__launcher-icon::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -5px;
  width: 6px;
  height: 6px;
  border-left: 2px solid currentColor;
  transform: skewY(-35deg);
}

.assistant__panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 170px));
  overflow: hidden;
  border: 1px solid #cbd8d5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(18, 48, 43, 0.26);
}

.assistant__panel[hidden] {
  display: none;
}

.assistant__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 16px;
  background: #174c46;
  color: #fff;
}

.assistant__header div {
  display: grid;
}

.assistant__header span {
  font-size: 0.82rem;
  opacity: 0.84;
}

.assistant__close {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.assistant__messages {
  height: calc(100% - 252px);
  min-height: 190px;
  padding: 16px;
  overflow-y: auto;
  background: #f5f8f7;
}

.assistant__message {
  width: fit-content;
  max-width: 88%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 0.92rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.assistant__message--bot {
  border: 1px solid #d8e2df;
  background: #fff;
}

.assistant__message--user {
  margin-left: auto;
  background: #dcefeb;
}

.assistant__message--waiting {
  color: #62736f;
  font-style: italic;
}

.assistant__whatsapp {
  display: inline-block;
  margin-top: 9px;
  color: #17655d;
  font-weight: 700;
}

.assistant__suggestions {
  display: flex;
  gap: 7px;
  padding: 10px 12px 4px;
  overflow-x: auto;
  background: #fff;
}

.assistant__suggestions button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #8aaca6;
  border-radius: 5px;
  background: #fff;
  color: #245f58;
  font: inherit;
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
}

.assistant__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
}

.assistant__form textarea {
  min-width: 0;
  height: 44px;
  max-height: 90px;
  resize: none;
  border: 1px solid #aebfbb;
  border-radius: 5px;
  padding: 10px;
  color: #172522;
  font: inherit;
}

.assistant__form button {
  min-width: 66px;
  border: 0;
  border-radius: 5px;
  background: #266f67;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.assistant__form button:disabled,
.assistant__form textarea:disabled {
  opacity: 0.62;
  cursor: wait;
}

.assistant__notice {
  margin: 0;
  padding: 0 12px 12px;
  color: #61706d;
  font-size: 0.7rem;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .assistant {
    right: 12px;
    bottom: 12px;
  }

  .assistant__panel {
    position: fixed;
    inset: 12px;
    width: auto;
    height: auto;
  }

  .assistant__messages {
    height: calc(100% - 252px);
  }
}
