/* Galería y tarjetas de locales */
.galeria-locales {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

/* ≥ 640px: 2 columnas */
@media (min-width: 640px) {
  .galeria-locales {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ≥ 900px: 3 columnas */
@media (min-width: 900px) {
  .galeria-locales {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ≥ 1200px: 4 columnas (tope) */
@media (min-width: 1200px) {
  .galeria-locales {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


.card-local {
  border: 1px solid var(--color-borde);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  /* sin cursor: pointer aquí */
}
.card-local:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}


.card-image-container {
  width: 100%;
  aspect-ratio: 400 / 300;
  background-color: #eee;
  position: relative;
  overflow: hidden;
}

.card-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 400 / 300;
  background-color: #eee;
}

/* ========== Carrusel en tarjeta cerrada ========== */
.card-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-carousel-images {
  position: relative;
  width: 100%;
  height: 100%;
}

.card-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-carousel-img.active {
  opacity: 1;
}

/* Botones de navegación */
.card-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.card-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.card-carousel-prev {
  left: 8px;
}

.card-carousel-next {
  right: 8px;
}

/* Indicadores (dots) */
.card-carousel-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.card-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 0;
}

.card-carousel-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

.card-carousel-dot.active {
  background: rgba(255, 255, 255, 1);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-texto-claro);
  margin-bottom: 0.75rem;
  align-self: flex-start;
}
.card-status.disponible { background-color: #2E8B57; }
.card-status.arrendado  { background-color: #D9534F; }
.card-status.pronto     { background-color: #F0AD4E; }

.card-title { font-size: 1.3rem; margin-bottom: 0.5rem; }

.card-specs { margin-bottom: 1.5rem; color: #555; }
.card-specs li { margin-bottom: 0.25rem; }

.card-content .btn { width: 100%; margin-top: auto; }

/* Forzar altura consistente */
.card-local {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

/* Mantener botón alineado abajo */
.card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content .btn {
  width: 100%;
  margin-top: auto;
}
