/* ========================= */
/* CONTAINER                 */
/* ========================= */

.rw-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 7rem 1.5rem 4rem;
}

.rw-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rw-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #fff;
    letter-spacing: .04em;
    margin-bottom: .3rem;
}

.rw-subtitle {
    font-size: .9rem;
    color: rgba(232, 244, 251, .5);
}

/* ========================= */
/* STEPS INDICATOR           */
/* ========================= */

.rw-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 2.5rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    color: rgba(232, 244, 251, .35);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .3s;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    transition: all .3s;
    background: transparent;
    color: rgba(232, 244, 251, .35);
}

.step-indicator.active .step-circle {
    border-color: #29c4f6;
    background: rgba(41, 196, 246, .15);
    color: #29c4f6;
}

.step-indicator.active {
    color: #29c4f6;
}

.step-indicator.done .step-circle {
    border-color: #4ade80;
    background: rgba(74, 222, 128, .15);
    color: #4ade80;
}

.step-indicator.done .step-circle::after {
    content: '✓';
}

.step-indicator.done .step-circle {
    font-size: 0;
}

.step-indicator.done .step-circle::after {
    font-size: .9rem;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, .08);
    max-width: 80px;
    margin-bottom: 1.4rem;
}

/* ========================= */
/* CARD                      */
/* ========================= */

.rw-card {
    background: rgba(13, 32, 68, .8);
    border: 1px solid rgba(41, 196, 246, .1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

/* ========================= */
/* FIELDS                    */
/* ========================= */

.rw-field {
    margin-bottom: 1.4rem;
}

.rw-label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: rgba(232, 244, 251, .8);
    margin-bottom: .5rem;
    letter-spacing: .02em;
}

.rw-required {
    color: #f87171;
}

.rw-hint {
    font-size: .78rem;
    color: rgba(232, 244, 251, .4);
    margin-bottom: .6rem;
    margin-top: -.2rem;
}

.rw-input {
    width: 100%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(41, 196, 246, .15);
    border-radius: 12px;
    padding: 11px 16px;
    color: #e8f4fb;
    font-size: .9rem;
    font-family: 'Outfit', sans-serif;
    transition: border-color .2s, background .2s;
    outline: none;
}

.rw-input:focus {
    border-color: rgba(41, 196, 246, .5);
    background: rgba(41, 196, 246, .06);
}

.rw-input::placeholder {
    color: rgba(232, 244, 251, .25);
}

input[type="date"].rw-input {
    color-scheme: dark;
}

.rw-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 560px) {
    .rw-row {
        grid-template-columns: 1fr;
    }
}

.rw-divider {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(41, 196, 246, .6);
    border-top: 1px solid rgba(41, 196, 246, .1);
    padding-top: 1.2rem;
    margin-bottom: 1.2rem;
    margin-top: .5rem;
}

/* ========================= */
/* TIPO TOGGLE               */
/* ========================= */

.tipo-toggle {
    display: flex;
    gap: .8rem;
}

.tipo-btn {
    flex: 1;
    padding: .75rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: rgba(232, 244, 251, .6);
    font-family: 'Outfit', sans-serif;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    flex-direction: column;
}

.tipo-precio {
    font-size: .75rem;
    color: rgba(232, 244, 251, .4);
    font-weight: 400;
}

.tipo-btn.active {
    border-color: #29c4f6;
    background: rgba(41, 196, 246, .12);
    color: #29c4f6;
}

.tipo-btn.active .tipo-precio {
    color: rgba(41, 196, 246, .7);
}

/* ========================= */
/* SEARCH                    */
/* ========================= */

.search-wrap {
    position: relative;
}

.rw-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(232, 244, 251, .3);
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #0d2044;
    border: 1px solid rgba(41, 196, 246, .2);
    border-radius: 12px;
    overflow: hidden;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}

.search-result-item {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .75rem 1rem;
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    font-size: .88rem;
    color: #e8f4fb;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(41, 196, 246, .1);
}

.alumno-card-found {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: rgba(74, 222, 128, .06);
    border: 1px solid rgba(74, 222, 128, .2);
    border-radius: 10px;
    padding: .75rem 1rem;
    margin-top: .6rem;
    font-size: .85rem;
    color: #e8f4fb;
}

.alumno-card-found div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.alumno-card-found span {
    color: rgba(232, 244, 251, .5);
    font-size: .78rem;
}

/* ========================= */
/* HORARIOS                  */
/* ========================= */

.horarios-grid {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.horario-option {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    cursor: pointer;
    transition: all .2s;
}

.horario-option:hover:not(.disabled) {
    border-color: rgba(41, 196, 246, .4);
    background: rgba(41, 196, 246, .07);
}

.horario-option.selected {
    border-color: #29c4f6;
    background: rgba(41, 196, 246, .12);
}

.horario-option.disabled {
    opacity: .45;
    cursor: not-allowed;
}

.horario-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.horario-nombre {
    font-size: .9rem;
    font-weight: 600;
    color: #e8f4fb;
}

.horario-hora {
    font-size: .8rem;
    color: rgba(232, 244, 251, .5);
}

.horario-cupos {
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(74, 222, 128, .15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, .25);
}

.horario-cupos.lleno {
    background: rgba(248, 113, 113, .15);
    color: #f87171;
    border-color: rgba(248, 113, 113, .25);
}

.horario-cupos.ultimo {
    background: rgba(251, 191, 36, .15);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, .25);
}

/* ========================= */
/* PRECIO REFERENCIAL        */
/* ========================= */

.rw-precio-ref {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: rgba(41, 196, 246, .06);
    border: 1px solid rgba(41, 196, 246, .15);
    border-radius: 10px;
    padding: .9rem 1.1rem;
    margin-top: 1.2rem;
}

/* ========================= */
/* FILE UPLOAD               */
/* ========================= */

.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    padding: 2.5rem;
    border: 2px dashed rgba(41, 196, 246, .2);
    border-radius: 16px;
    background: rgba(41, 196, 246, .03);
    cursor: pointer;
    transition: border-color .2s, background .2s;
    text-align: center;
}

.file-upload-area:hover {
    border-color: rgba(41, 196, 246, .5);
    background: rgba(41, 196, 246, .07);
}

.file-preview {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: rgba(74, 222, 128, .06);
    border: 1px solid rgba(74, 222, 128, .2);
    border-radius: 10px;
    padding: .75rem 1rem;
    margin-top: .8rem;
    font-size: .88rem;
    color: #e8f4fb;
}

.file-preview div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

/* ========================= */
/* AVISO                     */
/* ========================= */

.rw-aviso {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(41, 196, 246, .06);
    border: 1px solid rgba(41, 196, 246, .15);
    border-radius: 14px;
    padding: 1.2rem;
    margin-top: 1.5rem;
}

/* ========================= */
/* NAVEGACION                */
/* ========================= */

.rw-nav-btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rw-btn-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(232, 244, 251, .6);
    padding: .7rem 1.4rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
}

.rw-btn-back:hover {
    border-color: rgba(255, 255, 255, .3);
    color: #e8f4fb;
}

/* ========================= */
/* ERROR                     */
/* ========================= */

.rw-error {
    background: rgba(248, 113, 113, .1);
    border: 1px solid rgba(248, 113, 113, .3);
    color: #f87171;
    border-radius: 10px;
    padding: .85rem 1.1rem;
    font-size: .88rem;
    margin-bottom: 1.2rem;
}

/* ========================= */
/* WIZARD STEP               */
/* ========================= */

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}