/* Catálogo de ofertas con cupos — cards, grilla y modal */

.c-oferta-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.c-oferta-card:hover,
.c-oferta-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  outline: none;
}

.c-oferta-card__region {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0d9488;
}

.c-oferta-card__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0f172a;
}

.c-oferta-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-oferta-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
}

.c-oferta-card__title {
  margin: 0;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.25;
  color: #0f172a;
}

.c-oferta-card__destinos {
  margin: 0;
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #475569;
}

.c-oferta-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.c-oferta-card__cta:hover {
  background: #0d9488;
  color: #fff;
}

.c-ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.c-ofertas-section + .c-ofertas-section {
  margin-top: 28px;
}

.c-ofertas-section__title {
  margin: 0 0 14px;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  color: #0f172a;
}

.c-ofertas-loading,
.c-ofertas-error {
  margin: 0;
  padding: 24px 0;
  text-align: center;
  color: #64748b;
}

/* Modal fullscreen catálogo */
.c-ofertas-modal {
  position: fixed;
  inset: 0;
  z-index: 12500;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.c-ofertas-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.ofertas-modal-open {
  overflow: hidden;
}

.c-ofertas-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.82);
  backdrop-filter: blur(8px);
}

.c-ofertas-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1180px, 96vw);
  max-height: min(92vh, 920px);
  border-radius: 18px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.18);
  box-shadow: 0 28px 80px rgba(2, 8, 23, 0.45);
}

.c-ofertas-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #f8fafc;
}

.c-ofertas-modal__head-main {
  flex: 1;
  min-width: 0;
}

/* Buscador inteligente de destinos */
.c-ofertas-search {
  position: relative;
  margin-top: 14px;
  max-width: 420px;
  z-index: 5;
}

.c-ofertas-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  min-height: 46px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.35);
  cursor: text;
}

.c-ofertas-search__field i.fa-magnifying-glass {
  color: #7dd3fc;
  font-size: 0.95rem;
}

.c-ofertas-search__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: #f8fafc;
  font-size: 0.95rem;
  font-family: "Outfit", "Segoe UI", sans-serif;
}

.c-ofertas-search__field input::placeholder {
  color: #94a3b8;
}

.c-ofertas-search__clear {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.12);
  color: #e2e8f0;
  cursor: pointer;
}

.c-ofertas-search__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: min(320px, 45vh);
  overflow: auto;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 40px rgba(2, 8, 23, 0.28);
  padding: 6px;
}

.c-ofertas-search__option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
}

.c-ofertas-search__option:hover,
.c-ofertas-search__option:focus-visible {
  background: #f1f5f9;
  outline: none;
}

.c-ofertas-search__thumb {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
}

.c-ofertas-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-ofertas-search__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.c-ofertas-search__meta strong {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
}

.c-ofertas-search__meta small {
  color: #64748b;
  font-size: 0.78rem;
}

.c-ofertas-search__empty {
  margin: 0;
  padding: 14px 12px;
  color: #64748b;
  font-size: 0.9rem;
  text-align: center;
}

.c-ofertas-page__hero .c-ofertas-search {
  margin: 18px auto 0;
}

.c-ofertas-page__hero .c-ofertas-search__field {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.c-ofertas-page__hero .c-ofertas-search__field i.fa-magnifying-glass {
  color: #0d9488;
}

.c-ofertas-page__hero .c-ofertas-search__field input {
  color: #0f172a;
}

.c-ofertas-page__hero .c-ofertas-search__clear {
  background: #f1f5f9;
  color: #475569;
}

.c-ofertas-modal__eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.c-ofertas-modal__title {
  margin: 0;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.15;
}

.c-ofertas-modal__subtitle {
  margin: 8px 0 0;
  max-width: none;
  color: #cbd5e1;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: visible;
}

.c-ofertas-modal__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.12);
  color: #f8fafc;
  cursor: pointer;
}

.c-ofertas-modal__close:hover {
  background: rgba(248, 250, 252, 0.2);
}

.c-ofertas-modal__body {
  overflow: auto;
  padding: 18px 22px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.c-ofertas-modal__body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Detalle de ficha / paquete con cupo */
.c-oferta-detail {
  position: fixed;
  inset: 0;
  z-index: 12650;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.c-oferta-detail.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.oferta-detail-open {
  overflow: hidden;
}

.c-oferta-detail__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.78);
  backdrop-filter: blur(6px);
}

.c-oferta-detail__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 96vw);
  max-height: min(92vh, 880px);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 80px rgba(2, 8, 23, 0.48);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.c-oferta-detail__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}

.c-oferta-detail__close:hover,
.c-oferta-detail__close:focus-visible {
  background: #0f172a;
  outline: none;
}

.c-oferta-detail__scroll {
  max-height: min(92vh, 880px);
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.c-oferta-detail__scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.c-oferta-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  min-height: min(88vh, 820px);
}

.c-oferta-detail__media {
  margin: 0;
  background: #0f172a;
  min-height: 100%;
}

.c-oferta-detail__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.c-oferta-detail__info {
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.c-oferta-detail__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d9488;
}

.c-oferta-detail__info h2 {
  margin: 0;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  color: #0f172a;
}

.c-oferta-detail__label {
  margin: 6px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.c-oferta-detail__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c-oferta-detail__chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  color: #115e59;
  font-size: 0.84rem;
  font-weight: 600;
}

.c-oferta-detail__meta {
  margin: 4px 0 0;
  display: grid;
  gap: 10px;
}

.c-oferta-detail__meta > div {
  display: grid;
  gap: 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.c-oferta-detail__meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.c-oferta-detail__meta dd {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.4;
}

.c-oferta-detail__note {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
}

.c-oferta-detail__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

.c-oferta-detail__cta {
  flex: 1 1 200px;
}

.c-oferta-detail__secondary {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-weight: 600;
  cursor: pointer;
}

.c-oferta-detail__secondary:hover {
  background: #f1f5f9;
}

@media (max-width: 820px) {
  .c-oferta-detail {
    padding: 0;
  }

  .c-oferta-detail__dialog {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .c-oferta-detail__scroll {
    max-height: 100vh;
  }

  .c-oferta-detail__layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .c-oferta-detail__media {
    min-height: 48vh;
    max-height: 56vh;
  }

  .c-oferta-detail__info {
    padding: 20px 18px 28px;
  }
}

/* Página dedicada */
.c-ofertas-page {
  padding: 28px 0 48px;
}

.c-ofertas-page__hero {
  margin-bottom: 24px;
  text-align: center;
}

.c-ofertas-page__hero h1 {
  margin: 0 0 8px;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.c-ofertas-page__hero > p {
  margin: 0 auto;
  max-width: none;
  color: #475569;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .c-ofertas-modal {
    padding: 0;
  }

  .c-ofertas-modal__dialog {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .c-ofertas-modal__subtitle,
  .c-ofertas-page__hero > p {
    font-size: 0.82rem;
  }

  .c-ofertas-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}
