* { margin: 0; padding: 0; box-sizing: border-box; }

.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden !important;
  z-index: 10;
}

.slide {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: 11;
  opacity: 0;
}

.slide.active {
  z-index: 12;
  opacity: 1;
}

.slide-text {
  position: absolute;
  top: 80%;
  left: 45%;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  z-index: 13;
  opacity: 0;
}

.slide-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 60px;
  gap: 40px;
}

.left-texts {
  display: flex;
  flex-direction: column;
  flex: 0 0 80%;
}

.right-texts {
  display: flex;
  flex-direction: column;
  flex: 0 0 30%;
}

.text-box {
  line-height: 50px;
  font-weight: 800;
  border-radius: 30px;
  font-size: 65px;
  text-align: left;
  color: white;
}

.text-box2 {
  line-height: 85px;
  font-weight: 800;
  font-size: 80px;
  color: white;
}

.text-box3 {
  padding-top: 40px;
  line-height: 40px;
  font-weight: 800;
  font-size: 75px;
  text-align: left;
  color: white;
}

.text-box5 {
  line-height: 60px;
  font-weight: 800;
  font-size: 95px;
  text-align: left;
  color: white;
}

.red {
  color: black;
  font-weight: 800;
  border-radius: 30px;
  font-size: 80px;
  text-align: left;
}

.white {
  border-radius: 0;
  font-weight: 800;
  font-size: 85px;
  color: white;
}

.white1 {
  border-radius: 0;
  font-weight: 800;
  font-size: 90px;
  color: white;
}

.white2 {
  border-radius: 0;
  font-weight: 800;
  font-size: 96px;
  color: white;
}

.white3 {
  border-radius: 0;
  font-weight: 800;
  font-size: 90px;
  color: white;
}

.description {
  font-size: 20px;
  color: white;
}

.arrow {
  font-size: 3.75rem; /* 60px equivalente */
  color: #FF0030;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-arrow {
  font-size: 60px;
  color: #FF0030;
  text-shadow: 0 0 6px white;
  cursor: pointer;
  animation: floatDown 2s ease-in-out infinite;
  display: inline-block;
  line-height: 1;
  transition: transform 0.3s;
}

@keyframes floatDown {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}

.background-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 9;
}

.dark-slide .background-layer {
  filter: brightness(0.4) grayscale(100%);
}

.slide:nth-child(1) .background-layer {
  background-image: url('../img/CONCRETO\ WEB\ \(13\).png');
}
.slide:nth-child(2) .background-layer {
  background-image: url('../img/CONCRETO\ WEB\ \(12\).png');
}
.slide:nth-child(3) .background-layer {
  background-image: url('../img/CONCRETO\ WEB\ \(11\).png');
}
.slide:nth-child(4) .background-layer {
  background-image: url('../img/prueba/Sin\ título-5.png');
}

.vertical-email {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) rotate(-180deg);
  writing-mode: vertical-rl;
  z-index: 9999;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.3);
}

.vertical-email a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.vertical-email a:hover {
  color: red;
}


@media (max-width: 768px) {
  .slide-text {
    left: 55% !important;
    transform: translate(-50%, -50%);
    width: 85% !important;
  }
  
  .slide-text br{
    display: none;
  }

  .slide-content {
    flex-direction: column;
    padding: 0 20px;
    gap: 20px;
  }

  .left-texts, .right-texts {
    flex: none;
    width: 100%;
    text-align: center;  /* Centra los textos */
  }

  /* Forzar centrado para títulos grandes */
  .text-box, .text-box2, .text-box3, .text-box5,
  .white, .white1, .white2, .white3 {
    font-size: 24px !important;
    line-height: 1.2 !important;
    text-align: center !important; /* Aquí el centrado */
  }

  .description {
    font-size: 20px;
    padding: 0 10px;
    text-align: center; /* También el párrafo centrado */
  }

  .arrow, .scroll-arrow {
    font-size: 36px;
    margin: 15px auto 0 auto;
    display: block;
  }

  .slide:nth-child(3) .slide-text{
    top: 30% !important;
  }
  .slide:nth-child(4) .slide-text {
    top: 30% !important;
  }
  .slide:nth-child(1) .slide-text{
    top: 50% !important;
  }
  .slide:nth-child(2) .slide-text{
    top: 50% !important;
  }

}