/* Carrusel principal */
/* Normalizador */
* {
  box-sizing: border-box;
}

/* Sección principal del carrusel */
.modulo-carrusel {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem 4rem; /* espacio inferior para flechas y puntos */
  position: relative;
  overflow: visible; /* Permite que flechas se vean fuera del flujo */
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin: auto;
  margin-top: auto;
  margin-top: 2rem;
}

.modulo-carrusel h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #ffc107;
}

/* Tarjetas del carrusel */
.card-carrusel {
  width: 100%;
  max-width: 260px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.card-carrusel:hover {
  transform: translateY(-5px);
}

.card-carrusel img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* Contenido interno de la tarjeta */
.card-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  min-height: 45px;
}

.card-info .precio {
  color: #b10000;
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0.5rem 0;
}

.card-info .detalles {
  font-size: 0.82rem;
  color: #444;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.card-info .detalles span {
  white-space: nowrap;
  flex: none;
  min-width: auto;
}


.card-info .badge {
  background-color: #FFD700;
  color: #111;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.8rem;
}



/* Ajustes Swiper */
.swiper-carrusel-nuevos,
.swiper-carrusel-sede {
  padding: 1rem 0 2rem; /* menos padding porque ya se lo dimos al contenedor padre */
  overflow: visible; /* también ayuda en caso de contener las flechas */
}

/* Slides individuales */
.swiper-slide {
  width: auto;
  max-width: 260px;
  height: auto;
  flex-shrink: 0;
}



.swiper-button-next,
.swiper-button-prev {
  width: 40px !important;
  height: 40px !important;
  background-color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 0;
  box-sizing: border-box; /* 👈 asegura que no crezca por padding */
}

/* Posiciones específicas */
.swiper-button-prev {
  left: -20px;
}

.swiper-button-next {
  right: -20px;
}

/* Flechas internas */
.swiper-button-next::after,
.swiper-button-prev::after {
  content: '' !important;
  display: block !important;
  width: 10px;
  height: 10px;
  border: solid #0056d2;
  border-width: 0 2px 2px 0;
  padding: 3px;
}

/* Flecha derecha */
.swiper-button-next::after {
  transform: rotate(-45deg);
}

/* Flecha izquierda */
.swiper-button-prev::after {
  transform: rotate(135deg);
}




.swiper-pagination {
  position: inherit !important;
  bottom: -2px !important;
  z-index: 5;
}



/* Opcional: limitar tamaño en móviles para evitar tarjetas enormes */
@media (max-width: 767px) {
  .card-carrusel {
    max-width: 300px;
    margin: auto;
  }
}