/* === SLIDER 3D CON CSS PURO (INTERACTIVO) === */
/* === Carrusel con estilo moderno === */
.carrusel {
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
  padding: 20px;
}

.carrusel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: all 0.6s ease;
  flex-wrap: wrap; /* IMPORTANTE para móvil */
}

/* === Tarjeta principal === */
.carrusel-item {
  position: relative;
  width: 100%;
  max-width: 330px;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.5s ease;
  transform: scale(0.9) translateY(30px);
  cursor: pointer;
  background: #000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.carrusel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

/* === Overlay con info === */
.carrusel-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(235, 201, 143, 0.663), transparent);
  color: #575454;
  text-align: left;
}

.carrusel-info h3 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 1000;
  margin-bottom: 8px;
  letter-spacing: 1px;
  color: #f98012;
}

.carrusel-info p {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 14px;
  color: #070707f8;
}

/* === Botón === */
.btn-card {
  display: inline-block;
  background: #ffb300;
  color: #000;
  padding: 10px 22px;
  border-radius: 25px;
  font-weight: 600;
  transition: .3s ease;
}

/* Hover */
.carrusel-item:hover {
  transform: scale(1.1) translateY(-15px);
  opacity: 1;
  z-index: 3;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.carrusel-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.carrusel-container:hover .carrusel-item:not(:hover) {
  transform: scale(0.85) translateY(40px);
  opacity: 0.5;
  z-index: 1;
}

/* LINK como card */
.carrusel-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ========================= */
/* RESPONSIVE MOBILE FIXES   */
/* ========================= */

@media (max-width: 768px) {

  .carrusel {
    padding: 10px;
  }

  .carrusel-container {
    gap: 20px;
  }

  .carrusel-item {
    transform: scale(1) translateY(0);
    height: 420px;
  }

  /* Desactiva efectos exagerados en móvil */
  .carrusel-item:hover {
    transform: scale(1.03) translateY(-5px);
  }

  .carrusel-container:hover .carrusel-item:not(:hover) {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {

  .carrusel-item {
    height: 380px;
  }

  .carrusel-info h3 {
    font-size: 1.5rem;
  }

  .carrusel-info p {
    font-size: 1rem;
  }
}
