:root {
  --pink-off: #fbeaef;
  --pink: #ffb0d0;
  --brown-off: #f0ede9;
  --white-off: #faf9f7;
  --black-off: #333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--white-off);
  color: var(--black-off);
  line-height: 1.6;
}

main {
  display: grid;
  place-items: center;
  height: 100dvh;
}

.building {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  img {
    border-radius: 50%;
    width: 200px;
  }
}

header {
  background: var(--pink-off);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

header h1 {
  color: var(--white-off);
  font-family: "Playfair Display", serif;
  color: var(--black-off);
  margin: 0;
}

nav a {
  margin-left: 2rem;
  text-decoration: none;
  color: #555;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--pink);
}

.hero {
  padding: 4rem 10%;
  background: #f7f5f2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
}

.hero-text {
  max-width: 500px;
}

.hero-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #3b3b3b;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.hero-img {
  width: 400px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

section {
  padding: 4rem 10%;
  text-align: center;
}

section h3 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #444;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  background-color: var(--pink-off);
}

footer {
  background: #f0ede9;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.find-us__map-contact--container {
  display: grid;
  grid-template-columns: 2fr 400px;
  gap: 12px;
  height: 450px;
}

.find-us__map-contact--container iframe {
  width: 100%;
  border: none;
}

a.button,
button {
  text-decoration: none;
  padding: 0.6rem 1.8rem;
  background: var(--pink);
  color: var(--black-off);
  border: none;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

a.button:hover,
button:hover {
  background: var(--pink-off);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

a.button:active,
button:active {
  transform: scale(0.97);
  background: #5c7a7a;
}

.hero-photo {
  object-fit: cover;
  width: 350px;
}

.social-media-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1em;
  gap: 8px;

  a {
    cursor: pointer;
    transition: all 450ms;
    color: var(--black-off);

    svg {
      --size: 33px;
      width: var(--size);
      height: var(--size);
    }
  }

  a:hover {
    color: var(--pink);
    transition: all 350ms;
  }
}

.dentist-photo-container {
  --image-size: 250px;
  position: relative;
  display: flex;
  width: 100%;
  height: 300px;
  justify-content: center;
  align-items: center;

  p {
    position: absolute;
    bottom: -1.5em;
    left: 4.5em;
    width: 150px;
    z-index: 2;
  }

  .img-rounded {
    width: var(--image-size);
    height: var(--image-size);
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
  }

  .back-image-1 {
    position: absolute;
    width: var(--image-size);
    height: var(--image-size);
    bottom: -1em;
    right: -2em;
    border-radius: 100%;
  }
}

/* ids */
#contacto {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

/* carroucel */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-buttons {
  position: absolute;
  top: 0px;
  left: 0px;
  /* background-color: rebeccapurple; */
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}

.carousel-buttons button {
  --size: 35px;
  width: var(--size);
  height: var(--size);
  background-color: #ffffff5e;
  color: #3333339c;
  font-size: 24pt;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  padding: 0;
  margin: 0;
}

/* system */
.text-left {
  text-align: left;
}

/* screen 1320px */
@media (max-width: 1320px) {
  .find-us__map-contact--container {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2em;
    gap: 12px;
  }

  h1 {
    text-align: center;
    width: 100%;
  }

  nav {
    display: none;
  }

  .carousel {
    position: relative;
    overflow: hidden;
    max-width: 350px;
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  }

  .carousel img {
    width: 100%;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
  }

  .find-us__map-contact--container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .find-us__map-contact--container iframe {
    width: 100%;
    border: none;
  }

  .dentist-photo-container {
    --image-size: 200px;

    p {
      position: absolute;
      bottom: 0.7em;
      left: 8em;
      z-index: 2;
      font-size: 11pt;
    }

    .back-image-1 {
      bottom: 4em;
      left: 3em;
    }

    .img-rounded {
      position: absolute;
      bottom: 2em;
      left: -2em;
    }
  }

  .dentist-photo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;

    .dentist-photo-container {
      width: 200px;
      height: 300px;
    }
  }

  section {
    padding: 1em;
  }
}
