/**
 * Registro organizador — wizard RegiTicket (distinct from competencia).
 */
.rt-org-reg-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
}

.rt-org-reg-aside {
    position: sticky;
    top: 1rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(185, 24, 48, 0.18) 0%, rgba(255, 255, 255, 0.04) 55%);
    border: 1px solid rgba(185, 24, 48, 0.25);
}

.rt-org-reg-aside-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.rt-org-reg-aside-lead {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.rt-org-reg-step-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.rt-org-reg-step-nav li {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.rt-org-reg-step-nav li:last-child { border-bottom: 0; }

.rt-org-reg-step-dot {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

.rt-org-reg-step-nav li.is-active .rt-org-reg-step-dot {
    background: var(--rt-cherry);
    color: #fff;
    box-shadow: 0 4px 14px rgba(185, 24, 48, 0.45);
}

.rt-org-reg-step-nav li.is-done .rt-org-reg-step-dot {
    background: #38c172;
    color: #fff;
}

.rt-org-reg-step-nav strong {
    display: block;
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 0.15rem;
}

.rt-org-reg-step-nav span {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}

.rt-org-reg-perks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rt-org-reg-perk {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.rt-org-reg-perk i { color: #38c172; }

.rt-org-reg-main { padding: 0.25rem 0; }

.rt-org-panel {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
}

.rt-org-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.15rem;
}

.rt-org-panel-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(185, 24, 48, 0.2);
    color: #ff8fa3;
    font-size: 1.1rem;
}

.rt-org-panel-head h2 {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.2rem;
}

.rt-org-panel-head p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    line-height: 1.45;
}

.rt-org-handle-preview { display: grid; gap: 0.65rem; margin-top: 0.75rem; }

.rt-org-handle-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.rt-org-handle-card i {
    font-size: 1.1rem;
    color: var(--rt-cherry);
    opacity: 0.9;
}

.rt-org-handle-card small {
    display: block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.15rem;
}

.rt-org-handle-card code {
    font-size: 0.82rem;
    color: #fff;
    background: transparent;
    padding: 0;
}

.rt-org-file-zone {
    border: 2px dashed rgba(185, 24, 48, 0.35);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    background: rgba(185, 24, 48, 0.06);
    transition: border-color 0.2s, background 0.2s;
}

.rt-org-file-zone:hover {
    border-color: rgba(185, 24, 48, 0.6);
    background: rgba(185, 24, 48, 0.1);
}

.rt-org-file-zone i {
    font-size: 1.75rem;
    color: #ff8fa3;
    margin-bottom: 0.5rem;
    display: block;
}

.rt-org-file-zone p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 0.75rem;
}

.rt-org-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rt-auth-card--wizard {
    max-width: 100%;
    padding: 1.75rem 2rem;
}

[x-cloak] { display: none !important; }

@media (max-width: 991px) {
    .rt-org-reg-layout { grid-template-columns: 1fr; }
    .rt-org-reg-aside { position: static; }
    .rt-auth-card--wizard { padding: 1.25rem; }
}

/* Vue searchable select */
.rt-search-select { position: relative; }
.rt-search-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    min-height: calc(1.5em + 0.75rem + 2px);
}
.rt-search-select-trigger.is-invalid { border-color: #dc3545; }
.rt-search-select-placeholder { color: rgba(255, 255, 255, 0.45); }
.rt-search-select-value { color: #fff; font-size: 0.95rem; }
.rt-search-select-chevron { opacity: 0.55; font-size: 0.75rem; transition: transform 0.2s; }
.rt-search-select.open .rt-search-select-chevron { transform: rotate(180deg); }
.rt-search-select-menu {
    position: absolute;
    z-index: 1050;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #1a1a1c;
    border: 1px solid rgba(185, 24, 48, 0.35);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}
.rt-search-select-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
}
.rt-search-select-search {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 0.875rem;
    outline: none;
}
.rt-search-select-search::placeholder { color: rgba(255, 255, 255, 0.35); }
.rt-search-select-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    max-height: 220px;
    overflow-y: auto;
}
.rt-search-select-list li {
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}
.rt-search-select-list li:hover,
.rt-search-select-list li.active { background: rgba(185, 24, 48, 0.2); color: #fff; }
.rt-search-select-list li.selected { font-weight: 700; }
.rt-search-select-empty { color: rgba(255, 255, 255, 0.45); cursor: default; }

.rt-org-entity-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}
.rt-org-entity-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: all 0.2s ease;
}
.rt-org-entity-btn.active {
    border-color: rgba(185, 24, 48, 0.55);
    background: rgba(185, 24, 48, 0.18);
    color: #fff;
    box-shadow: 0 4px 16px rgba(185, 24, 48, 0.25);
}

/* Upload — identificación paso 2 (label nativo + input oculto) */
.rt-id-file-upload {
    position: relative;
    max-width: 100%;
}

.rt-id-file-input-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rt-id-file-card {
    display: block;
    border-radius: 22px;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.rt-id-file-card--pick {
    min-height: 210px;
    border: 2px dashed rgba(185, 24, 48, 0.45);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(185, 24, 48, 0.14) 0%, transparent 70%),
        rgba(255, 255, 255, 0.03);
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    cursor: pointer;
    margin: 0;
}

.rt-id-file-card--pick:hover {
    border-color: rgba(255, 143, 163, 0.8);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(185, 24, 48, 0.22) 0%, transparent 70%),
        rgba(185, 24, 48, 0.08);
    box-shadow: 0 8px 32px rgba(185, 24, 48, 0.18);
}

.rt-id-file-card--pick:focus-within {
    outline: none;
    box-shadow: 0 0 0 3px rgba(185, 24, 48, 0.3);
}

.rt-id-file-card--done {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border: 2px solid rgba(56, 193, 114, 0.45);
    background:
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(56, 193, 114, 0.08) 0%, transparent 60%),
        rgba(255, 255, 255, 0.04);
}

.rt-id-file-card.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.rt-id-file-card__icon {
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(185, 24, 48, 0.35), rgba(185, 24, 48, 0.12));
    border: 1px solid rgba(255, 143, 163, 0.35);
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(185, 24, 48, 0.25);
}

.rt-id-file-card__icon i {
    font-size: 1.85rem;
    color: #ff8fa3;
}

.rt-id-file-card__title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.rt-id-file-card__hint {
    display: block;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

.rt-id-file-card__formats {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.rt-id-file-card__formats span {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
}

.rt-id-file-card__limit {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
}

.rt-id-file-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex-shrink: 0;
}

.rt-id-file-change-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.rt-id-file-change-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.rt-id-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6ee7a7;
    margin-bottom: 0.35rem;
}

.rt-id-file-badge i {
    font-size: 0.85rem;
}

.rt-id-file-thumb--lg {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.rt-id-file-thumb--lg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rt-id-file-thumb--lg.rt-id-file-thumb--pdf i {
    font-size: 2.35rem;
    color: #ff8fa3;
}

.rt-id-file-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rt-id-file-thumb {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rt-id-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rt-id-file-thumb--pdf i {
    font-size: 2rem;
    color: #ff8fa3;
}

.rt-id-file-meta {
    flex: 1;
    min-width: 0;
}

.rt-id-file-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rt-id-file-size {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.rt-id-file-remove {
    border: none;
    background: rgba(185, 24, 48, 0.22);
    color: #ff8fa3;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.2s, color 0.2s;
}

.rt-id-file-remove:hover {
    background: rgba(185, 24, 48, 0.4);
    color: #fff;
}

@media (max-width: 575.98px) {
    .rt-id-file-card--done {
        flex-wrap: wrap;
    }

    .rt-id-file-card__actions {
        width: 100%;
        flex-direction: row;
    }

    .rt-id-file-change-btn,
    .rt-id-file-card__actions .rt-id-file-remove {
        flex: 1;
        justify-content: center;
    }
}

/* ── Doc-type picker (paso 2) ── */
.rt-doc-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.rt-doc-type-grid--secondary {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
}

.rt-doc-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.1rem 0.75rem 0.9rem;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    outline: none;
}

.rt-doc-type-card:hover {
    border-color: rgba(185, 24, 48, 0.55);
    background: rgba(185, 24, 48, 0.09);
    color: #fff;
}

.rt-doc-type-card.is-selected {
    border-color: #b91830;
    background: rgba(185, 24, 48, 0.16);
    color: #fff;
    box-shadow: 0 0 0 1px #b91830, 0 6px 22px rgba(185, 24, 48, 0.22);
}

.rt-doc-type-card i {
    font-size: 1.85rem;
    display: block;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s ease;
}

.rt-doc-type-card:hover i,
.rt-doc-type-card.is-selected i {
    color: #ff8fa3;
}

.rt-doc-type-card--sm {
    padding: 0.85rem 0.6rem;
    border-radius: 14px;
    font-size: 0.72rem;
}

.rt-doc-type-card--sm i {
    font-size: 1.4rem;
}

@media (max-width: 575.98px) {
    .rt-doc-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rt-doc-type-grid--secondary {
        grid-template-columns: repeat(2, 1fr);
    }
}
