/**
 * Checkit Travel · ESTÁNDAR DE TÍTULOS DE SECCIÓN (design system)
 * ----------------------------------------------------------------------------
 * Un único patrón para todo título de sección de la plataforma:
 * icono en chip navy + título destacado + subtítulo opcional + línea con acento naranja.
 *
 * Uso (h2 de sección; h3 con --sub para subsecciones; h2 con --card dentro de tarjetas):
 *
 *   <h2 class="ck-section-title">
 *     <span class="ck-section-title__icon" aria-hidden="true"><i class="fa-solid fa-hotel"></i></span>
 *     <span class="ck-section-title__body">
 *       <span class="ck-section-title__text">Alojamiento</span>
 *       <span class="ck-section-title__sub">Características y descripción</span>   <!-- opcional -->
 *     </span>
 *     <span class="ck-section-title__meta">…</span>                                 <!-- opcional, a la derecha -->
 *   </h2>
 *
 * Variantes: --sub (subsección) · --card (tarjeta lateral) · --on-dark (fondos navy).
 * Los tokens se pueden sobrescribir por página con las variables --ck-st-*.
 */

.ck-section-title {
  --ck-st-ink: #0f2744;
  --ck-st-muted: #64748b;
  --ck-st-line: #e2e8f0;
  --ck-st-accent: #f26422;
  --ck-st-accent-2: #ff7836;
  --ck-st-navy: #0f2744;
  --ck-st-navy-2: #1a446c;
  --ck-st-icon: 46px;

  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--ck-st-line);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--ck-st-ink);
}

/* Tramo de acento sobre la línea base */
.ck-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 84px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ck-st-accent), var(--ck-st-accent-2));
}

.ck-section-title__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--ck-st-icon);
  height: var(--ck-st-icon);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ck-st-navy) 0%, var(--ck-st-navy-2) 100%);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  box-shadow:
    0 12px 22px -10px rgba(15, 39, 68, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all 0.25s ease;
}

/* Punto de luz naranja en la esquina del chip */
.ck-section-title__icon::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ck-st-accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(242, 100, 34, 0.45);
}

.ck-section-title__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}

.ck-section-title__text {
  display: block;
  font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--ck-st-ink);
  overflow-wrap: anywhere;
}

.ck-section-title__sub {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ck-st-muted);
}

.ck-section-title__meta {
  flex: 0 0 auto;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ck-st-muted);
}

/* ── Subsección (h3) ─────────────────────────────────────────────────────── */
.ck-section-title--sub {
  --ck-st-icon: 34px;
  margin: 26px 0 16px;
  padding: 0;
  border-bottom: 0;
  gap: 12px;
}

.ck-section-title--sub::after { display: none; }

.ck-section-title--sub .ck-section-title__icon {
  border-radius: 11px;
  font-size: 14px;
  background: rgba(242, 100, 34, 0.12);
  color: var(--ck-st-accent);
  box-shadow: none;
}

.ck-section-title--sub .ck-section-title__icon::after { display: none; }

.ck-section-title--sub .ck-section-title__text {
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ck-st-navy-2);
}

/* ── Dentro de tarjetas laterales (resumen, formularios) ─────────────────── */
.ck-section-title--card {
  --ck-st-icon: 40px;
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.ck-section-title--card .ck-section-title__icon { font-size: 16px; border-radius: 12px; }

.ck-section-title--card .ck-section-title__text {
  font-size: 1.15rem;
}

/* ── Sobre fondos navy ───────────────────────────────────────────────────── */
.ck-section-title--on-dark {
  --ck-st-ink: #fff;
  --ck-st-muted: rgba(226, 232, 240, 0.82);
  --ck-st-line: rgba(255, 255, 255, 0.18);
}

.ck-section-title--on-dark .ck-section-title__icon {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.ck-section-title--on-dark .ck-section-title__icon::after { border-color: #12335a; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ck-section-title {
    --ck-st-icon: 40px;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .ck-section-title__icon { font-size: 16px; border-radius: 12px; }
  .ck-section-title__meta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ck-section-title__icon { transition: none; }
}

/* ============================================================================
 * RETROFIT · mismo estándar sobre títulos existentes SIN tocar su markup/IDs/JS.
 *  - `.ck-st-retro` en el <h2>/<h3> + glifo FA por variable: style="--ck-st-glyph:'\f594'"
 *  - Panel (Oficina Virtual): se aplica a `.c-user-panel-card > h2` usando su <i> como chip.
 * ========================================================================== */
html body .ck-st-retro,
html body.page-user-panel .c-user-panel-card > h2 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(90deg, #f26422, #ff7836) left bottom / 84px 3px no-repeat;
  background-origin: border-box;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #0f2744;
  overflow-wrap: anywhere;
}

/* Chip generado (títulos sin <i> propio) */
html body .ck-st-retro::before {
  content: var(--ck-st-glyph, "\f0f6");
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f2744 0%, #1a446c 100%);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 12px 22px -10px rgba(15, 39, 68, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Chip con el <i> existente (panel) */
html body.page-user-panel .c-user-panel-card > h2 {
  font-size: clamp(1.1rem, 1.05rem + 0.3vw, 1.3rem);
}

html body.page-user-panel .c-user-panel-card > h2 > i:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f2744 0%, #1a446c 100%);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 12px 22px -10px rgba(15, 39, 68, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (max-width: 640px) {
  html body .ck-st-retro::before { flex-basis: 40px; width: 40px; height: 40px; font-size: 16px; border-radius: 12px; }
}

/* ── RETROFIT 2: sidebar de filtros, modales y tarjetas de red (solo CSS, sin tocar IDs) ── */
html body .side-filters__head > b,
html body .vdv-sort-panel__title {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Plus Jakarta Sans","Segoe UI",sans-serif; font-weight: 800; letter-spacing: -0.02em;
  color: #0f2744; line-height: 1.2;
}
html body .side-filters__head > b { font-size: 1.02rem; }
html body .vdv-sort-panel__title { font-size: .92rem; margin-bottom: 8px; }
html body .side-filters__head > b::before,
html body .vdv-sort-panel__title::before {
  content: ""; flex: 0 0 4px; width: 4px; height: 1.05em; border-radius: 4px;
  background: linear-gradient(180deg, #f26422, #ff7836);
}

html body .c-aloj-refine > h2,
html body .c-aloj-dialog__map-head > h2 {
  position: relative; display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 0 0 12px;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(90deg, #f26422, #ff7836) left bottom / 72px 3px no-repeat; background-origin: border-box;
  font-family: "Plus Jakarta Sans","Segoe UI",sans-serif; font-size: 1.2rem; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.15; color: #0f2744; overflow-wrap: anywhere;
}
html body .c-aloj-dialog__map-head > h2 { margin: 0; }
html body .c-aloj-refine > h2::before,
html body .c-aloj-dialog__map-head > h2::before {
  content: var(--ck-st-glyph, "\f002"); font-family: "Font Awesome 6 Free"; font-weight: 900;
  display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, #0f2744, #1a446c); color: #fff; font-size: 15px;
  box-shadow: 0 8px 16px -8px rgba(15, 39, 68, 0.55);
}
html body .c-aloj-dialog__map-head > h2 { --ck-st-glyph: "\f3c5"; }

html body .c-referral-card__head h2,
html body .c-network-tree-card__head h2 {
  font-family: "Plus Jakarta Sans","Segoe UI",sans-serif; font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.15; color: #0f2744; font-size: clamp(1.2rem, 1.1rem + .45vw, 1.5rem); overflow-wrap: anywhere;
}
html body .c-network-tree-card__head h2 { gap: 14px; }
html body .c-network-tree-card__head h2 > i:first-child {
  display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, #0f2744, #1a446c); color: #fff; font-size: 17px;
  box-shadow: 0 10px 18px -10px rgba(15, 39, 68, 0.55);
}
html body .c-referral-card__eyebrow { color: #f26422; }
