/* ============================================================
   PACKAGE CARDS — Paquetes desde Supabase
   ============================================================ */

.pkg-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

.pkg-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* ── Destacado ── */
.pkg-card--destacado {
  box-shadow: var(--shadow-card), 0 0 0 2px var(--color-red, #A92915);
}

.pkg-card--destacado:hover {
  box-shadow: var(--shadow-card-hover), 0 0 0 2px var(--color-red, #A92915);
}

.pkg-card__pin {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  background: var(--color-red, #A92915);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Imagen ── */
.pkg-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.pkg-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.pkg-card:hover .pkg-card__image img {
  transform: scale(1.05);
}

.pkg-card__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 40%,
    rgba(49, 49, 49, 0.7) 100%
  );
}

.pkg-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
}

.pkg-card__dest-info {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
}

.pkg-card__country-label {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.pkg-card__dest-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.1;
}

/* ── Body ── */
.pkg-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.pkg-card__meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.pkg-card__fecha,
.pkg-card__avion {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(49, 49, 49, 0.55);
  font-family: var(--font-body);
}

/* ── Highlights ── */
.pkg-card__section-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-red);
  font-weight: 600;
  margin-bottom: 8px;
}

.pkg-card__highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pkg-card__highlight {
  font-size: 13px;
  color: rgba(49, 49, 49, 0.75);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.pkg-card__highlight::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--color-red);
}

.pkg-card__highlight--hidden {
  display: none;
}

.pkg-card__toggle {
  background: none;
  border: none;
  color: var(--color-red);
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 4px 0 0;
  text-align: left;
  transition: opacity var(--transition-base);
}

.pkg-card__toggle:hover { opacity: 0.75; }

.pkg-card__toggle-count {
  color: rgba(49, 49, 49, 0.45);
  font-weight: 400;
}

/* ── Incluye ── */
.pkg-card__incluye-text {
  font-size: 13px;
  color: rgba(49, 49, 49, 0.65);
  line-height: 1.6;
  font-weight: 300;
}

/* ── CTA ── */
.pkg-card__cta {
  display: block;
  margin-top: auto;
  padding: 12px 20px;
  background: var(--color-red);
  color: var(--color-white);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base);
  text-decoration: none;
}

.pkg-card__cta:hover { background: var(--color-red-dark); }

/* ============================================================
   HOTEL CARDS — Grilla asimétrica
   ============================================================ */

.hotel-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-auto-rows: 280px;
  gap: 8px;
}

.hotel-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.hotel-card--featured {
  grid-row: span 2;
}

.hotel-card__sitio-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}

.hotel-card--clickable::after {
  content: '↗';
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  z-index: 6;
}

.hotel-card--clickable:hover::after {
  color: #fff;
  transform: translate(2px, -2px);
}

.hotel-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: brightness(0.75);
}

.hotel-card:hover .hotel-card__img {
  transform: scale(1.04);
  filter: brightness(0.6);
}

.hotel-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(49, 49, 49, 0.75) 0%,
    transparent 55%
  );
}

.hotel-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
}

.hotel-card__stars {
  display: block;
  color: var(--color-gold);
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.hotel-card__name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 4px;
}

.hotel-card--featured .hotel-card__name {
  font-size: 32px;
}

.hotel-card__city {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 1px;
}

/* ============================================================
   SKELETON — Estado de carga
   ============================================================ */

/* Animación de shimmer */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.pkg-card--skeleton {
  pointer-events: none;
}

.pkg-card__skeleton-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(
    90deg,
    var(--color-secondary-light) 25%,
    #e8e8e8 50%,
    var(--color-secondary-light) 75%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.pkg-card__skeleton-line {
  height: 14px;
  border-radius: 4px;
  margin-block: var(--space-2);
  background: linear-gradient(
    90deg,
    var(--color-secondary-light) 25%,
    #e8e8e8 50%,
    var(--color-secondary-light) 75%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.pkg-card__skeleton-line--title { width: 60%; height: 20px; }
.pkg-card__skeleton-line--short { width: 40%; }

/* ============================================================
   ERROR — Fallo de conexión
   ============================================================ */

.pkg-error {
  grid-column: 1 / -1;   /* ocupa todo el ancho del grid */
  text-align: center;
  padding: var(--space-12) var(--space-6);
}

.pkg-error__text {
  color: var(--color-graphite);
  font-family: var(--font-body);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.pkg-error__retry {
  background: var(--color-red);
  color: #fff;
  border: none;
  padding: var(--space-2) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: 2px;
  transition: opacity 0.2s;
}

.pkg-error__retry:hover { opacity: 0.85; }

/* ============================================================
  EMPTY — Sin paquetes activos
   ============================================================ */

.pkg-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-12);
  color: var(--color-graphite);
  font-family: var(--font-body);
}