:root {
  --navy: #08345f;
  --navy-2: #062a4e;
  --blue: #1780bd;
  --blue-light: #eaf5fb;
  --ink: #183042;
  --muted: #657785;
  --line: #dfe8ee;
  --surface: #f7fafc;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(5, 39, 71, .09);
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.section {
  padding: 96px 0;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--navy);
  color: white;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(8, 52, 95, .08);
}

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

.brand-wrapper {
  display: inline-flex;
  align-items: center;
}

.brand {
  width: 92px;
  flex: 0 0 auto;
  display: block;
}

.brand img {
  border-radius: 50%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav>a:not(.btn) {
  text-decoration: none;
  font-size: .95rem;
  color: #385166;
}

.main-nav>a:not(.btn):hover {
  color: var(--navy);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  border-radius: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--navy);
  color: white;
  border: 1px solid var(--navy);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}

.btn:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
}

.btn-secondary {
  background: white;
  color: var(--navy);
  border-color: #bdd1df;
}

.btn-secondary:hover {
  background: #f3f8fb;
  color: var(--navy);
}

.btn-small {
  min-height: 42px;
  padding: 0 18px;
  font-size: .92rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-size: .76rem;
}

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.1;
  margin-top: 0;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.3rem);
  margin-bottom: 26px;
}

h2 {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

p {
  margin: 0 0 18px;
}

.lead {
  font-size: clamp(1.18rem, 1.8vw, 1.4rem);
  color: #3d5669;
}

.hero {
  overflow: hidden;
  padding-top: 82px;
  padding-bottom: 102px;
  background:
    linear-gradient(rgba(255, 255, 255, .72), rgba(255, 255, 255, .72)),
    url("../img/fondo_hero.png") center / cover no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-lead {
  max-width: 700px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: #526a7c;
  margin: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 42px;
  justify-content: center;
}

.hero-data {
  padding: 20px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  color: #526a7c;
  justify-content: center;
  background: #fff;
  border-radius: 30px;
  max-width: 500px;
  margin: auto;
  font-size: 1.2rem;
}

.hero-data li {
  display: grid;
  gap: 2px;
}

.hero-data .label {
  color: var(--navy);
  font-weight: 800;
  font-size: 1rem;
}

.hero-mark {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-mark::before {
  content: "";
  position: absolute;
  width: 110%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow);
}

.hero-mark img {
  position: relative;
  z-index: 1;
  width: min(100%, 570px);
  border-radius: 50%;
}

.intro {
  text-align: center;
}

.intro .narrow {
  margin-inline: auto;
}

.services-section {
  background: var(--surface);
  background:
    radial-gradient(circle at 85% 18%, rgba(23, 128, 189, .10), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 46px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  min-height: 265px;
  padding: 30px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #c7dbe7;
  box-shadow: 0 18px 50px rgba(5, 39, 71, .07);
}

.service-number {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--blue);
  font-weight: 800;
  font-size: .8rem;
}

.service-card p {
  color: var(--muted);
  font-size: 20px;
}

.insurers-section {
  text-align: center;
}

.insurers-section .section-heading {
  margin-inline: auto;
}

.insurers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 42px auto 28px;
}

.insurer-card {
  height: 112px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: .01em;
}

.insurer-card img {
  max-height: 100px;
  max-width: 160px;
}

.insurer-placeholder {
  color: var(--muted);
  font-weight: 600;
}

.text-link {
  color: var(--navy);
  text-underline-offset: 5px;
  font-weight: 800;
}

.center {
  text-align: center;
}

.clinic-section {
  background: var(--navy);
  color: white;
}

.clinic-section h2,
.clinic-section .eyebrow {
  color: white;
}

.clinic-section .eyebrow {
  opacity: .78;
}

.clinic-section .lead,
.clinic-section p {
  color: rgba(255, 255, 255, .82);
}

.clinic-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
  align-items: center;
}

.photo-placeholder {
  min-height: 430px;
  display: grid;
  place-items: center;
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  text-align: center;
}

.photo-placeholder div {
  display: grid;
  gap: 8px;
}

.photo-placeholder span {
  color: rgba(255, 255, 255, .67);
  font-size: .93rem;
}

.contact-section {
  background: #f7fbfd;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr .9fr;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.contact-copy {
  padding: 54px;
}

.contact-list {
  margin: 34px 0;
}

.contact-list>div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  color: var(--navy);
  font-weight: 800;
}

.contact-list dd {
  margin: 0;
  color: #526a7c;
}

.contact-list a {
  color: var(--navy);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.map-wrapper {
  min-height: 520px;
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
}

.site-footer {
  padding: 56px 0 22px;
  background: #041f38;
  color: rgba(255, 255, 255, .77);
}

.footer-grid,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.site-footer strong {
  color: white;
}

.site-footer p {
  margin: 6px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .85rem;
}

.legal-page main {
  min-height: 65vh;
}

.legal-content {
  max-width: 850px;
  padding: 90px 0;
}

.legal-content h1 {
  max-width: none;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 38px;
}

.legal-content p,
.legal-content li {
  color: #536a7c;
}

@media (max-width: 900px) {
  .section {
    padding: 76px 0;
  }

  .hero-grid,
  .clinic-grid,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    max-width: 520px;
    margin-inline: auto;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 18px 20px 24px;
    background: white;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(5, 39, 71, .08);
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav>a {
    padding: 10px 4px;
  }

  .main-nav .btn {
    margin-top: 8px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

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

  .brand {
    width: 74px;
  }

  .hero {
    padding-top: 56px;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.3rem);
  }

  h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .services-grid,
  .insurers-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-copy {
    padding: 34px 24px;
  }

  .contact-list>div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-grid,
  .footer-bottom {
    flex-direction: column;
  }
}