/* Modal de alta de profesor: patron visual del alta de complejo / login (gradiente de marca) */
#modalAltaProfesor .modal-dialog {
    max-width: 760px;
    animation: profModalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes profModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#modalAltaProfesor .modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    background: #fff;
}

#modalAltaProfesor .modal-header {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    color: #fff;
    padding: 1.1rem 1.5rem;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

#modalAltaProfesor .modal-header .btn-close {
    margin-left: auto;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

#modalAltaProfesor .modal-header .btn-close:hover {
    opacity: 1;
}

#modalAltaProfesor .profes-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#modalAltaProfesor .profes-modal-icon i {
    font-size: 1.3rem;
    color: #fff;
}

#modalAltaProfesor .profes-modal-heading {
    min-width: 0;
}

#modalAltaProfesor .modal-title {
    font-weight: 700;
    font-size: 1.08rem;
    color: #fff;
    line-height: 1.25;
    margin: 0;
}

#modalAltaProfesor .profes-modal-subtitle {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0.15rem 0 0;
}

#modalAltaProfesor .modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
    background: #fff;
    max-height: 75vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#modalAltaProfesor .profes-form-seccion {
    color: #2d5a27;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 1px;
    margin: 0.9rem 0 0.55rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e9f0eb;
}

#modalAltaProfesor .profes-form-seccion:first-child {
    margin-top: 0;
}

#modalAltaProfesor .form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

#modalAltaProfesor .form-control,
#modalAltaProfesor .form-select {
    border-radius: 10px;
    border: 1.5px solid #e9ecef;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
    background-color: #fbfdfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#modalAltaProfesor .form-control:focus,
#modalAltaProfesor .form-select:focus {
    border-color: #2d5a27;
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.15);
    background-color: #fff;
}

#modalAltaProfesor .form-control::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

#modalAltaProfesor .profes-submit-btn {
    background: linear-gradient(135deg, #2d5a27 0%, #1e3a8a 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    margin-top: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.3s ease, opacity 0.2s ease;
}

#modalAltaProfesor .profes-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.35);
    color: #fff;
}

#modalAltaProfesor .profes-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

#modalAltaProfesor .profes-submit-btn:disabled {
    opacity: 0.7;
    transform: none;
}

#modalAltaProfesor #profesor-form-paso-datos:not(.d-none),
#modalAltaProfesor #profesor-form-paso-verificacion:not(.d-none) {
    animation: profPasoFadeIn 0.3s ease;
}

@keyframes profPasoFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#modalAltaProfesor .profes-verif-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e9f2ec;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem auto 1rem;
}

#modalAltaProfesor .profes-verif-icon i {
    font-size: 1.8rem;
    color: #2d5a27;
}

#modalAltaProfesor .profes-verif-text {
    font-size: 0.95rem;
    color: #445;
    text-align: center;
    margin-bottom: 1.25rem;
}

#modalAltaProfesor .profes-verif-text strong {
    color: #1e3a8a;
    word-break: break-word;
}

#modalAltaProfesor .profes-code-inputs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

#modalAltaProfesor .profes-code-inputs input {
    width: 48px;
    height: 58px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a8a;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background-color: #fbfdfc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#modalAltaProfesor .profes-code-inputs input:focus {
    border-color: #2d5a27;
    box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.15);
    background-color: #fff;
}

#modalAltaProfesor .profes-resend-timer {
    font-size: 0.82rem;
    color: #889;
    text-align: center;
    margin: 1rem 0 0;
}

#modalAltaProfesor .profes-btn-ghost {
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    color: #556;
    font-weight: 600;
    background: transparent;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

#modalAltaProfesor .profes-btn-ghost:hover:not(:disabled) {
    border-color: #889;
    color: #334;
    background: #f5f6f7;
}

#modalAltaProfesor .profes-btn-outline-marca {
    border: 1.5px solid #2d5a27;
    border-radius: 10px;
    color: #2d5a27;
    font-weight: 600;
    background: transparent;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#modalAltaProfesor .profes-btn-outline-marca:hover:not(:disabled) {
    background: #2d5a27;
    color: #fff;
    box-shadow: 0 6px 18px rgba(45, 90, 39, 0.25);
}

#modalAltaProfesor .profes-btn-outline-marca:disabled,
#modalAltaProfesor .profes-btn-ghost:disabled {
    opacity: 0.6;
}

@media (max-width: 767.98px) {
    #modalAltaProfesor .modal-dialog {
        max-width: 92%;
        margin: 1rem auto;
    }

    #modalAltaProfesor .modal-header {
        padding: 1rem 1.25rem;
    }

    #modalAltaProfesor .modal-body {
        padding: 1.15rem 1.25rem 1.35rem;
    }
}

@media (max-width: 575.98px) {
    #modalAltaProfesor .modal-dialog {
        max-width: calc(100% - 1rem);
        margin: 0.5rem auto;
    }

    #modalAltaProfesor .modal-content {
        max-height: calc(100dvh - 1rem);
        display: flex;
        flex-direction: column;
    }

    #modalAltaProfesor .modal-header {
        flex-shrink: 0;
        padding: 0.9rem 1rem;
    }

    #modalAltaProfesor .modal-body {
        flex: 1 1 auto;
        max-height: none;
        padding: 1.05rem 1rem 1.25rem;
    }

    #modalAltaProfesor .form-control,
    #modalAltaProfesor .form-select {
        padding: 0.6rem 0.9rem;
        font-size: 0.92rem;
    }

    #modalAltaProfesor .profes-code-inputs {
        gap: 0.4rem;
    }

    #modalAltaProfesor .profes-code-inputs input {
        width: 42px;
        height: 52px;
        font-size: 1.25rem;
    }
}
