/*  
	Theme Name: Artsurfcamp 
	Version: 1.0 2025
    Sección: Actividades
	Author: hctr
*/

.actividades {
  width: 100%;
}

.actividades--pagina {
  border-top: 0.5px solid var(--color--secundario);
}

.actividades__container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.actividades__header {
  width: 100%;
  padding: 4.5rem 2.2rem 4.1rem 2.2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15%;
}

.actividades__header h2 {
  font-size: var(--size--22);
  font-weight: normal;
  line-height: 1;
  color: var(--color--secundario);
  text-transform: uppercase;
}

.actividades__header p {
  font-size: var(--size--15);
  line-height: 1.2;
  color: var(--color--secundario);
}

.actividades__contenido {
  align-items: stretch;
}

.actividades__card {
  overflow: hidden;
}

.actividades__info {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.actividades__titulo {
  width: 100%;
  padding: 2.8rem 2.4rem 0 3.1rem;
}

.actividades__titulo::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

.actividades__info h3 {
  font-size: var(--size--16);
  font-weight: normal;
  text-transform: uppercase;
  color: var(--color--terciario);
  margin-bottom: 1.4rem;
  padding-bottom: 1.4rem;
  border-bottom: 0.5px solid var(--color--terciario);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.actividades__info h3::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 100%;
  border: 0.1rem solid var(--color--terciario);
  transition: background-color 0.3s ease-in-out;
}

.actividades__card:hover .actividades__info h3::before,
.actividades__card--activo .actividades__info h3::before {
  background-color: var(--color--terciario);
}

.actividades__texto {
  width: 100%;
  max-height: 0;
  padding: 0 2.4rem 0 3.1rem;
  background: linear-gradient(
    to top,
    rgba(233, 109, 71, 1) 0%,
    rgba(233, 109, 71, 0) 100%
  );
  transition:
    max-height 0.4s ease-in-out,
    padding 0.4s ease-in-out;
}

.actividades__card:hover .actividades__texto {
  max-height: 999rem;
  padding: 10rem 2.4rem 2.8rem 3.1rem;
}

.actividades__texto p {
  font-size: var(--size--13);
  line-height: 1.2;
  text-align: justify;
  hyphens: auto;
  color: var(--color--terciario);
}

.actividades__card video {
  width: 100%;
  aspect-ratio: 359 / 496;
  display: block;
}

.actividades__card > video[poster] {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.actividades__card video source {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.actividades__nav {
  width: 100%;
  padding: 2.7rem 2.2rem 2.7rem 2.2rem;
  border-top: 0.5px solid var(--color--secundario);
}

.actividades__navContainer {
  width: 100%;
  padding: 0.7rem 0.7rem 0.5rem 0.7rem;
  background-color: var(--color--secundario);
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
}

.actividades__navContainer .swiper-button-next,
.actividades__navContainer .swiper-button-prev {
  position: relative;
  top: inherit !important;
  bottom: inherit !important;
  left: inherit !important;
  right: inherit !important;
  width: 25px !important;
  height: auto !important;
  aspect-ratio: 19 / 11;
  margin: 0 !important;
}

.actividades__navContainer .swiper-button-next::after {
  content: "";
  width: 25px;
  aspect-ratio: 19 / 11;
  background: url("../img/flecha-blanco.svg");
  background-size: contain;
  background-repeat: no-repeat;
  overflow: hidden;
}

.actividades__navContainer .swiper-button-prev::after {
  content: "";
  width: 25px;
  aspect-ratio: 19 / 11;
  background: url("../img/flecha-blanco.svg");
  background-size: contain;
  background-repeat: no-repeat;
  overflow: hidden;
  transform: rotate(-180deg);
}

@media (max-width: 799px) {
  .actividades__header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
  }
}

/* Swiper transitions for smooth carousel animation */
.actividades .swiper-wrapper {
  transition: transform 0.3s ease-out !important;
}

.actividades .swiper-slide {
  transition: opacity 0.3s ease-out !important;
}
