    /* ── Paso 4: modo de planificación ──────────────────────────── */
    #planModeCards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 0.25rem;
    }
    #planModeCards .pace-card {
        padding: 1.25rem 1rem;
    }
    #planModeCards .pace-card-name {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    #planModeCards .pace-card-desc {
        font-size: 0.82rem;
        line-height: 1.45;
    }
    @media (max-width: 600px) {
        #planModeCards { grid-template-columns: 1fr; }
    }

    /* ── Paso 5: editor de ruta ─────────────────────────────────── */
    .route-city-add { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
    .route-city-add select {
        flex: 1; min-width: 0;
        padding: 0.55rem 2rem 0.55rem 0.7rem;
        border: 1.5px solid var(--border-subtle);
        border-radius: var(--radius-sm);
        font-size: 0.9rem; color: var(--text-main);
        background: var(--bg-page);
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.65rem center;
    }
    .route-city-add select:focus { outline: none; border-color: var(--primary-color); }
    .route-city-add button {
        padding: 0.55rem 1.1rem;
        background: var(--primary-color); color: #fff;
        border: none; border-radius: var(--radius-sm);
        font-size: 0.9rem; font-weight: 600;
        cursor: pointer; white-space: nowrap; flex-shrink: 0;
    }
    .route-city-add button:hover { opacity: 0.88; }
    .route-city-list { list-style: none; padding: 0; margin: 0; }
    .route-city-hint { font-size: 0.85rem; color: var(--text-muted); text-align: center; padding: 0.6rem 0; }
    .route-city-item {
        display: block;
        padding: 0.7rem 0;
        border-bottom: 1px solid var(--border-subtle);
    }
    .route-city-item:last-child { border-bottom: none; }
    .route-city-top {
        display: flex; align-items: center; gap: 0.6rem;
    }
    .route-city-item.is-dragging { opacity: 0.35; background: var(--primary-soft); border-radius: 6px; }
    .route-drag-handle {
        color: var(--text-muted); cursor: grab;
        font-size: 0.85rem; padding: 0 0.15rem;
        flex-shrink: 0; user-select: none; opacity: 0.45; line-height: 1;
        touch-action: none;
    }
    .route-drag-handle:hover { opacity: 0.9; }
    .route-city-num {
        width: 22px; height: 22px; border-radius: 50%;
        background: var(--primary-soft); color: var(--primary-color);
        font-size: 0.7rem; font-weight: 700;
        display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .route-city-name { flex: 1; min-width: 0; font-size: 0.95rem; color: var(--text-main); font-weight: 600; }
    /* Excursiones por base: botón "añadir" + lista debajo */
    .route-exc-section { margin: 0.5rem 0 0 2.45rem; }
    .route-exc-list { list-style: none; margin: 0 0 0.45rem; padding: 0; display: flex; flex-direction: column; gap: 0.3rem; }
    .route-exc-list:empty { margin: 0; }
    .route-exc-item {
        display: flex; align-items: center; gap: 0.5rem;
        font-size: 0.83rem; color: var(--primary-color); font-weight: 600;
        background: var(--primary-soft);
        border-radius: var(--radius-sm); padding: 0.35rem 0.55rem;
    }
    .route-exc-day-tag { color: var(--text-muted); font-weight: 700; white-space: nowrap; }
    .route-exc-item-text { flex: 1; min-width: 0; }
    .route-exc-remove {
        background: none; border: none; color: var(--primary-color);
        cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 0.2rem; flex-shrink: 0;
    }
    .route-exc-add-btn {
        background: none; border: 1.5px dashed var(--primary-color); color: var(--primary-color);
        border-radius: var(--radius-sm); padding: 0.35rem 0.75rem;
        font-size: 0.82rem; font-weight: 600; cursor: pointer;
    }
    .route-exc-add-btn:hover { background: var(--primary-soft); }
    .route-exc-add-btn:disabled {
        opacity: 0.55; cursor: default; border-style: solid;
        color: var(--text-muted); border-color: var(--border-subtle);
    }
    .route-nights-label { font-size: 0.75rem; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }
    /* Ventana flotante: añadir excursión */
    .exc-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 12px; }
    .exc-modal[hidden] { display: none; }
    .exc-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
    .exc-modal-dialog {
        position: relative; width: 100%; max-width: 380px;
        background: var(--bg-card); border-radius: var(--radius-lg);
        padding: 1.4rem; box-shadow: var(--shadow-hover);
    }
    .exc-modal-title { margin: 0 0 0.35rem; font-size: 1.1rem; color: var(--text-main); }
    .exc-modal-sub { margin: 0 0 1.1rem; font-size: 0.85rem; color: var(--text-muted); }
    .exc-modal-sub span { color: var(--primary-color); font-weight: 600; }
    .exc-modal-field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; }
    .exc-modal-field span { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
    .exc-modal-field select {
        padding: 0.55rem 0.6rem; border: 1.5px solid var(--border-subtle);
        border-radius: var(--radius-sm); font-size: 1rem; background: #fff; color: var(--text-main); cursor: pointer;
    }
    .exc-modal-field select:focus { outline: none; border-color: var(--primary-color); }
    .exc-modal-actions { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.3rem; }
    .exc-modal-cancel {
        background: none; border: none; color: var(--text-muted);
        font-size: 0.9rem; font-weight: 600; cursor: pointer; padding: 0.55rem 0.6rem;
    }
    .exc-modal-confirm {
        background: var(--primary-color); color: #fff; border: none;
        border-radius: var(--radius-pill); padding: 0.55rem 1.2rem;
        font-size: 0.9rem; font-weight: 600; cursor: pointer;
    }
    .exc-modal-confirm:hover { opacity: 0.88; }
    .route-city-stepper {
        display: flex; align-items: center;
        border: 1.5px solid var(--border-subtle);
        border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0;
    }
    .route-city-stepper button {
        background: none; border: none; width: 26px; height: 28px;
        font-size: 1.05rem; cursor: pointer; color: var(--primary-color); font-weight: 700;
        display: flex; align-items: center; justify-content: center;
    }
    .route-city-stepper button:hover { background: var(--primary-soft); }
    .route-nights-val { min-width: 32px; text-align: center; font-size: 0.85rem; font-weight: 600; color: var(--text-main); }
    .route-city-remove {
        background: none; border: none; color: var(--text-muted);
        cursor: pointer; font-size: 1.1rem; line-height: 1;
        padding: 0.25rem 0.35rem; border-radius: 6px; flex-shrink: 0;
    }
    .route-city-remove:hover { background: #fee2e2; color: #dc2626; }
    #nightsCapWarning {
        display: none;
        margin-top: 0.75rem;
        padding: 0.5rem 0.8rem;
        background: #fef2f2;
        border: 1px solid #fecaca;
        border-radius: 8px;
        font-size: 0.84rem;
        color: #b91c1c;
    }
    #nightsSummary {
        margin-top: 0.5rem;
        font-size: 0.8rem;
        color: #6b7280;
        text-align: right;
    }
    @media (max-width: 600px) {
        .route-nights-label { display: none; }
    }
