/* === SECCIÓN BASE === */
.travel-packages-section {
  width: 100%;
}

/* === GRID DESKTOP === */
.tcp-desktop-grid {
  z-index: 10;
  position: relative;
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  grid-auto-rows: 425px;
  gap: 35px;
  align-items: stretch;
}

/* === HEADER === */
.tcp-header {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  padding-right: 30px;
}

.tcp-title {
  font-size: 2rem;
  font-weight: 700;
  color: #202C2E;
  margin-bottom: 12px;
}

.tcp-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  max-width: 90%;
}

/* === FILA 1 === */
.tcp-card:nth-child(2) { grid-column: span 4; } /* grande */
.tcp-card:nth-child(3) { grid-column: span 3; } /* pequeño */

/* === FILA 2 === */
.tcp-card:nth-child(4) { grid-column: span 4; } /* grande */
.tcp-card:nth-child(5) { grid-column: span 3; } /* pequeño */
.tcp-card:nth-child(6) { grid-column: span 4; } /* grande */

/* === REPETICIÓN AUTOMÁTICA CADA 6 ELEMENTOS (ajustada desde el 7º) === */
.tcp-card:nth-child(6n + 7),
.tcp-card:nth-child(6n + 9),
.tcp-card:nth-child(6n + 11) {
  grid-column: span 4; /* grandes */
}

.tcp-card:nth-child(6n + 8),
.tcp-card:nth-child(6n + 10) {
  grid-column: span 3; /* pequeños */
}

/* === CARD GENERAL === */
.tcp-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: transform 0.3s ease;
}

.tcp-card:hover { transform: translateY(-6px); }

.tcp-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === BADGE === */
.tcp-badge {
  background: #311A42;
  color: #fff;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  position: absolute;
  top: 15px;
  left: 16px;
  z-index: 3;
}

/* === FAVORITO === */
.favorite-btn {
  position: absolute;
  top: 15px;
  right: 16px;
  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;
  z-index: 3;
  transition: background 0.2s ease;
}

.favorite-btn svg {
  width: 18px;
  height: 18px;
  fill: #777;
}

.favorite-btn.active {
  background-color: #E30614;
}

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

/* === OVERLAY === */
.tcp-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 18px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  z-index: 2;
}

/* === TEXTO === */
.tcp-name {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #fff;
  position: relative;
}

.tcp-name::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 120px;
  height: 1px;
  background: #fff;
}

.tcp-location {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

.tcp-meta {
  font-size: 16px;
  font-weight: 700;
  color: #f0f0f0;
  opacity: 0.95;
  margin-top: 12px;
  margin-bottom: 0;
}

/* === BOTÓN CTA === */
.tcp-btn {
  position: absolute;
  bottom: 24px;
  right: 50px;
  background: #E78C85;
  color: #fff;
  border-radius: 999px;
  padding: 7px 18px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

/* === SLIDER MOBILE === */
.tcp-mobile-slider {
  display: none;
}

@media (max-width: 768px) {
  .tcp-desktop-grid { display: none !important; }
  .tcp-mobile-slider { display: block !important; }

  .tcp-mobile-slider .swiper-slide {
    height: 510px !important;
  }
}
