/* Checkit · Motor "Diseña tu viaje" — panel unificado (prefijo .ck-te)
   Único punto de interacción: tarjetas con los campos reales + "Incluir en tu viaje". */

.page-dashboard .ck-te {
  display: grid;
  gap: 16px;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* ——— Rejilla de tarjetas ——— */
.page-dashboard .ck-te__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.page-dashboard .ck-te__card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -5px rgba(15, 39, 68, 0.08), 0 4px 12px -2px rgba(15, 39, 68, 0.04);
  color: #0f172a;
  transition: all 0.25s ease;
}

.page-dashboard .ck-te__card:hover,
.page-dashboard .ck-te__card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -6px rgba(15, 39, 68, 0.18), 0 4px 12px -2px rgba(15, 39, 68, 0.06);
}

.page-dashboard .ck-te__card--ruta { grid-column: span 9; }
.page-dashboard .ck-te__card--clase { grid-column: span 3; }
.page-dashboard .ck-te__card--fechas { grid-column: span 5; }
.page-dashboard .ck-te__card--pax { grid-column: span 4; }

.page-dashboard .ck-te__ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f2744, #1a446c);
  color: #fff;
  font-size: 1rem;
}

.page-dashboard .ck-te__body {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 6px;
}

.page-dashboard .ck-te__k {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.page-dashboard .ck-te__badge {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(242, 100, 34, 0.12);
  color: #f26422;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
}

/* ——— Campos reales dentro de las tarjetas ——— */
.page-dashboard .ck-te .ck-te__field.c-search-field {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: none;
}

.page-dashboard .ck-te .ck-te__field.c-search-field:focus-within {
  border-color: #1a446c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 68, 108, 0.14);
}

.page-dashboard .ck-te .ck-te__field input,
.page-dashboard .ck-te .ck-te__field button.c-search-field__trigger {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.page-dashboard .ck-te .ck-te__field input {
  cursor: text;
}

.page-dashboard .ck-te .ck-te__field i {
  color: #1a446c;
}

.page-dashboard .ck-te__route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.page-dashboard .ck-te__swap {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1a446c;
  cursor: pointer;
  transition: all 0.25s ease;
}

.page-dashboard .ck-te__swap:hover {
  transform: translateY(-2px) rotate(180deg);
  border-color: #f26422;
  color: #f26422;
}

.page-dashboard .ck-te__dates {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.page-dashboard .ck-te__dates {
  align-items: end;
}

.page-dashboard .ck-te__date {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.page-dashboard .ck-te__sub {
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.page-dashboard .ck-te__arrow {
  display: grid;
  place-items: center;
  height: 44px;
  color: #94a3b8;
  font-size: 0.8rem;
}

/* Selector de clase (select nativo o icon-select-picker) */
.page-dashboard .ck-te__sel {
  min-width: 0;
}

.page-dashboard .ck-te__sel select,
.page-dashboard .ck-te__sel .c-icon-select-picker__trigger {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  box-shadow: none;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.page-dashboard .ck-te__sel .c-icon-select-picker {
  width: 100%;
  min-width: 0;
}

.page-dashboard .ck-te__sel .c-icon-select-picker__label {
  color: #0f172a;
  font-weight: 700;
}

.page-dashboard .ck-te__sel .c-icon-select-picker__icon,
.page-dashboard .ck-te__sel .c-icon-select-picker__chevron {
  color: #1a446c;
}

.page-dashboard .ck-te__sel .c-icon-select-picker__trigger:hover,
.page-dashboard .ck-te__sel select:hover {
  border-color: #1a446c;
}

/* ——— Botón Diseñar (misma franja que la ruta) ——— */
.page-dashboard .ck-te .ck-te__submit {
  grid-area: auto;
  grid-column: span 3;
  display: flex;
  align-items: stretch;
}

.page-dashboard .ck-te .ck-te__submit .c-button--brand {
  width: 100%;
  height: 100%;
  min-height: 72px;
  max-height: none;
  margin: 0;
  border-radius: 20px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  /* Naranja con tinta oscura: respeta ck-btn-contrast.css (blanco sobre #f26422 no cumple AA). */
  border: none !important;
  background: linear-gradient(135deg, #f26422, #ff7836) !important;
  color: #0f172a !important;
  box-shadow: 0 14px 30px -8px rgba(242, 100, 34, 0.5);
}

.page-dashboard .ck-te .ck-te__submit .c-button--brand:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ff7836, #f26422) !important;
  box-shadow: 0 18px 34px -8px rgba(242, 100, 34, 0.6);
}

/* ——— Servicios a incluir ——— */
.page-dashboard .ck-te__services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-dashboard .ck-te__label {
  margin-right: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-dashboard .ck-te__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.page-dashboard .ck-te__chip:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.page-dashboard .ck-te__chip[aria-pressed='true'] {
  border-color: transparent;
  background: linear-gradient(135deg, #f26422, #ff7836);
  color: #fff;
  box-shadow: 0 10px 24px -6px rgba(242, 100, 34, 0.45);
}

.page-dashboard .ck-te__chip.is-locked {
  cursor: default;
  opacity: 0.95;
}

/* ——— Pasos resultantes ——— */
.page-dashboard .ck-te__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-dashboard .ck-te__steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
}

.page-dashboard .ck-te__steps li em {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f26422;
  color: #fff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .page-dashboard .ck-te__card--ruta,
  .page-dashboard .ck-te .ck-te__submit,
  .page-dashboard .ck-te__card--pax { grid-column: span 12; }
  .page-dashboard .ck-te__card--clase { grid-column: span 5; }
  .page-dashboard .ck-te__card--fechas { grid-column: span 7; }
  .page-dashboard .ck-te .ck-te__submit .c-button--brand { min-height: 52px; }
}

@media (max-width: 720px) {
  .page-dashboard .ck-te__card--clase,
  .page-dashboard .ck-te__card--fechas { grid-column: span 12; }
  .page-dashboard .ck-te__route,
  .page-dashboard .ck-te__dates { grid-template-columns: 1fr; }
  .page-dashboard .ck-te__swap,
  .page-dashboard .ck-te__arrow { display: none; }
  .page-dashboard .ck-te__card { padding: 14px 16px; }
}
