/* === BLOQUE PRINCIPAL === */
.travel-packages-block {
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.travel-destinations__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* === CARD === */
.travel-package-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.travel-package-card:hover {
  transform: translateY(-4px);
}

/* === CONTENEDOR IMAGEN === */
.travel-package-card .card-thumb {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
}

.travel-package-card .card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.travel-package-card:hover .card-thumb img {
  transform: scale(1.05);
}

/* === TAG === */
.travel-package-card .card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #311A42;
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  z-index: 3;
}

/* === FAVORITO === */
.travel-package-card .favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 3;
}

.travel-package-card .favorite-btn svg {
  width: 18px;
  height: 18px;
  fill: #777;
  transition: fill 0.3s ease;
}

.travel-package-card .favorite-btn.active svg {
  fill: #E63946;
}

/* === OVERLAY === */
.travel-package-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  color: #fff;
  padding: 28px 15px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  z-index: 2;
  box-sizing: border-box;
}

/* === CONTENEDOR IZQUIERDO === */
.travel-package-card .card-left {
  width: 100%;
  position: relative;
  padding-right:  0px;
}

/* === TÍTULO === */
.travel-package-card .card-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFFFFF;
  position: relative;
  display: block;
}

@media(max-width: 768px) {
  .travel-package-card .card-title { 
  text-align: left;
  }
}

.travel-package-card .card-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 140px;
  height: 1px;
  background: #fff;
}

/* === INFO === */
.travel-package-card .card-info {
  font-size: 14px;
  color: #f0f0f0;
  opacity: 0.95;
}

@media(max-width: 768px) {
  .travel-package-card .card-info {
    text-align: left;
  }
}

.travel-package-card .card-info p {
  margin-bottom: 15px;
  gap: 6px;
  display: flex;
  align-items: center;
}

.travel-package-card .card-info span {
  font-size: 14px;
  font-weight: 700;
}

/* === BOTÓN === */
.travel-package-card .card-button {
  position: absolute;
  bottom: 24px;
  right: 22px;
  background: #E78C85;
  color: #fff;
  border-radius: 999px;
  padding: 7px 18px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.travel-package-card .card-button:hover {
  background: #ff9b95;
  transform: scale(1.05);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .travel-destinations__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .travel-package-card .card-overlay {
    padding: 20px 15px 30px;
  }

  .travel-package-card .card-left {
    padding-right: 0;
  }

  .travel-package-card .card-button {
    position: static;
    align-self: flex-start;
    margin-top: 12px;
  }
}

.favorite-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.favorite-btn svg path {
  fill: #000;
  transition: fill 0.3s ease;
}

/* Estado activo (fondo rojo, corazón blanco) */
.favorite-btn.active {
  background-color: #E30614;
  border-color: #E30614;
  transform: scale(1.1);
}

.favorite-btn.active svg path {
  fill: #fff;
}

/* Animación suave opcional */
.favorite-btn.active svg {
  animation: pulse 0.25s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}
