@font-face {
  font-family: LatoLocal;
  src: url("../fonts/lato-v23-latin-300.woff") format("woff");
  font-weight: 300;
}

@font-face {
  font-family: LatoLocal;
  src: url("../fonts/lato-v23-latin-regular.woff") format("woff");
  font-weight: 400;
}

@font-face {
  font-family: LatoLocal;
  src: url("../fonts/lato-v23-latin-700.woff") format("woff");
  font-weight: 700;
}

@font-face {
  font-family: FontAwesomeLocal;
  src: url("../fonts/fontawesome-webfont.woff") format("woff");
  font-weight: 400;
}

:root {
  --gold: #a98970;
  --dark: #111;
  --panel: #222;
  --muted: #e9e9e9;
  --white: #fff;
  --header-h: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--dark);
  color: var(--muted);
  font-family: LatoLocal, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

section {
  scroll-margin-top: var(--header-h);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  min-height: var(--header-h);
  padding: 0 max(24px, calc((100vw - 1170px) / 2));
  background: rgba(0, 0, 0, 0.75);
  box-shadow: 10px 2px 10px rgba(0, 0, 0, 0.1);
}

.brand img {
  width: 214px;
}

.main-nav {
  display: flex;
  justify-content: flex-end;
  gap: 34px;
  color: var(--white);
  font-size: 16px;
}

.main-nav a,
.social-icon {
  transition: color 0.2s ease;
}

.main-nav a:hover,
.social-icon:hover {
  color: var(--gold);
}

.social-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: 28px;
  color: var(--white);
}

.social-icon {
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  color: var(--white);
  font-family: FontAwesomeLocal;
  font-size: 18px;
  line-height: 1;
}

.social-icon.facebook::before {
  content: "\f09a";
}

.social-icon.instagram::before {
  content: "\f16d";
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  background: #333;
  overflow: hidden;
}

.hero-slides,
.hero-slide,
.hero-slide img {
  width: 100%;
  height: 100vh;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  object-fit: cover;
  object-position: center top;
}

.hero-action {
  position: absolute;
  right: max(34px, calc((100vw - 1170px) / 2));
  bottom: 110px;
}

.outline-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 16px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.outline-button {
  border: 1px solid var(--white);
  color: var(--white);
}

.outline-button:hover {
  background: var(--white);
  color: #000;
}

.primary-button {
  border: 0;
  border-radius: 29px;
  background: var(--gold);
  color: var(--white);
  cursor: pointer;
}

.primary-button:hover {
  background: #333;
}

.section-dark {
  background: var(--dark);
}

.about {
  padding: 112px 0 70px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 457px;
  gap: 30px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 30px;
  line-height: 1.35;
}

.section-copy h1,
.gallery h2,
.technology h2,
.contact-form h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.25;
  font-weight: 300;
}

.section-copy p {
  margin: 0 0 18px;
  font-size: 18px;
}

.portrait {
  width: 457px;
  height: 577px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 6px 6px 8px rgba(0, 0, 0, 0.1);
}

.about-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.flag {
  width: 35px;
  height: 35px;
  object-fit: cover;
  border-radius: 999px;
}

.procedures-band {
  min-height: 305px;
  background: linear-gradient(rgba(51, 51, 51, 0.34), rgba(51, 51, 51, 0.34)), url("../images/12dr-luis-13-u94970-fr.png") center / cover no-repeat;
  background-attachment: fixed;
}

.procedures-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 72px 0 28px;
}

.procedures-heading h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 300;
  text-transform: lowercase;
}

.procedures-heading span,
.technology span {
  color: var(--gold);
  text-transform: uppercase;
}

.procedure-slider {
  padding: 0 0 60px;
}

.procedure-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 34px;
  align-items: start;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(4, 72px);
  gap: 12px;
  justify-content: center;
  padding-top: 30px;
}

.thumb {
  width: 74px;
  height: 74px;
  padding: 0;
  border: 3px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}

.thumb.is-active {
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(169, 137, 112, 0.18);
}

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

.procedure-stage {
  position: relative;
}

.procedure-stage > img {
  width: 664px;
  max-width: 100%;
  aspect-ratio: 1.84 / 1;
  object-fit: cover;
  border: 2px solid #999;
  border-radius: 10px;
  background: #000;
}

.procedure-caption {
  margin-top: 10px;
  color: var(--white);
}

.procedure-caption h3 {
  margin: 0;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.procedure-caption p {
  margin: 0;
  font-size: 18px;
}

.section-rule {
  width: 302px;
  height: 3px;
  margin: 56px auto 0;
  background: var(--gold);
}

.gallery {
  padding: 0 0 88px;
  text-align: center;
}

.gallery h2 {
  margin-bottom: 0;
}

.subhead {
  margin: 0 0 55px;
  text-transform: uppercase;
  font-size: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 23px 30px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 360 / 260;
  object-fit: cover;
}

.testimonials {
  padding: 118px 0 94px;
  background: linear-gradient(rgba(51, 51, 51, 0.33), rgba(51, 51, 51, 0.33)), url("../images/12dr-luis-cirugia-u97736-fr.png") center / cover no-repeat;
  text-align: center;
}

.quote-mark {
  display: inline-grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 76px;
  line-height: 1;
}

.testimonial {
  display: none;
  min-height: 245px;
}

.testimonial.is-active {
  display: block;
}

.testimonial p {
  max-width: 945px;
  margin: 28px auto 20px;
  color: var(--white);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.38;
}

.testimonial h3 {
  margin: 0;
  color: var(--white);
  font-size: 18px;
}

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

.dots button {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
}

.dots button.is-active {
  background: var(--gold);
}

.technology {
  padding: 116px 0 110px;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 75px;
  align-items: center;
}

.technology h2 {
  color: var(--white);
  font-size: clamp(31px, 3.8vw, 39px);
  line-height: 1.1;
  text-align: center;
}

.technology h3 {
  margin: 0 0 18px;
  color: var(--white);
  text-align: center;
  font-size: 23px;
  font-weight: 300;
}

.technology p {
  margin: 0 0 18px;
  color: var(--white);
  text-align: center;
  font-size: 18px;
}

.tech-grid img {
  width: 360px;
  height: 496px;
  object-fit: cover;
}

.contact-hero {
  display: grid;
  place-items: center;
  min-height: 300px;
  background: linear-gradient(rgba(34, 34, 34, 0.16), rgba(34, 34, 34, 0.16)), url("../images/doctor-luis-cirugano-plstico-u94351-fr.png") center / cover no-repeat;
}

.contact-hero h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(52px, 7vw, 90px);
  line-height: 1;
  font-weight: 300;
}

.contact {
  padding: 70px 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
  gap: 42px;
}

.form-heading {
  grid-column: 1 / -1;
  text-align: center;
}

.form-heading p {
  margin: 0 0 26px;
  font-style: italic;
  font-weight: 700;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 27px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #e9e9e9;
  border-radius: 3px;
  padding: 15px;
  background: rgba(251, 251, 251, 0.9);
  color: #222;
  font: inherit;
}

.contact-form textarea,
.contact-form button,
.form-status {
  grid-column: 1 / -1;
}

.contact-form textarea {
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  text-align: center;
}

.contact-info h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-weight: 300;
  text-align: center;
}

.contact-info a,
.contact-info div {
  display: block;
  margin-bottom: 22px;
  color: var(--white);
  text-align: center;
}

.contact-info strong,
.contact-info span {
  display: block;
}

.map {
  width: 100%;
  height: 410px;
  margin-top: 62px;
  border: 0;
  display: block;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 64px;
  height: 64px;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
}

.site-footer {
  padding: 70px 20px 26px;
  background: #333;
  text-align: center;
  color: #999;
}

.site-footer img {
  width: 200px;
  margin: 0 auto 20px;
}

.site-footer p {
  margin: 0 0 20px;
  font-size: 23px;
  line-height: 1.45;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
}

.site-footer small {
  color: #999;
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 980px) {
  :root {
    --header-h: 76px;
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    min-height: var(--header-h);
  }

  .brand img {
    width: 180px;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 20px auto;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 24px;
    background: rgba(34, 34, 34, 0.94);
  }

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

  .main-nav a {
    width: 100%;
    padding: 15px;
    text-align: center;
    font-size: 26px;
  }

  .menu-toggle {
    display: inline-grid;
    gap: 6px;
    width: 48px;
    height: 48px;
    padding: 12px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
  }

  .social-links {
    display: none;
  }

  .hero,
  .hero-slides,
  .hero-slide,
  .hero-slide img {
    min-height: 76vh;
    height: 76vh;
  }

  .about-grid,
  .procedure-layout,
  .tech-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portrait,
  .tech-grid img {
    width: min(100%, 555px);
    height: auto;
    margin: 0 auto;
  }

  .procedures-heading {
    align-items: flex-start;
  }

  .thumbs {
    grid-template-columns: repeat(6, 72px);
    justify-content: start;
    overflow-x: auto;
    padding: 8px 0;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 30px, 420px);
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 0 15px;
  }

  .brand img {
    width: 150px;
  }

  .hero,
  .hero-slides,
  .hero-slide,
  .hero-slide img {
    min-height: 672px;
    height: 86vh;
  }

  .hero-action {
    right: 50%;
    bottom: 58px;
    transform: translateX(50%);
  }

  .about {
    padding-top: 56px;
  }

  .eyebrow {
    font-size: 18px;
  }

  .section-copy h1,
  .gallery h2,
  .technology h2,
  .contact-form h2 {
    font-size: 30px;
  }

  .section-copy p,
  .procedure-caption p,
  .technology p {
    font-size: 16px;
  }

  .procedures-band {
    min-height: 186px;
    padding: 50px 0;
  }

  .procedures-heading {
    display: block;
    text-align: center;
    padding: 50px 0 24px;
  }

  .procedures-heading .primary-button {
    margin-top: 26px;
  }

  .procedures-band {
    background-attachment: scroll;
  }

  .thumbs {
    grid-template-columns: repeat(3, 72px);
    justify-content: center;
    overflow: visible;
  }

  .procedure-stage > img {
    aspect-ratio: 320 / 219;
  }

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

  .testimonials {
    padding: 64px 0;
  }

  .testimonial {
    min-height: 230px;
  }

  .testimonial p {
    font-size: 20px;
  }

  .technology,
  .contact {
    padding-top: 58px;
  }

  .contact-hero {
    min-height: 250px;
  }

  .contact-info {
    text-align: center;
  }

  .map {
    height: 330px;
  }

  .site-footer p {
    font-size: 20px;
  }
}
