/* ════════════════════════════════════════════════════════════
   TWENTYSIX CRM — itinerario-premium.css
   Estilos del módulo de itinerarios profesional
   ──────────────────────────────────────────────────────────
   Reutiliza los CSS variables del design system principal:
   --bg, --black, --white, --yellow, --grey-05/10/20/40/60/80,
   --green, --red, --orange, --ease, fuentes Syne / Instrument Sans
   ════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════
   1. LAYOUT GENERAL — split builder + preview
   ══════════════════════════════════════════════════════════ */

.itin-v2-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 28px;
    align-items: start;
    margin-top: 24px;
}

@media (max-width: 1280px) {
    .itin-v2-layout { grid-template-columns: 1fr; }
    .itin-v2-preview { position: static !important; max-height: none !important; }
}


/* ══════════════════════════════════════════════════════════
   2. TOP BAR — quick-actions de vinculación CRM
   ══════════════════════════════════════════════════════════ */

.itin-v2-topbar {
    background: linear-gradient(135deg, #0c0c0e 0%, #1a1a1d 100%);
    color: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr) auto auto;
    gap: 16px;
    align-items: end;
}

.itin-v2-topbar .field-group { margin: 0; }

.itin-v2-topbar .field-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.itin-v2-topbar select,
.itin-v2-topbar input {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    width: 100%;
    transition: all 0.15s var(--ease, ease);
}

.itin-v2-topbar select:focus,
.itin-v2-topbar input:focus {
    outline: none;
    border-color: rgba(232, 255, 71, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.itin-v2-topbar select option {
    background: #1a1a1d;
    color: #fff;
}

.itin-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s var(--ease, ease);
}

.itin-topbar-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.itin-topbar-btn.primary {
    background: #e8ff47;
    color: #0c0c0e;
    border-color: #e8ff47;
}

.itin-topbar-btn.primary:hover {
    background: #f0ff66;
    box-shadow: 0 4px 12px rgba(232, 255, 71, 0.3);
}


/* ══════════════════════════════════════════════════════════
   3. PROGRESS BAR — completitud del itinerario
   ══════════════════════════════════════════════════════════ */

.itin-progress-card {
    background: #fff;
    border: 1px solid var(--grey-10, #eee);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.itin-progress-circle {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.itin-progress-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.itin-progress-circle-bg {
    stroke: var(--grey-10, #eee);
    stroke-width: 5;
    fill: none;
}

.itin-progress-circle-fill {
    stroke: #e8ff47;
    stroke-width: 5;
    fill: none;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s var(--ease, ease);
}

.itin-progress-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: #0c0c0e;
    font-family: 'DM Mono', monospace;
}

.itin-progress-info { flex: 1; }
.itin-progress-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #0c0c0e;
}
.itin-progress-info p {
    margin: 0;
    font-size: 12px;
    color: var(--grey-60, #666);
}

.itin-progress-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.itin-progress-status.ok        { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.itin-progress-status.missing   { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.itin-progress-status.empty     { background: rgba(107, 114, 128, 0.1); color: #6b7280; }


/* ══════════════════════════════════════════════════════════
   4. SECCIONES COLAPSABLES — estilo Notion/Linear
   ══════════════════════════════════════════════════════════ */

.itin-v2-section {
    background: #fff;
    border: 1px solid var(--grey-10, #eee);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.15s var(--ease, ease), box-shadow 0.15s var(--ease, ease);
}

.itin-v2-section:hover {
    border-color: var(--grey-20, #ddd);
}

.itin-v2-section.expanded {
    border-color: rgba(12, 12, 14, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.itin-v2-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s var(--ease, ease);
}

.itin-v2-section-header:hover {
    background: var(--grey-05, #fafafa);
}

.itin-v2-section-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--grey-05, #fafafa);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #0c0c0e;
}

.itin-v2-section.expanded .itin-v2-section-icon {
    background: #0c0c0e;
    color: #e8ff47;
}

.itin-v2-section-meta { flex: 1; min-width: 0; }

.itin-v2-section-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #0c0c0e;
    margin: 0 0 3px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.itin-v2-section-subtitle {
    font-size: 12px;
    color: var(--grey-60, #666);
    margin: 0;
    line-height: 1.4;
}

.itin-v2-section-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 11px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: none;
}

.itin-v2-section-badge.count    { background: rgba(12, 12, 14, 0.08); color: #0c0c0e; }
.itin-v2-section-badge.missing  { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.itin-v2-section-badge.ok       { background: rgba(16, 185, 129, 0.12); color: #047857; }
.itin-v2-section-badge.empty    { background: rgba(107, 114, 128, 0.1); color: #6b7280; }

.itin-v2-section-chevron {
    flex-shrink: 0;
    color: var(--grey-40, #999);
    transition: transform 0.2s var(--ease, ease);
}

.itin-v2-section.expanded .itin-v2-section-chevron {
    transform: rotate(180deg);
}

.itin-v2-section-body {
    padding: 0 22px 22px 22px;
    display: none;
    border-top: 1px solid var(--grey-10, #eee);
    padding-top: 22px;
}

.itin-v2-section.expanded .itin-v2-section-body {
    display: block;
    animation: itinFadeIn 0.2s var(--ease, ease);
}

@keyframes itinFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ══════════════════════════════════════════════════════════
   5. ENTRIES DINÁMICOS (contactos, vuelos, hoteles, etc.)
   ══════════════════════════════════════════════════════════ */

.itin-entry {
    background: var(--grey-05, #fafafa);
    border: 1px solid var(--grey-10, #eee);
    border-left: 3px solid #e8ff47;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
    position: relative;
    transition: border-color 0.15s var(--ease, ease);
}

.itin-entry:hover {
    border-color: var(--grey-20, #ddd);
    border-left-color: #e8ff47;
}

.itin-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--grey-10, #eee);
}

.itin-entry-title {
    font-size: 13px;
    font-weight: 700;
    color: #0c0c0e;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.itin-entry-title .missing-tag {
    color: #b45309;
    font-size: 11px;
    font-weight: 600;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.itin-entry-actions {
    display: flex;
    gap: 8px;
}

.itin-entry-action {
    background: none;
    border: none;
    color: var(--grey-60, #666);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.15s var(--ease, ease);
}

.itin-entry-action:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0c0c0e;
}

.itin-entry-action.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.itin-entry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
}

.itin-entry-grid.three { grid-template-columns: repeat(3, 1fr); }
.itin-entry-grid.four  { grid-template-columns: repeat(4, 1fr); }
.itin-entry-grid.full  { grid-template-columns: 1fr; }

@media (max-width: 768px) {
    .itin-entry-grid,
    .itin-entry-grid.three,
    .itin-entry-grid.four { grid-template-columns: 1fr; }
}

.itin-entry-field { display: flex; flex-direction: column; gap: 5px; }

.itin-entry-field label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--grey-60, #666);
}

.itin-entry-field label.required::after {
    content: " *";
    color: #dc2626;
}

.itin-entry-field input,
.itin-entry-field select,
.itin-entry-field textarea {
    background: #fff;
    border: 1px solid var(--grey-10, #eee);
    border-radius: 7px;
    padding: 8px 11px;
    font-size: 13px;
    color: #0c0c0e;
    transition: border-color 0.15s var(--ease, ease), box-shadow 0.15s var(--ease, ease);
    width: 100%;
    font-family: inherit;
}

.itin-entry-field input:focus,
.itin-entry-field select:focus,
.itin-entry-field textarea:focus {
    outline: none;
    border-color: #0c0c0e;
    box-shadow: 0 0 0 3px rgba(232, 255, 71, 0.2);
}

.itin-entry-field textarea {
    resize: vertical;
    min-height: 60px;
}

.itin-entry-divider {
    grid-column: 1 / -1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--grey-60, #666);
    margin: 6px 0 -2px 0;
    padding-top: 8px;
    border-top: 1px dashed var(--grey-20, #ddd);
}

.itin-entry-divider:first-child { border-top: none; padding-top: 0; }

.itin-add-entry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1.5px dashed var(--grey-20, #ccc);
    color: var(--grey-60, #666);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s var(--ease, ease);
    margin-top: 4px;
}

.itin-add-entry-btn:hover {
    border-color: #0c0c0e;
    border-style: solid;
    color: #0c0c0e;
    background: var(--grey-05, #fafafa);
}


/* ══════════════════════════════════════════════════════════
   6. TOGGLES (date set vs TBA/TBC/TBD)
   ══════════════════════════════════════════════════════════ */

.itin-radio-group {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.itin-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--grey-60, #666);
    background: var(--grey-05, #fafafa);
    border: 1px solid transparent;
    transition: all 0.15s var(--ease, ease);
}

.itin-radio-option input { margin: 0; cursor: pointer; }

.itin-radio-option:has(input:checked) {
    background: #0c0c0e;
    color: #e8ff47;
    border-color: #0c0c0e;
}

.itin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.itin-toggle-track {
    position: relative;
    width: 38px;
    height: 22px;
    background: var(--grey-20, #ccc);
    border-radius: 11px;
    transition: background 0.2s var(--ease, ease);
}

.itin-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s var(--ease, ease);
}

.itin-toggle input { display: none; }

.itin-toggle input:checked + .itin-toggle-track { background: #0c0c0e; }
.itin-toggle input:checked + .itin-toggle-track .itin-toggle-thumb { transform: translateX(16px); }

.itin-toggle-label { font-size: 12px; color: #0c0c0e; font-weight: 600; }


/* ══════════════════════════════════════════════════════════
   7. TAGS INPUT (supporting line up)
   ══════════════════════════════════════════════════════════ */

.itin-tags-input {
    background: #fff;
    border: 1px solid var(--grey-10, #eee);
    border-radius: 7px;
    padding: 6px 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 38px;
    align-items: center;
}

.itin-tags-input:focus-within {
    border-color: #0c0c0e;
    box-shadow: 0 0 0 3px rgba(232, 255, 71, 0.2);
}

.itin-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0c0c0e;
    color: #e8ff47;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.itin-tag .remove {
    cursor: pointer;
    opacity: 0.7;
    line-height: 1;
}

.itin-tag .remove:hover { opacity: 1; }

.itin-tags-input input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    flex: 1;
    min-width: 100px;
    padding: 4px !important;
    font-size: 13px;
    background: transparent !important;
}


/* ══════════════════════════════════════════════════════════
   8. TIMETABLE ENTRIES — schedule del show
   ══════════════════════════════════════════════════════════ */

.itin-timetable {
    margin-top: 8px;
}

.itin-timetable-entry {
    background: #fff;
    border: 1px solid var(--grey-10, #eee);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 110px 130px 1fr 140px 32px;
    gap: 12px;
    align-items: center;
}

@media (max-width: 768px) {
    .itin-timetable-entry { grid-template-columns: 1fr; gap: 8px; }
}

.itin-timetable-entry input,
.itin-timetable-entry select {
    background: var(--grey-05, #fafafa);
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 12px;
    width: 100%;
}

.itin-timetable-entry input:focus,
.itin-timetable-entry select:focus {
    outline: none;
    border-color: #0c0c0e;
    background: #fff;
}

.itin-timetable-entry .delete-btn {
    background: none;
    border: none;
    color: var(--grey-40, #999);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
}

.itin-timetable-entry .delete-btn:hover {
    color: #dc2626;
    background: rgba(239, 68, 68, 0.08);
}


/* ══════════════════════════════════════════════════════════
   9. PREVIEW LATERAL — sticky en desktop
   ══════════════════════════════════════════════════════════ */

.itin-v2-preview {
    background: #fff;
    border: 1px solid var(--grey-10, #eee);
    border-radius: 14px;
    padding: 0;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 60px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.itin-v2-preview-header {
    background: #0c0c0e;
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 14px 14px 0 0;
}

.itin-v2-preview-header h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #e8ff47;
    text-transform: uppercase;
}

.itin-v2-preview-actions {
    display: flex;
    gap: 6px;
}

.itin-v2-preview-actions button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.15s var(--ease, ease);
}

.itin-v2-preview-actions button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.itin-v2-preview-actions button.primary {
    background: #e8ff47;
    color: #0c0c0e;
    border-color: #e8ff47;
}

.itin-v2-preview-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #f9fafb;
}

.itin-v2-preview-empty {
    color: var(--grey-40, #999);
    text-align: center;
    padding: 60px 20px;
    font-size: 13px;
    font-style: italic;
}


/* ══════════════════════════════════════════════════════════
   10. PREVIEW DOCUMENT — apariencia tipo PDF
   ══════════════════════════════════════════════════════════ */

.itin-doc {
    background: #fff;
    border-radius: 8px;
    padding: 32px 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Instrument Sans', -apple-system, sans-serif;
    color: #0c0c0e;
    font-size: 12px;
    line-height: 1.55;
}

.itin-doc-header {
    border-bottom: 3px solid #0c0c0e;
    padding-bottom: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.itin-doc-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 2.5px;
    color: #e8ff47;
    background: #0c0c0e;
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

.itin-doc-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    margin: 8px 0 4px 0;
    color: #0c0c0e;
}

.itin-doc-subtitle {
    font-size: 11px;
    color: var(--grey-60, #666);
    margin: 0;
}

.itin-doc-meta {
    text-align: right;
    font-size: 10px;
    color: var(--grey-60, #666);
    line-height: 1.6;
}

.itin-doc-meta strong { color: #0c0c0e; font-weight: 700; }

.itin-doc-section {
    margin-bottom: 18px;
    page-break-inside: avoid;
}

.itin-doc-section h4 {
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #0c0c0e;
    margin: 0 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--grey-10, #eee);
    display: flex;
    align-items: center;
    gap: 8px;
}

.itin-doc-section h4 .accent {
    width: 6px;
    height: 6px;
    background: #e8ff47;
    border-radius: 50%;
    display: inline-block;
}

.itin-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    margin-bottom: 8px;
}

.itin-doc-field {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.itin-doc-field-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--grey-60, #666);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.itin-doc-field-value {
    font-size: 12px;
    color: #0c0c0e;
    font-weight: 500;
    word-break: break-word;
}

.itin-doc-field-value.empty { color: var(--grey-40, #bbb); font-style: italic; }
.itin-doc-field-value.mono  { font-family: 'DM Mono', 'Courier New', monospace; font-size: 11px; }

.itin-doc-card {
    background: #fafafa;
    border-left: 3px solid #e8ff47;
    border-radius: 6px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.itin-doc-card-title {
    font-size: 12px;
    font-weight: 700;
    color: #0c0c0e;
    margin: 0 0 6px 0;
}

.itin-doc-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-left: 2px solid #0c0c0e;
    padding-left: 14px;
}

.itin-doc-timeline li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 4px;
}

.itin-doc-timeline li::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 5px;
    width: 8px;
    height: 8px;
    background: #e8ff47;
    border: 2px solid #0c0c0e;
    border-radius: 50%;
}

.itin-doc-timeline strong {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: #0c0c0e;
}

.itin-doc-footer {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid var(--grey-10, #eee);
    font-size: 9px;
    color: var(--grey-60, #999);
    text-align: center;
}


/* ══════════════════════════════════════════════════════════
   11. MODAL DE SUBIDA DE BILLETE (Claude vision)
   ══════════════════════════════════════════════════════════ */

.itin-upload-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.itin-upload-modal.active { display: flex; }

.itin-upload-card {
    background: #fff;
    border-radius: 14px;
    width: 90%;
    max-width: 520px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.itin-upload-card h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 800;
    color: #0c0c0e;
}

.itin-upload-card p {
    margin: 0 0 18px 0;
    font-size: 13px;
    color: var(--grey-60, #666);
}

.itin-dropzone {
    border: 2px dashed var(--grey-20, #ddd);
    border-radius: 10px;
    padding: 36px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s var(--ease, ease);
    background: var(--grey-05, #fafafa);
}

.itin-dropzone:hover,
.itin-dropzone.dragover {
    border-color: #0c0c0e;
    background: #fff;
}

.itin-dropzone svg {
    margin-bottom: 10px;
    color: var(--grey-40, #999);
}

.itin-dropzone:hover svg,
.itin-dropzone.dragover svg { color: #0c0c0e; }

.itin-dropzone-text {
    font-size: 13px;
    color: var(--grey-60, #666);
    font-weight: 600;
}

.itin-dropzone-hint {
    font-size: 11px;
    color: var(--grey-40, #999);
    margin-top: 4px;
}

.itin-upload-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.itin-upload-status {
    display: none;
    background: var(--grey-05, #fafafa);
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--grey-60, #666);
}

.itin-upload-status.active { display: block; }

.itin-upload-status.parsing::before {
    content: "⏳ ";
}

.itin-upload-status.success {
    background: rgba(16, 185, 129, 0.08);
    color: #047857;
}
.itin-upload-status.success::before { content: "✓ "; }

.itin-upload-status.error {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
}
.itin-upload-status.error::before { content: "✕ "; }


/* ══════════════════════════════════════════════════════════
   12. AUTOSAVE INDICATOR
   ══════════════════════════════════════════════════════════ */

.itin-autosave {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #0c0c0e;
    color: #e8ff47;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease, ease), transform 0.25s var(--ease, ease);
    z-index: 9000;
    text-transform: uppercase;
}

.itin-autosave.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}


/* ══════════════════════════════════════════════════════════
   13. LIST VIEW — itinerarios guardados (cards superiores)
   ══════════════════════════════════════════════════════════ */

.itin-saved-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 12px 2px;
    margin-bottom: 16px;
    scroll-behavior: smooth;
}

.itin-saved-strip::-webkit-scrollbar { height: 6px; }
.itin-saved-strip::-webkit-scrollbar-thumb {
    background: var(--grey-20, #ccc);
    border-radius: 3px;
}

.itin-saved-card {
    flex: 0 0 240px;
    background: #fff;
    border: 1px solid var(--grey-10, #eee);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s var(--ease, ease);
}

.itin-saved-card:hover {
    border-color: #0c0c0e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.itin-saved-card-artist {
    font-size: 13px;
    font-weight: 700;
    color: #0c0c0e;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.itin-saved-card-event {
    font-size: 11px;
    color: var(--grey-60, #666);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.itin-saved-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--grey-60, #666);
}

.itin-saved-card-progress {
    background: var(--grey-10, #eee);
    height: 3px;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.itin-saved-card-progress-fill {
    height: 100%;
    background: #e8ff47;
    transition: width 0.3s var(--ease, ease);
}


/* ══════════════════════════════════════════════════════════
   14. PRINT — CSS específico para PDF nativo (window.print)
   ══════════════════════════════════════════════════════════ */

@media print {
    /* Ocultar todo lo que no es el documento */
    body > *:not(.itin-print-root) { display: none !important; }
    .itin-print-root { display: block !important; }

    /* Reset general */
    @page {
        size: A4;
        margin: 14mm 14mm 16mm 14mm;
    }

    html, body {
        background: #fff !important;
        color: #0c0c0e !important;
        font-size: 10pt;
        line-height: 1.45;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .itin-doc {
        box-shadow: none !important;
        padding: 0 !important;
        font-size: 10pt;
    }

    .itin-doc-section { page-break-inside: avoid; }
    .itin-doc-section h4 { page-break-after: avoid; }
    .itin-doc-card      { page-break-inside: avoid; }

    .itin-doc-brand {
        background: #0c0c0e !important;
        color: #e8ff47 !important;
    }

    /* Forzar fondos de color en print (Chrome/Safari) */
    .itin-doc-card     { background: #f5f5f5 !important; }
    .itin-doc-timeline li::before {
        background: #e8ff47 !important;
        border-color: #0c0c0e !important;
    }

    a { color: #0c0c0e !important; text-decoration: none; }
}


/* ══════════════════════════════════════════════════════════
   15. UTILITIES
   ══════════════════════════════════════════════════════════ */

.itin-skeleton {
    background: linear-gradient(90deg, var(--grey-05, #f5f5f5) 0%, var(--grey-10, #eee) 50%, var(--grey-05, #f5f5f5) 100%);
    background-size: 200% 100%;
    animation: itinShimmer 1.5s infinite;
    border-radius: 6px;
}

@keyframes itinShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.itin-hint {
    background: rgba(232, 255, 71, 0.08);
    border-left: 3px solid #e8ff47;
    padding: 10px 14px;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    color: var(--grey-80, #333);
    margin-bottom: 12px;
    line-height: 1.5;
}

.itin-hint strong { color: #0c0c0e; }

.itin-hidden { display: none !important; }