
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #0d0d0d;
  color: white;
}

.banner-proyectos {
  position: relative;
  background: url('../img/banner.jpg') center/cover no-repeat;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.banner-proyectos .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.contenido-banner {
  position: relative;
  z-index: 2;
}

.contenido-banner h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contenido-banner p {
  color: red;
  margin-bottom: 1.5rem;
}

.btn-proyectos {
  padding: 0.7rem 2rem;
  font-size: 1rem;
  background: red;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background 0.3s;
}

.btn-proyectos:hover {
  background: darkred;
}

/* Estilos generales del contenedor */
.carousel-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  background: #111;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 1rem;
}

.carousel-item {
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
  scroll-snap-align: center;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.carousel-item:hover {
  transform: scale(1.1) rotateY(10deg);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: red;
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dot.active {
  background: red;
}
#proyectos {
  scroll-margin-top: 100px; /* ajusta según el alto de tu header */
  text-align: center;
  margin-top: 2rem;
}
/*video  */


.section {
  position: relative; /* Para que el overlay se posicione sobre el slider */
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  background: linear-gradient(to bottom, rgba(255, 0, 0, 0.2), rgba(0, 0, 0, 0.3)); /* degradado suave */
  pointer-events: none;
  z-index: 20;
}



.splide__slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#image-carousel {
  position: relative;
  z-index: 5; /* Por debajo del overlay */
}
.splide__slide img {
  width: 100%;
  height: 300px; /* Altura de banner */
  object-fit: cover;
  border-radius: 8px; /* Opcional: bordes redondeados */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Opcional: sombra */
}
.section {
  padding: 0;
  margin: 0;
  overflow: hidden; /* Oculta el espacio extra */
}
.splide {
  margin-bottom: 0;
}