/* ================================================= 
                    Pagina The Red
   ================================================= */
/* 1304
653 */
/************* Seccion inicial - Landind ***************/
.the-red-section {
  margin: 0 15vw;
  justify-content: center;
}

.the-red-h1 {
  text-align: center;
  /* width: 90%; */
  line-height: 0.8;
  font-size: clamp(7vh, 6vw, 9vw) !important;
  z-index: 3;
  letter-spacing: 0.2em;
  font-family: "IDroid Bold";
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.7);
  margin: 0 !important;
  background-image: url("/wp-content/uploads/2025/01/liveAdCentralSoloFinalSinNegro.webp");
  background-size: auto;
  background-position: center;
}

.the-red-h1,
.the-red-p1,
.the-red-p2 {
  position: relative;
  top: -20px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.the-red-p1 {
  color: black;
  font-family: "Gotham Medium";
  font-size: clamp(2vh, 1.2rem, 3.5vw) !important;
  /* font-size: 3vh; */
  text-align: justify;
  background-image: url("/wp-content/uploads/2025/01/fondoRojoAdFinal.png");
  /* background-color: rgba(255, 0, 0, 0.4); */
  opacity: 0;
}
.the-red-p2 {
  font-family: "Gotham Medium";
  font-size: clamp(2vh, 1.2rem, 3.5vw) !important;
  margin: 6vh 0 0 0 !important;
  color: black;
  background-image: url("/wp-content/uploads/2025/01/fondoRojoAdFinal.png");
  /* background-size: auto auto; */
  background-size: cover;
  background-repeat: no-repeat;
  /* background-color: rgba(255, 0, 0, 0.4); */
  opacity: 0;
}

.the-red-p2-s1 {
  padding-top: 5vh;
  padding-left: 1vw;
  margin-bottom: 1vh !important;
  line-height: 0;

  /* font-size: 2.5vh; */
}

.the-red-p2-s2 {
  position: relative;
  /* top: -20px; */
  margin-bottom: 1vh !important;
  padding-left: 12vw;
  /* font-size: 2.5vh; */
}

.the-red-p2-s3 {
  position: relative;
  /* top: -50px; */
  margin-bottom: 1vh !important;
  padding-left: 20vw;
  /*font-size: 2.5vh; */
}

.the-red-p2-s1::before,
.the-red-p2-s2::before,
.the-red-p2-s3::before {
  content: "";
  display: inline-block;
  width: 2.5vh;
  height: 2.5vh;
  background-color: black;
  margin-right: 0.5rem;
}

.the-red-p2-s4 {
  position: relative;
  /* top: -80px; */
  margin-bottom: 1vh !important;
  font-style: italic;
  font-size: clamp(1.1vh, 1.3rem, 2vh) !important;
  background-image: url("/wp-content/uploads/2025/01/fondoRojoAdFinal.png");
  opacity: 0.7;
}

.the-red-bg .wp-block-cover__image-background {
  animation: red-glitch 3.5s infinite steps(1);
}

/****************** VIDEO SECTION *********************/
/* Contenedor del video */
.video-section {
  display: flex !important;
  justify-content: center;
  /*  */
  min-height: 100vh;
  align-items: center;
  background-color: black;
}
#red-video-container {
  position: relative;
  width: 100%;
  /* height: 70vh; */
  display: flex;
  justify-content: center;
  align-items: center;
  /* background-color: black; */
}

#main-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* Barra de información */
.the-red-streaming-bar {
  position: absolute;
  bottom: 10vh;
  /* bottom: 10px; */ /* CHAT GPT */
  left: 0;
  width: 100%;
  background: red;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  font-family: "Gotham Medium", sans-serif;
  z-index: 10;
  color: black;
  transition: opacity 0.6s ease-in-out, bottom 0.6s ease;
}
#red-video-container:hover .the-red-streaming-bar {
  bottom: 15vh;
}
#red-video-container:hover .the-red-streaming-extra-right {
  bottom: 10vh;
}

.the-red-streaming-left {
  flex: 2;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 15px; /* Espacio entre frase e iconos */
}

.the-red-streaming-icons {
  display: flex;
  gap: 15px;
}

.the-red-streaming-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: red; /* Fondo rojo */
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.the-red-streaming-icons a img {
  height: 25px;
  width: 25px;
  border-radius: 20px;
}

.the-red-streaming-icons a svg {
  width: 25px;
  height: 25px;
  fill: black; /* Inicialmente negro */
  transition: fill 0.3s ease;
}

.the-red-streaming-icons a:hover {
  transform: scale(1.05);
  background-color: black; /* Fondo negro en hover */
}

.the-red-streaming-icons a:hover svg {
  fill: red; /* Cambia el color del ícono a rojo */
}

.the-red-streaming-middle {
  flex: 3;
  text-align: right;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
}

/* Frase adicional */
.the-red-streaming-extra-right {
  position: absolute;
  bottom: 5vh; /* calc(11vh - 20px) */ /* Justo debajo de la barra */
  right: 20px;
  background: black; /* Fondo negro solo detrás del texto */
  padding: 5px 10px;
  color: red;
  font-family: "Gotham Medium", sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  line-height: 1;
  transition: opacity 0.6s ease-in-out, bottom 0.6s ease;
}

/* Galería de videos */
.carousel-red-navegation {
  max-height: 18vh;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
}
.video-gallery-container {
  max-height: fit-content;
  display: flex;
  flex-direction: column;
  background-color: black;
  padding: 10px;
  width: 90%;
  position: relative; /* Las flechas se posicionan respecto a esto */
  overflow: hidden;
}

.video-track {
  display: flex;
  gap: 10px;
  transition: transform 0.4s ease;
  height: 100%;
  width: 100%; /* El ancho total se ajustará dinámicamente */
}

.video-item {
  display: flex;
  flex-direction: row;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 10px;
  background: #000;
  padding: 10px;
  transition: transform 0.3s ease-in-out;
  width: calc(33.33% - 10px); /* Show 3 items per row on desktop */
  height: auto; /* Allow height to adjust based on content */
}

.video-item:hover {
  transform: scale(1.05);
}

.video-preview {
  width: auto;
  height: auto; /* Change from 'auto' to '100%' */
  border-radius: 8px;
  object-fit: contain; /* Change from 'cover' to 'contain' */
  max-height: 100%; /* Add this line to ensure the image doesn't exceed the container height */
}

.video-description {
  width: 40%;
  color: #ff0000;
  font-family: "Gotham-book", sans-serif;
  font-size: 1.5vh;
  align-self: flex-start;
  text-align: left;
  line-height: 1.2;
  opacity: 0.8;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: none; /* Remove line clamping to show full description */
  -webkit-box-orient: vertical;
}

/* Flechas */
.carousel-arrow {
  min-height: 100%;
  width: 3.5%;
  background-color: black;
  background-size: cover;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 2rem;
}

.carousel-arrow:hover {
  background-color: rgba(255, 0, 0, 1);
}

.prev-arrow {
  transform: translateX(-1vw);
}

.next-arrow {
  transform: translateX(1vw);
}

/* Safari-specific styles */
@supports (-webkit-touch-callout: none) {
  .video-item {
    display: -webkit-box;
    -webkit-box-orient: horizontal;
    -webkit-box-pack: justify;
  }

  .video-preview {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 55%;
  }

  .video-description {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 40%;
  }
}

/* =====================================================
                      MEDIA QUERIES 
   ===================================================== */
@media (max-aspect-ratio: 1 / 1) {
  .the-red-h1 {
    letter-spacing: 0;
  }
  .video-section {
    background: none;
  }
  #red-video-container {
    height: 100%;
  }
  .the-red-streaming-bar {
    bottom: 2vh;
  }
  #red-video-container:hover .the-red-streaming-bar {
    bottom: 5vh;
  }
}
@media (max-width: 768px) {
  .the-red-streaming-bar {
    flex-wrap: wrap;
    padding: 5px 10px;
  }

  .the-red-streaming-left {
    justify-content: space-around;
  }

  .the-red-streaming-icons a {
    width: 30px;
    height: 30px;
  }

  .the-red-streaming-icons a svg {
    width: 20px;
    height: 20px;
  }

  .the-red-streaming-middle {
    display: none;
  }

  .the-red-streaming-extra-right {
    display: none;
  }

  .video-item {
    width: calc(50% - 10px); /* Show 2 items per row on tablets */
  }

  .video-preview {
    width: 50%;
  }

  .video-description {
    width: 45%;
    font-size: 1.2vh;
  }
}

@media (max-width: 480px) {
  .the-red-h1 {
    width: auto;
    letter-spacing: 0;
  }

  .the-red-section {
    margin: 0 5vw;
  }

  .the-red-p2-s1 {
    padding-top: 0;
  }

  .the-red-streaming-left {
    font-size: 0.6rem;
  }

  .the-red-streaming-icons a {
    width: 25px;
    height: 25px;
  }

  .the-red-streaming-icons a svg {
    width: 15px;
    height: 15px;
  }

  .the-red-streaming-middle {
    font-size: 0.8rem;
  }

  .video-item {
    width: 100%; /* Show 1 item per row on mobile */
    padding: 5px;
  }

  .video-preview {
    width: 50%;
  }

  .video-description {
    width: 45%;
    font-size: 1.2vh;
  }

  #red-video-container:hover .the-red-streaming-bar {
    opacity: 0;
    display: none;
  }
}

@media (max-width: 800px) {
  .the-red-bg {
    background-image: url("/wp-content/themes/kadence/images/red-images/redFondo.webp");
  }
}

