/* ===== GENERAL ===== */
body {
  margin: 0;
  font-family: sans-serif;
  background-color: #f4f7f9;
}

/* ===== CONTENEDOR PRINCIPAL EN ESCRITORIO ===== */
.carrusel-container {
  display: flex;
  height: 35vw;
  width: 100vw;
  overflow: hidden;
  
}

/* ===== PANEL IZQUIERDO ===== */
.carrusel-left {
  width: 25%;
  background: white;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;

}

.logo {
  width: 160px;
  margin-bottom: 10px;
}

.btn-item {
  display: block;
  width: 100%;
  border: none;
  background: none;
}

.btn-item img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.btn-item:hover img {
  transform: scale(1.02);
}

/* ===== PANEL DERECHO (CARRUSEL) ===== */
.carrusel-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  background-color: transparent;
}

.slides {
  position: relative;
  height: 100%;
  max-height: 630px;
  width: 100%;
  overflow: hidden;
}

.slide {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  height: auto;
  width: 100%;
  max-width: none;
  object-fit: cover; /* Usa 'cover' si quieres que llene */
}

.slide.active {
  display: block;
  animation: fade 0.5s ease-in-out;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== FLECHAS DE ESCRITORIO (SI LAS USAS) ===== */
.arrow {
  position: absolute;
  font-size: 2rem;
  background-color: rgba(255, 255, 255, 0.75);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  top: 500px;
}

.arrow.left {
  left: -50px;
}

.arrow.right {
  right: -50px;
}

/* ===== CARRUSEL MÓVIL ===== */
.carrusel-movil {
  display: none;
  position: relative;
  width: 100vw;
  height: 18rem;
  overflow: hidden;
  background-color: #000;
}

.movil-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.movil-slide {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movil-slide.active {
  display: block;
}

.movil-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
}

.movil-arrow.left {
  left: 20px;
}

.movil-arrow.right {
  right: 20px;
}

/* ===== RESPONSIVE: OCULTAR ESCRITORIO Y MOSTRAR MÓVIL ===== */
@media (max-width: 768px) {
  .carrusel-container {
    display: none;
  }

  .carrusel-movil {
    display: block;
  }
}
