/* HOME SLIDER */
#home_carousel {
  max-height: 100vh;
}
  #home_carousel .carousel-inner,
  #home_carousel .grid-showcase-item {
    max-height: inherit;
  }
  #home_carousel .carousel-caption {
    bottom: 1.5rem;
  }

#home_carousel .carousel-item img {
  aspect-ratio: 2.666 / 1;
}

@media screen and (max-width:480px) {
  #home_carousel .carousel-caption {
    bottom: 0;
  }
  #home_carousel .carousel-item img {
    aspect-ratio: 0.8849 / 1;
  }
}

ul.switch-tabs {
  list-style: none;
  padding: 0;
  font-size: 0;
  display: block;
  text-align: center;
  border-bottom: 2px solid var(--theme-primary);  
}
  ul.switch-tabs > li {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    display: inline-block;
    background: var(--theme-primary);
    font-weight: 700;
    color: white;
    border: 2px solid var(--theme-primary);
    border-bottom: none;
    cursor: pointer;
    width: auto;
    min-width: 300px;
    text-align: center;
    border-radius: 0.25rem 0.25rem 0 0;
    margin-right: 0.25rem;
    position: relative;    
    top: 2px;
  }  
  ul.switch-tabs > li:not(.active) {
    box-shadow: inset 0 -16px 26px -13px rgba(0,0,0,0.15);
    border: none;
    top: 3px;
  }
  ul.switch-tabs > li.active {
    background: linear-gradient(180deg, white, transparent);
    border-bottom: 3px solid #e5e8e8;
    color: var(--themeblack);
  }

@media screen and (max-width: 480px) {
  ul.switch-tabs > li {
    min-width: 90px;
    font-size: 0.8rem;
    padding: 0.3rem 0.9rem;
  }
}

.tab {
  display: none;
}
  .tab.active {
    display: initial;
  }


/* NUEVO CSS */

.box-slider {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.box-slider h2 {
  padding: 1rem 1.5rem;
  margin-bottom: 0;
}

.box-slider p {
  padding: 0.5rem 1.5rem;
}

/* Estado inicial: oculto abajo */
.box-slider h2,
.box-slider p {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}

.carousel-item.active .box-slider h2 {
  animation: sliderTitleUp 0.5s ease-out forwards;
  animation-delay: 0.1s;
}

.carousel-item.active .box-slider p {
  animation: sliderSubtitleUp 0.5s ease-out forwards;
  animation-delay: 0.25s;
}

@media (max-width:480px) {
}

/* Animación del título */
@keyframes sliderTitleUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación del subtítulo */
@keyframes sliderSubtitleUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}