:root {
  --color-ink: #261f21;
  --color-muted: #6d6265;
  --color-soft: #f7f3ef;
  --color-paper: #fffdf9;
  --color-line: rgba(82, 44, 49, 0.16);
  --color-brand: #7a2636;
  --color-brand-dark: #4d1220;
  --color-gold: #b89b66;
  --color-green: #1fb85b;
  --shadow-soft: 0 22px 70px rgba(46, 30, 31, 0.12);
  --shadow-card: 0 14px 38px rgba(74, 39, 44, 0.1);
  --radius: 8px;
  --container: min(1160px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: clamp(72px, 9vw, 126px) 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--color-gold);
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3.05rem, 8vw, 6.8rem);
  max-width: 820px;
  margin: 0;
}

h2 {
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  margin: 0 0 18px;
}

h3 {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin: 0 0 12px;
}

p {
  margin: 0;
}

.lead {
  color: var(--color-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 680px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 10px 30px rgba(50, 31, 33, 0.08);
  backdrop-filter: blur(18px);
}

.nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 78px;
  width: var(--container);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand img {
  width: 156px;
  height: auto;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 22px;
  color: #3f3034;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--color-brand-dark);
  cursor: pointer;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(122, 38, 54, 0.24);
}

.btn-primary:hover {
  background: var(--color-brand-dark);
}

.btn-whatsapp {
  background: var(--color-green);
  color: #fff;
  box-shadow: 0 14px 28px rgba(31, 184, 91, 0.23);
}

.btn-outline {
  border-color: rgba(122, 38, 54, 0.24);
  color: var(--color-brand-dark);
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  min-height: 100vh;
  padding: 118px 0 52px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(36, 24, 26, 0.74) 0%, rgba(36, 24, 26, 0.56) 36%, rgba(36, 24, 26, 0.08) 72%),
    url("../images/hero-oral-care.jpg") center right / cover no-repeat;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(0deg, var(--color-paper), transparent);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  gap: 36px;
  min-height: calc(100vh - 170px);
}

.hero-copy {
  max-width: 760px;
}

.hero .eyebrow {
  color: #f3d9c8;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 760px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.stat {
  padding: 22px 20px;
  background: rgba(255, 253, 249, 0.12);
}

.stat strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  line-height: 1.08;
}

.stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.35;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.image-stack {
  display: grid;
  gap: 16px;
}

.image-stack img,
.feature-photo,
.gallery-item img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.image-stack img:first-child {
  aspect-ratio: 4 / 5;
  width: 82%;
}

.image-stack img:last-child {
  aspect-ratio: 5 / 3;
  justify-self: end;
  margin-top: -90px;
  width: 62%;
}

.text-block {
  display: grid;
  gap: 18px;
}

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

.check-list li {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  color: var(--color-muted);
}

.check-list i {
  color: var(--color-brand);
  margin-top: 5px;
}

.doctor {
  background: #fbf7f2;
}

.doctor-grid {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 6vw, 74px);
}

.doctor-card {
  position: sticky;
  top: 104px;
}

.doctor-card img {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  width: 100%;
}

.doctor-caption {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  margin: -42px 18px 0;
  padding: 18px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.timeline-item {
  border-left: 2px solid rgba(122, 38, 54, 0.24);
  padding: 2px 0 2px 18px;
}

.timeline-item strong {
  color: var(--color-brand);
  display: block;
  font-size: 0.9rem;
}

.timeline-item span {
  color: var(--color-muted);
}

.treatments {
  background: var(--color-paper);
}

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

.differentials-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}

.service-card,
.diff-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.diff-card {
  align-items: flex-start;
  display: grid;
  grid-template-areas:
    "icon title"
    "icon text";
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 4px;
  min-height: 0;
  padding: 20px;
}

.service-card i,
.diff-card i {
  align-items: center;
  background: #f6ece8;
  border-radius: 50%;
  color: var(--color-brand);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  margin-bottom: 18px;
  width: 48px;
}

.diff-card i {
  grid-area: icon;
  margin-bottom: 0;
}

.diff-card h3 {
  color: var(--color-ink);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1rem;
  grid-area: title;
  font-weight: 800;
  line-height: 1.25;
  margin: 1px 0 0;
}

.diff-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  grid-area: text;
  line-height: 1.55;
  max-width: 34rem;
}

.service-card ul {
  color: var(--color-muted);
  margin: 16px 0 0;
  padding-left: 18px;
}

.feature-band {
  background: var(--color-brand-dark);
  color: #fff;
  overflow: hidden;
}

.feature-band .split {
  align-items: center;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1.14fr);
}

.feature-band h2 {
  max-width: 560px;
}

.feature-band .lead,
.feature-band p {
  color: rgba(255, 255, 255, 0.78);
}

.feature-band .differentials-grid p {
  color: var(--color-muted);
}

.feature-photo {
  aspect-ratio: 16 / 11;
  width: 100%;
}

#galeria {
  background: linear-gradient(180deg, var(--color-paper) 0%, #fbf7f2 100%);
}

#galeria .section-header {
  display: block;
  margin-bottom: clamp(34px, 5vw, 56px);
  max-width: 820px;
}

#galeria .section-header h2 {
  max-width: 760px;
}

#galeria .section-header .lead {
  margin-top: 18px;
  max-width: 680px;
}

.gallery-grid {
  display: grid;
  gap: 18px;
  grid-auto-rows: 118px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.gallery-item {
  background: #fff;
  border: 1px solid rgba(82, 44, 49, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(46, 30, 31, 0.11);
  margin: 0;
  overflow: hidden;
}

.gallery-item img {
  aspect-ratio: auto;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  width: 100%;
}

.gallery-item:hover img {
  transform: scale(1.035);
}

.gallery-item:nth-child(1) {
  grid-column: span 5;
  grid-row: span 4;
}

.gallery-item:nth-child(2) {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-item:nth-child(3) {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-item:nth-child(4) {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-item:nth-child(5) {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-item:nth-child(6),
.gallery-item:nth-child(7) {
  grid-column: span 3;
  grid-row: span 2;
}

.contact {
  background: #fbf7f2;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.contact-panel,
.form-panel {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 36px);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 26px 0;
}

.contact-list a,
.contact-list div {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  color: var(--color-muted);
}

.contact-list i {
  color: var(--color-brand);
  margin-top: 4px;
  width: 18px;
}

.map-frame {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  height: 360px;
  margin-top: 28px;
  overflow: hidden;
  width: 100%;
}

.map-frame iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 13px 14px;
  background: #fffdf9;
  color: var(--color-ink);
  outline: none;
}

.form-grid input:focus,
.form-grid textarea:focus {
  border-color: rgba(122, 38, 54, 0.55);
  box-shadow: 0 0 0 4px rgba(122, 38, 54, 0.08);
}

.form-note {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 14px;
}

.site-footer {
  background: #21181a;
  color: rgba(255, 255, 255, 0.78);
  padding: 42px 0;
}

.footer-grid {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.footer-logo {
  filter: brightness(0) invert(1);
  width: 150px;
  margin-bottom: 12px;
}

.floating-whatsapp {
  align-items: center;
  background: var(--color-green);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 16px 34px rgba(20, 112, 58, 0.28);
  color: #fff;
  display: inline-flex;
  gap: 10px;
  font-weight: 900;
  min-height: 54px;
  padding: 0 20px;
  position: fixed;
  right: 22px;
  z-index: 18;
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    inset: 78px 0 0 0;
    background: rgba(255, 253, 249, 0.98);
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 34px 20px;
    font-size: 1.1rem;
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(36, 24, 26, 0.84), rgba(36, 24, 26, 0.42)),
      url("../images/hero-oral-care.jpg") center right / cover no-repeat;
  }

  .hero-stats,
  .split,
  .feature-band .split,
  .doctor-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .doctor-card {
    position: static;
  }

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

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

  .gallery-grid {
    grid-auto-rows: 112px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .gallery-item:nth-child(n) {
    grid-column: span 3;
    grid-row: span 2;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 6;
    grid-row: span 3;
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(100vw - 28px, 1160px);
  }

  .nav {
    min-height: 70px;
  }

  .brand img {
    width: 132px;
  }

  .hero {
    min-height: auto;
    padding-top: 104px;
  }

  .hero-inner {
    min-height: 620px;
  }

  .hero-stats,
  .treatment-grid,
  .feature-band .split,
  .differentials-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: auto;
  }

  .gallery-item:nth-child(n) {
    grid-column: 1;
    grid-row: auto;
  }

  .gallery-item img {
    aspect-ratio: 4 / 5;
  }

  .gallery-item:first-child img {
    aspect-ratio: 4 / 4.6;
  }

  .hero-actions,
  .hero-actions .btn,
  .contact-panel .btn {
    width: 100%;
  }

  .image-stack img:first-child,
  .image-stack img:last-child {
    margin: 0;
    width: 100%;
  }

  .floating-whatsapp {
    bottom: 14px;
    left: 14px;
    right: 14px;
    justify-content: center;
  }
}
