
@font-face {
  font-family: "Haguiesta";
  src: url("assets/Haguiesta.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OCR B BQ";
  src: url("assets/OCR-B-BQ.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue-soft: #9ebbd4;
  --blue-light: #bad0e1;
  --blue-mist: #dce8f1;
  --blue-gray: #5f7890;
  --blue-deep: #163c5f;
  --blue-deeper: #102f4d;
  --ink: #172a3d;
  --white: #ffffff;
  --paper: #f5f8fa;
  --line: rgba(22, 60, 95, .15);
  --shadow: 0 18px 55px rgba(16, 47, 77, .13);
  --radius: 4px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--blue-mist);
  font-family: "Segoe UI", Avenir, Arial, sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.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;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 248, 250, .89);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(22, 60, 95, .12);
}

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

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.nav-brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.nav-brand span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--blue-deep);
  white-space: nowrap;
}

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

.main-nav a {
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--blue-deep);
}

.main-nav a:hover { opacity: .72; }

.nav-cta {
  padding: 11px 16px;
  color: var(--white) !important;
  background: var(--blue-deep);
  border-radius: 3px;
}

.menu-toggle { display: none; }

/* GENERAL SECTIONS */
.section { position: relative; overflow: hidden; }
.section-blue { background: var(--blue-soft); }
.section-mist { background: var(--blue-mist); }
.section-light-blue { background: var(--blue-light); }
.section-deep { background: var(--blue-deep); color: #eef5fa; }
.section-blue-room { background: #c5d6e4; }

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading.light { color: #eef5fa; }

.kicker {
  display: block;
  margin-bottom: 13px;
  font-family: "OCR B BQ", monospace;
  font-size: 11px;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: var(--blue-gray);
}

.section-heading.light .kicker { color: #b9d1e2; }

.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 400;
  color: var(--blue-deep);
}

.section-heading.light h2 { color: #ffffff; }

.section-heading p {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: 16px;
  color: var(--blue-gray);
}

.section-heading.light p { color: #c6d8e7; }

.section {
  padding: 100px 0;
}

/* HERO */
.hero {
  min-height: calc(86vh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0 58px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 255, 255, .12);
}

.hero-glow-one {
  width: 580px;
  height: 580px;
  top: -300px;
  right: -230px;
}

.hero-glow-two {
  width: 440px;
  height: 440px;
  bottom: -300px;
  left: -240px;
  background: rgba(22, 60, 95, .045);
}

.hero-icon {
  width: 105px;
  height: auto;
  margin-bottom: 19px;
  filter: drop-shadow(0 10px 18px rgba(16, 47, 77, .12));
}

.doctor-name {
  margin: 0;
  font-family: "Haguiesta", cursive;
  font-size: clamp(24px, 2.55vw, 34px);
  line-height: .98;
  font-weight: 400;
  color: #101820;
}

.doctor-subtitle {
  margin: 22px 0 0;
  font-family: "OCR B BQ", monospace;
  font-size: clamp(9px, 1.05vw, 12px);
  letter-spacing: .15em;
  color: #14263a;
}

.doctor-license {
  margin: 10px 0 0;
  font-family: "OCR B BQ", monospace;
  font-size: clamp(8px, .9vw, 11px);
  letter-spacing: .08em;
  color: #20384e;
}

.hero-intro {
  max-width: 630px;
  margin: 20px 0 0;
  font-size: 13px;
  color: #365770;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 3px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .075em;
  text-transform: uppercase;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

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

.button-dark {
  background: var(--blue-deep);
  color: #ffffff;
}

.button-dark:hover { background: var(--blue-deeper); }

.button-light {
  background: rgba(255,255,255,.34);
  color: var(--blue-deep);
  border: 1px solid rgba(22,60,95,.34);
}

.button-white {
  background: #ffffff;
  color: var(--blue-deep);
}

.button-outline-white {
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.55);
  background: transparent;
}

.scroll-cue {
  position: absolute;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--blue-deep);
  text-decoration: none;
  font-size: 22px;
  opacity: .62;
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(290px, .72fr);
  gap: 65px;
  align-items: start;
}

.about-text p {
  max-width: 760px;
  margin: 0 0 21px;
  color: #516b82;
  font-size: 16px;
}

.about-text .large-copy {
  font-size: 21px;
  line-height: 1.63;
  color: #274967;
}

.about-text strong { color: var(--blue-deep); }

.audience-note {
  margin-top: 35px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}

.audience-note span,
.detail-label {
  font-family: "OCR B BQ", monospace;
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--blue-gray);
}

.audience-note p {
  margin: 8px 0 2px;
  color: var(--blue-deep);
}

.audience-note small {
  color: var(--blue-gray);
}

.quote-card {
  padding: 34px;
  background: rgba(255,255,255,.30);
  border: 1px solid rgba(22, 60, 95, .12);
  box-shadow: var(--shadow);
}

.quote-mark {
  font-family: Georgia, serif;
  font-size: 68px;
  line-height: .7;
  color: rgba(22,60,95,.34);
}

.quote-card p {
  margin: 25px 0 0;
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1.45;
  color: var(--blue-deep);
}

/* AREAS */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255,255,255,.15);
}

.area-item {
  padding: 19px 4px 19px 0;
  color: #eaf2f8;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.area-item:nth-child(odd) {
  padding-right: 35px;
}

.area-item:nth-child(even) {
  padding-left: 35px;
  border-left: 1px solid rgba(255,255,255,.15);
}

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

.approach-card,
.detail-card {
  border: 1px solid rgba(22,60,95,.12);
  background: rgba(255,255,255,.52);
  padding: 29px;
}

.approach-card .index {
  font-family: "OCR B BQ", monospace;
  font-size: 11px;
  color: var(--blue-gray);
  letter-spacing: .12em;
}

.approach-card h3,
.detail-card h3,
.office-info h3,
.booking-card h3 {
  margin: 14px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.25;
  color: var(--blue-deep);
  font-weight: 400;
}

.approach-card p,
.detail-card p {
  margin: 0;
  font-size: 14px;
  color: #587086;
}

.principle {
  max-width: 900px;
  margin-top: 63px;
}

.principle-line {
  width: 54px;
  height: 2px;
  margin-bottom: 21px;
  background: var(--blue-deep);
}

.principle p {
  margin: 0 0 20px;
  font-size: 16px;
  color: #365570;
}

.principle strong { color: var(--blue-deep); }

/* DETAILS */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.detail-card {
  background: rgba(255,255,255,.48);
}

.detail-card strong {
  display: block;
  margin-top: 13px;
  color: var(--blue-deep);
  font-size: 14px;
}

.detail-card.emphasis {
  background: rgba(255,255,255,.68);
  box-shadow: var(--shadow);
}

/* CONSULTORIO */
.gallery {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 18px;
  align-items: stretch;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--blue-mist);
  box-shadow: var(--shadow);
}

.gallery-large {
  min-height: 590px;
}

.gallery-small {
  min-height: 590px;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-info {
  margin-top: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 27px;
  border-top: 1px solid rgba(22,60,95,.14);
}

.office-info h3 { margin-top: 10px; }

.office-info p {
  margin: 0;
  color: #536e85;
  font-size: 14px;
}

/* BOOKING */
.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.booking-card {
  padding: 36px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
}

.booking-card-primary {
  background: rgba(255,255,255,.12);
}

.booking-card .detail-label { color: #bad0df; }

.booking-card h3 {
  color: #ffffff;
  margin-bottom: 11px;
}

.booking-card p {
  color: #c8d8e5;
  max-width: 500px;
}

.booking-card .button { margin-top: 14px; }

.booking-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.booking-note p {
  margin: 0;
  color: #bfd0dd;
  font-size: 13px;
}

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 55px;
  align-items: center;
}

.contact-copy h2 {
  margin: 0 0 15px;
  font-family: Georgia, serif;
  font-size: clamp(38px, 5vw, 57px);
  line-height: 1.1;
  font-weight: 400;
  color: var(--blue-deep);
}

.contact-copy > p {
  max-width: 580px;
  color: #587086;
  font-size: 13px;
}

.contact-list {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.contact-list > *,
.contact-list a {
  display: block;
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  display: block;
  font-family: "OCR B BQ", monospace;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue-gray);
  margin-bottom: 4px;
}

.contact-list strong {
  display: block;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 600;
}

.map-card {
  min-height: 530px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(22,60,95,.12);
  background: #d7e2eb;
}

.map-card iframe {
  width: 100%;
  height: 530px;
  border: 0;
  display: block;
  filter: saturate(.62) contrast(.96);
}

/* FOOTER */
.site-footer {
  padding: 30px 0;
  background: var(--blue-deeper);
  color: #d9e5ee;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
  align-items: end;
}

.footer-inner > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-inner strong {
  font-family: "Haguiesta", cursive;
  font-size: 31px;
  color: #fff;
  font-weight: 400;
  line-height: 1;
}

.footer-inner span {
  font-size: 11px;
  color: #b5cad9;
  letter-spacing: .04em;
}

.footer-inner > div:last-child {
  text-align: right;
}

/* RESPONSIVE */
@media (max-width: 940px) {
  .main-nav { gap: 15px; }
  .nav-brand span { font-size: 24px; }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .quote-card { max-width: 640px; }

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

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

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

  .gallery-large,
  .gallery-small {
    min-height: 420px;
  }

  .contact-grid { align-items: stretch; }
  .map-card { min-height: 440px; }
  .map-card iframe { height: 440px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 34px, 1120px); }

  .main-nav {
    position: absolute;
    display: none;
    top: 78px;
    left: 0;
    right: 0;
    padding: 18px 17px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    background: rgba(245,248,250,.98);
    border-bottom: 1px solid rgba(22,60,95,.11);
  }

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

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

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

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span:not(.sr-only) {
    width: 21px;
    height: 1px;
    background: var(--blue-deep);
    margin-left: auto;
  }

  .nav-brand span {
    font-size: 16px;
    font-family: Georgia, "Times New Roman", serif;
  }

  .section { padding: 73px 0; }

  .hero {
    min-height: calc(100vh - 69px);
    padding: 44px 0 66px;
  }

  .hero-icon { width: 72px; margin-bottom: 15px; }

  .doctor-name {
    font-size: clamp(22px, 6.2vw, 30px);
    white-space: normal;
  }

  .doctor-subtitle {
    margin-top: 21px;
    letter-spacing: .07em;
  }

  .hero-intro { font-size: 13px; }

  .areas-grid,
  .details-grid,
  .details-grid.compact,
  .booking-grid,
  .booking-note {
    grid-template-columns: 1fr;
  }

  .area-item:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .area-item:nth-child(odd) { padding-right: 0; }

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

  .gallery-large,
  .gallery-small {
    min-height: 0;
  }

  .gallery img {
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
  }

  .office-info {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner > div:last-child {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .nav-brand img { width: 29px; height: 29px; }
  .nav-brand span {
    font-size: 15px;
    font-family: Georgia, "Times New Roman", serif;
  }
  .hero-actions { flex-direction: column; width: 100%; }
  .button { width: 100%; }
  .quote-card { padding: 25px; }
}
