.carrusel-container {
  overflow: hidden;
  width: 100%;
  height: 100vh;
  position: relative;
}

.carrusel {
  position: relative;
  width: 100%;
  height: 100%;
}

.titulo-general {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* encima del video */
  color: white;
  font-size: clamp(2.5rem, 6.6vw, 4.4rem); /* adaptable */
  font-family: 'Edwardian Script ITC', cursive; /* cursiva/decorativa */
  font-weight: 100;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6); /* mejor contraste */
  pointer-events: none; /* no bloquea clics en el video */
  white-space: nowrap;
}

.titulo-carrusel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3; /* más alto que la capa oscura y que las imágenes */
  color: white;
  font-size: clamp(2.5rem, 6.6vw, 4.4rem);
  font-family: 'Edwardian Script ITC', cursive;
  font-weight: 100;
  text-align: center;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
  pointer-events: none;
  white-space: nowrap;
}



.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fondo regular */
.slide img:not(.logo-superpuesto) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fondo + logo juntos */
.slide-contenido {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 1.5s ease;
}

/* Capa oscura encima de la imagen o video */
.capa-oscura {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.2);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Logo centrado (común a ambos: imagen y video) */
.logo-superpuesto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  transition: transform 1.5s ease;
  width: 40%;
  height: auto;
  z-index: 2;
}

/* =================== VIDEO PARA PANTALLAS VERTICALES =================== */
.video-vertical {
  display: none;
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.video-vertical video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-vertical .logo-superpuesto {
  /* reutiliza el mismo estilo ya definido arriba */
}

/* Mostrar video solo en vertical, ocultar carrusel */
@media (max-width: 1024px) and (orientation: portrait) {
  .carrusel-horizontal {
    display: none;
  }

  .video-vertical {
    display: block;
  }
}
