/* Location header style */
.location-header {
  color: var(--dark-blue);
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  margin: 0 0 1rem 0;
  letter-spacing: 0.01em;
}

:root {
  --primary: #aedd9f;
  --dark-green: #2e4a29;
  --dark-blue: #0f253e;
  --medium-green: #7eab70;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
  background-color: var(--primary);
  font-size: 1rem;
}

main {
  flex: 7;
  padding: 20px;
  text-align: center;
}

footer {
  flex: 0 0 10vh;
  background-color: var(--medium-green);
}
footer {
  color: white;
}

header {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 0 0 20vh;
  align-items: center;
  justify-content: center;
  background-image: url("assets/Fondo.png");
  background-size: cover;
  background-position: top;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.header-image {
  max-height: 200px;
  max-width: 200px;
}

.boton-turno {
  background-color: var(--medium-green);
  color: var(--dark-blue);
  padding: 0.625rem 1.25rem;
  width: 100%;
  max-width: 320px;
  min-width: 120px;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  font-size: 1.1rem;
  box-sizing: border-box;
  margin: 0.5rem auto;
  display: block;
  transition:
    font-size 0.2s,
    padding 0.2s,
    width 0.2s;
}

.building-photo {
  aspect-ratio: 2 / 1;
  width: 50%;
}

.building-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0.625rem;
  overflow: hidden;
}

.building-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.building-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.building-slide.active {
  opacity: 1;
  z-index: 1;
}

.building-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right;
}

.building-carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(15, 37, 62, 0.55);
  color: #fff;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.building-carousel-button.prev {
  left: 0.5rem;
}

.building-carousel-button.next {
  right: 0.5rem;
}

.building-carousel-button:hover {
  background: rgba(15, 37, 62, 0.75);
}

.location-container {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  gap: 5%;
}

.map-container {
  width: 30%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5%;
}

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

.services-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  gap: 5%;
  margin-top: 20px;
  justify-content: space-around;
}

.services-left-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.accordion {
  width: 18.75rem;
  background-color: #f2f2f2;
  font-family: sans-serif;
  font-size: 1rem;
}

.accordion-header {
  padding: 0.9rem;
  cursor: pointer;
  background-color: #e2f1d8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.accordion-header .arrow {
  transition: transform 0.3s ease;
}

.accordion-header.open .arrow {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  background-color: #fff;
  border-top: 1px solid #ccc;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}

.accordion-content.open {
  padding: 1rem;
  font-size: 1rem;
}

.join-us-image {
  width: 100%;
  max-height: 18.75rem;
  height: auto;
  object-fit: cover;
  border-radius: 0.625rem;
}

.reviews-title {
  margin-top: 1.25rem;
  font-size: 2.2rem;
  color: var(--dark-blue);
}

.carousel-delimiter {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.carousel-wrapper {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 70%;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
  overflow: visible;
  font-size: 1rem;
}

.carousel-container {
  display: flex;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding: 1rem 0;
  scroll-behavior: smooth;
  width: 100%;
  height: auto;
}

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

.review-card {
  flex: 0 0 30%;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 200px;
  max-width: 250px;
}

.review-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.review-card h4 {
  margin: 0;
  font-size: 1.1rem;
}

.stars {
  margin: 0.3rem 0;
  font-size: 1.1rem;
}

.star {
  color: lightgray;
  font-size: 1.1rem;
}

.star.filled {
  color: #f5b301;
}

.review-text {
  font-size: 1rem;
  color: #333;
  text-align: center;
  margin-top: 0.5rem;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.nav-buttons button {
  background-color: #333;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.nav-buttons button:hover {
  background-color: #555;
}

.footer-elements {
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px;
  justify-content: space-around;
  line-height: 1.5;
}

.footer-contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
}

.footer-social-media-container {
  text-align: center;
  font-size: 1.2rem;
}

.footer-social-media-icons-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.footer-social-media-icon {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.footer-social-media-icon:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px) scale(1.05);
}
.footer-social-media-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
@media (max-width: 600px) {
  .location-container,
  .services-container {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  html {
    font-size: 14px;
  }
  .footer-social-media-icon {
    width: 36px;
    height: 36px;
  }
  .footer-social-media-icon img {
    width: 18px;
    height: 18px;
  }
  .reviews-title {
    font-size: 1.5rem;
  }
  .boton-turno {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .accordion-header {
    font-size: 1rem;
  }
  .review-card h4 {
    font-size: 1rem;
  }
  .stars,
  .star {
    font-size: 1rem;
  }
  .review-text {
    font-size: 0.95rem;
  }
  .nav-buttons button {
    font-size: 1rem;
  }
}

.footer-schedules-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .footer-elements {
    flex-direction: column;
  }
  .footer-logo-row,
  .footer-social-row,
  .footer-location-row,
  .footer-contact-row,
  .footer-schedules-row {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  .building-photo,
  .map-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .building-photo {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    height: auto;
  }
  .building-photo img {
    object-position: center;
  }
  .building-photo,
  .building-carousel,
  .building-carousel-track,
  .building-slide,
  .building-slide img {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 240px;
  }
  .building-slide img {
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
    border-radius: 0;
  }
  .services-left-container h2 {
    text-align: center;
    width: 100%;
  }
  .location-header {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 0.75rem;
  }
  header h1 {
    text-align: center;
    width: 100%;
  }
}
