/*  
	Theme Name: Artsurfcamp 
	Version: 1.0 2025
    Página: Home
	Author: hctr
*/

/* Home - Nosotros */

.homeNosotros {
  width: 100%;
  border-bottom: 0.5px solid var(--color--secundario);
}

.homeNosotros__container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.homeNosotros__contenido {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  border-top: 0.5px solid var(--color--secundario);
}

.homeNosotros__imagenes {
  flex: 1 0.45 45%;
}

.homeNosotros__imagenes picture {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.homeNosotros__imagenes picture.activo {
  z-index: 0;
  opacity: 1;
}

.homeNosotros__imagenes picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.homeNosotros__lista {
  flex: 1 0.55 55%;
  display: flex;
  flex-direction: column;
  list-style: none;
  counter-reset: homeNosotros;
}

.homeNosotros__lista li {
  width: 100%;
  padding: 3.1rem 3.1rem 3.1rem 30%;
  border-bottom: 0.5px solid var(--color--secundario);
}

.homeNosotros__lista li:last-child {
  border-bottom: 0;
}

.homeNosotros__lista li.activo {
  color: var(--color--terciario);
}

.homeNosotros__lista li:before {
  counter-increment: homeNosotros;
  content: counter(homeNosotros, decimal-leading-zero) ".";
  position: absolute;
  top: 50%;
  left: 7.9rem;
  transform: translateY(-50%);
  font-size: var(--size--43);
}

.homeNosotros__lista li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--color--secundario);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  z-index: -1;
}

.homeNosotros__lista li.activo::after {
  height: 100%;
  opacity: 1;
}

.homeNosotros__lista h3 {
  margin-bottom: 0.5rem;
}

.homeNosotros__lista h3 span {
  font-size: var(--size--20);
  font-weight: normal;
  text-transform: uppercase;
}

.homeNosotros__lista li.activo h3 span {
  color: var(--color--terciario);
}

.homeNosotros__lista p {
  font-size: var(--size--15);
  opacity: 0;
}

.homeNosotros__lista li.activo p {
  color: var(--color--terciario);
  opacity: 1;
}

@media (max-width: 799px) {
  .homeNosotros__contenido {
    flex-direction: column-reverse;
  }
  .homeNosotros__imagenes {
    width: 100%;
    aspect-ratio: 1 / 1;
  }
  .homeNosotros__lista {
    min-height: 11.6rem;
    max-height: 11.6rem;
  }
  .homeNosotros__lista li {
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    background-color: rgb(247, 245, 245);
    padding: 3.1rem 3.1rem 3.1rem 10%;
    border: 0;
  }
  .homeNosotros__lista li.activo {
    position: relative;
    z-index: 1;
  }
  .homeNosotros__lista li::after {
    display: none;
  }
  .homeNosotros__lista li::before,
  .homeNosotros__lista li.activo::before {
    font-size: var(--size--20);
    top: 3.1rem;
    left: 2.2rem;
    color: var(--color--secundario);
    transform: none;
  }
  .homeNosotros__lista li h3 {
    margin-bottom: 1rem;
  }
  .homeNosotros__lista li h3 span,
  .homeNosotros__lista li.activo h3 span {
    color: var(--color--secundario);
  }
  .homeNosotros__lista li p,
  .homeNosotros__lista li.activo p {
    opacity: 1;
    color: var(--color--secundario);
  }
}

/* Home - Campamentos */

.homeCampa {
  width: 100%;
}

.homeCampa__container {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.homeCampa__tipos {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.homeCampa__card {
  flex: 1;
  max-width: 25%;
  display: block;
  overflow: hidden;
}

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

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

.homeCampa__infoTop {
  width: 100%;
  padding: 2.8rem 2.4rem 0 3.1rem;
  display: flex;
  flex-direction: column;
}

.homeCampa__infoTop 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;
}

.homeCampa__infoTop h3::before {
  content: "";
  display: block;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 100%;
  border: 0.1rem solid var(--color--terciario);
}

.homeCampa__card:hover .homeCampa__infoTop h3::before {
  background-color: var(--color--terciario);
}

.homeCampa__infoTop button {
  appearance: none;
  border: none;
  padding: 0.7rem 0.7rem 0.5rem 0.7rem;
  background-color: var(--color--secundario);
  color: var(--color--terciario);
  text-decoration: none;
  font-size: var(--size--13);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.homeCampa__infoTop button:after {
  content: "";
  width: 2.5rem;
  aspect-ratio: 19 / 11;
  background: url("../img/flecha-blanco.svg");
  background-size: contain;
  background-repeat: no-repeat;
  overflow: hidden;
}

.homeCampa__infoBottom {
  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%
  );
}

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

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

.homeCampa__card video {
  width: 100%;
  aspect-ratio: 359 / 496;
  display: block;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
}

.homeCampa__card:hover video,
.homeCampa__card video.activo {
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
}

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

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

@media (max-width: 799px) {
  .homeCampa__tipos {
    flex-wrap: wrap;
  }
  .homeCampa__card {
    flex: 1 0.5 50%;
    max-width: 50%;
  }
}
@media (max-width: 639px) {
  .homeCampa__header {
    flex-direction: column;
    align-items: center;
    row-gap: 2rem;
  }
}

/* Home - Instalaciones */

.homeInsta {
  width: 100%;
  height: 150dvh;
  border-top: 1px solid var(--color--secundario);
}

.homeInsta__container {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.homeInsta__container h2 {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3.4rem 3.2rem 0 3.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.homeInsta__contenido {
  position: sticky;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.homeInsta__contenido h3 span {
  font-size: var(--size--70);
  font-weight: normal;
  line-height: 1;
  color: var(--color--secundario);
  text-transform: uppercase;
  text-align: center;
}

.homeInsta__imagen {
  position: absolute;
  z-index: -1;
  top: 0%;
  left: 0%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /*transform: translate(-50%, -50%);*/
}

.homeInsta__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* Home - Próximas Fechas */

.homeFechas {
  width: 100%;
}

.homeFechas__container {
  width: 100%;
  padding-bottom: 13rem;
  display: flex;
  flex-direction: column;
}

.homeFechas__contenido {
  width: 100%;
  display: flex;
  flex-direction: column;
  list-style: none;
  border-top: 0.5px solid var(--color--secundario);
}

.homeFechas__contenido li {
  width: 100%;
  padding: 2rem 2.2rem 0.5rem 2.2rem;
  border-bottom: 0.5px solid var(--color--secundario);
  display: flex;
  justify-content: center;
  align-items: center;
}

.homeFechas__contenido li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--color--secundario);
  opacity: 0;
  transition: all 0.3s ease-in-out;
  z-index: -1;
}

.homeFechas__contenido li:hover::after {
  height: 100%;
  opacity: 1;
}

.homeFechas__contenido li a {
  z-index: 1;
  display: block;
  width: 100%;
  font-size: var(--size--70);
  font-weight: normal;
  line-height: 1.3;
  color: var(--color--secundario);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
}

.homeFechas__contenido li a span {
  color: var(--color--secundario);
}

.homeFechas__contenido li:hover a span {
  color: var(--color--terciario);
}

.homeFechas__contenido li video {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 0;
  width: 30rem;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  transform: translate(0, -50%);
  opacity: 0;
}

.homeFechas__contenido li:hover video {
  opacity: 1;
}

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

@media (max-width: 799px) {
  .homeFechas__contenido li video {
    display: none;
  }
  .homeFechas__contenido li a {
    font-size: var(--size--45);
  }
}
