:root {
  color-scheme: light;
  --paper: #f5efe5;
  --paper-light: #fbf8f2;
  --ink: #1c1d1b;
  --muted: #6d6a64;
  --line: rgba(28, 29, 27, 0.2);
  --green: #496d62;
  --green-dark: #345248;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

main,
footer {
  width: min(100% - 48px, 1280px);
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.82fr);
  min-height: 690px;
  padding: 34px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: clamp(48px, 8vw, 130px);
}

.brand__eyebrow,
.brand__specialty,
.detail__number,
.consultorio figcaption,
.intro__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 520;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand__eyebrow::before {
  width: 42px;
  height: 1px;
  background: var(--ink);
  content: "";
}

h1 {
  max-width: 720px;
  margin: clamp(80px, 12vh, 145px) 0 22px;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 8.1vw, 7.7rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.brand__specialty {
  padding-left: 4px;
}

.intro {
  max-width: 570px;
}

.intro__copy {
  max-width: 540px;
  margin: 64px 0 30px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.32;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 58px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 640;
  letter-spacing: 0.035em;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.button--primary {
  min-width: min(100%, 350px);
  background: var(--green);
  color: #fff;
}

.button--primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

.button__arrow {
  font-size: 1.15rem;
}

.intro__note {
  margin-top: 14px;
  font-size: 0.62rem;
  letter-spacing: 0.075em;
}

.consultorio {
  position: relative;
  align-self: end;
  height: min(68vh, 470px);
  margin: 0;
  overflow: hidden;
  background: #d8d3c9;
}

.consultorio::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(41, 49, 44, 0.02), rgba(41, 49, 44, 0.16));
  content: "";
  pointer-events: none;
}

.consultorio img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.72) contrast(0.96) sepia(0.06);
  transform: scale(1.01);
}

.consultorio figcaption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  left: 22px;
  padding: 12px 14px;
  background: rgba(251, 248, 242, 0.9);
  color: var(--ink);
  backdrop-filter: blur(5px);
}

.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 46px 0 70px;
}

.detail {
  min-height: 190px;
  padding: 0 clamp(24px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.detail:first-child {
  padding-left: 0;
}

.detail:last-child {
  padding-right: 0;
  border-right: 0;
}

.detail__number {
  margin-bottom: 40px;
}

.detail h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
}

.detail > p:not(.detail__number),
.schedule {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.schedule div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 290px;
  padding: 4px 0;
}

.schedule dd {
  margin: 0;
  color: var(--ink);
}

footer {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

footer p {
  margin: 0;
}

.footer__whatsapp {
  color: var(--green-dark);
  font-weight: 650;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid rgba(73, 109, 98, 0.45);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    min-height: 630px;
  }

  .consultorio {
    height: 430px;
  }

  .hero__content {
    padding-right: 40px;
  }

  h1 {
    font-size: clamp(4rem, 9vw, 5.4rem);
  }

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

  .detail:last-child {
    grid-column: 1 / -1;
    min-height: 0;
    margin-top: 38px;
    padding: 38px 0 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  main,
  footer {
    width: min(100% - 32px, 1280px);
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 24px;
  }

  .hero__content {
    padding-right: 0;
  }

  h1 {
    margin-top: 72px;
    font-size: clamp(3.65rem, 19vw, 5.4rem);
  }

  .brand__specialty {
    max-width: 260px;
    line-height: 1.55;
  }

  .intro__copy {
    margin-top: 76px;
    font-size: 1.35rem;
  }

  .button--primary {
    width: 100%;
  }

  .intro__note {
    line-height: 1.5;
  }

  .consultorio {
    height: 300px;
    margin-top: 54px;
  }

  .details {
    display: block;
    padding: 14px 0 48px;
  }

  .detail,
  .detail:first-child,
  .detail:last-child {
    min-height: 0;
    margin: 0;
    padding: 30px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail__number {
    margin-bottom: 24px;
  }

  footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px 0 34px;
  }

  .footer__whatsapp {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
