/* ═══════════ Cliente (Mi Espacio) — diseño v33 ═══════════ */

.cl-stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cl-loading { display: flex; justify-content: center; padding: 64px 0; color: var(--brand-muted); }
.cl-empty { text-align: center; padding: 40px 24px; }
.cl-empty .cl-empty-ico { font-size: 48px; opacity: .6; }
.cl-empty h2 { margin: 8px 0 4px; }
.cl-empty p { margin: 0 0 16px; color: var(--brand-muted); }
.cl-muted-sm { font-size: 14px; color: var(--brand-muted); }

/* KPIs */
.cl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cl-kpi { display: flex; align-items: center; gap: 16px; }
.cl-kpi-ico {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; color: #fff;
}
.cl-kpi-ico.c-cta { background: var(--brand-cta); }
.cl-kpi-ico.c-warn { background: #B7791F; }
.cl-kpi-ico.c-hero { background: #6A4390; }
.cl-kpi-body { min-width: 0; }
.cl-kpi-lbl { font-size: 14px; color: var(--brand-muted); }
.cl-kpi-val { font-size: 22px; font-weight: 800; color: var(--brand-title); line-height: 1.15; }
.cl-kpi-note { font-size: 13px; color: var(--brand-muted); }

/* Layout de dos columnas */
.cl-cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cl-col-main { flex: 3 1 460px; min-width: 0; }
.cl-col-side { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cl-card-head h2 { margin: 0 !important; }
.cl-card-head-sub { margin: 0 0 12px; font-size: 14px; color: var(--brand-muted); }

/* Fila de reservación */
.cl-rows { display: flex; flex-direction: column; gap: 12px; }
.cl-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px;
    border: 1px solid var(--brand-line); border-radius: 16px; color: inherit; text-decoration: none;
}
.cl-row:hover { background: var(--brand-active); }
.cl-row-ico {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 48px; height: 48px;
    border-radius: 14px; background: var(--brand-neu-bg); font-size: 22px;
}
.cl-row-main { flex: 1 1 200px; min-width: 0; }
.cl-row-title { font-weight: 800; color: var(--brand-title); }
.cl-row-sub { font-size: 14px; color: var(--brand-muted); }
.cl-row-end { text-align: right; }
.cl-row-end small { display: block; margin-top: 4px; font-size: 13px; color: var(--brand-muted); }

.cl-subtitle { margin: 24px 0 12px; font-size: 15px; font-weight: 800; color: var(--brand-title); }
.cl-subtitle:first-child { margin-top: 0; }

/* Hero "tour a medida" */
.card-tv.cl-hero { background: var(--brand-hero); border-color: transparent; color: #fff; }
.card-tv.cl-hero h2 { color: #fff; }
.cl-hero p { margin: 0 0 16px; line-height: 1.5; color: #EDE3F6; }
.cl-hero .cl-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-btn-white { background: #fff; color: #6A4390 !important; }
.cl-btn-white-l { background: transparent; border-color: #fff; color: #fff !important; }

/* Próximos eventos */
.cl-evs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cl-ev { display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; }
.cl-ev-img {
    height: 120px; background-size: cover; background-position: center; background-color: var(--brand-hero);
    display: flex; align-items: center; justify-content: center; font-size: 40px;
}
.cl-ev-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.cl-ev-meta { font-size: 13px; color: var(--brand-muted); }
.cl-ev-title { font-size: 16px; font-weight: 800; color: var(--brand-title); margin: 0; }
.cl-ev-cta { margin-top: auto; padding-top: 8px; }
.cl-ev-cta .btn-tv { width: 100%; }

/* Tarjetas de viaje (Mis viajes) */
.cl-trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cl-trip { display: flex; flex-direction: column; gap: 14px; }
.cl-trip-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cl-trip-num { font-size: 13px; font-weight: 700; color: var(--brand-muted); }
.cl-trip h2 { margin: 2px 0 0 !important; font-size: 19px !important; }
.cl-trip-pkg { font-size: 14px; color: var(--brand-muted); }
.cl-trip .ad-alert { margin-top: 0; }
.cl-trip-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.cl-trip-date { font-size: 13px; color: var(--brand-muted); }

/* Resumen pagos */
.cl-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cl-sum-lbl { font-size: 14px; color: var(--brand-muted); }
.cl-sum-val { font-size: 26px; font-weight: 800; color: var(--brand-title); }
.cl-sum-val.ok { color: var(--brand-ok-fg); }
.cl-sum-val.warn { color: var(--brand-warn-fg); }
.cl-table-card { padding: 8px 8px 0 !important; overflow-x: auto; }
.cl-table-card .tbl-tv { min-width: 640px; }
.cl-disc { display: block; font-size: 12px; color: var(--brand-ok-fg); }

/* Solicitudes de tour */
.cl-reqs { display: flex; flex-direction: column; gap: 12px; }
.cl-req { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.cl-req-main { flex: 3 1 280px; min-width: 0; }
.cl-req-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.cl-req-badges small { font-size: 13px; color: var(--brand-muted); }
.cl-req-dest { font-size: 18px; font-weight: 800; color: var(--brand-title); }
.cl-req-meta { font-size: 14px; color: var(--brand-muted); }
.cl-req-bud { flex: 1 1 160px; }
.cl-req-bud small { display: block; font-size: 13px; color: var(--brand-muted); }
.cl-req-bud strong { font-weight: 800; }
.cl-req-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.tbl-tv th.ad-r, .tbl-tv td.ad-r { text-align: right; }

/* ===== Detalle de viaje (cliente) ===== */
.cl-detail-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cl-detail-head-l { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-width: 0; }
.cl-detail-head-r { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cl-detail-head .page-head { margin: 0; }
.cl-b-lg { font-size: 14px; padding: 6px 14px; }

.cl-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.cl-step { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--brand-muted); position: relative; }
.cl-step + .cl-step::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: var(--brand-line2); z-index: 0; }
.cl-step.on + .cl-step.on::before { background: var(--brand-ok-fg); }
.cl-step-dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-surface); border: 2px solid var(--brand-line2); }
.cl-step.on .cl-step-dot { background: var(--brand-ok-bg); border-color: var(--brand-ok-fg); color: var(--brand-ok-fg); }
.cl-step.now .cl-step-dot { background: var(--brand-cta); border-color: var(--brand-cta); color: #fff; }
.cl-step-lbl { font-size: 13px; font-weight: 600; }
.cl-step.on .cl-step-lbl { color: var(--brand-title); }

.cl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.cl-dl-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 14px 0 0; }
.cl-dl-auto dt { font-size: 13px; color: var(--brand-muted); font-weight: 600; }
.cl-dl-auto dd { margin: 2px 0 0; font-weight: 700; color: var(--brand-title); }

.cl-details { margin-top: 16px; }
.cl-details summary { cursor: pointer; font-weight: 700; color: var(--brand-title); }
.cl-itin { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.cl-itin-act { margin: 8px 0 0 4px; padding-left: 12px; border-left: 2px solid var(--brand-line2); }
.cl-itin-act p { margin: 2px 0 0; font-size: 14px; color: var(--brand-muted); }

.cl-sumlist { margin: 12px 0 0; }
.cl-sumlist > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--brand-line); }
.cl-sumlist dt { color: var(--brand-muted); font-weight: 600; }
.cl-sumlist dd { margin: 0; font-weight: 700; color: var(--brand-title); }
.cl-sumlist .cl-strike { text-decoration: line-through; color: var(--brand-muted); font-weight: 600; }
.cl-sumlist .cl-ok { color: var(--brand-ok-fg); }
.cl-sumlist-total dd { font-size: 20px; font-weight: 800; }
.cl-sumlist > .cl-sumlist-saldo { border: 0; margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--brand-warn-bg); }
.cl-sumlist > .cl-sumlist-saldo dt, .cl-sumlist > .cl-sumlist-saldo dd { color: var(--brand-warn-fg); font-weight: 800; }
.cl-sumlist > .cl-sumlist-saldo.ok { background: var(--brand-ok-bg); }
.cl-sumlist > .cl-sumlist-saldo.ok dt, .cl-sumlist > .cl-sumlist-saldo.ok dd { color: var(--brand-ok-fg); }

.cl-btn-stack { display: flex; flex-direction: column; gap: 10px; }
.cl-full { width: 100%; justify-content: center; }
.cl-drop { display: flex; width: 100%; justify-content: center; padding: 18px 12px; border: 2px dashed var(--brand-btnline); background: transparent; }

@media (max-width: 560px) {
    .cl-step-lbl { font-size: 11px; }
}

/* ===== Formularios de tour a medida ===== */
.ad-alert-ok { background: var(--brand-ok-bg); color: var(--brand-ok-fg); }
.cl-form-lead { margin: -8px 0 0; font-size: 16px; max-width: 640px; }
.cl-span-all { grid-column: 1 / -1; }
.cl-tipos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.cl-tipo { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 14px; border: 1.5px solid var(--brand-border); background: transparent; color: var(--brand-fg); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cl-tipo:hover { background: var(--brand-active); }
.cl-tipo.sel { border-color: var(--brand-cta); background: var(--brand-active); color: var(--brand-title); font-weight: 800; }
.cl-tipo:focus-visible { outline: 3px solid var(--brand-cta); outline-offset: 2px; }
.cl-tipo-emoji { font-size: 24px; line-height: 1; }
.cl-switches { display: flex; flex-direction: column; gap: 14px; }

/* ===== Mi cuenta ===== */
.cl-account-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cl-avatar { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-cta); color: #fff; font-weight: 800; font-size: 26px; }
.cl-avatar-img { object-fit: cover; }
.cl-linked-list { display: flex; flex-direction: column; gap: 10px; }
.cl-linked { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cl-linked-list .cl-linked { padding: 12px 14px; border: 1px solid var(--brand-line); border-radius: 14px; }
.cl-linked-name { display: inline-flex; align-items: center; gap: 10px; }

/* Solicitar cotización */
.cl-sc-actions { margin-top: 18px; }
.cl-sc-resumen { padding: 0; overflow: hidden; }
.cl-sc-hero { background: var(--brand-hero); color: #fff; padding: 18px 20px; }
.cl-sc-hero p { margin: 0 0 4px; font-size: 13px; opacity: .85; }
.cl-sc-hero h2 { margin: 0; font-size: 20px; color: #fff; }
.cl-sc-resumen .ev-datos { padding: 6px 20px 14px; margin: 0; }
.cl-sc-resumen .cl-sc-totales { padding-top: 0; }
.cl-sc-inicio { background: var(--brand-band); border-radius: 12px; padding: 12px 14px !important; margin-top: 8px; border-bottom: 0 !important; }
.cl-sc-inicio dd { font-size: 20px; }
