/* Slider General */
body {
  background-color: #333;
  color: rgba(255, 255, 255, 0.7);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.slider-container {
  display: flex;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  flex-direction: row;
}

.slider-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  flex: 1;
  position: relative;
}

/* Primera Parte */
.first-section {
  background-color: #333;
  width: 35%;
  padding: 20px;
  text-align: center;
  position: relative;
  z-index: 3;
}

.logo {
  width: 150px;
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.description {
  font-size: 1em;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.visit-button {
  background-color: #FF0000;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

/* Contenedor del slider que cubre la segunda y tercera sección */
.slider-background {
  position: absolute;
  top: 0;
  left: 35%;
  width: 65%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

/* Slider de imágenes */
.slider-images {
  display: flex;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  animation: fade-slide 18s infinite;
  justify-content: center;
  align-items: center;
}

.slider-image {
  width: 105%;
  height: 105%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  position: absolute;
  opacity: 0;
  transition: opacity 3s ease-in-out;
}

.slider-image:nth-child(1) { animation: fade 18s infinite 0s; }
.slider-image:nth-child(2) { animation: fade 18s infinite 6s; }
.slider-image:nth-child(3) { animation: fade 18s infinite 12s; }

@keyframes fade {
  0% { opacity: 0; }
  10% { opacity: 1; }
  30% { opacity: 1; }
  40% { opacity: 0; }
  100% { opacity: 0; }
}

/* Fondo oscuro en la segunda parte para mejorar legibilidad */
.second-section {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  width: 65%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.about-company {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
}

.about-text {
  max-height: 180px;
  overflow-y: scroll;
  margin-bottom: 20px;
  font-size: 1em;
  line-height: 1.5;
  padding-right: 10px;
}

/* Estilos del scrollbar más delgado */
.second-section .about-text::-webkit-scrollbar {
  width: 6px;
}

.second-section .about-text::-webkit-scrollbar-track {
  background-color: #000;
}

.second-section .about-text::-webkit-scrollbar-thumb {
  background-color: #FF0000;
  border-radius: 10px;
}

.second-section .about-text::-webkit-scrollbar-thumb:hover {
  background-color: #FF5555;
}

.company-address {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left; /* Alinear a la izquierda */
  width: 100%;
}

.contact-icons {
  font-size: 1.5em;
  display: flex;
  justify-content: flex-start; /* Alinear los iconos a la izquierda */
  width: 100%;
}

.contact-icons .icon {
  margin-right: 10px;
}

/* Tercera Parte */
.third-section {
  width: 65%;
  height: 100%;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Responsividad */
@media (max-width: 768px) {
  .slider-container {
    flex-direction: column;
  }
  .first-section {
    width: 100%;
    height: auto;
  }
  .slider-background {
    left: 0;
    width: 100%;
  }
  .second-section {
    width: 100%;
    height: auto;
  }
  .third-section {
    width: 100%;
    height: auto;
  }
  .slider-image {
    width: 100%;
    height: 100%;
  }
}