:root {
  --ink: #173148;
  --text: #455d70;
  --blue: #173a53;
  --blue-2: #225b75;
  --gold: #c99047;
  --aqua: #e7f3f1;
  --paper: #fbf8f2;
  --white: #ffffff;
  --line: #d8e3df;
  --shadow: 0 24px 70px rgba(23, 49, 72, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 30;
  width: auto;
  height: auto;
  clip: auto;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--white);
  border: 2px solid var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 6px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(216, 227, 223, 0.85);
  backdrop-filter: blur(12px);
}

.brand {
  display: block;
  min-width: 240px;
  width: min(310px, 30vw);
  height: 62px;
  overflow: hidden;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: #2f4b60;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold);
}

.nav-cta {
  padding: 10px 17px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--white) !important;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
  align-items: start;
  min-height: calc(62vh - 70px);
  padding: 32px clamp(18px, 5vw, 72px) 48px;
  gap: clamp(34px, 6vw, 90px);
  background:
    linear-gradient(90deg, rgba(23, 58, 83, 0.92), rgba(23, 58, 83, 0.74)),
    url("assets/consultorio-sala-ampla.jpg") center / cover no-repeat;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  max-width: 700px;
  font-size: clamp(2.25rem, 4.75vw, 5rem);
}

h2 {
  font-size: clamp(2.05rem, 4vw, 4rem);
}

h3 {
  font-size: 1.22rem;
}

p {
  color: var(--text);
}

.hero-subtitle {
  max-width: 650px;
  margin: 16px 0 0;
  color: #eaf5f2;
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: var(--white);
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--white);
}

.hero-image {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow);
}

.hero-image img {
  width: 100%;
  height: min(66vh, 620px);
  object-fit: cover;
  object-position: center 20%;
}

.notice-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 32px clamp(18px, 5vw, 72px);
  background: var(--aqua);
}

.notice-band h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.2rem);
}

.notice-band p {
  max-width: 900px;
  margin: 8px 0 0;
}

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

.section-heading {
  max-width: 860px;
  margin-bottom: 36px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading p {
  font-size: 1.06rem;
}

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

.specialty-grid article {
  min-height: 255px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 49, 72, 0.08);
}

.specialty-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.specialty-grid p {
  margin: 12px 0 18px;
}

.specialty-grid a,
.learn-more {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue-2);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.professional-section,
.faq-section {
  background: var(--aqua);
}

.corporate-section {
  background: var(--paper);
}

.nr1-highlight {
  max-width: 1040px;
  margin: 0 auto 22px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--blue);
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nr1-highlight span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nr1-highlight h3 {
  max-width: 820px;
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
}

.nr1-highlight p {
  max-width: 900px;
  margin: 14px 0 0;
  color: #e4f2ef;
  font-size: 1.06rem;
}

.professional-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 42px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.professional-photo img {
  width: 100%;
  max-height: 520px;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
  border-radius: 8px;
  background: #f3f6f4;
}

.role {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 900;
}

.professional-copy p {
  font-size: 1.05rem;
}

.tag-list,
.mini-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.mini-grid {
  justify-content: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.tag-list span,
.mini-grid span {
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--ink);
  font-weight: 800;
}

.unit-section,
.help-section,
.orientation-section,
.contact-block {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
}

.unit-photo {
  margin: 0;
}

.unit-photo img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
  background: #f3f6f4;
}

.unit-photo figcaption {
  margin-top: 10px;
  color: var(--text);
  font-size: 0.92rem;
}

.help-section {
  display: block;
  background: var(--blue);
  color: var(--white);
}

.help-section p {
  color: #e4f2ef;
}

.help-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.orientation-section {
  background: var(--aqua);
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

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

.video-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-label {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  background: #000;
}

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

.corporate-card article {
  min-height: 220px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 49, 72, 0.08);
}

.corporate-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 900;
}

.corporate-card p {
  margin: 10px 0 0;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

.faq-list details {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.contact-block {
  padding: 48px clamp(18px, 5vw, 72px);
  background: var(--blue);
  color: var(--white);
  grid-template-columns: minmax(280px, 0.72fr) minmax(340px, 1fr);
  align-items: start;
}

.contact-block h2 {
  max-width: 620px;
  color: var(--white);
  font-size: clamp(1.9rem, 3.3vw, 3.25rem);
}

.contact-block p {
  color: #e4f2ef;
}

.contact-copy {
  max-width: 620px;
}

.contact-info {
  margin-top: 26px;
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-info p {
  margin: 0 0 16px;
}

.contact-info .button {
  width: auto;
  min-width: 220px;
}

.contact-map iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-map p {
  margin: 0 0 16px;
  padding: 18px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e4f2ef;
}

.topic-dialog {
  width: min(620px, calc(100vw - 32px));
  padding: 30px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.topic-dialog::backdrop {
  background: rgba(16, 43, 63, 0.62);
}

.topic-dialog h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.topic-dialog p:not(.eyebrow) {
  font-size: 1.05rem;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1040px) {
  .specialty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 100% 18px auto 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 10px 8px;
  }

  .nav-cta {
    text-align: center;
  }

  .hero,
  .notice-band,
  .professional-card,
  .unit-section,
  .help-section,
  .orientation-section,
  .corporate-card,
  .contact-block {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image {
    max-width: 520px;
  }

}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
    width: 190px;
    height: 44px;
  }

  .brand img {
    width: 100%;
  }

  .section,
  .hero {
    padding: 40px 18px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .specialty-grid,
  .corporate-card {
    grid-template-columns: 1fr;
  }
}
