/* CONTENEDOR PRINCIPAL */
.slidernew-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  flex-wrap: wrap;
  position: relative;
  flex-direction: row;
}

/* SLIDER PRINCIPAL */
.slidernew-main {
  flex: 3;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 500px;
  min-height: 300px;
  width: 100%;
}

.slidernew-slide {
  display: none;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  text-decoration: none;
  height: 100%;
}

.slidernew-slide.active {
  display: block;
  position: relative;
  opacity: 1;
  height: 100%;
}

.slidernew-slide.fade-in {
  animation: fadeIn 0.5s ease;
}

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

.slidernew-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.slidernew-slide:hover img {
  transform: scale(1.02);
}

.slidernew-caption {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  max-width: 90%;
}

.slidernew-title {
  font-size: 40px;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
  margin: 0;
  color: #fff;
}

.slidernew-meta {
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.85;
}

/* THUMBNAILS Y BOTONES */
.slidernew-thumbs {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}

.slidernew-nav {
  background: #ffa800;
  border: none;
  color: #000;
  font-weight: bold;
  padding: 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slidernew-nav:hover {
  background: #ffcc40;
}

.slidernew-thumb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.slidernew-thumb-list::-webkit-scrollbar {
  width: 6px;
}

.slidernew-thumb-list::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 6px;
}

.slidernew-thumb {
  display: flex;
  align-items: center;
  background: #222;
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  color: #fff;
}

.slidernew-thumb.active,
.slidernew-thumb:hover {
  background: #333;
}

.slidernew-thumb img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 6px;
}

.slidernew-thumb p {
  font-size: 14px;
  margin: 0;
  color: #fff;
}

/* BULLETS PARA MÓVIL */
.slidernew-bullets {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  padding-bottom: 10px;
}

.slidernew-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.slidernew-bullet.active {
  background-color: #ffa800;
  transform: scale(1.3);
  box-shadow: 0 0 0 4px rgba(255, 168, 0, 0.2);
}

.slidernew-bullet:hover {
  background-color: #ffcc40;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .slidernew-container {
    width: 100%;
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .slidernew-container {
    flex-direction: column;
  }
  .slidernew-main,
  .slidernew-thumbs {
    width: 100%;
  }
  .slidernew-main {
    height: 350px;
    min-height: 350px;
  }
  .slidernew-slide {
    min-height: 350px;
  }
  .slidernew-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
  }
  .slidernew-title {
    font-size: 20px;
  }
  .slidernew-thumb img {
    width: 50px;
    height: 50px;
  }
  .slidernew-thumbs {
    display: none;
  }
  .slidernew-bullets {
    display: flex;
  }
}
