:root {
  --ink: #17383b;
  --muted: #5d7377;
  --paper: #f4f8f7;
  --white: #ffffff;
  --teal: #0a817f;
  --teal-dark: #075f62;
  --green: #6f9d7a;
  --soft: #eaf4f1;
  --line: #d8e6e3;
  --shadow: 0 22px 55px rgba(20, 57, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: 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;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 58px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 32px rgba(8, 50, 55, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.02rem;
  font-weight: 900;
}

.site-header.is-scrolled .brand-mark {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.12rem;
  line-height: 1.12;
}

.brand small {
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 7px;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.site-header.is-scrolled .site-nav a:hover {
  background: #e9f3f1;
}

.nav-cta {
  background: var(--white);
  color: var(--teal-dark);
}

.site-header.is-scrolled .nav-cta {
  background: var(--teal);
  color: var(--white);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 118px clamp(18px, 5vw, 72px) 66px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-ortopedia-sarmiento.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 42, 47, 0.88) 0%, rgba(5, 42, 47, 0.66) 44%, rgba(5, 42, 47, 0.1) 100%),
    linear-gradient(0deg, rgba(5, 42, 47, 0.36), rgba(5, 42, 47, 0.03));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(2.35rem, 5.3vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  width: min(620px, 100%);
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 2vw, 1.2rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 16px 34px rgba(14, 124, 123, 0.28);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.1);
}

.button-outline {
  color: var(--teal-dark);
  border-color: var(--line);
  background: var(--white);
}

.trust-strip {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(20, 57, 61, 0.05);
  min-width: 0;
}

.trust-strip small,
.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip small {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-strip strong {
  font-size: clamp(1.02rem, 1.45vw, 1.28rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.trust-strip span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.section {
  padding: clamp(64px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.intro-grid,
.location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.experience h2,
.location h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro p,
.experience p,
.location p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 235px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(19, 57, 63, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: #bdd9d4;
  box-shadow: 0 24px 48px rgba(19, 57, 63, 0.12);
}

.service-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card h3 {
  margin: 30px 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
}

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

.experience {
  padding: clamp(70px, 9vw, 112px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(rgba(11, 71, 73, 0.86), rgba(11, 71, 73, 0.86)),
    url("assets/hero-ortopedia-sarmiento.png") center / cover fixed;
  color: var(--white);
}

.experience-panel {
  width: min(760px, 100%);
}

.experience p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.86);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  font-weight: 750;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

.location {
  background: var(--paper);
}

.consult,
.help-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(234, 244, 241, 0.92), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.consult div,
.help-band div {
  max-width: 760px;
}

.consult h2,
.help-band h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.05;
}

.consult p,
.help-band p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.map-panel {
  width: 100%;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.map-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.location .location-content h2 {
  font-size: clamp(2.3rem, 4.5vw, 4rem);
}

.contact-card {
  margin-top: 116px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin: 0 0 20px;
  font-size: 1.45rem;
}

.contact-card p {
  margin: 0 0 22px;
  color: var(--muted);
}

.contact-card-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-card .button {
  width: 100%;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--teal-dark);
  font-weight: 900;
}

.contact-card dl,
.contact-card dd {
  margin: 0;
}

.contact-card dl {
  display: grid;
  gap: 20px;
}

.contact-card dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card dd {
  margin-top: 4px;
  font-weight: 800;
}

.contact-card a {
  color: var(--teal-dark);
}

.contact-card .button-primary {
  color: var(--white);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: #12383e;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 78px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .site-nav a:hover {
    background: transparent;
  }

  .site-nav .nav-cta {
    color: var(--white);
    background: var(--teal);
    text-align: center;
  }

  .nav-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
  }

  .site-header.is-scrolled .nav-toggle {
    border-color: var(--line);
    background: var(--white);
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    background: currentColor;
  }

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

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

  .intro-grid,
  .location {
    grid-template-columns: 1fr;
  }

  .contact-card {
    margin-top: 0;
  }

  .consult,
  .help-band {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .brand strong {
    font-size: 1rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 108px 18px 50px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(6, 46, 52, 0.94), rgba(6, 46, 52, 0.72));
  }

  .hero h1 {
    font-size: 2.25rem;
    line-height: 1.04;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 1rem;
  }

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

  .hero-actions,
  .contact-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 46px;
  }

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

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    padding: 16px;
    gap: 10px;
  }

  .trust-strip strong {
    font-size: 1.08rem;
  }

  .trust-strip div,
  .service-card,
  .contact-card {
    padding: 24px 20px;
  }

  .section {
    padding: 54px 18px;
  }

  .intro h2,
  .experience h2,
  .location h2,
  .location .location-content h2,
  .help-band h2 {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  .intro p,
  .experience p,
  .location p,
  .help-band p {
    font-size: 1rem;
  }

  .service-card {
    min-height: auto;
  }

  .service-card h3 {
    margin-top: 22px;
  }

  .experience {
    padding: 58px 18px;
  }

  .map-panel {
    margin-top: 22px;
    aspect-ratio: 4 / 3;
  }

  .contact-card h3 {
    font-size: 1.3rem;
  }

  .experience {
    background-attachment: scroll;
  }
}
