/* ---------- General ---------- */
body {
    padding-top: 80px;
}

/*para poner la imagen de servicios*/
.hero {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 4vw;
  padding: 1rem 2rem;
  border-radius: 8px;
  margin: 0;
  color: white;
  text-shadow:
    3px 3px 10px rgba(0, 0, 0, 0.9),
    0px 0px 4px rgba(0, 0, 0, 0.7);
}

.hero-content .subtext {
  font-size: 1vw;
  margin-top: 0.5rem;
  font-weight: 400;
  color: #f1f1f1;
}

/* -------- Pantallas medianas: hasta 990px -------- */
@media (max-width: 990px) {
  .hero {
    height: 200px;
  }

  .hero-content h1 {
    font-size: 6vw;
  }

  .hero-content .subtext {
    font-size: 1vw;
  }
}

/* -------- Pantallas pequeñas: hasta 480px -------- */
@media (max-width: 480px) {
  .hero {
    height: 150px;
  }

  .hero-content h1 {
    font-size: 7vw;
    padding: 0.6rem 1.2rem;
  }

  .hero-content .subtext {
    font-size: 3vw;
  }
}


/*los textos de servicios*/

.servicios {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  align-items: center;
}

/* Contenedor del texto */
.servicios .contenido {
  flex: 1 1 60%;
}

.lista-servicios {
  list-style: disc;
  padding-left: 20px;
}

.lista-servicios li {
  color: #000; /* texto */
  position: relative;
  margin-bottom: 15px;
}

.lista-servicios li::marker {
  color: orange; /* el punto/viñeta en naranja */
}

/* Contenedor del carrusel */
.servicios .imagen {
  flex: 1 1 35%;
}

/* Línea para alinear flechas e imagen */
.linea {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Flechas */
.flecha {
  cursor: pointer;
  font-size: 2rem;
  user-select: none;
  color: #333;
  padding: 10px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.flecha:hover {
  background-color: #ccc;
}

/* Contenedor de las imágenes (carrusel) */
.contenedor-carrusel {
  width: 300px;
  height: 200px;
  overflow: hidden;
  position: relative;
}

/* Imágenes dentro del carrusel */
.imagen-carrusel {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
}

.imagen-carrusel.activa {
  display: block;
  position: relative;
  opacity: 1;
}

/* ----------- MEDIANAS ----------- */
@media (max-width: 990px) {
  .servicios {
    flex-wrap: wrap;
  }
  .servicios .contenido,
  .servicios .imagen {
    flex: 1 1 100%;
  }
  .contenedor-carrusel {
    width: 100%;
    max-width: 400px;
    height: 180px;
    margin: 0 auto;
  }
}

/* ----------- PEQUEÑAS ----------- */
@media (max-width: 480px) {
  .servicios {
    flex-direction: column;
    padding: 10px;
  }

  .servicios .contenido,
  .servicios .imagen {
    flex: 1 1 100%;
    width: 100%;
  }

  .contenedor-carrusel {
    width: 100%;
    max-width: 100%;
    height: 150px;
  }

  .flecha {
    font-size: 1.5rem;
    padding: 6px;
  }

  .linea {
    gap: 5px;
  }
}
