/* program-dates.css — sección de próximas fechas del programa */

/* ─── Sección ────────────────────────────────────────────────── */
.cp-dates-section {
  padding: 64px 0;
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}
.cp-dates-section--inside-offer {
  padding: 0 0 34px;
  background: transparent;
  border-top: 0;
}
.cp-dates-section--inside-offer .cp-dates-head {
  margin-bottom: 28px;
}
.cp-dates-head {
  text-align: center;
  margin-bottom: 40px;
}
.cp-dates-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6fbd4f;
  margin-bottom: 8px;
}
.cp-dates-head h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 760;
  color: #0f172a;
  margin: 0 0 6px;
}
.cp-dates-head p {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 8px;
}
.cp-sl-offer__head {
  margin-bottom: 12px;
}
.cp-sl-offer__head .cp-sl-eyebrow {
  margin-bottom: 10px;
  color: #6fbd4f;
  font-size: .66rem;
  letter-spacing: .14em;
}
.cp-sl-offer__head .cp-sl-eyebrow::before {
  background: #6fbd4f;
}
.cp-sl-offer__head h2 {
  max-width: 900px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  font-weight: 850;
}
.cp-sl-offer__head + .cp-dates-section--inside-offer .cp-dates-head h2 {
  margin-top: 0;
}

/* ─── Selector de fecha ──────────────────────────────────────── */
.cp-date-choice {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: rgba(255, 255, 255, .72);
}
.cp-date-choice__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.cp-date-choice__field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.cp-date-choice__field span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #64748b;
}
.cp-date-choice__field select {
  width: 100%;
  min-height: 48px;
  padding: 0 38px 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  font-weight: 650;
  box-shadow: none;
  outline: none;
}
.cp-date-choice__field select:focus {
  border-color: #6fbd4f;
  box-shadow: 0 0 0 3px rgba(111, 189, 79, .16);
}
.cp-date-choice__field select.cp-date-choice__native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.cp-select-shell {
  position: relative;
}
.cp-select-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.cp-select-button:focus {
  outline: none;
  border-color: #6fbd4f;
  box-shadow: 0 0 0 3px rgba(111, 189, 79, .16);
}
.cp-select-button__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-select-button i {
  margin-left: auto;
  color: #0f172a;
  font-size: 12px;
  transform: translateY(1px);
}
.cp-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 220px;
  overflow: hidden;
  overflow-y: auto;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
}
.cp-select-shell.is-open .cp-select-menu {
  display: block;
}
.cp-select-option {
  width: 100%;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
}
.cp-select-option:hover {
  background: #edf2f7;
}
.cp-select-option.is-selected {
  background: #eef8ea;
}
.cp-date-choice__summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}
.cp-date-choice__flag {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 28px;
}
.cp-date-choice__label {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6fbd4f;
}
.cp-date-choice__main strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 760;
}
.cp-date-choice__main p {
  margin: 4px 0;
  color: #334155;
  font-size: 14px;
  font-weight: 650;
}
.cp-date-choice__main > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
}
.cp-date-choice__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cp-date-choice__cupos {
  min-width: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.cp-date-choice__bar {
  height: 5px;
  margin-bottom: 0;
  overflow: hidden;
  border-radius: 4px;
  background: #e5e7eb;
}
.cp-date-choice__bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .25s;
}
.cp-date-choice__bar-fill.is-urgent,
.cp-date-choice__bar-fill.is-medium,
.cp-date-choice__bar-fill.is-ok {
  background: #6fbd4f;
}
.cp-date-choice__cupos span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.cp-date-choice__goal {
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #4f8f3b;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}
.cp-date-choice__goal i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #eef8ea;
  color: #6fbd4f;
  transform: translateY(-3px);
}

.cp-sl-price-card {
  border-radius: 10px;
}
.cp-sl-price-card__badge {
  border-radius: 8px;
}
.cp-sl-price-card__cta {
  border-radius: 8px;
}

/* ─── Filtros de país ────────────────────────────────────────── */
.cp-dates-b-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}
.cp-dates-b-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1.5px solid #e5e7eb;
  border-radius: 30px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.cp-dates-b-filter-btn:hover,
.cp-dates-b-filter-btn.is-active {
  border-color: #6fbd4f;
  background: #eef8ea;
  color: #4f8f3b;
}

/* ─── Lista de fechas ────────────────────────────────────────── */
.cp-dates-b-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cp-date-row-b {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  transition: box-shadow .2s, border-color .2s;
}
.cp-date-row-b:hover {
  box-shadow: 0 4px 18px rgba(15,23,42,.08);
  border-color: #ffd5c4;
}
.cp-date-row-b[hidden] { display: none; }

.cp-date-row-b__flag {
  font-size: 28px;
  line-height: 1;
}

.cp-date-row-b__ciudad {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}
.cp-date-row-b__fecha-hora {
  font-size: 13px;
  color: #475569;
  margin-bottom: 4px;
}
.cp-date-row-b__place {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cp-date-row-b__cupos-bar-wrap {
  width: 120px;
}
.cp-date-row-b__cupos-bar {
  height: 5px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}
.cp-date-row-b__cupos-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width .4s;
}
.cp-date-row-b__cupos-bar-fill.is-urgent { background: #ef4444; }
.cp-date-row-b__cupos-bar-fill.is-medium { background: #f97316; }
.cp-date-row-b__cupos-bar-fill.is-ok     { background: #22c55e; }
.cp-date-row-b__cupos-text {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

.cp-date-row-b__right {
  text-align: right;
  flex-shrink: 0;
}
.cp-date-row-b__price {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.cp-date-row-b__price small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #94a3b8;
}
.cp-date-row-b__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #6fbd4f;
  color: #fff;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.cp-date-row-b__cta:hover { background: #5da840; color: #fff; }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 760px) {
  .cp-date-choice {
    padding: 16px;
    overflow: hidden;
  }
  .cp-date-choice__controls {
    /* minmax(0,1fr) para que el texto largo del select no expanda el grid */
    grid-template-columns: minmax(0, 1fr);
  }
  .cp-date-choice__field {
    min-width: 0;
  }
  .cp-select-button {
    max-width: 100%;
  }
  .cp-date-choice__summary {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    overflow: hidden;
  }
  .cp-date-choice__flag {
    width: 46px;
    height: 46px;
  }
  .cp-date-choice__meta {
    width: 100%;
    justify-content: space-between;
  }
  .cp-date-choice__goal {
    min-width: auto;
    justify-content: flex-start;
  }
  .cp-date-row-b {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
  }
  .cp-date-row-b__cupos { display: none; }
  .cp-date-row-b__right {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .cp-date-row-b__price { margin-bottom: 0; }
}
