/* --- ESTILOS DE LA SECCIÓN SOBRE NOSOTROS --- */

.about-us {
  margin-top: 22rem;
  position: relative;
  min-height: 2200px;
  position: relative;
  background-size: contain;
  background-image: var(--boranico-amarillo-bg);
}

.cloud-separator {
  position: absolute;
  top: -20%;
  background-image: var(--clouds-separator-bg);
  width: 100%;
  height: 1024px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position-x: center;
}

.cloud-separator:first-child {
  background-position: 2rem center;

  @media screen and (max-width: 1024px) {
    background-position: -35rem center;
  }
}

.right-leaf {
  position: absolute;
  right: -20px;
  top: 50rem;
  object-fit: contain;
  object-position: 100% 100%;
  width: 100%;
  height: fit-content;
  max-width: 350px;
  transition: transform 2.2s ease-out;
}
.left-leaf {
  position: absolute;
  left: -400px;
  top: 30rem;
  object-fit: contain;
  object-position: 100% 100%;
  width: 100%;
  height: fit-content;
  max-width: 650px;
  transition: transform 2.5s ease-out;
}

.about-us-title {
  font-family: "Anton", "Anton SC", sans-serif;
  font-size: 5.5rem;
  text-align: center;
  color: #fff;
  margin-bottom: 2rem !important;
  text-transform: uppercase;
  line-height: 1.2;
}

.about-desc {
  font-family: "Oswald", Arial, sans-serif;
  font-size: 2.3rem;
  text-align: center;
  color: #fff;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.2;
}

.about-us-content {
  width: 70%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 2rem 1rem;
  padding-top: 34rem;
  margin-top: 26rem;

  @media screen and (max-width: 1024px) {
    width: 90%;
  }
}

.about-us-images {
  position: relative;
  height: auto;
  min-height: 400px;
  margin: 2rem auto;
  max-width: 1200px;
  width: 100%;
}

.about-img {
  position: absolute;
  border-radius: 24px;
  /* object-fit: cover; */
  transition: transform 0.3s;
}

/* Imagen 1: arriba a la izquierda */
.about-img-1 {
  width: 45%;
  aspect-ratio: 8/5;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Imagen 2: centro, encima */
.about-img-2 {
  width: 45%;
  aspect-ratio: 32/21;
  top: 45.33%;
  left: 25%;
  z-index: 2;
}

/* Imagen 3: abajo a la derecha */
.about-img-3 {
  width: 45%;
  aspect-ratio: 8/5;
  top: 90.5%;
  left: 60.17%;
  z-index: 3;
}

/* Media queries para ajustar tamaños en diferentes resoluciones */

.transition-icon {
  position: sticky;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Estilos para centrar la botella dentro del círculo de líneas */
.circle-lines {
  position: absolute;
  left: 100%;
  transform: translate(-50%, -30%);
  height: 100%;
  width: 100%;
  min-height: 800px;
  max-width: 800px;
  margin-inline: auto;
}

.transition-wrapper {
  clip-path: inset(0 0 0 0);
  height: 300vh;
  padding-top: 16rem;
  width: 100%;
  background-size: contain;
  background-image: var(--boranico-amarillo-bg);
  position: relative;
}
.bottle {
  position: absolute;
  top: 30%;
  left: 100%;
  transform: translate(-50%, 0%);
  z-index: 2;
  width: auto;
  height: auto;
  max-width: 200px; /* Tamaño inicial */
  transform-origin: 55%;
}

.about-us-past {
  transition: background-color 12s ease;
  min-height: 75vh;
  max-height: 1000px;
  background-color: rgba(247, 247, 247, 1);
}
.about-us-past.visible {
  background-color: rgba(256, 256, 256, 0);
}

.about-us-past-title {
  opacity: 0;

  &.split-animate-about-past {
    opacity: 1;
  }
}

.about-us-past {
  .about-us-past-title {
    text-align: center;
    font-size: 8rem;
    font-family: "Anton", "Anton SC", sans-serif;
    color: #ffc000;
    padding-top: 8rem;
  }
}

.zaro-carousel-section {
  text-align: center;
  margin: 6rem 0 40px 0;
  position: relative;
  opacity: 0;
  transition: opacity 2s ease-in;

  &.visible {
    opacity: 1;
  }
}

.zaro-carousel {
  position: relative;
  /* overflow-x: hidden; */
  width: 100%;
  max-width: 1140px;
  min-height: 390px;
  margin: 0 auto;
}

.carousel-arrow {
  position: absolute;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #ffc000;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;

  @media screen and (min-width: 1024px) {
    opacity: 0;
  }

  &:focus {
    background-color: unset !important;
  }

  &.right {
    bottom: -22px;
    right: 20%;
    transform: rotate(180deg);
  }

  &.left {
    bottom: -22px;
    left: 20%;
  }
}

.carousel-arrow:hover {
  color: #bfa100;
  background-color: unset !important;
}

.carousel-track {
  display: flex;
  justify-content: start;
  transition: transform 0.5s;
  will-change: transform;
}

.carousel-card-set {
  display: flex;
}

.carousel-card {
  flex: 0 0 33.3333%;
  box-sizing: border-box;
  padding: 10px;
  min-width: 0;
}

.carousel-card:nth-child(1) {
  transform: rotate(-5deg) scale(1.08) translate(24px, 24px);
}

.carousel-card:nth-child(2) {
  transform: rotate(0deg) scale(1.08);
  z-index: 1;
}
.carousel-card:nth-child(3) {
  transform: rotate(5deg) translate(-24px, 24px);
}

.carousel-card-frame {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.18);
  padding: 16px 12px 48px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 360px;
  min-height: 350px;
  position: relative;
}

.carousel-card-frame img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.carousel-title {
  color: #ffc000;
  font-size: 2.2rem;
  font-family: "Anton SC", sans-serif;
  font-weight: bold;
  margin-top: 2rem;
  letter-spacing: 2px;
}

@media screen and (max-width: 900px) {
  .about-us {
    min-height: 1740px;
  }
  .about-us-content {
    padding-top: 36rem;
  }
  .right-leaf.animate {
    transform: translateX(200px);
  }

  .about-us-title {
    font-size: 3.5rem;
  }

  .about-desc {
    font-size: 1.8rem;
  }

  .left-leaf {
    left: -50%;
  }

  .about-us-past {
    max-height: unset;
    height: unset;
  }

  .left-leaf.animate {
    transform: translateX(-45%);
  }

  .about-us-images {
    position: relative;
    min-height: 380px; /* Ajusta según el tamaño de tus imágenes */
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .about-img-1,
  .about-img-2,
  .about-img-3 {
    border-radius: 12px;
    position: absolute;
    width: 70%;
    margin: 0;
    left: 0;
    top: 0;
  }

  .about-img-1 {
    z-index: 1;
    left: 5%;
    top: 0;
  }
  .about-img-2 {
    z-index: 2;
    left: 20%;
    top: 22%;
  }
  .about-img-3 {
    z-index: 3;
    left: 35%;
    top: 44%;
  }

  .zaro-carousel-section {
    .carousel-title {
      margin-top: 4rem;
    }
  }

  .carousel-arrow {
    &.right {
      bottom: -85px;
      right: 20%;
      transform: rotate(180deg);
    }

    &.left {
      bottom: -90px;
      left: 20%;
    }
  }

  .circle-lines {
    position: absolute;
    left: 100%;
    transform: translate(-50%, -30%);
    height: 100%;
    width: 400px;
    min-height: 400px;
    margin-inline: auto;
  }

  .bottle {
    width: 90px;
    transform-origin: 38%;
  }
  .about-us-past-title {
    font-size: 5rem !important;
  }

  .transition-wrapper {
    height: 130vh;
    padding-top: 18rem;
  }
}

@media (max-width: 480px) {
  .about-img-1,
  .about-img-2,
  .about-img-3 {
    width: 90%;
  }
}
@media (max-width: 1200px) {
  .about-img-1,
  .about-img-2,
  .about-img-3 {
    width: 60%;
  }
}
