:root {
  --primary: #17aeb9;
  --primary-dark: #0b8f9b;
  --primary-soft: #e7f9fb;
  --ink: #0b1728;
  --muted: #687385;
  --line: #e7edf1;
  --surface: #ffffff;
  --surface-alt: #f7f9fb;
  --shadow-sm: 0 10px 28px rgba(14, 35, 55, 0.07);
  --shadow-md: 0 18px 50px rgba(14, 35, 55, 0.11);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

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

.section {
  padding: 92px 0;
}

.clinic.section {
  padding-top: 0;
}

.section-label {
  display: inline-block;
  margin-bottom: 11px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.about h2,
.reasons h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 11px 27px rgba(23, 174, 185, 0.24);
}

.button-outline {
  color: var(--primary-dark);
  background: #fff;
  border-color: #74d2d9;
}

.button-outline:hover {
  background: var(--primary-soft);
}

button.button {
  cursor: pointer;
}

.site-header {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid rgba(231, 237, 241, 0.9);
  box-shadow: 0 1px 0 rgba(231, 237, 241, 0.9);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-header .header-brand {
  gap: 14px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 2px;
  background: transparent;
  border: 0;
  font-size: 0;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 17px;
  line-height: 1.1;
}

.brand-text small {
  margin-top: 3px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.main-menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-menu a {
  position: relative;
  padding: 31px 0;
  font-size: 14px;
  font-weight: 700;
}

.main-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 21px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: right 0.2s ease;
}

.main-menu a:hover::after,
.main-menu a.active::after {
  right: 0;
}

.header-cta {
  margin-left: 8px;
}

.menu-button {
  display: none;
  margin-left: auto;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}

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

.hero {
  min-height: 610px;
  position: relative;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  background: url("../img/hero-consultorio.png") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 23, 40, 0.78) 0%, rgba(11, 23, 40, 0.54) 48%, rgba(11, 23, 40, 0.22) 100%),
    linear-gradient(180deg, rgba(11, 23, 40, 0.08) 0%, rgba(11, 23, 40, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: inherit;
}

.hero-copy {
  width: min(560px, 100%);
  margin-right: auto;
  padding: 72px 0 92px;
  color: #fff;
}

.hero .section-label {
  margin-bottom: 16px;
  font-size: 15px;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin-bottom: 23px;
  font-size: clamp(50px, 6vw, 82px);
  line-height: 1.01;
  letter-spacing: -0.06em;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.hero h1 span {
  color: #fff;
}

.hero-copy > p {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  line-height: 1.75;
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.feature-item i {
  color: #fff;
  font-size: 25px;
}

.hero .button-outline {
  color: #0b1728;
  background: rgba(255, 255, 255, 0.95);
  border-color: transparent;
}

.hero .button-outline:hover {
  background: #ffffff;
}

.hero-detail-mobile {
  display: none;
}

.treatments {
  position: relative;
  z-index: 3;
  margin-top: -34px;
  padding-top: 62px;
  background: #fff;
  border-radius: 30px 30px 0 0;
}

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

.treatment-card {
  min-height: 154px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 22px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid #edf1f4;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.23s ease,
    box-shadow 0.23s ease;
}

.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.treatment-card i {
  color: var(--primary);
  font-size: 35px;
}

.treatment-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.treatment-content {
  display: contents;
}

.treatment-description,
.treatment-cta {
  display: none;
}

@media (min-width: 1101px) {
  .treatment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 140px;
  }

  .treatment-card {
    min-height: 196px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 28px 30px;
    text-align: left;
  }

  .treatment-card:nth-child(even) {
    flex-direction: row-reverse;
  }

  .treatment-card i {
    flex-shrink: 0;
    font-size: 40px;
  }

  .treatment-content {
    display: grid;
    gap: 10px;
    width: 100%;
  }

  .treatment-card h3 {
    font-size: 24px;
    line-height: 1.12;
  }

  .treatment-description,
  .treatment-cta {
    display: block;
  }

  .treatment-description {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
  }

  .treatment-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 40px;
    padding: 0 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 10px 20px rgba(23, 174, 185, 0.18);
  }

  .treatment-card:nth-child(even) .treatment-content {
    text-align: right;
    justify-items: end;
  }

  .clinic.section {
    padding: 0;
  }

  .clinic-desktop-only {
    display: block;
  }

  .clinic-mobile-only {
    display: none;
  }

  .clinic-desktop-only .clinic-carousel {
    width: 100%;
    gap: 0;
  }

  .clinic-desktop-only .carousel-frame {
    height: 630px;
    min-height: 630px;
  }

  .clinic-desktop-only .carousel-viewport {
    border-radius: 0;
    box-shadow: none;
  }

  .clinic-desktop-only .carousel-slide {
    height: 630px;
    min-height: 630px;
  }

  .clinic-desktop-only .carousel-slide::before {
    background:
      linear-gradient(90deg, rgba(11, 23, 40, 0.82) 0%, rgba(11, 23, 40, 0.55) 42%, rgba(11, 23, 40, 0.18) 100%),
      linear-gradient(180deg, rgba(11, 23, 40, 0.14) 0%, rgba(11, 23, 40, 0.34) 100%);
  }

  .clinic-desktop-only .carousel-copy {
    position: absolute;
    inset: 50% auto auto 7vw;
    transform: translateY(-50%);
    width: min(520px, calc(100% - 12vw));
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .clinic-desktop-only .carousel-copy h3 {
    margin-bottom: 14px;
    font-size: clamp(32px, 3.3vw, 54px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  }

  .clinic-desktop-only .carousel-copy p {
    max-width: 34ch;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 15px;
    line-height: 1.55;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  }

  .clinic-desktop-only .carousel-cta {
    min-height: 44px;
    padding: 0 18px;
    font-size: 13px;
    box-shadow: 0 14px 32px rgba(20, 148, 165, 0.34);
  }

  .clinic-desktop-only .carousel-nav {
    width: 36px;
    height: 36px;
  }

  .clinic-desktop-only .carousel-prev {
    left: 10px;
  }

  .clinic-desktop-only .carousel-next {
    right: 10px;
  }

  .clinic-desktop-only .carousel-dots {
    margin-top: 6px;
  }
}

.about {
  background: #fff;
}

.doctor-photo-stack {
  grid-area: photo;
  min-height: 0;
  width: min(100%, 300px);
  justify-self: center;
  align-self: center;
  padding: 8px;
  background: linear-gradient(180deg, rgba(23, 174, 185, 0.06), rgba(255, 255, 255, 0.98));
  border: 2px solid rgba(23, 174, 185, 0.18);
  border-radius: 26px;
  box-shadow:
    0 12px 28px rgba(14, 35, 55, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.75) inset;
  overflow: hidden;
}

.doctor-photo-stack img {
  min-height: 0;
  width: 100%;
  max-width: none;
  height: auto;
  margin-inline: auto;
  display: block;
  object-position: center center;
  object-fit: cover;
  border-radius: 18px;
}

.doctor-photo-stack picture,
.doctor-photo-side picture {
  display: block;
  width: 100%;
  height: 100%;
}

.doctor-spotlight-wrap {
  scroll-margin-top: 120px;
  margin-top: 18px;
}

.doctor-spotlight-side {
  display: none;
}

.doctor-spotlight-stack {
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(0, 1.1fr);
  grid-template-areas: "photo copy";
  align-items: start;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.doctor-spotlight-copy-stack {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  margin-inline: auto;
  padding-block: 22px;
  text-align: center;
}

.doctor-spotlight-copy-stack h2 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: clamp(38px, 5.5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--primary);
}

.doctor-spotlight-copy-stack h2 span {
  display: block;
  width: 100%;
}

.doctor-spotlight-role-stack {
  margin: 0;
  margin-top: 18px;
  width: fit-content;
  display: block;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 18px;
  background: rgba(23, 174, 185, 0.1);
  border-radius: 999px;
}

.doctor-spotlight-cta-stack {
  width: fit-content;
  min-height: 52px;
  margin-top: 22px;
  align-self: center;
}

.clinic-carousel {
  display: grid;
  gap: 18px;
}

.carousel-frame {
  position: relative;
}

.carousel-viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  background: #dfe7ec;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  position: relative;
  margin: 0;
  min-height: clamp(360px, 54vw, 640px);
  overflow: hidden;
  scroll-snap-align: start;
  background: #e9eef1;
  isolation: isolate;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 20, 32, 0.8) 0%, rgba(8, 20, 32, 0.42) 42%, rgba(8, 20, 32, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 20, 32, 0.15) 0%, rgba(8, 20, 32, 0.38) 100%);
}

.carousel-slide:hover img {
  transform: scale(1.02);
}

.carousel-copy {
  position: absolute;
  inset: auto auto 0 0;
  z-index: 2;
  width: min(520px, calc(100% - 32px));
  margin: 0 0 18px 18px;
  padding: 22px 22px 18px;
  color: #fff;
  background: rgba(7, 17, 28, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(7, 17, 28, 0.22);
}

.carousel-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #72eff6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.carousel-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.1vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.carousel-copy p {
  max-width: 44ch;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.carousel-cta {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(23, 174, 185, 0.26);
}

.carousel-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(14, 35, 55, 0.18);
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel-nav:hover {
  color: #fff;
  background: var(--primary);
}

.carousel-prev {
  left: 16px;
}

.carousel-next {
  right: 16px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 174, 185, 0.28);
  cursor: pointer;
  transition:
    width 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.carousel-dot.is-active {
  width: 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.clinic-desktop-only {
  display: none;
}

.clinic-mobile-only {
  display: block;
}

@media (min-width: 1101px) {
  .doctor-spotlight-stack {
    display: none !important;
  }

  .doctor-spotlight-side {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "photo copy";
    align-items: center;
    justify-items: center;
    gap: 0;
    margin-top: 72px;
  }

  .doctor-photo-side {
    min-height: 450px;
    justify-self: center;
    width: min(100%, 470px);
    margin-left: 0;
    padding: 10px;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: var(--shadow-md);
    background: linear-gradient(180deg, rgba(23, 174, 185, 0.08), rgba(255, 255, 255, 0.96));
  }

  .doctor-photo-side img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    object-position: center 14%;
    transform: scale(1.1);
    transform-origin: center 18%;
    border-radius: 16px;
  }

  .doctor-spotlight-copy-side {
    grid-area: copy;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    width: min(100%, 240px);
    margin-inline: auto;
    justify-self: center;
    transform: none;
  }

  .doctor-spotlight-copy-side h2 {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: clamp(40px, 5vw, 72px);
    line-height: 0.84;
    letter-spacing: -0.05em;
    color: var(--primary);
    margin-bottom: 6px;
  }

  .doctor-spotlight-copy-side h2 span {
    display: block;
    width: 100%;
  }

  .doctor-spotlight-role-side {
    margin: 0 0 8px;
    width: fit-content;
    display: block;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    padding: 7px 18px;
    background: rgba(23, 174, 185, 0.1);
    border-radius: 999px;
  }

  .doctor-spotlight-cta-side {
    min-height: 60px;
    min-width: 220px;
    margin-top: 6px;
    border-radius: 999px;
    box-shadow: 0 14px 28px rgba(23, 174, 185, 0.18);
  }

  .clinic-desktop-only {
    display: block;
  }

  .clinic-mobile-only {
    display: none;
  }
}

.location-section {
  background: linear-gradient(180deg, #fff, #f8fafb);
  scroll-margin-top: 120px;
  padding-top: 150px;
  margin-top: 32px;
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.location-copy,
.location-map {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.location-copy h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.location-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.route-panel {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

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

.route-actions .button {
  flex: 1 1 220px;
}

.route-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.route-status[data-kind="success"] {
  color: var(--primary-dark);
}

.route-status[data-kind="error"] {
  color: #b54708;
}

.clinic-map {
  width: 100%;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(23, 174, 185, 0.08), rgba(11, 143, 155, 0.03)),
    #eef3f5;
}

.clinic-map.leaflet-container {
  min-height: 420px;
  font: inherit;
}

.clinic-map .leaflet-control-attribution {
  padding: 2px 7px;
  color: rgba(17, 24, 39, 0.72);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  font-size: 10px;
  line-height: 1.3;
}

.clinic-map .leaflet-control-attribution a {
  color: inherit;
}

.clinic-map .leaflet-control-attribution,
.clinic-map .leaflet-control-attribution a {
  text-decoration: none;
}

.clinic-map .leaflet-control-attribution:hover {
  background: rgba(255, 255, 255, 0.88);
}

.testimonials {
  background: #fff;
}

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

.testimonial-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.quote {
  display: block;
  color: var(--primary);
  font-size: 34px;
  line-height: 1;
}

.testimonial-card p {
  min-height: 94px;
  color: var(--muted);
  line-height: 1.7;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.stars {
  color: var(--primary);
  letter-spacing: 2px;
}

.signature {
  color: var(--muted);
  font-family: "Times New Roman", serif;
  font-style: italic;
  font-size: 13px;
}

.contact-layout,
.intro-layout,
.location-layout {
  display: grid;
  gap: 22px;
}

.contact-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.intro-layout,
.location-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.56fr);
  align-items: start;
}

.contact-card,
.form-card,
.service-aside,
.location-card,
.comments-card {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.contact-card h2,
.form-card h2,
.location-card h2,
.comments-card h2,
.intro-copy h2,
.service-aside h3 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.contact-name,
.contact-detail,
.form-help,
.intro-copy p,
.location-card p {
  color: var(--muted);
  line-height: 1.75;
}

.contact-name {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.contact-detail {
  margin: 0 0 10px;
}

.contact-detail a {
  color: var(--primary-dark);
  font-weight: 700;
}

.contact-card .button {
  margin-top: 20px;
  width: fit-content;
}

.form-help {
  margin-bottom: 18px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(23, 174, 185, 0.7);
  box-shadow: 0 0 0 4px rgba(23, 174, 185, 0.12);
}

.field-full {
  grid-column: 1 / -1;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.checkbox input {
  margin-top: 3px;
  accent-color: var(--primary);
}

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

.service-list li {
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface-alt);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.service-aside .button {
  width: 100%;
}

.map-frame {
  margin-top: 22px;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: saturate(0.95) contrast(0.96);
}

.comments-section {
  background: linear-gradient(180deg, #f8fafb, #fff);
}

.comments-card {
  max-width: 980px;
  margin-inline: auto;
  background: #f7f7f7;
}

.footer-grid-simple {
  grid-template-columns: 1.3fr 1fr 1fr;
}

.footer-info-simple {
  justify-self: end;
}

.contact-banner {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 25px 28px;
  background: linear-gradient(135deg, #ddf7f9, #effafb);
  border: 1px solid #9cdee4;
  border-radius: 21px;
}

.contact-icon {
  width: 59px;
  height: 59px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  font-size: 26px;
}

.contact-copy {
  flex: 1;
}

.contact-copy h2 {
  margin-bottom: 2px;
  font-size: 24px;
}

.contact-copy p {
  margin: 0;
  color: var(--muted);
}

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

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  padding: 30px 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: center;
  gap: 24px;
}

.footer-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.footer-info i {
  color: var(--primary);
  font-size: 24px;
}

.copyright {
  padding: 19px 20px 25px;
  color: #8993a0;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
}

.whatsapp-floating {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  width: 61px;
  height: 61px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 11px 30px rgba(37, 211, 102, 0.4);
  font-size: 31px;
  transition: transform 0.2s ease;
}

.whatsapp-floating:hover {
  transform: translateY(-3px) scale(1.03);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 23, 40, 0.48);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
  border: 1px solid rgba(231, 237, 241, 0.92);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.modal-dialog-compact {
  width: min(560px, 100%);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.modal-header {
  padding-right: 48px;
  margin-bottom: 22px;
}

.modal-header h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.modal-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.modal-form {
  display: grid;
  gap: 16px;
}

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

.modal-form .field-full {
  grid-column: 1 / -1;
}

.modal-submit {
  justify-self: start;
}

.contact-methods {
  display: grid;
  gap: 12px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.contact-method:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 174, 185, 0.28);
  box-shadow: var(--shadow-md);
}

.contact-method i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 14px;
  font-size: 18px;
}

.contact-method strong,
.contact-method small {
  display: block;
}

.contact-method small {
  margin-top: 3px;
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .modal {
    padding: 12px;
  }

  .modal-dialog {
    padding: 22px;
    border-radius: 22px;
  }

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

  .modal-submit {
    width: 100%;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

  .header-cta {
    display: none;
  }

  .main-menu {
    position: fixed;
    inset: 82px 16px auto;
    margin: 0;
    padding: 13px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: 0.22s ease;
  }

  .main-menu.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-menu a {
    padding: 14px 0;
  }

  .main-menu a::after {
    bottom: 8px;
  }

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

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

  .location-section {
    padding-top: 28px;
    margin-top: 12px;
  }

  .location-copy,
  .location-map {
    padding: 20px 18px;
    border-radius: 20px;
  }

  .location-copy h2 {
    margin-bottom: 10px;
    font-size: clamp(24px, 6.6vw, 32px);
  }

  .location-copy p {
    font-size: 14px;
    line-height: 1.55;
  }

  .route-panel {
    gap: 12px;
    margin-top: 16px;
  }

  .route-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .route-actions .button {
    width: 100%;
    min-height: 46px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .route-actions .button i {
    margin-right: 6px;
  }

  .route-status {
    font-size: 12px;
    line-height: 1.45;
  }

  .clinic-map,
  .clinic-map.leaflet-container {
    min-height: 280px;
  }

  .doctor-spotlight-side {
    grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1.28fr);
    gap: 14px;
  }

  .doctor-photo-side {
    width: min(100%, 220px);
    aspect-ratio: 3 / 4.8;
    min-height: 0;
    padding: 8px;
    overflow: hidden;
    border: 2px solid rgba(23, 174, 185, 0.18);
    border-radius: 26px;
    box-shadow:
      0 12px 28px rgba(14, 35, 55, 0.10),
      0 0 0 1px rgba(255, 255, 255, 0.75) inset;
    background: linear-gradient(180deg, rgba(23, 174, 185, 0.06), rgba(255, 255, 255, 0.98));
  }

  .doctor-photo-side img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 16%;
    transform: scale(1.08);
    transform-origin: center 18%;
    border-radius: 18px;
  }

  .contact-layout,
  .intro-layout,
  .location-layout {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-grid-simple {
    grid-template-columns: 1fr;
  }

  .footer-info-simple {
    justify-self: start;
  }
}

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

  .site-header .header-brand .brand-icon {
    width: 55px;
    height: 55px;
  }

  .site-header .header-brand .brand-text strong {
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  .section {
    padding: 65px 0;
  }

  .clinic.section {
    padding-top: 0;
  }

  .hero {
    min-height: 650px;
    align-items: start;
    background: url("../img/hero_mob_v2.png") center center / cover no-repeat;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 17, 28, 0.82) 0%, rgba(9, 29, 42, 0.7) 42%, rgba(9, 29, 42, 0.42) 100%),
      linear-gradient(135deg, rgba(23, 174, 185, 0.08) 0%, rgba(23, 174, 185, 0.02) 38%, transparent 65%);
  }

  .hero-copy {
    max-width: 560px;
    min-height: 650px;
    display: flex;
    flex-direction: column;
    padding: 44px 0 50px;
  }

  .hero .section-label {
    margin-bottom: 12px;
    color: #7cf0f6;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.22em;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(41px, 11.6vw, 60px);
    line-height: 0.95;
    letter-spacing: -0.065em;
  }

  .hero h1 span {
    color: #ffffff;
  }

  .hero-copy > p {
    max-width: 460px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.48;
    color: rgba(255, 255, 255, 0.96);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-actions {
    margin-top: auto;
    margin-bottom: 0;
  }

  .hero .button-primary {
    min-height: 58px;
    padding: 0 20px;
    font-size: 16px;
    background: linear-gradient(135deg, #19bcc8, #1494a5);
    box-shadow: 0 14px 32px rgba(20, 148, 165, 0.34);
  }

  .hero .button-primary i {
    font-size: 18px;
  }

  .hero-copy > p {
    display: none;
  }

  .hero-features {
    display: none;
  }

  .hero-detail-mobile {
    display: block;
    padding: 0 0 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), #ffffff 38%);
  }

  .hero-detail-mobile p {
    margin: 0;
    padding: 16px 0 4px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.55;
  }

  .treatments {
    margin-top: 0;
    padding-top: 42px;
  }

  .about {
    padding-top: 28px;
  }

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

  .clinic-carousel {
    gap: 12px;
  }

  .carousel-slide {
    min-height: 420px;
  }

  .carousel-copy {
    width: calc(100% - 24px);
    margin: 0 0 12px 12px;
    padding: 18px 18px 16px;
    border-radius: 18px;
  }

  .carousel-copy h3 {
    font-size: clamp(20px, 6.2vw, 30px);
  }

  .carousel-copy p {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .carousel-nav {
    width: 42px;
    height: 42px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .carousel-dots {
    gap: 8px;
  }

  .treatment-card {
    min-height: 132px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 22px 20px;
    text-align: left;
  }

  .treatment-card:nth-child(even) {
    flex-direction: row-reverse;
  }

  .treatment-card i {
    flex-shrink: 0;
    font-size: 34px;
  }

  .treatment-content {
    display: grid;
    gap: 8px;
    width: 100%;
  }

  .treatment-card h3 {
    font-size: 18px;
    line-height: 1.1;
  }

  .treatment-description {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
  }

  .treatment-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 38px;
    padding: 0 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(23, 174, 185, 0.22);
  }

  .treatment-card:nth-child(even) .treatment-content {
    text-align: right;
    justify-items: end;
  }

  .treatment-card:nth-child(even) {
    min-height: 132px;
  }

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

  .route-actions {
    flex-direction: column;
  }

  .route-actions .button {
    width: 100%;
  }

  .location-section {
    padding-top: 22px;
    margin-top: 8px;
  }

  .location-copy,
  .location-map {
    padding: 18px 16px;
  }

  .location-copy h2 {
    font-size: clamp(22px, 7.2vw, 30px);
  }

  .route-actions {
    grid-template-columns: 1fr;
  }

  .clinic-map,
  .clinic-map.leaflet-container {
    min-height: 240px;
  }

  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .contact-actions {
    width: 100%;
    flex-direction: column;
  }

  .contact-actions .button {
    width: 100%;
  }
}

@media (max-width: 470px) {
  .hero-copy {
    padding: 34px 0 42px;
  }

  .hero .section-label {
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(36px, 12.8vw, 52px);
  }

  .hero-copy > p {
    display: none;
  }

  .hero-features {
    display: none;
  }

  .doctor-spotlight-stack {
    grid-template-columns: minmax(170px, 0.86fr) minmax(0, 1.14fr);
    gap: 12px;
  }

  .doctor-photo-stack {
    width: min(100%, 220px);
    aspect-ratio: 3 / 4.8;
    min-height: 0;
    padding: 8px;
  }

  .doctor-photo-stack img {
    width: 100%;
    height: 100%;
    object-position: center 16%;
    transform: scale(1.08);
    transform-origin: center 18%;
  }

  .hero-detail-mobile p {
    font-size: 14px;
    line-height: 1.5;
  }

  .contact-card,
  .form-card,
  .service-aside,
  .location-card,
  .comments-card,
  .modal-dialog {
    padding: 20px;
    border-radius: 20px;
  }

  .testimonial-card {
    padding: 22px;
  }
}
