/* Introduction and Budget Sections */
.introduccion-marcos,
.presupuesto-marcos {
  max-width: 700px;
  margin: 90px auto 0;
  text-align: center;
}

.introduccion-marcos {
  padding: 2rem 0;
  border-top: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.introduccion-marcos p {
  margin-bottom: 0;
}

.presupuesto-marcos {
  padding: 2rem 1.2rem;
}

.presupuesto-marcos h2 {
  margin-bottom: 2rem;
}

.presupuesto-marcos ol {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 1.5rem;
  text-align: left;
}

.presupuesto-marcos li {
  line-height: 1.6;
}

/* Carousel Section */
.carrusel-marcos {
  margin-top: 100px;
  text-align: center;
}

.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
}

.frames {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2vw;
}

.frame {
  width: 20vw;
  height: 25vw;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame img {
  animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.frame {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
}
.left, .right {
  width: 15vw;
  height: 20vw;
  opacity: 0.4;
  transform: scale(0.9);
}

.center {
  width: 25vw;
  height: 30vw;
  opacity: 1;
  transform: scale(1);
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.titulo-marco {
  font-weight: bold;
  font-size: 20px;
}

/* Media Queries */
@media (max-width: 1024px) {
  .marcos {
    margin-right: 1rem;
    margin-left: 1rem;
  }

  .introduccion-marcos {
    margin-top: 50px;
    padding: 1.2rem 0;
    max-width: 90%;
  }

  .presupuesto-marcos {
    margin-top: 50px;
    padding: 1.5rem 1rem;
  }

  .presupuesto-marcos h2 {
    font-size: 30px;
    margin-bottom: 1rem;
  }

  .presupuesto-marcos ol {
    font-size: 20px;
    gap: 1rem;
  }

  .carrusel-marcos {
    margin-top: 60px;
  }

  .frames {
    gap: 1.5vw;
  }

  .frame {
    width: 22vw;
    height: 28vw;
  }

  .left, .right {
    width: 17vw;
    height: 22vw;
  }

  .center {
    width: 27vw;
    height: 32vw;
  }

  .carousel-btn {
    font-size: 1.7rem;
  }

  .titulo-marco,
  p {
    font-size: 20px;
    line-height: 1.5;
  }
}

@media (max-width: 768px) {
  .frames {
    gap: 1vw;
  }

  .frame {
    width: 25vw;
    height: 30vw;
  }

  .left, .right {
    width: 20vw;
    height: 25vw;
  }

  .center {
    width: 30vw;
    height: 35vw;
  }

  .carousel-btn {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 0px;
  }
  .marcos {
    margin: 0px;
  }
  h2 {
    font-size: 1rem;
  }
  .introduccion-marcos,
  p {
    font-size: 0.9rem;
  }

  .presupuesto-marcos {
    margin-top: 30px;
    padding: 0.8rem 0.3rem;
    max-width: 98%;
  }

  .introduccion-marcos {
    padding: 0.8rem 0.3rem;
  }

  .presupuesto-marcos {
    padding: 0.8rem 0.3rem;
  }

  .presupuesto-marcos h2 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .presupuesto-marcos ol {
    gap: 0.8rem;
    padding-left: 1.5rem;
    font-size: 0.8rem;
  }

  .carrusel-marcos {
    margin-top: 30px;
  }

  .carousel-container {
    gap: 1vw;
  }

  .frames {
    gap: 0.5vw;
  }

  .frame {
    width: 28vw;
    height: 35vw;
  }

  .left, .right {
    width: 23vw;
    height: 28vw;
  }

  .center {
    width: 33vw;
    height: 40vw;
  }

  .carousel-btn {
    font-size: 1rem;
  }

  .titulo-marco {
    font-size: 14px;
  }
}